• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • paul wheaton
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
  • Himai Minh
Bartenders:

Server startup issue

 
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I use sun app server.
I have created 2 domains, pradeep_server1 and pradeep_server2.
The admin port for pradeep_server1 is 14848 and the instance port is 18080.
The admin port for pradeep_server2 is 14849 and the instance port is 18081.
I can start up the first one (pradeep_server1) and see the admin console by going to http://localhost:14848/asadmin/admingui/TopFrameset.
and I can start up the second one (pradeep_server2) and see the admin console by going to http://localhost:14849/asadmin/admingui/TopFrameset.
But I can not start them together.
Is it possible to start them up together?
Any help appreciated.
Thanks in advance.
 
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Any error messages?
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It logs the following in the server log:

[#|2006-01-10T18:02:15.911-0500|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.resource.corba.S1AS-ORB.rpc.transport|_ThreadID=10;|"IOP00710209: (INTERNAL) Unable to create listener thread on the specific port"
org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3142)
at com.sun.corba.ee.impl.logging.ORBUtilSystemException.createListenerFailed(ORBUtilSystemException.java:3160)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryAcceptorImpl.initialize(SocketFactoryAcceptorImpl.java:60)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.getAcceptors(CorbaTransportManagerImpl.java:190)
at com.sun.corba.ee.impl.transport.CorbaTransportManagerImpl.addToIORTemplate(CorbaTransportManagerImpl.java:207)
at com.sun.corba.ee.spi.oa.ObjectAdapterBase.initializeTemplate(ObjectAdapterBase.java:104)
at com.sun.corba.ee.impl.oa.poa.POAImpl.initialize(POAImpl.java:385)
at com.sun.corba.ee.impl.oa.poa.POAImpl.makeRootPOA(POAImpl.java:253)
at com.sun.corba.ee.impl.oa.poa.POAFactory$1.evaluate(POAFactory.java:163)
at com.sun.corba.ee.impl.orbutil.closure.Future.evaluate(Future.java:28)
at com.sun.corba.ee.impl.resolver.LocalResolverImpl.resolve(LocalResolverImpl.java:22)
at com.sun.corba.ee.impl.resolver.CompositeResolverImpl.resolve(CompositeResolverImpl.java:20)
at com.sun.corba.ee.impl.orb.ORBImpl.resolve_initial_references(ORBImpl.java:1112)
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:185)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:600)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:232)
at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
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: java.lang.RuntimeException: Failed to create server socket when calling ORBSocketFactory.createServerSocket(IIOP_CLEAR_TEXT, 3700)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryAcceptorImpl.initialize(SocketFactoryAcceptorImpl.java:57)
... 20 more
Caused by: java.net.BindException: Address already in use: bind
at sun.nio.ch.Net.bind(Native Method)
at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:108)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:59)
at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:52)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createServerSocket(IIOPSSLSocketFactory.java:274)
at com.sun.corba.ee.impl.legacy.connection.SocketFactoryAcceptorImpl.initialize(SocketFactoryAcceptorImpl.java:53)
... 20 more
|#]

[#|2006-01-10T18:02:15.942-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5081: Exception while creating ORB: [org.omg.CORBA.INTERNAL: vmcid: SUN minor code: 209 completed: No]|#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5082: Exception running j2ee services: [java.lang.RuntimeException: Unable to create ORB]|#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5091: Error executing J2EE server ...
java.lang.RuntimeException: Unable to create ORB
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:316)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:600)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:232)
at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
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: java.lang.RuntimeException: Unable to create ORB
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
... 9 more
|#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5092: J2EE server reported following error: [Unable to create ORB] |#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5093: Error executing J2EE server |#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5071: An error occured during initialization
com.sun.appserv.server.ServerLifecycleException: com.sun.appserv.server.ServerLifecycleException: Unable to create ORB
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:234)
at com.sun.enterprise.server.PEMain.run(PEMain.java:210)
at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
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: Unable to create ORB
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:609)
at com.sun.enterprise.server.ApplicationServer.onInitialization(ApplicationServer.java:232)
... 7 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:316)
at com.sun.enterprise.server.J2EEServer.main(J2EEServer.java:600)
... 8 more
Caused by: java.lang.RuntimeException: Unable to create ORB
at com.sun.enterprise.server.J2EEServer.run(J2EEServer.java:196)
... 9 more
|#]

[#|2006-01-10T18:02:15.958-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Server Startup failed. Exiting...|#]

[#|2006-01-10T18:02:15.958-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Server shutdown in progress...|#]

[#|2006-01-10T18:02:15.958-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.container.web|_ThreadID=10;|WEB0303: Stopping Tomcat.|#]

[#|2006-01-10T18:02:15.958-0500|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5061: Exception :
com.sun.appserv.server.ServerLifecycleException: WEB0106: An error occurred while stopping the web container
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:536)
at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:65)
at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:400)
at com.sun.enterprise.server.PEMain.run(PEMain.java:233)
at com.sun.enterprise.server.PEMain.main(PEMain.java:172)
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: LifecycleException: WEB0103: This web container has not yet been started
at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:529)
at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:528)
... 9 more
|#]

[#|2006-01-10T18:02:15.958-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5051: Shutting down all J2EE applications ...|#]

[#|2006-01-10T18:02:15.958-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|CORE5052: Application shutdown complete.|#]

[#|2006-01-10T18:02:16.099-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.jms|_ThreadID=10;|JMS5023: JMS service successfully started. Instance Name = imqbroker, Home = [C:\Sun\Creator\SunAppServer8\imq\bin].|#]

[#|2006-01-10T18:02:16.146-0500|WARNING|sun-appserver-pe8.0.0_01|javax.enterprise.system.tools.admin|_ThreadID=10;|core.tmp_folder_deletion_failed|#]

[#|2006-01-10T18:02:16.146-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.jms|_ThreadID=10;|JMS5025: JMS service shutting down.|#]

[#|2006-01-10T18:02:17.286-0500|INFO|sun-appserver-pe8.0.0_01|javax.enterprise.resource.jms|_ThreadID=10;|JMS5026: JMS service shutdown complete.|#]

[#|2006-01-10T18:02:17.286-0500|SEVERE|sun-appserver-pe8.0.0_01|javax.enterprise.system.core|_ThreadID=10;|Server stopped due to Server startup failure.|#]
 
Don Morgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
From the first exception, it looks like its "Caused by: java.net.BindException: Address already in use: bind".

So, it looks like when you try start the second domain, it needs a port already in use by the first one you started. I don't remember the details of which ports the sun app server uses, but here are a few options to help find the conflict and resolve your problem.

1. check the installation docs (or go through vendor support). It should tell you which ports need to be unique. Alternatively, go through the configuration for each and look for conflicts.

2. start the first instance, then check which ports are in use (on windows xp and server, you can use something like netstat -aon (the o makes it print the PID), which you can trace back to the PID of the processes which were started for the sun app server and then cross reference to the ports you have configured on each domain to see where the conflict is.

This problem does not seem to have much to do with servlets...

Anyway, hope this helps.
[ January 10, 2006: Message edited by: Don Morgan ]
 
Sheriff
Posts: 67754
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Moved to the Sun server forum.
 
Don Morgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Looking a bit closer at the exception log for the port number:


Caused by: java.lang.RuntimeException: Failed to create server socket when calling ORBSocketFactory.createServerSocket(IIOP_CLEAR_TEXT, 3700)



Perhaps this is port 3700?
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The admin port for pradeep_server1 is 14848 and the instance port is 18080.
The following is the message I got when created the server

Using default port 7,676 for JMS.
Using default port 3,700 for IIOP.
Using default port 1,043 for HTTP_SSL.
Using default port 1,060 for IIOP_SSL.
Using default port 1,061 for IIOP_MUTUALAUTH.
Domain pradeep_domain1 created.


The admin port for pradeep_server2 is 14849 and the instance port is 18081.
The following is the message I got when created the server

Using default port 7,676 for JMS.
Using default port 3,700 for IIOP.
Using default port 1,043 for HTTP_SSL.
Using default port 1,060 for IIOP_SSL.
Using default port 1,061 for IIOP_MUTUALAUTH.
Domain pradeep_domain2 created.

Thank you so much for your help.
And also thanks for moving it to the right location.
 
PradeepPillai Pradeep
Ranch Hand
Posts: 190
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I deleted pradeep_server2 and created it again. This time it displays the following message:
Using default port 7,676 for JMS.
Default port 3700 for IIOP is in use. Using 4,858
Default port 1043 for HTTP_SSL is in use. Using 4,860
Default port 1060 for IIOP_SSL is in use. Using 4,862
Default port 1061 for IIOP_MUTUALAUTH is in use. Using 4,864

I don't know why did it use the default port last time. This time when I created the second server the first server was up. May be that made the difference.

I am glad that I can start up both the servers at the same time now.
Thank you so much for helping.
 
Don Morgan
Ranch Hand
Posts: 84
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're welcome, glad I could help.
 
reply
    Bookmark Topic Watch Topic
  • New Topic