Sun AppServer - default server won't start

Hi everybody.

I am trying to start up Sun AppServer from the latest distribution (Q4) but it fails every time. What's even worse I tried it on another comp and

everything works perfectly. I really can't discern what the problem is

from the log, so I hope someone here can help me out somehow.

I don't want to post the whole log cause it would clutter the post, but the part of the log when everyhing breaks down goes like:

[#|2004-11-24T09:52:59.733+0100|INFO|sun-appserver-pe8.1|javax.enterprise.system.stream.out|_ThreadID=10;|

Doing RMI/TLS Client setup inthis VM|#]

[#|2004-11-24T09:53:22.358+0100|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.core|_ThreadID=10;|Service com.sun.enterprise.admin.server.core.JmxConnectorLifecycle@ca8735

cannot be started! : com.sun.appserv.server.ServerLifecycleException:

Cannot bind to URL [rmi://SLUGGY:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException

[Root exception is java.rmi.ConnectException: Connection refused to host: SLUGGY; nested exception is:

java.net.ConnectException: Connection timed out: connect]|#]

[#|2004-11-24T09:53:22.358+0100|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.core|_ThreadID=10;|CORE5071: An error occured during initialization

com.sun.appserv.server.ServerLifecycleException: Cannot bind to URL [rmi://SLUGGY:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException

[Root exception is java.rmi.ConnectException: Connection refused to host: SLUGGY; nested exception is:

java.net.ConnectException: Connection timed out: connect]

at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:96)

at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:300)

at com.sun.enterprise.server.PEMain.run(PEMain.java:265)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

Caused by: java.io.IOException: Cannot bind to URL [rmi://SLUGGY:8686/management/rmi-jmx-connector]: javax.naming.ServiceUnavailableException

[Root exception is java.rmi.ConnectException: Connection refused to host: SLUGGY; nested exception is:

java.net.ConnectException: Connection timed out: connect]

at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:798)

at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:430)

at com.sun.enterprise.admin.jmx.remote.server.JmxConnectorServerDriver.startConnectorServer(JmxConnectorServerDriver.java:173)

at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onStartup(JmxConnectorLifecycle.java:88)

... 3 more

Caused by: javax.naming.ServiceUnavailableException [Root exception is java.rmi.ConnectException: Connection refused to host: SLUGGY; nested exception is:

java.net.ConnectException: Connection timed out: connect]

at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:117)

at com.sun.jndi.toolkit.url.GenericURLContext.bind(GenericURLContext.java:208)

at javax.naming.InitialContext.bind(InitialContext.java:355)

at javax.management.remote.rmi.RMIConnectorServer.bind(RMIConnectorServer.java:619)

at javax.management.remote.rmi.RMIConnectorServer.start(RMIConnectorServer.java:426)

... 5 more

Caused by: java.rmi.ConnectException: Connection refused to host: SLUGGY; nested exception is:

java.net.ConnectException: Connection timed out: connect

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567)

at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)

at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)

at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:313)

at sun.rmi.registry.RegistryImpl_Stub.bind(Unknown Source)

at com.sun.jndi.rmi.registry.RegistryContext.bind(RegistryContext.java:111)

... 9 more

Caused by: java.net.ConnectException: Connection timed out: 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 sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)

at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)

at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562)

... 14 more

|#]

[#|2004-11-24T09:53:22.358+0100|SEVERE|sun-appserver-pe8.1|javax.enterprise.system.core|_ThreadID=10;|Server Startup failed. Exiting...|#]

[#|2004-11-24T09:53:22.358+0100|INFO|sun-appserver-pe8.1|javax.enterprise.system.core|_ThreadID=10;|Server shutdown in progress...|#]

[#|2004-11-24T09:53:22.358+0100|WARNING|sun-appserver-pe8.1|javax.enterprise.system.core|_ThreadID=10;|CORE5061: Exception :

com.sun.appserv.server.ServerLifecycleException

at com.sun.enterprise.admin.server.core.JmxConnectorLifecycle.onShutdown(JmxConnectorLifecycle.java:113)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)

at com.sun.enterprise.server.PEMain.run(PEMain.java:286)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

|#]

[#|2004-11-24T09:53:22.358+0100|INFO|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=10;|WEB0303: Stopping Sun-Java-System/Application-Server.|#]

[#|2004-11-24T09:53:22.358+0100|INFO|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=10;|Stopping Sun-Java-System/Application-Server-PE HTTP/1.1 on 8080|#]

[#|2004-11-24T09:53:22.374+0100|SEVERE|sun-appserver-pe8.1|org.apache.commons.modeler.Registry|_ThreadID=10;|Error unregistering mbean

javax.management.RuntimeOperationsException: Object name cannot benull

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:545)

at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)

at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

at $Proxy1.isRegistered(Unknown Source)

at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.isRegistered(SunoneInterceptor.java:360)

at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.unregisterComponents(SelectorThread.java:1624)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.stopEndpoint(SelectorThread.java:1218)

at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.destroy(GrizzlyHttpProtocol.java:266)

at org.apache.coyote.tomcat5.CoyoteConnector.stop(CoyoteConnector.java:1537)

at org.apache.catalina.startup.Embedded.stop(Embedded.java:891)

at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:738)

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:452)

at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:65)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)

at com.sun.enterprise.server.PEMain.run(PEMain.java:286)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

Caused by: java.lang.IllegalArgumentException: Object name cannot benull

... 20 more

|#]

[#|2004-11-24T09:53:22.374+0100|SEVERE|sun-appserver-pe8.1|org.apache.commons.modeler.Registry|_ThreadID=10;|Error unregistering mbean

javax.management.RuntimeOperationsException: Object name cannot benull

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:545)

at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)

at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

at $Proxy1.isRegistered(Unknown Source)

at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.isRegistered(SunoneInterceptor.java:360)

at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.unregisterComponents(SelectorThread.java:1627)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.stopEndpoint(SelectorThread.java:1218)

at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.destroy(GrizzlyHttpProtocol.java:266)

at org.apache.coyote.tomcat5.CoyoteConnector.stop(CoyoteConnector.java:1537)

at org.apache.catalina.startup.Embedded.stop(Embedded.java:891)

at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:738)

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:452)

at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:65)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)

at com.sun.enterprise.server.PEMain.run(PEMain.java:286)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

Caused by: java.lang.IllegalArgumentException: Object name cannot benull

... 20 more

|#]

[#|2004-11-24T09:53:22.374+0100|INFO|sun-appserver-pe8.1|javax.enterprise.system.container.web|_ThreadID=10;|Stopping Sun-Java-System/Application-Server-PE HTTP/1.1 on 8181|#]

[#|2004-11-24T09:53:43.358+0100|SEVERE|sun-appserver-pe8.1|org.apache.commons.modeler.Registry|_ThreadID=10;|Error unregistering mbean

javax.management.RuntimeOperationsException: Object name cannot benull

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:545)

at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)

at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

at $Proxy1.isRegistered(Unknown Source)

at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.isRegistered(SunoneInterceptor.java:360)

at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.unregisterComponents(SelectorThread.java:1624)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.stopEndpoint(SelectorThread.java:1218)

at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.destroy(GrizzlyHttpProtocol.java:266)

at org.apache.coyote.tomcat5.CoyoteConnector.stop(CoyoteConnector.java:1537)

at org.apache.catalina.startup.Embedded.stop(Embedded.java:891)

at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:738)

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:452)

at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:65)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)

at com.sun.enterprise.server.PEMain.run(PEMain.java:286)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

Caused by: java.lang.IllegalArgumentException: Object name cannot benull

... 20 more

|#]

[#|2004-11-24T09:53:43.358+0100|SEVERE|sun-appserver-pe8.1|org.apache.commons.modeler.Registry|_ThreadID=10;|Error unregistering mbean

javax.management.RuntimeOperationsException: Object name cannot benull

at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.isRegistered(DefaultMBeanServerInterceptor.java:545)

at com.sun.jmx.mbeanserver.JmxMBeanServer.isRegistered(JmxMBeanServer.java:619)

at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

at java.lang.reflect.Method.invoke(Method.java:324)

at com.sun.enterprise.admin.util.proxy.ProxyClass.invoke(ProxyClass.java:54)

at $Proxy1.isRegistered(Unknown Source)

at com.sun.enterprise.admin.server.core.jmx.SunoneInterceptor.isRegistered(SunoneInterceptor.java:360)

at org.apache.commons.modeler.Registry.unregisterComponent(Registry.java:642)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.unregisterComponents(SelectorThread.java:1627)

at com.sun.enterprise.web.connector.grizzly.SelectorThread.stopEndpoint(SelectorThread.java:1218)

at com.sun.enterprise.web.connector.grizzly.GrizzlyHttpProtocol.destroy(GrizzlyHttpProtocol.java:266)

at org.apache.coyote.tomcat5.CoyoteConnector.stop(CoyoteConnector.java:1537)

at org.apache.catalina.startup.Embedded.stop(Embedded.java:891)

at com.sun.enterprise.web.WebContainer.stop(WebContainer.java:738)

at com.sun.enterprise.web.PEWebContainer.stopInstance(PEWebContainer.java:452)

at com.sun.enterprise.web.PEWebContainerLifecycle.onShutdown(PEWebContainerLifecycle.java:65)

at com.sun.enterprise.server.ApplicationServer.onShutdown(ApplicationServer.java:414)

at com.sun.enterprise.server.PEMain.run(PEMain.java:286)

at com.sun.enterprise.server.PEMain.main(PEMain.java:217)

Caused by: java.lang.IllegalArgumentException: Object name cannot benull

... 20 more

|#]

Please help me. Cheers!

[14803 byte] By [baba44713] at [2007-9-30 22:59:23]
# 1

In the server log do you see any errors that indicate a process was unable to bind to a port. I'm not sure but it looks like either the naming service failed to start or perhaps you have a firewall installed that is blocking access to the naming service. Is that possible? What OS are you using?

caseylou at 2007-7-7 13:33:16 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...
# 2
I met the same problem,now I try to restall the sever.
jessjava at 2007-7-7 13:33:16 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...