Failure to start J2EE Server
Hi,
I am trying to start the J2EE server in Windows XP environment. It worked for once. But after that, the server says that it failed to start the domain.
When I checked the log file in domain directory, I found exceptions that are related to JMS. I don't know how to fix this. I would appreciate if anyone could help me. The following are the exceptions that I found from log file.
Starting J2EETM 1.4 Application Server Beta 2 ...
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:47:26:643 GMT-05:00][CORE5076: Using [Java HotSpot(TM) Client VM, Version 1.4.2] from [Sun Microsystems Inc.]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:716 GMT-05:00][ADM0020:Following is the information about the JMX MBeanServer used:]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:726 GMT-05:00][ADM0021:MBeanServer Implementation Name:[JMX]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:726 GMT-05:00][ADM0022:MBeanServer Implementation Vendor:[Sun Microsystems]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:736 GMT-05:00][ADM023:JMX Implementation Version:[1.2_r08]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:736 GMT-05:00][ADM024:MBeanServer ID:[vishist_1067363248606]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:736 GMT-05:00][ADM025:MBeanServer Implementation Classname:[com.sun.jmx.mbeanserver.JmxMBeanServer]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:806 GMT-05:00][ADM0002:System MBean initialized:[ias:type=controller]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:826 GMT-05:00][ADM0002:System MBean initialized:[ias:type=configurator]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:836 GMT-05:00][ADM0001:MBeanServer initialized successfully]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:866 GMT-05:00][ADM0005:Timestamp files for configuration created for:[server]]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:47:28:866 GMT-05:00][ADM0102: Starting a thread for tracking manual changes]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.jms][28.October.2003 12:48:38:106 GMT-05:00][JMS5035: Timed out after 60000 milliseconds while trying to verify if the JMS service startup succeeded.]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.jms][28.October.2003 12:48:38:106 GMT-05:00][JMS5036: More details may be available in the log file for the JMS service broker instance domain1_server. Please refer to the JMS provider documentation for the exact location of this log file.]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.resource.jms][28.October.2003 12:48:38:106 GMT-05:00][JMS5024: JMS service startup failed.]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:106 GMT-05:00][Service com.sun.enterprise.jms.JmsProviderLifecycle@1d33a6b cannot be initialized! : com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation. - caught java.net.ConnectException]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:106 GMT-05:00][CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation. - caught java.net.ConnectException
at com.sun.enterprise.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:268)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:209)
at com.sun.enterprise.server.PEMain.run(PEMain.java:166)
at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
Caused by: com.sun.appserv.server.ServerLifecycleException: [C4003]: Error occurred on connection creation. - caught java.net.ConnectException
at com.sun.enterprise.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:252)
... 8 more
Caused by: com.sun.messaging.jms.JMSException: [C4003]: Error occurred on connection creation. - caught java.net.ConnectException
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.getJMSException(ExceptionHandler.java:183)
at com.sun.messaging.jmq.jmsclient.ExceptionHandler.handleException(ExceptionHandler.java:136)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:172)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.init(PortMapperClient.java:97)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.<init>(PortMapperClient.java:50)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPConnectionHandler.<init>(TCPConnectionHandler.java:53)
at com.sun.messaging.jmq.jmsclient.protocol.tcp.TCPStreamHandler.openConnection(TCPStreamHandler.java:102)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnectionOld(ConnectionInitiator.java:233)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:107)
at com.sun.messaging.jmq.jmsclient.ConnectionInitiator.createConnection(ConnectionInitiator.java:92)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.init(ProtocolHandler.java:509)
at com.sun.messaging.jmq.jmsclient.ProtocolHandler.<init>(ProtocolHandler.java:1020)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.openConnection(ConnectionImpl.java:1554)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.init(ConnectionImpl.java:438)
at com.sun.messaging.jmq.jmsclient.ConnectionImpl.<init>(ConnectionImpl.java:247)
at com.sun.messaging.jmq.jmsclient.UnifiedConnectionImpl.<init>(UnifiedConnectionImpl.java:33)
at com.sun.messaging.jmq.jmsclient.QueueConnectionImpl.<init>(QueueConnectionImpl.java:32)
at com.sun.messaging.ConnectionFactory.createQueueConnection(ConnectionFactory.java:72)
at com.sun.messaging.jmq.admin.jmsspi.JMSAdminImpl.pingProvider(JMSAdminImpl.java:733)
at com.sun.enterprise.jms.JmsProviderLifecycle.waitForJmsProvider(JmsProviderLifecycle.java:305)
at com.sun.enterprise.jms.JmsProviderLifecycle.onInitialization(JmsProviderLifecycle.java:245)
... 8 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:452)
at java.net.Socket.connect(Socket.java:402)
at java.net.Socket.<init>(Socket.java:309)
at java.net.Socket.<init>(Socket.java:124)
at com.sun.messaging.jmq.jmsclient.PortMapperClient.readBrokerPorts(PortMapperClient.java:152)
... 26 more
]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:126 GMT-05:00][Server Startup failed. Exiting...]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:126 GMT-05:00][Server shutdown in progress...]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:266 GMT-05:00][CORE5051: Shutting down all J2EE applications ...]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:286 GMT-05:00][CORE5049: Unexpected error occurred while shutting down applications
java.lang.NullPointerException
at com.sun.enterprise.server.ApplicationLifecycle.onShutdown(ApplicationLifecycle.java:339)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:409)
at com.sun.enterprise.server.PEMain.run(PEMain.java:184)
at com.sun.enterprise.server.PEMain.main(PEMain.java:131)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.commons.launcher.ChildMain.run(ChildMain.java:269)
]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:48:38:346 GMT-05:00][ADM0103: Stopping the thread for tracking manual changes]>
<[WARNING][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:48:38:366 GMT-05:00][core.tmp_folder_deletion_failed]>
<[INFO][j2eesdk1.4_beta2][][][10][javax.enterprise.system.tools.admin][28.October.2003 12:48:38:366 GMT-05:00][ADM032:The System MBeanServer released]>
<[SEVERE][j2eesdk1.4_beta2][][][10][javax.enterprise.system.core][28.October.2003 12:48:38:406 GMT-05:00][Server stopped due to Server startup failure.]>
Based on this, assigned JMS port is already in use during the server startup. One possibility is that the previous shutdown of the server did not go through, or some completely unrelated process started using JMS port (default value of JMS port is 7676).
To fix this, you can either try to find out what is using JMS port and shut that process down, or modify <install_dir>/domains/domain1/server/config/domain.xml file with different JMS port number.
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.
Maybe you are looking for
-
Can't open PDF's in Illustrator CS5
I have just recently upgraded from CS4 to CS5. Now I cant open PDF's with Illustrator CS5. Right clicking the pdf and selecting "open with" does not show Illustrator in list. Also, I have attempted to browse to the actual Illustrator .exe file and ch
-
Can't delete podcasts in iTunes 11.1
newly updated iTunes 11.1 shows old podcasts which can't be deleted... any ideas for a solution?
-
Import a shape file to oracle spatial format within an oracle pl/sql proced
hi, My task is to import an esri sde shape file to oracle sdo format within pl/sql procedure. i am using oracle 10g, arcgis 9 and arcsdo, geometry type is line, please anyone could help how can i achieve this task, would be very thankful Best Regards
-
Hi I have written a simple ArrayList program import java.util.*; class ArrayDemo { public static void main(String[] args) { ArrayList a = new ArrayList(); a.add("1"); a.add("2"); System.out.println(a); whe
-
I am unable to send ringtone from itunes
Hi, I have installed ringtone maker in my iphone 4s, from that created a ringtone. The same was opened with itunes installed in my laptop. But once i tried to save the ringtone to my laptop, itunes will stop working and close down. I reinstalled the