Starting j2ee server
I am new to j2ee and as per the j2ee tutorials
1. I have installed j2ee sdk,
2. installed jdk 1.3.1
3. installed ant
4. set JAVA_HOME
5. set J2EE_HOME
6. set ANT_HOME,
but when I try to start the j2ee server on my command prompt, I am geting follwoing error, what am I missing ? Please help.
c:>j2ee -verbose
J2EE server listen port: 1050
Naming service started:1050
Exception in thread "main" java.lang.NoSuchMethodError
at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
l.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
utdownUtilDelegate.java:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
UtilDelegate.java:178)
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
bind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
va:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
I presume you have installed this on Windows 98;
You may or may be aware that this is an unsupported platform for J2EE and consequently requires some tweaking to get it to work correctly.
There are a few very good solutions to this on the Enterprise JavaBeans forum on this site that can guide you as to how to do this. It is a bit fiddly but it does work in the end.
try this link which I used to get this sorted on windows 98
http://forum.java.sun.com/thread.jsp?forum=13&thread=21673
Similar Messages
-
Error at starting j2ee server (newbie)
Dear all,
I am not able to start j2ee server successfully. I keep getting the following error when I try to start the server by typing j2ee:
C:\Documents and Settings\ali>j2ee
J2EE server listen port: 1050
Redirecting the output and error streams to the following files:
C:\j2sdkee1.3.1\logs\nofear\j2ee\j2ee\system.out
C:\j2sdkee1.3.1\logs\nofear\j2ee\j2ee\system.err
Exception in thread "main"
I have j2sdkee1.3.1 and jdk1.3.0_05 installed in my laptop with the following settings:
User variable:
PATH=C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;C:\Program Files\Java\jre1.6.0_02\bin;C:\Program Files\Java\jdk1.6.0_02\bin; C:\j2sdkee1.3.1\bin;
CLASSPATH=.;C:\Program Files\Java\jre1.6.0_02\bin;C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;
System variable:
PATH=D:\MikTex\miktex\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\Java\jdk1.6.0_02\bin;C:\PROGRA~1\CINDER~1\CINDER~2\Program;C:\Program Files\Java\jre1.6.0_02\bin;C:\PROGRA~1\ATT\Graphviz\bin\tools;C:\WINDOWS\system32\wbem;C:\Program Files\ImageConverter Plus;C:\Program Files\Samsung\Samsung PC Studio 3\;C:\Program Files\QuickTime\QTSystem\;C:\jdk1.3.0_05\bin;C:\j2sdkee1.3.1\bin;
CLASSPATH= .;C:\jdk1.3.0_05\bin;C:\Program Files\Java\jdk1.6.0_02\bin; C:\Program Files\Java\jre1.6.2_02\bin;C:\Program Files\Java\jdk1.6.0_02\bin;C:\Program Files\Java\jre1.6.0_05\lib\ext\QTJava.zip;C:\j2sdkee1.3.1\bin;C:\j2sdkee1.3.1;
Java_home= C:\jdk1.3.0_05
J2ee_home= C:\j2sdkee1.3.1
Could you please tell me why as I am not able to pass this stage without help?
Kind regards,
AlModify your JAVA_HOME to C:\Program%20%Files\j2sdk1.4.2_08
as spaces are not allowed. Most probably it will work.
I have installed J2EE SDK 1.3 on my machine. I have
set
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\Program Files\j2sdk1.4.2_08
and
PATH=C:\j2sdkee1.3.1\bin
CLASSPATH
=%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale
environmental variables. All the four path seem to
OK. But when I'm trying to start application server
using j2ee -verbose command on my dos prompt I'm
getting following error
'C:\Program' is not recognized as an internal or
external command, operable program or batch file.
I tried j2ee -verbose command from C: prompt as well
as from C:\j2sdkee1.3.1\bin prompt in which j2ee
batch file is present.
Please help/guide on above issue -
I have installed Java 2 SDK, Enterprise Edition version 1.3 on Win NT server. Installation was successfull.
While starting J2EE server, I am getting following error:
Exception in thread "main" java.lang.NoClassDefFoundError: COMPUTER\db\A few basic steps taken from http://java.sun.com/j2ee/sdk_1.3/install.html#win_soft
Installing the Windows Bundle
1. If you have installed a previous version of the J2EE SDK product, you must delete or un-install the previous version from your computer before proceeding with the new version.
2. Set the environment variables.
Before running the J2EE SDK, you must set these environment variables:
J2EE_HOME - the directory where you installed this release.
JAVA_HOME - the directory where the Java 2 SDK Standard Edition is installed.
PATH - include the bin directory beneath the directory where you've installed this release. -
Can't start J2ee server using j2sdkee1.3.1
When i try to start j2ee server , it shows the following
Error message.
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context
at com.sun.enterprise.server.J2EEServer.<clinit>(J2EEServer.java:53)
I have set all environment variables as follows
set path=.;c:\jdk1.2.2\bin;c:\j2sdkee1.3.1\bin;
set classpath=.c:\jdk1.2.2\lib;c:\j2sdkee1.3.1\lib\j2ee.jar
set JAVA_HOME=c:\jdk1.2.2
set J2EE_HOME=c:\j2sdkee1.3.
pls kindly give a solution.Try rather using the 1.4 version available here: http://java.sun.com/j2ee/1.4/
and use this dedicated forum: http://forum.java.sun.com/forum.jsp?forum=136
-Alexis -
I installed J2EE on Windows NT. I am getting the following exceptions when I started J2EE Server....
1. java.lang.NullPointerException at com.sun.enterprise.server.J2EEServer.....
2. RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process....
I tried to change the port no. from the default 1050 to 10500, but it didn't help.
Any suggestions please?Since u r getting the TCP/IP port already in use error, u probably have some other service/server running on that port.Try the following steps:
1) Start menu >> Control Panel >> Services
2) See which services are running presently. In case u have any web server,Appln. server running. , stop them and then start J2EE again.
But, I still think u r missing something in the classpath. -
Starting j2ee server from a java Application
Hi.
I'm trying to start j2ee server by clicking a button in an application I'm developing. I don't know how to do it. I haven't found In the documentation some topic related. I look at the j2ee.bat but it just call a class named J2EEServer, and the API of this class is not in the API of the j2ee.
Can you help me please??
Thanks
Mauchothanks!
That was my first approach , and it works, but the problem is that I can't kill the process then, cause the method destroy() don't kill j2ee. Maybe it kills the j2ee.bat, but not the server itself. Maybe you know how to do it, I'll really appreciate it.
Regards -
Error message while starting J2EE Server!
Hi!
I get this error message when i try to start J2EE server:
c:\j2ee -verbose
Exception in thread "main" java.lang.NoSuchMethodError
at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImp
l.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(Sh
utdownUtilDelegate.java:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(Shutdown
UtilDelegate.java:178)
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.re
bind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManag
erImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.ja
va:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
Can someone tell me why?
ThanksYou need jsdk 1.3.1_03 or above to run j2ee 1.3.1 Any other version will give you this error.
-
When starting J2EE server .....
I have installed j2sdk 1.4 & j2sdkee1.3 on Windows XP. I have set Environment variables.
When I start j2ee server
COMMAN PROMPT SAYS
C:\>j2ee
Warning: This J2EE SDK release has only been tested on J2SE v1.3
J2EE server listen port: 1050
Redirecting the output and error streams to the following files:
c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.out
c:\j2sdkee1.3\logs\home\j2ee\j2ee\system.err
Exception in thread "main"
C:\>
SYSTEM.ERR shows
Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
J2EE Home Directory has been set to: c:\j2sdkee1.3.
java.lang.NoSuchMethodError: loadClass0
at com.sun.corba.ee.internal.util.JDKClassLoader.specialLoadClass(Native Method)
at com.sun.corba.ee.internal.util.JDKClassLoader.loadClass(JDKClassLoader.java:58)
at com.sun.corba.ee.internal.util.JDKBridge.loadClassM(JDKBridge.java:181)
at com.sun.corba.ee.internal.util.JDKBridge.loadClass(JDKBridge.java:84)
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.loadClass(Util.java:392)
at javax.rmi.CORBA.Util.loadClass(Util.java:233)
at javax.rmi.PortableRemoteObject.createDelegateIfSpecified(PortableRemoteObject.java:179)
at javax.rmi.PortableRemoteObject.<clinit>(PortableRemoteObject.java:58)
at com.sun.enterprise.server.J2EEServer.createActivationObjects(../../src/share/com/sun/enterprise/server/J2EEServer.java:397)
at com.sun.enterprise.server.J2EEServer.run(../../src/share/com/sun/enterprise/server/J2EEServer.java:227)
at com.sun.enterprise.server.J2EEServer.main(../../src/share/com/sun/enterprise/server/J2EEServer.java:901)
SYSTEM.OUT shows
Logging for J2EE Server Version: 1.3-b16 started at: Wed Apr 07 16:03:55 GMT+05:30 2004..
Using the Java HotSpot(TM) Client VM and the version number 1.4.0 from Sun Microsystems Inc..
VM is using the classpath: c:\j2sdkee1.3\lib\system\cloudscape.jar;c:\j2sdkee1.3\lib\system\tools.jar;c:\j2sdkee1.3\lib\cloudscape\RmiJdbc.jar;c:\j2sdkee1.3\lib\cloudscape\client.jar;c:\j2sdkee1.3\lib\classes;c:\j2sdkee1.3\classes;c:\j2sdkee1.3\lib\j2ee.jar;c:\j2sdkee1.3\lib\locale;c:\j2sdk1.4.0\jre\lib\rt.jar;c:\j2sdk1.4.0\lib\tools.jar;.;;c:\j2sdkee1.3\lib\jhall.jar .
J2EE Home Directory has been set to: c:\j2sdkee1.3.
Naming service started:1050
I tried changing the port number from 1050 to 10590 (as shown in Sun site) but didn't help. Same problem.
One more thing, can this problem be b'coz of "Warning: This J2EE SDK release has only been tested on J2SE v1.3" this starting line on start of server.
Can anyone tell me, y am I facing this problem and how to solve it. Other applications like deploytool, cloudscape r running fine. I didn't try others.
Looking for help as soon as possible
Thanks
TruptiYou may want to try and use J2SE 1.3 instead of J2SE 1.4. This may alleviate your issue.
-
When starting J2EE server PE8 on Linux
When starting J2EE server PE8 on Linux Fedora Core 1, the following message is displayed:-
"Unable to read system environment. No system environment will be used."
1. Is there any side effect to the J2EE server PE8 performance or functionalities about this warning message?
2. Is there any way to avoid this issuea in case it does have side effect?
Regards,
WilliamI find libcliutil.so in $J2EE_HOME/lib and did the followings and got:-
#> ldd libcliutil.so
ldd: warning: you do not have execution permission for `./libcliutil.so'
libpthread.so.0 => /lib/tls/libpthread.so.0 (0x008ad000)
libdl.so.2 => /lib/libdl.so.2 (0x00782000)
libcrypt.so.1 => /lib/libcrypt.so.1 (0x00433000)
libresolv.so.2 => /lib/libresolv.so.2 (0x00913000)
libstdc++-libc6.2-2.so.3 => not found
libm.so.6 => /lib/tls/libm.so.6 (0x0075e000)
libc.so.6 => /lib/tls/libc.so.6 (0x00623000)
/lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x0060b000)
Can we infer that the warning message is displayed due to "libstdc++-libc6.2-2.so.3 => not found"?
Regards,
William -
Cannot start J2EE server on Windows 2000 server
Hi..
I installed J2EE 1.3(beta) along with J2SE1.3 that comes with the Java Jump start CDs.
The installation process went fine...I configured the environment variables but when I try to start the J2EE server from command prompt I get the following error.
E:\>j2ee -verbose
Exception in thread "main" java.lang.NoClassDefFoundError: javax/naming/Context at com.sun.enterprise.server.J2EEServer.<clinit>(J2EEServer.java:59)
The same error is encountered with other switches(stop, version etc.) of j2ee.
There is no conflict of port numbers. Can anyone please guide me properly what I have done wrong in the installation process?
ThanksWell...I removed the CLASSPATH variable all together and reinstalled J2SE 1.3 again(refreshed all the environment variables) and then started j2ee server....and it worked this time...
Thanks alot... -
Hi,
This is what I get when I start j2ee -verbose.
I am using JDK1.3 and J2EESDK1.3.1
Any Help..
Thanx
J2EE server listen port: 9999
Naming service started:9999
Exception in thread "main" java.lang.NoSuchMethodError
at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.ja
va:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.rebind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202)
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.java:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
************************************************************************you have to use jdk1.3.1_02 (03)
-
ERROR WHILE STARTING J2EE SERVER IN COMMAND PROMPT
C:\j2sdkee1.3.1\bin>j2ee -verbose
J2EE server listen port: 1050
Naming service started:1050
Exception in thread "main" java.lang.NoSuchMethodError
at com.sun.corba.ee.internal.corba.AnyImpl.createTypeCodeForClass(AnyImpl.java:1256)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.createTypeCode(ShutdownUtilDelegate.java:223)
at com.sun.corba.ee.internal.iiop.ShutdownUtilDelegate.writeAny(ShutdownUtilDelegate.java:178)
at javax.rmi.CORBA.Util.writeAny(Util.java:80)
at org.omg.stub.com.sun.enterprise.naming._SerialContextProvider_Stub.rebind(Unknown Source)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:188)
at com.sun.enterprise.naming.SerialContext.rebind(SerialContext.java:202)
at javax.naming.InitialContext.rebind(InitialContext.java:370)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:192)
at com.sun.enterprise.naming.NamingManagerImpl.publishObject(NamingManagerImpl.java:149)
at com.sun.enterprise.server.J2EEServer.bindObject(J2EEServer.java:718)
at com.sun.enterprise.server.J2EEServer.createServerObject(J2EEServer.java:473)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:244)
ANY DETAILS POST
REGARDS
VENKATI had the same problem overhere.
If you would have taken the time to read some topics on this forum you would have found dozens of others having this problem like
http://forum.java.sun.com/thread.jsp?forum=136&thread=280211
Which gave the answer for me
That was: install the jdk141 and UNDEFINE any classpath and cpath in you environment setting.
HTH
Xiffy -
Error when starting j2ee server, please help
JMS expert,
I am using j2sdkee1.3 with jdk1.3.1_01 over NT system. When I started JMS provider by "j2ee -verbose", I got an exception saying "TCP/IP ports(1050) in use by another process". Then I tried other port numbers like 1051 and 1061, the same error kept coming. What is the best port number I should use or whatelse I should do to solve this problem? Thanks.
C:\j2sdkee1.3\jms_execise>c:\j2sdkee1.3\bin\j2ee -verbose
J2EE server listen port: 1081
org.omg.CORBA.INTERNAL: minor code: 1398079697 completed: No
at com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(GIOPImpl.java:256)
at com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIOPImpl.java:205)
at com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(GIOPImpl.java:140)
at com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(POAORB.java:488)
at com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(POAImpl.java:154)
at com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.java:112)
at com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB.java:110)
at com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.java:128)
at com.sun.corba.ee.internal.core.Future.evaluate(Future.java:21)
at com.sun.corba.ee.internal.corba.ORB.resolveInitialReference(ORB.java:2421)
at com.sun.corba.ee.internal.corba.ORB.resolve_initial_references(ORB.java:2356)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:193)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:203)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:203)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
java.lang.RuntimeException: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:350)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:913)
J2EE server reported the following error: Unable to create ORB. Possible causes include TCP/IP ports in use by another process
Error executing J2EE server ...
****************************************************************Hello.,
Did you get a resolution to this error ? I get the same error, odd thing is that i had it working for several days and now it won;t start ?
JMS expert,
I am using j2sdkee1.3 with jdk1.3.1_01 over NT system.
When I started JMS provider by "j2ee -verbose", I got
an exception saying "TCP/IP ports(1050) in use by
another process". Then I tried other port numbers like
1051 and 1061, the same error kept coming. What is
the best port number I should use or whatelse I should
do to solve this problem? Thanks.
C:\j2sdkee1.3\jms_execise>c:\j2sdkee1.3\bin\j2ee
-verbose
J2EE server listen port: 1081
org.omg.CORBA.INTERNAL: minor code: 1398079697
completed: No
at
at
at
t
com.sun.corba.ee.internal.iiop.GIOPImpl.createListener(
IOPImpl.java:256)
at
at
at
t
com.sun.corba.ee.internal.iiop.GIOPImpl.getEndpoint(GIO
Impl.java:205)
at
at
at
t
com.sun.corba.ee.internal.iiop.GIOPImpl.initEndpoints(G
OPImpl.java:140)
at
at
at
t
com.sun.corba.ee.internal.POA.POAORB.getServerEndpoint(
OAORB.java:488)
at
at
at
t
com.sun.corba.ee.internal.POA.POAImpl.pre_initialize(PO
Impl.java:154)
at
at
at
t
com.sun.corba.ee.internal.POA.POAImpl.<init>(POAImpl.ja
a:112)
at
at
at
t
com.sun.corba.ee.internal.POA.POAORB.makeRootPOA(POAORB
java:110)
at
at
at
t
com.sun.corba.ee.internal.POA.POAORB$1.evaluate(POAORB.
ava:128)
at
at
at
t
com.sun.corba.ee.internal.core.Future.evaluate(Future.j
va:21)
at
at
at
t
com.sun.corba.ee.internal.corba.ORB.resolveInitialRefer
nce(ORB.java:2421)
at
at
at
t
com.sun.corba.ee.internal.corba.ORB.resolve_initial_ref
rences(ORB.java:2356)
at
at
at
t
com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
:193)
at
at
at
t
com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
a:913)
java.lang.RuntimeException: Unable to create ORB.
Possible causes include TCP/IP ports in use by another
process
at
at
at
t
com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
:203)
at
at
at
t
com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
a:913)
java.lang.RuntimeException: Unable to create ORB.
Possible causes include TCP/IP ports in use by another
process
at
at
at
t
com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
:203)
at
at
at
t
com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
a:913)
java.lang.RuntimeException: Unable to create ORB.
Possible causes include TCP/IP ports in use by another
process
at
at
at
t
com.sun.enterprise.server.J2EEServer.run(J2EEServer.jav
:350)
at
at
at
t
com.sun.enterprise.server.J2EEServer.main(J2EEServer.ja
a:913)
J2EE server reported the following error: Unable to
create ORB. Possible causes include TCP/IP ports in
use by another process
Error executing J2EE server ... -
Error when starting J2EE server
I can't start my J2EE server, when I type "j2ee verbose" on windows console, it showed an error like this :
J2EE server listen port: 1050
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/corba/se/internal/util/IdentityHashtable
at com.sun.corba.ee.internal.javax.rmi.CORBA.Util.<clinit>(Util.java:87)
at com.sun.corba.ee.internal.POA.POAImpl.activate(POAImpl.java:935)
at com.sun.corba.ee.internal.POA.POAImpl.activate_object(POAImpl.java:895)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.initialize(TransientNameService.java:117)
at com.sun.corba.ee.internal.CosNaming.TransientNameService.<init>(TransientNameService.java:70)
at com.sun.enterprise.iiop.POAProtocolMgr.initializeNaming(POAProtocolMgr.java:103)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:226)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
I used J2EE 1.3.1 and JDK 1.5.0. I also have set an environment variable like shown below :
JAVA_HOME=C:\jdk1.5.0
J2EE_HOME=C:\j2sdkee1.3.1
PATH=%JAVA_HOME%\bin;%J2EE_HOME%\bin
CLASSPATH=%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale
all that env. variable have been set in System Properties through control panel in my windows. Plz help me if there anything wrong with my setting or there are another problems that I didn't noticed before. Thank you.
Irfan R.Modify your JAVA_HOME to C:\Program%20%Files\j2sdk1.4.2_08
as spaces are not allowed. Most probably it will work.
I have installed J2EE SDK 1.3 on my machine. I have
set
J2EE_HOME=C:\j2sdkee1.3.1
JAVA_HOME=C:\Program Files\j2sdk1.4.2_08
and
PATH=C:\j2sdkee1.3.1\bin
CLASSPATH
=%J2EE_HOME%\lib\j2ee.jar;%J2EE_HOME%\lib\locale
environmental variables. All the four path seem to
OK. But when I'm trying to start application server
using j2ee -verbose command on my dos prompt I'm
getting following error
'C:\Program' is not recognized as an internal or
external command, operable program or batch file.
I tried j2ee -verbose command from C: prompt as well
as from C:\j2sdkee1.3.1\bin prompt in which j2ee
batch file is present.
Please help/guide on above issue -
I have recently installed the J2EE SDK 1.3.1 and J2SE SDK 1.4.1_02. Upon starting the j2ee server (j2ee -verbose), get the following error message.
Exception in thread "main" java.lang.ExceptionInInitializerError
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:175)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:972)
Caused by: java.lang.NullPointerException
at java.net.InetAddress.cacheAddress(InetAddress.java:648)
at java.net.InetAddress.cacheAddress(InetAddress.java:633)
at java.net.InetAddress.getAddressFromNameService(InetAddress.java:1016)
at java.net.InetAddress.getLocalHost(InetAddress.java:1125)
at com.sun.enterprise.util.Utility.getLocalHost(Utility.java:56)
at com.sun.enterprise.repository.ConfigurationImpl.<clinit>(ConfigurationImpl.java:18)
... 2 more
I am running Linux 7.2, Apache 1.3.27, Tomcat 4.1.24., and have two (2) NICs.
Any ideas on what might cause this issue?I believe I got the server working. The system may have had an issue recognizing the environmental variables being set in the .bash_profile and the setconfig.sh.
If anyone could clarify the errors above, I would greatly appreciate the information.
J2EE server listen port: 1050
Naming service started:1050
Binding DataSource, name = jdbc/DB1, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/DB2, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/InventoryDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/Cloudscape, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/EstoreDB, url = jdbc:cloudscape:rmi:CloudscapeDB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource = COM.cloudscape.core.RemoteXaDataSource@1c208b0
Starting JMS service...
Initialization complete - waiting for client requests
Binding: < JMS Destination : jms/Queue , javax.jms.Queue >
Binding: < JMS Destination : jms/Topic , javax.jms.Topic >
Binding: < JMS Cnx Factory : QueueConnectionFactory , Queue , No properties >
Binding: < JMS Cnx Factory : jms/QueueConnectionFactory , Queue , No properties
>
Binding: < JMS Cnx Factory : jms/TopicConnectionFactory , Topic , No properties
>
Binding: < JMS Cnx Factory : TopicConnectionFactory , Topic , No properties >
Starting web service at port: 8000
Starting secure web service at port: 7000
J2EE SDK/1.3.1
Starting web service at port: 9191
J2EE SDK/1.3.1
J2EE server startup complete. -
Can't start J2EE server :o(
Hi,
I'm getting started with J2EE but I can't start the J2EE server. I have to point out that I read the instructions in J2EE Tutorial 1.3 but I use J2EE SDK 1.4 Beta.. But it should work, shouldn't it??? I don't expect the problem to be very serious but I'm a greener and can't solve it myself :oI
Thanks a lot for every hint and sorry for my not very good English :o)
Dojcland
Here are the "printStackTraces" I get:
(The last line you can see is the last one that appears. Never "C:\" again. If I close the window "Stopping J2EE server" message appears before the window is closed.)
C:\>j2ee -stop
Shutting down the J2EE server.
Unable to shutdown the J2EE server.
C:\>cleanup
This will delete all deployed applications and clean all log files
Do you want to proceed (y/n)
y
Cleaning directory C:\j2sdkee1.4\logs ...
Cleaning directory C:\j2sdkee1.4\repository ...
Cleaning directory C:\j2sdkee1.4\connector\adapters ...
Cleaning directory C:\j2sdkee1.4\public_html ...
Cleaning directory C:\WINNT\TEMP\j2ee-ri-Dojcland ...
Cleaning directory C:\j2sdkee1.4\web\repository ...
Cleanup completed. Please restart j2ee server.
C:\>j2ee -verbose
J2EE server listen port: 1050
Naming service started: 1050
Binding DataSource, name = jdbc/DB1, url =
jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/EstoreDB, url =
jdbc:cloudscape:rmi:CloudscapeDB
;create=true
Binding DataSource, name = jdbc/InventoryDB, url =
jdbc:cloudscape:rmi:Cloudscap
eDB;create=true
Binding DataSource, name = jdbc/DB2, url =
jdbc:cloudscape:rmi:CloudscapeDB;crea
te=true
Binding DataSource, name = jdbc/Cloudscape, url =
jdbc:cloudscape:rmi:Cloudscape
DB;create=true
Binding DataSource, name = jdbc/XACloudscape, url = jdbc/XACloudscape__xa
Binding DataSource, name = jdbc/XACloudscape__xa, dataSource =
COM.cloudscape.co
re.RemoteXaDataSource@119e583
Binding DataSource, name = jdbc/_ejb_container, url = jdbc/_ejb_container__xa
Binding DataSource, name = jdbc/_ejb_container__xa, dataSource =
COM.cloudscape.
core.XaDataSource@b05236
Starting JMS service...
Initialization complete - waiting for client requests
Starting JMS via Resource Adapter
Deploying jmsra.rar in C:\j2sdkee1.4\lib\system_apps\jmsra.rar
org.w3c.dom.DOMException: DOM003 Namespace error
at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:129)
at
org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocument
Impl.java:1422)
at
org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:596
at
com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttrib
ute(DeploymentDescriptorNode.java:501)
at
com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(Lo
calizedNode.java:65)
at
com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisp
layableComponentInfo(DisplayableComponentNode.java:56)
at
com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleN
ode.java:104)
at
com.sun.enterprise.deployment.node.connector.ConnectorNode.writeDescr
iptor(ConnectorNode.java:210)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2
EEDocumentBuilder.java:77)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:120)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
java.lang.IllegalArgumentException: The input node can not be null for a
DOMSour
ce for newTemplates!
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:346)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
Exception stringifying deployment descriptor
java.lang.IllegalArgumentException: The input node can not be null for a
DOMSour
ce for newTemplates!
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:346)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jms.JmsUtil.startJmsService(JmsUtil.java:236)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:239)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
ResourceAdapter jmsra.rar started...
Initializing Coyote HTTP/1.1 on port 8000
Initializing Coyote HTTP/1.1 on port 7000
Loaded registry information 3275 ms
Starting service J2EE(TM) Web Server
Apache Tomcat/5.0
Missing application web.xml, using defaults only
StandardEngine[Standard-Engine]
.StandardHost[localhost].StandardContext[]
Added certificates -> request attribute Valve
Starting Coyote HTTP/1.1 on port 8000
Starting Coyote HTTP/1.1 on port 7000
JACC:Policy Repository set to C:\j2sdkee1.4\repository\policy
Added certificates -> request attribute Valve
Configured an authenticator for method FORM
J2EE Web Admin Tool started
JAXR:Installing JAXR RA
Deploying jaxr-ra.rar in C:\j2sdkee1.4\lib\system_apps\jaxr-ra.rar
org.w3c.dom.DOMException: DOM003 Namespace error
at org.apache.xerces.dom.AttrNSImpl.<init>(AttrNSImpl.java:129)
at
org.apache.xerces.dom.CoreDocumentImpl.createAttributeNS(CoreDocument
Impl.java:1422)
at
org.apache.xerces.dom.ElementImpl.setAttributeNS(ElementImpl.java:596
at
com.sun.enterprise.deployment.node.DeploymentDescriptorNode.setAttrib
ute(DeploymentDescriptorNode.java:501)
at
com.sun.enterprise.deployment.node.LocalizedNode.writeLocalizedMap(Lo
calizedNode.java:65)
at
com.sun.enterprise.deployment.node.DisplayableComponentNode.writeDisp
layableComponentInfo(DisplayableComponentNode.java:57)
at
com.sun.enterprise.deployment.node.BundleNode.writeDescriptor(BundleN
ode.java:104)
at
com.sun.enterprise.deployment.node.connector.ConnectorNode.writeDescr
iptor(ConnectorNode.java:210)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.getDocument(J2
EEDocumentBuilder.java:77)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:120)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
Exception stringifying deployment descriptor
java.lang.IllegalArgumentException: The input node can not be null for a
DOMSour
ce for newTemplates!
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:346)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
java.lang.IllegalArgumentException: The input node can not be null for a
DOMSour
ce for newTemplates!
at
org.apache.xalan.transformer.TransformerIdentityImpl.transform(Transf
ormerIdentityImpl.java:346)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.write(J2EEDocu
mentBuilder.java:125)
at
com.sun.enterprise.deployment.node.J2EEDocumentBuilder.descriptorToSt
ring(J2EEDocumentBuilder.java:153)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModuleAndItsComponents(J2EEManagementObjectManager.java:408)
at
com.sun.enterprise.management.util.J2EEManagementObjectManager.regist
erResourceAdapterModule(J2EEManagementObjectManager.java:203)
at
com.sun.enterprise.resource.ResourceInstaller.installSystemResourceAd
apter(ResourceInstaller.java:706)
at com.sun.enterprise.jaxr.JaxrUtil.installJaxrRA(JaxrUtil.java:40)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:278)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:720)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:280)
Binding Connection Factory, name = QueueConnectionFactory
Binding Connection Factory, name = jms/TopicConnectionFactory
Binding Connection Factory, name = jms/QueueConnectionFactory
Binding Connection Factory, name = TopicConnectionFactory
Binding Connection Factory, name = eis/JAXR
Binding Administered Object, name = jms/Topic
Binding Administered Object, name = jms/Queue
Starting EJB Timer Service...
J2EE server startup complete.Check another similar question in the same forums.. I have posted an answer there. Hopefully that should work for you.
Maybe you are looking for
-
My old pc quit working. Got a brand new pc and downloaded iTunes to backup my iPod touch. I got a message the iTunes will delete everything off my ipodtouch. I do not want all my songs deleted or my aps. So I had to stop sync and canceled my iPods up
-
Error on export to PDF, working correctly in viewer.
I have been wrestling with an error for a while now and would appreciate any insights offered here to help me correct this issue and move on with my project. The situation is this, I have a .net application which includes eight different Crystal Repo
-
Does anyone have a suggestion for setting up a stand-alone or wireless camera in a large conference room? Is there a stand-alone client that will automagically connect to iChat Server? Maybe a wireless camera for a Mac Pro that will reach 40 feet? Or
-
HT2490 Mac OS X 10.6.8 - Finder Preview of Quicktimes using Space Bar
I work with a lot of preview Quicktimes and for some reason all the files with a 320X240 aspect ratio are previewing (using space bar) with the wrong frame size (long skinny picture). Any other files with a different frame size are displaying normal
-
I have just replaced CS3 with CS5 - and am already beginning to regret it. I have downloaded a 150 page book imported from CS3 - but how do I know which page I am working on. CS3 had a window which told you which page you were on but with CS5 you