AnsweredAssumed Answered

startup failure - alfresco-community-tomcat & MySQL

Question asked by guyf on Mar 6, 2007
Latest reply on Mar 7, 2007 by kevinr
Hi I am trying to get alfreso running on a Win2003 server. I have unzipped the  alfresco-community-tomcat.zip and followed the 2 readme files. The alfresco catalogue in MySQL is created and I have removed removed:

custom-db-and-data-context.xml
custom-db-connection.properties
custom-hibernate-dialect.properties

when I start the server the log contains errors that these (just deleted) files cannot be found and alfresco fails to start - help much appreciated - log below…

CompilerOracle: exclude org/apache/lucene/index/IndexReader$1 doBody

CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeIndexes

CompilerOracle: exclude org/alfresco/repo/search/impl/lucene/index/IndexInfo$Merger mergeDeletions

Mar 6, 2007 7:30:57 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\Java\jdk1.6.0\bin;.;C:\WINNT\Sun\Java\bin;C:\WINNT\system32;C:\WINNT;C:\Program Files\Java\jdk1.6.0\bin;C:\Alfresco\bin;C:\Program Files\Mail En

able\BIN;c:\Program Files\Support Tools\;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;c:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\DOS

;C:;C:\i386

Mar 6, 2007 7:30:57 PM org.apache.coyote.http11.Http11BaseProtocol init

INFO: Initializing Coyote HTTP/1.1 on http-9090

Mar 6, 2007 7:30:58 PM org.apache.catalina.startup.Catalina load

INFO: Initialization processed in 3405 ms

Mar 6, 2007 7:30:58 PM org.apache.catalina.core.StandardService start

INFO: Starting service Catalina

Mar 6, 2007 7:30:58 PM org.apache.catalina.core.StandardEngine start

INFO: Starting Servlet Engine: Apache Tomcat/5.5.20

Mar 6, 2007 7:30:58 PM org.apache.catalina.core.StandardHost start

INFO: XML validation disabled

Mar 6, 2007 7:31:00 PM org.apache.catalina.startup.HostConfig deployWAR

INFO: Deploying web application archive alfresco.war

19:31:28,706 ERROR [web.context.ContextLoader] Context initialization failed

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class pat

h resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

java.io.FileNotFoundException: class path resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)

        at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:172)

        at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:151)

        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)

        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:380)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)

        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)



        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

        at org.apache.catalina.core.StandardService.start(StandardService.java:450)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

        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:597)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

19:31:28,796 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.springframework.

web.context.ContextLoaderListener

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class pat

h resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

java.io.FileNotFoundException: class path resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)

        at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:172)

        at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:151)

        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)

        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:380)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)

        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)



        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

        at org.apache.catalina.core.StandardService.start(StandardService.java:450)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

        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:597)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

19:31:28,876 ERROR [[Catalina].[localhost].[/alfresco]] Exception sending context initialized event to listener instance of class org.alfresco.web.app

.ContextListener

org.springframework.beans.factory.BeanInitializationException: Could not load properties; nested exception is java.io.FileNotFoundException: class pat

h resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

java.io.FileNotFoundException: class path resource [alfresco/extension/custom-db-connection.properties] cannot be opened because it does not exist

        at org.springframework.core.io.ClassPathResource.getInputStream(ClassPathResource.java:137)

        at org.springframework.core.io.support.PropertiesLoaderSupport.loadProperties(PropertiesLoaderSupport.java:172)

        at org.springframework.core.io.support.PropertiesLoaderSupport.mergeProperties(PropertiesLoaderSupport.java:151)

        at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:69)

        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:380)

        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)

        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext.java:134)



        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)

        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)

        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3763)

        at org.apache.catalina.core.StandardContext.start(StandardContext.java:4211)

        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:759)

        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:739)

        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:524)

        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:809)

        at org.apache.catalina.startup.HostConfig.deployWARs(HostConfig.java:698)

        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:472)

        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1122)

        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:310)

        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1021)

        at org.apache.catalina.core.StandardHost.start(StandardHost.java:718)

        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1013)

        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442)

        at org.apache.catalina.core.StandardService.start(StandardService.java:450)

        at org.apache.catalina.core.StandardServer.start(StandardServer.java:709)

        at org.apache.catalina.startup.Catalina.start(Catalina.java:551)

        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:597)

        at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:294)

        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:432)

Mar 6, 2007 7:31:29 PM org.apache.catalina.core.StandardContext start

SEVERE: Error listenerStart

Mar 6, 2007 7:31:29 PM org.apache.catalina.core.StandardContext start

SEVERE: Context [/alfresco] startup failed due to previous errors

Mar 6, 2007 7:31:31 PM org.apache.coyote.http11.Http11BaseProtocol start

INFO: Starting Coyote HTTP/1.1 on http-9090

Mar 6, 2007 7:31:31 PM org.apache.jk.common.ChannelSocket init

INFO: JK: ajp13 listening on /0.0.0.0:8009

Mar 6, 2007 7:31:31 PM org.apache.jk.server.JkMain start

INFO: Jk running ID=0 time=0/120  config=null

Mar 6, 2007 7:31:31 PM org.apache.catalina.storeconfig.StoreLoader load

INFO: Find registry server-registry.xml at classpath resource

Mar 6, 2007 7:31:32 PM org.apache.catalina.startup.Catalina start

INFO: Server startup in 34639 ms

Outcomes