JDev/EJB Deployment Question
After I have successfully deployed an EJB using JDeveloper(3.1.1.2)to OSE (8.1.7)using JDeveloper's Deploy feature, do I still need to write the deployment descriptor manually and use the deployejb command tool? Is the same true when deploying to OAS9i?
If you're using WLS 9.x, then I would package the ejb-client-jar as a library.
If you're using an older version, then you have the 2 choices you mentioned (packaging it in each war file or putting in on the classpath.)
The advantage of the classpath is you have the file in only 1 place. The disadvantage is you must restart the server to update it.
Placing it in each webapp means you have N copies of the jar file, but you'll be able to take an update by just redeploying the webapp not restarting the entire server.
WLS 9.x's libraries give you the best of both worlds. You only manage 1 copy of the file, but you do not need to restart the server. You can also have multiple versions of a given library.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/
Similar Messages
-
If your servlets are running in the same instance as your EJBs, do you
need to make the EJBs clusterable (i.e. set the deployment descriptor
properties)? We have the same EJBs deployed on each server (5.1 SP8)
and we have been getting conflict handler errors for each EJB when we
start the second server (shown below)
Wed Aug 01 09:05:37 CEST 2001:<I> <ConflictHandler> ConflictStop
com.es.messaging.ESMessageQueueManagerHome_EO:com.es.messaging.ESMessageQueueManagerBeanEOImpl
(from
[email protected]:[7001,7001,7002,7002,7001,-1])
Support tells us that if EJBs are deployed on every server in a cluster,
then they MUST be configured to be clusterable. Why is that? Since
they are running in the same JVM as the servlets, we don't want EJB load
balancing or fault tolerance.. I would think that the non-clusterable
EJBs would not be added to the the cluster-wide JNDI. Also, we have
deployed this way in SP 5 and 6.0 SP2 and we never got any conflict
errors. If we do need to make them clusterable, can someone explain
why? Thanks.
Kirk
If you're using WLS 9.x, then I would package the ejb-client-jar as a library.
If you're using an older version, then you have the 2 choices you mentioned (packaging it in each war file or putting in on the classpath.)
The advantage of the classpath is you have the file in only 1 place. The disadvantage is you must restart the server to update it.
Placing it in each webapp means you have N copies of the jar file, but you'll be able to take an update by just redeploying the webapp not restarting the entire server.
WLS 9.x's libraries give you the best of both worlds. You only manage 1 copy of the file, but you do not need to restart the server. You can also have multiple versions of a given library.
-- Rob
WLS Blog http://dev2dev.bea.com/blog/rwoollen/ -
Hi Everyone,
I received a JAR error message when I tried to deploy my ejb project using j2ee's deployment tool. The error message basically said 'MyJar file appears not in ejb jar format'.
I understand MyJar should have the following structure, but I don't know how to get the descriptor file in the META-INF directory.
myDirectory/myClass1.class myClass2.class
META-INF/myDescriptor.xml
I used the sdk jar utility to create MyJar file, and I do not see there is an option in the jar utility which allows me to put files in meta-inf directory. My environment is Windows XP, SDK 1.3.1_06, and J2EE 1.3.1.
Could anyone shed lights on this issue? Is there other ways or better ways to deploy EJBs?
Thanks a million.Thanks for the jar command. After created myJar.jar with the proper structure and try to import the jar file again to j2ee's deployment tool, the same error shows up. I track down the exception log file with the following messages in it. Could anyone show me the way to a successful deployment? By the way I used the jar utility with 'tf' option, and the contents listed ok.
ERROR: [DeployToolWindow.addEjbJarFile:1713]
Adding EJB JAR
java.util.zip.ZipException: error in opening zip file
java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:105)
at java.util.jar.JarFile.<init>(JarFile.java:110)
at java.util.jar.JarFile.<init>(JarFile.java:77)
at com.sun.enterprise.deployment.EjbBundleArchivist.isEjbBundle(EjbBundleArchivist.java:115)
at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.addEjbJarFile(DeployToolWindow.java:1704)
at com.sun.enterprise.tools.deployment.ui.DeployToolWindow.addEjbJarAction(DeployToolWindow.java:1624)
at java.lang.reflect.Method.invoke(Native Method)
at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:258)
at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.invoke(UIActionDispatcher.java:276)
at com.sun.enterprise.tools.deployment.ui.utils.UIActionDispatcher.actionPerformed(UIActionDispatcher.java:296)
at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1445)
at com.sun.enterprise.tools.deployment.ui.utils.UIMenu$UIMenuItem.fireActionPerformed(UIMenu.java:216)
at javax.swing.AbstractButton$ForwardActionEvents.actionPerformed(AbstractButton.java:1499)
at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:373)
at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:245)
at javax.swing.AbstractButton.doClick(AbstractButton.java:274)
at javax.swing.plaf.basic.BasicMenuItemUI$MouseInputHandler.mouseReleased(BasicMenuItemUI.java:882)
at java.awt.Component.processMouseEvent(Component.java:3710)
at java.awt.Component.processEvent(Component.java:3539)
at java.awt.Container.processEvent(Container.java:1159)
at java.awt.Component.dispatchEventImpl(Component.java:2588)
at java.awt.Container.dispatchEventImpl(Container.java:1208)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
at java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
at java.awt.Container.dispatchEventImpl(Container.java:1195)
at java.awt.Window.dispatchEventImpl(Window.java:923)
at java.awt.Component.dispatchEvent(Component.java:2492)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:334)
at com.sun.enterprise.tools.deployment.ui.utils.UIEventQueue.dispatchEvent(UIEventQueue.java:214)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:126)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:93)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:88)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:80) -
Ejb deployment - classloader question
Hi Guys
I have a very basic question regarding EJB deployment in Weblogic 6.1 sp2.
Is it possble to create an EAR file such that -
1>it contains a WAR file [of servlets/jsps/client classes] - A
2>a jar file containing our core server classes[not EJBs] - B
3>a jar file containing EJBs - C
here A and C are definitely getting loaded by different class loaders - I want
the classloader for B to be parent of the classloaders for A and C - so that both
A and C can see B. - is this possible by some EAR/Weblogic specific way.
OR
the best solution is to place the B in the main classpath and deploy the C and
A in an EAR?
thanks
AnamitraInline.
Anamitra wrote:
Hi Guys
I have a very basic question regarding EJB deployment in Weblogic 6.1 sp2.
Is it possble to create an EAR file such that -
1>it contains a WAR file [of servlets/jsps/client classes] - A
2>a jar file containing our core server classes[not EJBs] - B
3>a jar file containing EJBs - C
here A and C are definitely getting loaded by different class loaders - I want
the classloader for B to be parent of the classloaders for A and C - so that both
A and C can see B. - is this possible by some EAR/Weblogic specific way.Made possible by placing B in the ear at the root level and referring to B with the
Class-Path manifest directive in the ejb jar file for C. This will put B in the ejb
classloader's classpath making it visible to C and to A since the classloader for C
is the parent of the classloader for A. Which, is the recommended way.
>
OR
the best solution is to place the B in the main classpath and deploy the C and
A in an EAR?
This works, but the classfiles in B are now static for the uptime of the server. If
you want to make changes in B, you must restart the server. If you configure it the
way described above, you can reload the B classes by redeploying the application ear.
>
thanks
AnamitraHere is the link with all of the info:
http://edocs.bea.com/wls/docs61/programming/packaging.html#1029830
Bill -
JDev 3.0/Oracle8i EJB deployment problems
When trying to deploy a simple EJB generated with the JDev 3
wizards, I get the following errors:
*** Executing deployment profile E:\Program
Files\Oracle\JDeveloper 3.0\myprojects\queueRemote.prf ***
*** Generating archive file E:\Program Files\Oracle\JDeveloper
3.0\myprojects\queueRemoteSource.jar ***
Compiling the project...done
Validating the profile...done
Initializing deployment...done
Scanning project files...done
Generating classpath dependencies...done
Generating archive entries table...done
*** Archive generation completed ***
*** Deploying the EJB to JServer ***
EJB deployment argument list:
"E:\Program Files\Oracle\JDeveloper 3.0\java\bin\javaw"
"-DPATH=E:\Program Files\Oracle\JDeveloper 3.0\bin;E:\Program
Files\Oracle\JDeveloper 3.0\java\bin"
-classpath
"E:\Program Files\Oracle\JDeveloper 3.0
\java\lib\classes.zip;E:\Program Files\Oracle\JDeveloper 3.0
\lib\jdeveloper.zip;E:\Program Files\Oracle\JDeveloper 3.0
\myclasses;E:\Program Files\Oracle\JDeveloper 3.0\lib\jdev-
rt.zip;E:\Program Files\Oracle\JDeveloper 3.0
\jdbc\lib\oracle8.1.5\classes111.zip;E:\Program
Files\Oracle\JDeveloper 3.0\lib\connectionmanager.zip;E:\Program
Files\Oracle\JDeveloper 3.0\lib\javax_ejb.zip;E:\Program
Files\Oracle\JDeveloper 3.0
\aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
\java1.2\jre\lib\rt.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\aurora_client.jar;E:\Program Files\Oracle\JDeveloper
3.0\aurora\lib\vbjorb.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjapp.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbjtools.jar;E:\Program Files\Oracle\JDeveloper 3.0
\aurora\lib\vbj30ssl.jar;E:\Program Files\Oracle\JDeveloper 3.0
\jdbc\lib\oracle8.1.5\classes111.zip"
oracle.aurora.ejb.deployment.GenerateEjb
-u
sys
-p
sys
-s
sess_iiop://localhost:2481:ORCL
-republish
-keep
-temp
TEMP
-descriptor
"E:\Program Files\Oracle\JDeveloper 3.0
\myprojects\queueRemote.dd"
-generated
"E:\Program Files\Oracle\JDeveloper 3.0
\myprojects\queueRemoteGenerated.jar"
"E:\Program Files\Oracle\JDeveloper 3.0
\myprojects\queueRemoteSource.jar"
org.omg.CORBA.INTERNAL[completed=MAYBE]
at
com.visigenic.vbroker.orb.GiopConnectionFactoryImpl.destroy
(GiopConnectionFactoryImpl.java:209)
at com.visigenic.vbroker.orb.GiopConnectionImpl.close
(GiopConnectionImpl.java:544)
at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
(GiopStubDelegate.java:609)
at com.visigenic.vbroker.orb.GiopStubDelegate.invoke
(GiopStubDelegate.java:466)
at org.omg.CORBA.portable.ObjectImpl._invoke
(ObjectImpl.java:141)
at oracle.aurora.AuroraServices._st_LoginServer.O3Logon_B
(_st_LoginServer.java:194)
at oracle.aurora.client.Login.authenticate
(Login.java:143)
at oracle.aurora.jndi.sess_iiop.SessionCtx.login
(SessionCtx.java:574)
at oracle.aurora.jndi.sess_iiop.SessionCtx.login
(SessionCtx.java:568)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login
(ServiceCtx.java:299)
at
oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession
(ToolImpl.java:101)
at
oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs
(ToolImpl.java:213)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke
(ToolImpl.java:121)
at oracle.aurora.ejb.deployment.GenerateEjb.main
(GenerateEjb.java:509)
*** Errors occurred while deploying the EJB to JServer ***
*** Deployment completed ***
Any suggestions as to what is happening would be greatly
appreciated.
Sean
nullAssuming that you have done the 'right' tinkg and changed the
password for the user SYS, then you are running into a JServer
bug. When the password file on the server and the user SYS
password in the rdbms get out of synch, this bug crops up (the
instance will be killed, immediately and with prejudice). The
solution is to:
-shut down the rdbms
-disable the password file in the INIT.ORA by setting the
parameter to EXCLUSIVE. Sorry the exact parameter change escapes
me at the moment, I have posted it earlier in this forum so you
can probably find it there if you don't already know it.
-restart the rdbms and change the sys password (again)
-you can then re-enable the password file if you need.
That's it. You will now be able to connect as SYS either via the
deployejb utility or session shell w/o bringing down the
database.
null -
Can't access EJB deployed on remote OC4J - what am I doing wrong?
I'm unable to access an EJB deployed on a remote OC4J instance (ie, part of a 9iAS installation on another machine vs local in JDeveloper).
I've reverted to a stupid-simple EJB in hopes of getting it going prior to trying my actual code. The EJB works fine in JDev (9.0.3) - I 'run' the EJB to start the local OC4J instance, run my client code (generated via the "New Sample Java Client..." option in the Navigator context popup) and all is well.
I then create an EAR file via the the "Create EJB Jar Deployment Profile..." context popup of the ejb-jar.xml node, followed by "Deploy to EAR file" from the context popup of the resulting ejb1.deploy node. I next "Deploy EAR File" via the "Oracle Enterprise Manager" that comes with 9iAS (the :1810 port). After successfully deploying, I modify my client code in JDeveloper, specifying the new connection information for the remote machine via the Hashtable constructor of InitialContext and attempt to run it. I've tried a number of Context.PROVIDER_URL forms, including: ormi://registered_pingable_host_name:23791/deployed_application_name
ormi://registered_pingable_host_name:23791/session_deployment_name (from the <enterprise-beans><session-deployment name="xxx"/></enterprise-beans> section of my orion-ejb-jar.xml file, as per a tip in this forum)
I've tried prefixing ormi:// with http:, but get no response whatesoever in this case.
I've also tried it without the port number (this port number matches that in my remote OC4J's <oc4j_instance_home>/config/rmi.xml file).
On the Context.SECURITY_PRINCIPAL and Context.SECURITY_CREDENTIALS settings, I've tried various values, generally using the 'admin' user, with passwords taken from:
<oc4j_instance_home>/principals.xml
<oc4j_instance_home>/application-deployments/application_name/principals.xml
I've also tried matching the password in the jazn-data.xml, to no avail - this password appears encrypted anyway, but thought I'd give it a try on the off-chance that it was just a randomly-generated password - no go.
I've also tried SCOTT/TIGER, anonymous, etc. Incidentally, the 'deactivated' attribute of the <user> tag is set to "false" in my principals.xml files.
No matter what I do, I always get back "javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect"
Additionally, I get this same message when I try to establish an Application Server Connection via JDev.
Clearly, I'm missing something critical (and probably simple), but I can't for the life of me figure it out.
Any help would be much appreciated!
Thanks,
Jim StollOk, well this is a bit strange...
3103 - 3103 also fails, and some experimentation has led me to find that any time that I specify a range smaller than 6 (3101 - 3106 works, 3101 - 3105, 3101-3101, 3103-3103, etc does not), the OC4J instance will not restart. I get "An error occurred while starting. The opmn request has failed. From opmn: HTTP/1.1 204 No Content Content-Length: 0 Content-Type: text/html Response: 0 of 1 processes started. Check opmn log files such as ipm.log and ons.log for detailed." in the OEM window (I specify the RMI port range, hit Apply, go to the OC4J instance home page, see that the Status is 'Down', hit Start, and get that message.) <ORACLE_HOME>/product/iasinfra/opmn/logs/ipm.log tells me:
02/12/03 09:41:12 There is no rmi port left for starting an OC4J process. Please check oc4j's port property in OPMN's configuration file.
02/12/03 09:41:12 start_proc: UID 3719788: failed to build args
02/12/03 09:41:12 start_proc_req: failed to start a process in GID OC4JJim2, type: 2
If I bump it up to 3101 - 3106 or higher, it starts right up. Running opmnadmin debug, as suggested by Venky (thanks Venky!), yields:
PROCESS TABLE
UID PID FLAGS TYPE STATUS REF HTTP AJP RMI JMS
3654011 84 00000040 OC4J Alive 1 0 3005 3106 3206
424987 604 00000000 Apache Alive 1 7777 0 0 0
2932088 14849 00000000 OC4J Alive 1 0 3003 3103 3203
3063160 14878 00000000 OC4J Alive 1 0 3001 3101 3201
3194232 14906 00000000 OC4J Alive 1 0 3000 3105 3205
3325304 14936 00000000 OC4J Alive 1 0 3002 3102 3202
3456376 14964 00000000 OC4J Alive 1 0 3004 3104 3204
Which is what I would expect, given the specified range of 3101-3106. Trying each of these ports in turn, I've found that I can hit the EJB successfully on 3106, but 3101 - 3105 all fail with:
javax.naming.NamingException: Lookup error: javax.naming.AuthenticationException: No such domain/application: Project7_2; nested exception is:
javax.naming.AuthenticationException: No such domain/application: Project7_2
java.lang.Object com.evermind.server.rmi.RMIContext.lookup(java.lang.String)
RMIContext.java:134
java.lang.Object javax.naming.InitialContext.lookup(java.lang.String)
InitialContext.java:350
void Samplemypackage9.MySessionEJBClient1.main(java.lang.String[])
MySessionEJBClient1.java:15
I'm a little concerned about assuming the high-end of the range to be the active port on a regular basis (though thus far, among about 20 - 30 tries spaced over 20 - 30 minutes, it has been...) - I guess I can have my code loop through the range until it finds a good port or exhausts the list, but that seems a bit excessive.
Can you think of a reason that my OC4J instance won't start with a range size of less than 6? I'm on 9iAS 9.0.2, if that makes any difference.
Thanks,
Jim -
Issues in looking up a ejb deployed on glassfish from tomcat.
Hi all,
I have followed the steps mentioned in the EJB FAQ in the glassfish site and was able to lookup a remote ejb deployed in glassfish from a standalone client.
In case of standalone client, i set the appropriate jndi properties in the initial context as mentioned in the FAQ and added the 4 jars specified to the classpath of the application.
It all worked perfectly well.
But I attempted to do the same from a servlet running under tomcat.
I set the appropriate jndi properties in the intial context and added 4 jars specified in the lib directory of the war file.
But this did not turn out well and tomcat complained me with some servlet init errors.
Then i searched through the web and found this posting from you:
http://www.archivesat.com/GlassFish_Enterprise_JavaBeans_Developers/thread1399339.htm
Then i created a folder called "shared/lib" under TOMCAT_HOME directory in my machine and ran the same example. Wow.....miraculously the application ran well.
But i found that the "index.jsp" which i configured in the welcome file list does not appear now. But i was able to access the servlet without any problem. And the servlet was able to successfully lookup the ejb deployed in glassfish.
Then i thought, let me try to access the ejb from a jsf application.
Then i created a jsf application in netbeans 5.5.1 and tried to access the bean deployed in glassfish.
(Note: the jsf application runs in tomcat 5.5.17 which is bundled with netbeans)
OOPSS....
Tomcat now complains me that it cannot compile the jsp page..
This is the error i got...
org.apache.jasper.JasperException: Unable to compile class for JSP
Generated servlet error:
C:\Documents and Settings\james\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\CityExplorer-WebClient1\org\apache\jsp\index_jsp.java:7: org.apache.jsp.index_jsp is not abstract and does not override abstract method getDependants() in org.apache.jasper.runtime.JspSourceDependent
public final class index_jsp extends org.apache.jasper.runtime.HttpJspBase
^
Generated servlet error:
C:\Documents and Settings\james\.netbeans\5.5.1\apache-tomcat-5.5.17_base\work\Catalina\localhost\CityExplorer-WebClient1\org\apache\jsp\index_jsp.java:12: getDependants() in org.apache.jsp.index_jsp cannot implement getDependants() in org.apache.jasper.runtime.JspSourceDependent; attempting to use incompatible return type
found : java.lang.Object
required: java.util.List
public Object getDependants() {
^
2 errors
org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:510)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
org.netbeans.modules.web.monitor.server.MonitorFilter.doFilter(MonitorFilter.java:368)
Any ideas...
Can you please help me.
I've noticed that you were eagerly answering questions related to ejb lookup in many places.
I feel there is some potential compatability issue between tomcat and glassfish...
I request you to investigate on this and clarify the community with your response.
Thanks in advance,
James SelvakumarThank you guys!
I've found the answer myself. -
deployejb -user scott -password tiger -service sess_iiop://tossserver:1521:orcl -descriptor HelloBeanDescriptor.txt -temp /ejb/HelloEJB \-generated HelloClient.jar myBean.jar
Exception in thread "main" java.lang.ClassCastException: com.sun.corba.se.intern
al.iiop.ORB
at oracle.aurora.jndi.orb_dep.IRFinder.getObject(IRFinder.java:24)
at oracle.aurora.jndi.orb_dep.IRFinder.initialReferences(IRFinder.java:7
8)
at oracle.aurora.jndi.sess_iiop.SessionCtx.initialContext(SessionCtx.jav
a:499)
at oracle.aurora.jndi.sess_iiop.SessionCtx.<init>(SessionCtx.java:35)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.createSession(ServiceCtx.java
:130)
at oracle.aurora.jndi.sess_iiop.ServiceCtx.login(ServiceCtx.java:295)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession(ToolI
mpl.java:101)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(ToolImpl.j
ava:213)
at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(ToolImpl.java:12
1)
at oracle.aurora.ejb.deployment.GenerateEjb.main(GenerateEjb.java:445)Unfortunately, I don't believe this is an appropriate forum to address this question to. The ODBC protocol has nothing to do with Java or EJB.
Justin -
Starting up j2ee and EJB deployment tool on Windows 98
I will start off this question with an apology if it is too stupid,
basic, or placed in the wrong group. I am relatively new to the world
of Java and even newer to the world of Server-side Java and EJBs.
However, I am plugging away.
I am using my trusty 4 year old system with Windows 98 second edition
to dabble with Server-side Java and EJB applications. I am using
Tomcat 4.0 as my server. When I try and start the j2ee server or the
EJB deployment tool I get the following scrolling messages:
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Bad command or file name
I have tried to adjust the memory settings in the DOS window with no
success. My question has three parts:
1) Can these applications be run using Windows 98 and if so what are
the exact DOS window memory settings for this?
2) Where exactly can I find the documentation that specifies this?
(please be specific as possible as I have read the readme.txt files
supplied with j2ee)
3) Should this and similar questions be posted in another
group/section?
I truly appreciate anyone's help with this.
Sincerely,
TimYou're going to have a lot of pain unless you upgrade to Windows 2000 or XP.
In the mean time, set your environment size much larger (google for "Out of
environment space") and use WinOne from http://www.cia.com.au/luke/ ...
that's how I scraped by on Windows 98 for a while.
Peace,
Cameron Purdy
Tangosol, Inc.
Clustering Weblogic? You're either using Coherence, or you should be!
Download a Tangosol Coherence eval today at http://www.tangosol.com/
"Tim" <[email protected]> wrote in message
news:[email protected]..
I will start off this question with an apology if it is too stupid,
basic, or placed in the wrong group. I am relatively new to the world
of Java and even newer to the world of Server-side Java and EJBs.
However, I am plugging away.
I am using my trusty 4 year old system with Windows 98 second edition
to dabble with Server-side Java and EJB applications. I am using
Tomcat 4.0 as my server. When I try and start the j2ee server or the
EJB deployment tool I get the following scrolling messages:
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Out of environment space
Syntax error
Syntax error
Syntax error
Out of environment space
Bad command or file name
I have tried to adjust the memory settings in the DOS window with no
success. My question has three parts:
1) Can these applications be run using Windows 98 and if so what are
the exact DOS window memory settings for this?
2) Where exactly can I find the documentation that specifies this?
(please be specific as possible as I have read the readme.txt files
supplied with j2ee)
3) Should this and similar questions be posted in another
group/section?
I truly appreciate anyone's help with this.
Sincerely,
Tim -
How to lookup EJBs deployed in OC4J from a standalone client application
Hello all,
I am trying to lookup an EJB deployed in OC4J 10.1.3 from a standalone client application using the following code:
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
env.put(Context.PROVIDER_URL, "ormi://localhost:23791");
env.put(Context.SECURITY_PRINCIPAL, "jazn.com/test");
env.put(Context.SECURITY_CREDENTIALS, "test");
Context context = new InitialContext(env);
Object ref = context.lookup("ejb/Dispatch");
I get the following error:
javax.naming.NameNotFoundException: ejb/Dispatch not found
at com.evermind.server.rmi.RMIClientContext.lookup(RMIClientContext.java:51)
at javax.naming.InitialContext.lookup(InitialContext.java:347)
For the lookup string I've also tried:
"java:comp/env/ejb/Dispatch" and "Dispatch"
For the Context.PROVIDER_URL property I've also tried:
opmn:ormi://localhost:6003:instance
The result is always the same.
I appreciate if someone could help me with this?
Thanks,
GeorgiGeorgi,
Your question has been discussed many times on this forum. Search the forum archives for "RMIInitialContextFactory".
The PROVIDER_URL needs to include the name of the deployed application that your EJB is part of, for example:
env.put(Context.PROVIDER_URL, "ormi://localhost:23791/MyApp");The lookup name has to be the value of the "ejb-name" element in your "ejb-jar.xml" descriptor file.
Your SECURITY_PRINCIPAL value looks strange to me. Personally, I use "principals" (and not JAZN), so I modified the "application.xml" file (in the "j2ee/home/config" subdirectory) to use "principals". Look for the following comment in that file:
<!-- Comment out the jazn element to use principals.
When both jazn and principals are present jazn is used -->Good Luck,
Avi.
Message was edited by:
Avi Abrami -
BC4J EJB deployment ; testing deployment to 8i with client application
Hi,
Is there a way to to connect a java client application to a 8i deployed BC4J using the oracle.dacf.dataset.SessionInfo ? Can we do this using the JDev wizards - property inspector ?
(I've seen in the doc :"Testing a Business Components EJB Deployed to Oracle8i with a Code Client" but the given code
// setup application module variable
ApplicationModule appMod = null;
javax.naming.Context ic = new InitialContext(env);
ApplicationModuleHome home = (ApplicationModuleHome)ic.lookup(DeployedMod);
appMod = home.create();
does not contains any SessionInfo object.)
Thanks,
XvcChris,
Perhaps you should be checking if the user you wish to deploy
EJBs to has at least JAVAUSERPRIV.
As SYSTEM
grant JAVAUSERPRIV to <user>;
Good luck
/Mark
Chris Jones (guest) wrote:
: Hi,
: I'm having a problem deploying an EJB to Oracle 8i with
: JDeveloper 2.0.
: I am receiving an insufficient privileges error in the
: deployment process when it reaches the stage Generating EJBHome
: and EJBObject on the server. I am logging in using the system,
: sys, scott or internal account and all still receive the same
: error. What role/privelege do I need to deploy an ejb to 8i?
: Thanks in advance.
: Here is a dump of the output JDeveloper produces.
: *** Invoking the Oracle JDeveloper deployment utility ***
: Scanning project files...done
: Generating classpath dependencies...done
: Generating archive entries table...done
: Writing archive...done
: *** Invoking the Oracle8i deployment utility ***
: Reading Deployment Descriptor...done
: Verifying Deployment Descriptor...done
: Gathering users...done
: Generating Comm Stubs...done
: Compiling Stubs...done
: Generating Jar File...done
: Loading EJB Jar file and Comm Stubs Jar file...done
: Generating EJBHome and EJBObject on the
: server...oracle.aurora.server.tools.sess_iiop.ToolsException: A
: SQL exception occured while compiling:
: oracle.aurora.ejb.gen.test_MyEJB.EjbObject_MyEJB : ORA-01031:
: insufficient privileges
: at oracle.aurora.server.tools.sess_iiop.ToolImpl.error
: (Compiled Code)
: at oracle.aurora.ejb.deployment.GenerateEjb.generateBean
: (Compiled Code)
: at oracle.aurora.ejb.deployment.GenerateEjb.invoke
: (Compiled Code)
: at oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke
: (Compiled Code)
: at
: oracle.jdeveloper.wizard.deployment.EJBDeployMonitor.run
: (Compiled Code)
: at oracle.jdeveloper.wizard.common.ProgressDialog.run
: (Compiled Code)
: at java.lang.Thread.run(Compiled Code)
null -
IO error writing cache during ejb deployment
I am getting this error a lot when I deploy an ear to standalone oc4j. This happens when I run from the command line or from jdeveloper. Retrying it eventually works, sometimes to speed things up I shutdown oc4j and remove the file. Is there some way to prevent this from happening.
com.evermind.compiler.CompilationException: Error instantiating compiler: IO error writing cache: D:\oc4j\j2ee\home\application-deployments\WebTSApp\WebTSejb.jar\deployment.cache
at com.evermind.server.ejb.compilation.Compilation.compileClasses(Compilation.java:500)This was a known issue before the preview release.
Workaround for the problem would be to change the Application name and EAR file name.
If you have the EJB deployment profile, Right mouse on it and choose Settings.
Change the name of the EAR file and the Application name and redeploy.
raghu
JDev Team -
Ejb Deployment using JDeveloper
i am using sunsolaris version 5.6 on which we have installed Oracle 8.1.7 database enterprise
edition. And when i am trying to deploy Enterprise Java Bean (Session Bean) on Oracle 8.1.7 using
JDeveloper 3.2 i am getting following error on message screen of jdeveloper :-
oracle.aurora.ejb.deployment.GenerateEjb
-u
ssc_admin
-p
ssc_proj
-s
sess_iiop://10.232.1.27:54754:rbsdevp
-republish
-keep
-temp
TEMP
-descriptor
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Trail.xml"
-oracledescriptor
C:\Program Files\Oracle\JDeveloper 3.2\myprojects\Trail_oracle.xml
-generated
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\TrailGenerated.jar"
"C:\Program Files\Oracle\JDeveloper 3.2\myprojects\TrailSource.jar"
Reading Deployment Descriptor...done
Verifying Deployment Descriptor...done
Gathering users...done
Generating Comm Stubs.......................................done
Compiling Stubs...done
Generating Jar File...done
Loading EJB Jar file and Comm Stubs Jar file...done
Generating EJBHome and EJBObject on the server...
Message [IOEXCEPTION_DESERIALIZING] not found in 'oracle.aurora.ejb.deployment.server.Messages'.
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
And the Trace file in the server gives following error :-
*** 2001-02-15 11:47:23.600
*** SESSION ID:(10.11) 2001-02-15 11:47:23.600
java.io.InvalidClassException: oracle.aurora.ejb.dd.DeploymentDescriptor; Local class not
compatible: stream classdesc serialVersionUID=59662438620610069 local class
serialVersionUID=-4578117701936276373
at java.io.ObjectStreamClass.validateLocalClass(ObjectStreamClass.java)
at java.io.ObjectStreamClass.setClass(ObjectStreamClass.java)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.inputClassDescriptor(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.inputObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at java.io.ObjectInputStream.readObject(ObjectInputStream.java)
at oracle.aurora.ejb.deployment.server.DeployEjbImpl.descriptor(DeployEjbImpl.java)
at oracle.aurora.ejb.deployment.server.DeployEjbImpl.generate(DeployEjbImpl.java)
at oracle.aurora.AuroraServices._DeployEJBImplBase._execute(_DeployEJBImplBase.java)
at oracle.aurora.AuroraServices._DeployEJBImplBase._execute(_DeployEJBImplBase.java)
at com.visigenic.vbroker.orb.SkeletonDelegateImpl.execute(SkeletonDelegateImpl.java)
at oracle.aurora.server.GiopProtocolAdapter.doRequest(GiopProtocolAdapter.java)
at com.visigenic.vbroker.orb.GiopProtocolAdapter.dispatchMessage(GiopProtocolAdapter.java)
at oracle.aurora.server.ThreadSessionDispatcher.run(ThreadSessionDispatcher.java)
at oracle.aurora.server.VCIiopConnection.processRequest(VCIiopConnection.java)
at oracle.aurora.server.GiopServer._service(GiopServer.java)
at oracle.aurora.server.GiopServer.service(GiopServer.java)
at oracle.aurora.net.VirtualCircuit.processRequest(VirtualCircuit.java)
at oracle.aurora.net.Presentation.handleRequest(Presentation.java)
Can anybody help me out.
nullThis is a known bug, EJB deployment from JDev 3.2 on NT to 8i JVM on Solaris does not work, but works if the JVM is on NT.
-
Ejb Deployment - Please help ?????
I am using Oracle 8.1.7 database ( Oarcle 9i App Server ) & JDeveloper 3.2 , but i am Unable to Deploy The BC4j as a Session bean in Oracle 9i App Server .
Can u please help me Out , in Getting it work Sucessfully .
Below is the Command Output .....
EJB deployment argument list:
"D:\Program Files\JDeveloper 3.2\java1.2\jre\bin\javaw"
"-DPATH=D:\Program Files\JDeveloper 3.2\bin;D:\Program Files\JDeveloper 3.2\java1.2\bin"
-classpath
"D:\Program Files\JDeveloper 3.2\aurora\lib\aurora_client.jar;D:\Program Files\JDeveloper 3.2\lib\javax-ssl-1_2.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\jasper.zip;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjorb.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjapp.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjtools.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\aurora.zip;D:\Program Files\JDeveloper 3.2\sqlj\lib\translator.zip;D:\Program Files\JDeveloper 3.2\sqlj\lib\runtime.zip;D:\Program Files\JDeveloper 3.2\aurora\lib\mts.jar;E:\JDEV\OurTest;D:\Program Files\JDeveloper 3.2\lib\jbojdbcpatch.zip;D:\Program Files\JDeveloper 3.2\lib\jbodomorcl.zip;D:\Program Files\JDeveloper 3.2\lib\jbodatum12.zip;D:\Program Files\JDeveloper 3.2\lib\jdev-rt.zip;D:\Program Files\JDeveloper 3.2\jdbc\lib\oracle8.1.7\classes12.zip;D:\Program Files\JDeveloper 3.2\lib\connectionmanager.zip;D:\Program Files\JDeveloper 3.2\lib\javax_ejb.zip;D:\Program Files\JDevelope
3.2\lib\jbomt.zip;D:\Program Files\JDeveloper 3.2\lib\jboremote.zip;D:\Program Files\JDeveloper 3.2\lib\jndi.jar;D:\Program Files\JDeveloper 3.2\lib\xmlparserv2.jar;D:\Program Files\JDeveloper 3.2\lib\jbotester.zip;D:\Program Files\JDeveloper 3.2\aurora\lib\aurora_client.jar;D:\Program Files\JDeveloper 3.2\lib\javax-ssl-1_2.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\jasper.zip;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjorb.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjapp.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbjtools.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\vbj30ssl.jar;D:\Program Files\JDeveloper 3.2\aurora\lib\aurora.zip;D:\Program Files\JDeveloper 3.2\sqlj\lib\translator.zip;D:\Program Files\JDeveloper 3.2\sqlj\lib\runtime.zip;D:\Program Files\JDeveloper 3.2\aurora\lib\mts.jar;D:\Program Files\JDeveloper 3.2\lib\jbocmp.zip;D:\Program Files\JDeveloper 3.2\java1.2\jre\lib\rt.jar;D:\Program Files\JDeveloper 3.2\lib\xmlparserv2.jar"
oracle.aurora.ejb.deployment.GenerateEjb
-u
scott
-p
tiger
-s
sess_iiop://208.13.222.141:2481:CTPOS
-republish
-keep
-temp
TEMP
-descriptor
"D:\Program Files\JDeveloper 3.2\myprojects\Emp.xml"
-oracledescriptor
D:\Program Files\JDeveloper 3.2\myprojects\Emp_oracle.xml
-generated
"D:\Program Files\JDeveloper 3.2\myprojects\EmpGenerated.jar"
"D:\Program Files\JDeveloper 3.2\myprojects\EmpSource.jar"
org.omg.CORBA.COMM_FAILURE: java.io.IOException: Peer disconnected socket minor code: 0 completed: No
org.omg.CORBA.portable.InputStream com.visigenic.vbroker.orb.GiopStubDelegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder, org.omg.CORBA.Context, org.omg.CORBA.ContextList)
org.omg.CORBA.portable.InputStream com.visigenic.vbroker.orb.GiopStubDelegate.invoke(org.omg.CORBA.Object, org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder)
org.omg.CORBA.portable.InputStream com.inprise.vbroker.CORBA.portable.ObjectImpl._invoke(org.omg.CORBA.portable.OutputStream, org.omg.CORBA.StringHolder)
byte[] oracle.aurora.AuroraServices._st_LoginServer.O3Logon_A_Locale(java.lang.String, oracle.aurora.AuroraServices.Locale)
boolean oracle.aurora.client.Login.authenticate(java.lang.String, java.lang.String, java.lang.String)
boolean oracle.aurora.jndi.sess_iiop.SessionCtx.login(java.lang.String, java.lang.String, java.lang.String)
boolean oracle.aurora.jndi.sess_iiop.SessionCtx.login()
oracle.aurora.jndi.sess_iiop.SessionCtx oracle.aurora.jndi.sess_iiop.ServiceCtx.login()
void oracle.aurora.server.tools.sess_iiop.ToolImpl.initializeSession()
java.lang.String[] oracle.aurora.server.tools.sess_iiop.ToolImpl.parseStdArgs(java.lang.String[])
void oracle.aurora.server.tools.sess_iiop.ToolImpl.invoke(java.lang.String[], java.io.InputStream, java.io.PrintStream, java.io.PrintStream)
void oracle.aurora.ejb.deployment.GenerateEjb.main(java.lang.String[])
Exception in thread main
*** Errors occurred while deploying the EJB to 8i JVM ***
*** Deployment completed ***
nullthere area couple of notes at the following location which describe how to setup ias 9i and then deploy bc4k app's to it .
http://technet.oracle.com/docs/products/jdev/howto.html -
Error while accessing EJB deployed in another app
Hi,I have an EJB deployed in another application and was trying to access it from different application (both running on seperate weblogic server 5.1)when i do look-up like this : Hashtable hmRemote = new Hashtable(); hmRemote.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); hmRemote.put(Context.PROVIDER_URL, "http://localhost:7001/doc"); Hashtable hmLocal = new Hashtable(); hmLocal.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.WLInitialContextFactory"); hmLocal.put(Context.PROVIDER_URL, "http://localhost:7004/amit"); hmLocal.put(WLContext.DELEGATE_ENVIRONMENT, hmRemote); Context ctx = new InitialContext(hmLocal);I get following error on console :Wed May 02 12:28:30 CDT 2001:<I> <ConMan> Bootstrap unable to get a http connection to localhost/127.0.0.1Wed May 02 12:28:30 CDT 2001:<I> <ConMan> Bootstrap unable to get a http connection to localhost/127.0.0.1Exception caught in try javax.naming.CommunicationException [Root exception is java.net.ConnectException: No server found atHTTP://localhost:7001]Please help me.thanksamit
I solved the problem or I learned the process. I forgot to add two jar files in tomcat shared library. It is working now. Thanks.
Maybe you are looking for
-
Chinese display in Palm Desktop 6.2.2
I am a Volunteer here, not employed by HP. You too can become an HP Expert! Details HERE! If my post has helped you, click the Kudos Thumbs up! If it solved your issue, Click the "Accept as Solution" button so others can benefit from the question you
-
Calling stored procedure from session bean method
I have a situation like this : I have one method on a stateless session bean (and I mark this method as container managed transaction). For database related stuff, I am not using entity beans, I am using my own layer of OR mapping. This method does a
-
Outputting for multiple screens / projectors
Hello everyone I am preparing a video installation that I would like to project through 3 projectors onto three walls side by side. I would like to slide video clips from one wall onto the next or even stretch one video footage onto all 3 walls. (wit
-
Premiere Elements 9 unstable with reoccuring memory warning
I have a PC with intel core i7 with a [email protected] with 4GB of RAM and Win 7 (32 bit)... I started a project this weekend that is due next saturday, so I'm a little worried about the Premiere Element 9 stability I have seen so far... My project
-
Using the Express as Bridge with an SMC Gateway device for VOIP Possible?
Hi there: I want to purchase a VOIP Internet phone & line and am concerned that it may not work with my Airport Express. I can use any old phone as long as it is hooked up to the VOIP gateway device which must be connected directly to my High Speed D