cancel
Showing results for 
Search instead for 
Did you mean: 

Cannot start the second time

roadster
Champ in-the-making
Champ in-the-making
After a lot of problems with the installation of Alfresco I had it running. But then I rebooted the machine and alfresco won't start anymore..

Little info:
RHEL 5.5
MySql
Sun JAVA JDK

the error in the webbrowser

HTTP Status 500 -

type Exception report

message

description The server encountered an internal error () that prevented it from fulfilling this request.

exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.springframework.extensions.surf.exception.PlatformRuntimeException: 05100000 Unable to retrieve object: slingshot.site.configuration of type: configuration
   org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:659)
   org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:552)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
   javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

root cause

The log of alfresco.log

Caused by: java.rmi.server.ExportException: Port already in use: 50501; nested exception is:
        java.net.BindException: Address already in use
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:328)
        at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:236)
        at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411)
        at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147)
        at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:207)
        at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:310)
        at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:252)
        at org.springframework.remoting.rmi.RmiServiceExporter.prepare(RmiServiceExporter.java:280)
        at org.springframework.remoting.rmi.RmiServiceExporter.afterPropertiesSet(RmiServiceExporter.java:227)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1398)
        … 37 more
Caused by: java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
        at java.net.ServerSocket.bind(ServerSocket.java:336)
        at java.net.ServerSocket.<init>(ServerSocket.java:202)
        at java.net.ServerSocket.<init>(ServerSocket.java:114)
        at sun.rmi.transport.proxy.RMIDirectSocketFactory.createServerSocket(RMIDirectSocketFactory.java:45)
        at sun.rmi.transport.proxy.RMIMasterSocketFactory.createServerSocket(RMIMasterSocketFactory.java:351)
        at sun.rmi.transport.tcp.TCPEndpoint.newServerSocket(TCPEndpoint.java:667)
        at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:317)
        … 47 more
11:44:25,721 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 225 Web Scripts (+0 failed), 232 URLs
11:44:25,723 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
11:44:25,723 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
11:44:25,778 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1764.981ms)
11:44:25,884 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:25,973 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
11:44:26,137 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:26,142 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
11:44:26,321 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:26,326 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
11:44:32,078 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 51 Web Scripts (+0 failed), 58 URLs
11:44:32,080 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
11:44:32,080 INFO  [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
11:44:32,092 INFO  [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 598.555ms)
11:44:32,172 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:32,362 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
11:44:32,394 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:32,398 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
11:44:32,456 INFO  [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
11:44:32,460 INFO  [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js


The catalina.log


INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:37:37 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 10, 2010 11:38:18 AM org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:38:20 AM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jun 10, 2010 11:38:35 AM org.apache.catalina.connector.MapperListener destroy
WARNING: Error unregistering MBeanServerDelegate
java.lang.NullPointerException
        at org.apache.catalina.connector.MapperListener.destroy(MapperListener.java:165)
        at org.apache.catalina.connector.Connector.stop(Connector.java:1179)
        at org.apache.catalina.core.StandardService.stop(StandardService.java:593)
        at org.apache.catalina.core.StandardServer.stop(StandardServer.java:744)
        at org.apache.catalina.startup.Catalina.stop(Catalina.java:628)
        at org.apache.catalina.startup.Catalina$CatalinaShutdownHook.run(Catalina.java:671)
Jun 10, 2010 11:38:35 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:40:10 AM org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:43:35 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:43:35 AM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1946 ms
Jun 10, 2010 11:43:35 AM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jun 10, 2010 11:43:35 AM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/6.0.18
Jun 10, 2010 11:43:43 AM org.apache.catalina.core.StandardContext addApplicationListener
INFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Jun 10, 2010 11:44:16 AM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jun 10, 2010 11:44:16 AM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Jun 10, 2010 11:44:19 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive share.war
Jun 10, 2010 11:44:27 AM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive mobile.war
Jun 10, 2010 11:44:32 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jun 10, 2010 11:44:33 AM org.apache.catalina.startup.Catalina start
INFO: Server startup in 57617 ms



I've got this error on 2 servers Smiley Sad Both with the same setup.

Hope somebody can help me.
1 REPLY 1

zladuric
Champ on-the-rise
Champ on-the-rise
I don't know if this will help, but I had almost the same problem on my development machine. The key is this:
"Caused by: java.rmi.server.ExportException: Port already in use: 50501; nested exception is: "

I had Skype running and it was occupying this port for some reason, so alfresco couldn't bind it.

So, check if you have something listening on port 50501 on the box, for example:
zduric@pbksrv00:~$ netstat -ntu | grep :50501
tcp6       0      0 192.168.254.20:57283    192.168.254.20:50501    ESTABLISHED
tcp6       0      0 192.168.254.20:50501    192.168.254.20:57283    ESTABLISHED
zduric@pbksrv00:~$