cancel
Showing results for 
Search instead for 
Did you mean: 

SEVERE: Context [/alfresco] startup failed

uthayakumar
Champ in-the-making
Champ in-the-making
hi

Deploying alfresco.war in tomcat5.5 windows Xp , following error will aper 

SEVERE: Error listenerStart         
———————————————————————————–
log:


Jul 17, 2007 8:14:25 PM org.apache.coyote.http11.Http11BaseProtocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
Jul 17, 2007 8:14:26 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Jul 17, 2007 8:14:26 PM org.apache.coyote.http11.Http11BaseProtocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
Jul 17, 2007 8:14:26 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
Jul 17, 2007 8:16:51 PM org.apache.catalina.core.AprLifecycleListener lifecycleEvent
INFO: The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Apache Software Foundation\Tomcat 5.5\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program Files\perl\site\bin;C:\Program Files\perl\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Intel\DMIX;;;;C:\Program Files\cvsnt;;D:\Program Files\Java\jdk1.5.0_08\bin;C:\Program Files\MySQL\MySQL Server 5.0\bin
Jul 17, 2007 8:16:52 PM org.apache.coyote.http11.Http11BaseProtocol init
INFO: Initializing Coyote HTTP/1.1 on http-8080
Jul 17, 2007 8:16:52 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1750 ms
Jul 17, 2007 8:16:52 PM org.apache.catalina.core.StandardService start
INFO: Starting service Catalina
Jul 17, 2007 8:16:52 PM org.apache.catalina.core.StandardEngine start
INFO: Starting Servlet Engine: Apache Tomcat/5.5.20
Jul 17, 2007 8:16:52 PM org.apache.catalina.core.StandardHost start
INFO: XML validation disabled
Jul 17, 2007 8:16:54 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive alfresco.war
Jul 17, 2007 8:25:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Error listenerStart
Jul 17, 2007 8:25:01 PM org.apache.catalina.core.StandardContext start
SEVERE: Context [/alfresco] startup failed due to previous errors
Jul 17, 2007 8:25:05 PM org.apache.coyote.http11.Http11BaseProtocol start
INFO: Starting Coyote HTTP/1.1 on http-8080
Jul 17, 2007 8:25:06 PM org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
Jul 17, 2007 8:25:06 PM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/109  config=null
Jul 17, 2007 8:25:06 PM org.apache.catalina.storeconfig.StoreLoader load
INFO: Find registry server-registry.xml at classpath resource
Jul 17, 2007 8:25:07 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 495156 ms

give a right solution to this
thanks
12 REPLIES 12

mogarick
Champ in-the-making
Champ in-the-making
Hi,

I'm having the same problem, but I'm not sure what to do.

I have some newbie dudes:

In the URL http://wiki.alfresco.com/wiki/Repository_Configuration#New_Installations

It says:

Locate the distribution's extension configuration files and samples (here) and remove the .sample extensions:

    * <extensionRoot>/alfresco/extension/custom-repository-context.xml.sample
          o This ensures that the properties overrides from the files below are pulled into the server.
    * <extensionRoot>/alfresco/extension/custom-repository.properties.sample
          o Choose a root location for the storage of content binaries and index files.
          o Adjust properties here to change the database connection details.
          o Pay attention to the choice of JDBC driver used with each connection type.
    * <extensionRoot>/alfresco/extension/custom-hibernate-dialect.properties.sample
          o Choose a Hibernate schema most appropriate to your database (Hibernate Dialects).

I did it for tomcat. This files are now on my <TOMCAT_HOME>/share/classes and I removed the .sample extension

My dude is if I need to edit something in the custom-repository-context.xml because it looks everything points to classpath relative URLs. For example:

    <!– overriding to point to custom properties –>
    <bean id="repository-properties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
        <property name="ignoreUnresolvablePlaceholders">
            <value>true</value>
        </property>
        <property name="locations">
            <list>
                <value>classpath:alfresco/repository.properties</value>
                <value>classpath:alfresco/version.properties</value>
                <value>classpath:alfresco/domain/transaction.properties</value>

                <!– Override basic repository properties –>
                <value>classpath:alfresco/extension/custom-repository.properties</value>
         
            </list>
        </property>
    </bean>

I didn't touch this file but the custom.repository.properties and changed the necesary lines to indicate the root location for the storage of content binaries and index files:

dir.root=/srv/alfresco/data
(The place I want to store the data on my server)

and also uncommented the database connection info for MySQL:

db.driver=org.gjt.mm.mysql.Driver
db.url=jdbc:mysql://localhost/alfresco
(I put the MySQL driver into <TOMCAT_HOME>/common/lib. The driver jar is mysql-connector-java-5.0.7-bin.jar)

I edited the custom-hibernate-dialect.properties file too. I uncomented the MySQL line:

hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect

Then I executed the db_setup.sql script. It created the alfresco users and an empty DB (Is this correct? If so when does Alfresco build the complete schema?)

After doing all this I copied the alfresco.war to <TOMCAT_HOME>/webapps

Then I started the server. after that the context couldn't be initialized. I looked for the alfresco.log and found the same error message posted in this topic:

11:35:48,427 WARN  [org.springframework.remoting.rmi.RmiRegistryFactoryBean] Could not detect RMI registry - creating new one
11:35:49,593 WARN  [org.alfresco.util.OpenOfficeConnectionTester] A connection to OpenOffice could not be established.
11:35:51,856 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
11:35:52,429 INFO  [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.
11:35:53,821 WARN  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco 'dir.root' property is set to a relative path './alf_data'.  'dir.root' should be overridden to point to a specific folder.
11:35:53,821 INFO  [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: ./alf_data
11:35:53,886 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 5 stores.
11:35:53,887 INFO  [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.
11:35:53,887 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.
11:35:53,887 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.
11:35:53,891 ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Ensure that the 'dir.root' property is pointing to the correct data location.

I also noticed that even when the webapp didn't started, during the deploying process the directory <TOMCAT_HOME>/bin/alf_data with some subdirectories was created.

I don't have a clue how I can solve this. I'm total noob on alfresco. Smiley Surprisedops:

I'll apreciate any help.

kevinr
Star Contributor
Star Contributor
The error suggests that there is still an old alf_data directory lying around from before you tried recreating the schema. Delete all alf_data directories and recreate the DB again using the script and it should start ok. The Alfresco server will automatically create the required tables in the DB schema on startup.

Thanks,

Kevin

simonfan
Champ in-the-making
Champ in-the-making
Hi,there,

after I increase the size of the java heap, and recreate alfresco database, it runs no problem now. Thanks!

The other point is: i also tried to run the war without Mysql but with Hsql,
it still not work.

However, I will go with Mysql and continue my try-out, insead of sharepoint.

thanks again!

Simon