AnsweredAssumed Answered

Context initialization failed

Question asked by rsingh on Apr 13, 2007
Latest reply on Aug 2, 2011 by mrogers
I have taken the source code from svn and build the alfresco war file.

But after running tomcat server I am getting following error:

12:48:49,204 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'serverConnector' defined in class path resource [alfresco/core-services-context.xml]: Invocation of init method failed; nested exception is java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
Caused by:
java.io.IOException: Cannot bind to URL [rmi://localhost:50500/alfresco/jmxrmi]: javax.naming.NameAlreadyBoundException: alfresco/jmxrmi [Root exception is java.rmi.AlreadyBoundException: alfresco/jmxrmi]
   at javax.management.remote.rmi.RMIConnectorServer.newIOException(RMIConnectorServer.java:814)
—-
—-
—-

Environment:
Fedora 2,
Tomcat-5.5.23
JDK-1.5.09
MySQL-4.1.21
Ant-1.7.x

Code from SVN revision number: 687

My Steps:

checkout code from here: svn co svn://svn.alfresco.com/alfresco/HEAD
$ cd root
$ ant build-tomcat

Created one alfresco database and granted all to alfresco user.

Started tomcat
$./catalina.sh run&

Any help will be greatly appreciated.

Outcomes