Error when trying to deploy Alfresco 3.3g war in Tomcat 6
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 10:50 AM
Hello,
Im trying to deploy the war file of Alfresco 3.3g in Tomcat 6 on my machine running Windows XP . I am referring to the instructions at http://www.heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/.
I have added
Please help.
Thank You
Im trying to deploy the war file of Alfresco 3.3g in Tomcat 6 on my machine running Windows XP . I am referring to the instructions at http://www.heiflo.com/2010/03/deploy-alfresco-share-on-tomcat-6/.
I have added
set CATALINA_OPTS="-Xms256m -Xmx512m -XX:MaxPermSize=196m"
at the top of startup.bat located in my tomcat\bin folder.The tables get created in the mysql database, but when i try to hit http://localhost:8080/alfresco ,it just loops indefinitely and alfresco does not load.Below is the tomcat log. It shows SEVERE: Error listenerStart.Jun 28, 2010 7:57:10 PM org.apache.catalina.core.AprLifecycleListener initINFO: Loaded APR based Apache Tomcat Native library 1.1.20.Jun 28, 2010 7:57:10 PM org.apache.catalina.core.AprLifecycleListener initINFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].Jun 28, 2010 7:57:10 PM org.apache.coyote.http11.Http11AprProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Jun 28, 2010 7:57:10 PM org.apache.coyote.ajp.AjpAprProtocol initINFO: Initializing Coyote AJP/1.3 on ajp-8009Jun 28, 2010 7:57:10 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 594 msJun 28, 2010 7:57:10 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaJun 28, 2010 7:57:10 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/6.0.26Jun 28, 2010 7:57:10 PM org.apache.catalina.startup.HostConfig deployDirectoryINFO: Deploying web application directory docsJun 28, 2010 7:57:10 PM org.apache.catalina.startup.HostConfig deployDirectoryINFO: Deploying web application directory examplesJun 28, 2010 7:57:11 PM org.apache.catalina.startup.HostConfig deployDirectoryINFO: Deploying web application directory host-managerJun 28, 2010 7:57:11 PM org.apache.catalina.startup.HostConfig deployDirectoryINFO: Deploying web application directory managerJun 28, 2010 7:57:11 PM org.apache.catalina.startup.HostConfig deployDirectoryINFO: Deploying web application directory ROOTJun 28, 2010 7:57:11 PM org.apache.coyote.http11.Http11AprProtocol startINFO: Starting Coyote HTTP/1.1 on http-8080Jun 28, 2010 7:57:11 PM org.apache.coyote.ajp.AjpAprProtocol startINFO: Starting Coyote AJP/1.3 on ajp-8009Jun 28, 2010 7:57:11 PM org.apache.catalina.startup.Catalina startINFO: Server startup in 503 msJun 28, 2010 8:03:41 PM org.apache.catalina.startup.HostConfig deployWARINFO: Deploying web application archive alfresco.warJun 28, 2010 8:04:11 PM org.apache.catalina.core.StandardContext addApplicationListenerINFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.Jun 28, 2010 8:04:20 PM org.apache.catalina.core.StandardContext startSEVERE: Error listenerStartJun 28, 2010 8:04:20 PM org.apache.catalina.core.StandardContext startSEVERE: Context [/alfresco] startup failed due to previous errorsJun 28, 2010 8:04:20 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbcSEVERE: A web application registered the JBDC driver [org.postgresql.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.Jun 28, 2010 8:04:20 PM org.apache.catalina.loader.WebappClassLoader clearThreadLocalMapSEVERE: A web application created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@190d1e8]) and a value of type [org.apache.cxf.bus.CXFBusImpl] (value [org.apache.cxf.bus.CXFBusImpl@c5119e]) but failed to remove it when the web application was stopped. To prevent a memory leak, the ThreadLocal has been forcibly removed.Jun 28, 2010 8:04:45 PM org.apache.coyote.http11.Http11AprProtocol pauseINFO: Pausing Coyote HTTP/1.1 on http-8080Jun 28, 2010 8:04:45 PM org.apache.coyote.ajp.AjpAprProtocol pauseINFO: Pausing Coyote AJP/1.3 on ajp-8009Jun 28, 2010 8:04:46 PM org.apache.catalina.core.StandardService stopINFO: Stopping service CatalinaJun 28, 2010 8:04:46 PM org.apache.coyote.http11.Http11AprProtocol destroyINFO: Stopping Coyote HTTP/1.1 on http-8080Jun 28, 2010 8:04:46 PM org.apache.coyote.ajp.AjpAprProtocol destroyINFO: Stopping Coyote AJP/1.3 on ajp-8009Jun 28, 2010 8:04:47 PM org.apache.catalina.core.AprLifecycleListener initINFO: Loaded APR based Apache Tomcat Native library 1.1.20.Jun 28, 2010 8:04:47 PM org.apache.catalina.core.AprLifecycleListener initINFO: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].Jun 28, 2010 8:04:48 PM org.apache.coyote.http11.Http11AprProtocol initINFO: Initializing Coyote HTTP/1.1 on http-8080Jun 28, 2010 8:04:48 PM org.apache.coyote.ajp.AjpAprProtocol initINFO: Initializing Coyote AJP/1.3 on ajp-8009Jun 28, 2010 8:04:48 PM org.apache.catalina.startup.Catalina loadINFO: Initialization processed in 604 msJun 28, 2010 8:04:48 PM org.apache.catalina.core.StandardService startINFO: Starting service CatalinaJun 28, 2010 8:04:48 PM org.apache.catalina.core.StandardEngine startINFO: Starting Servlet Engine: Apache Tomcat/6.0.26Jun 28, 2010 8:04:48 PM org.apache.catalina.startup.HostConfig deployDescriptorINFO: Deploying configuration descriptor alfresco.xmlJun 28, 2010 8:04:49 PM org.apache.catalina.core.StandardContext addApplicationListenerINFO: The listener "org.apache.myfaces.webapp.StartupServletContextListener" is already configured for this context. The duplicate definition has been ignored.
Please help.
Thank You
Labels:
- Labels:
-
Archive
4 REPLIES 4
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 10:58 AM
Do you have anything in your alfresco.log file?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-28-2010 06:40 PM
I was unable to find alfresco.log in the alfresco folder which was generated by the war in tomcat. So,I tried using the zip file of the alfresco tomcat bundle. But,im getting errors again when i run alf_start.bat. I have upgraded to the latest version of jdk i.e. jdk1.6.0_20, and set JAVA_HOME and CATALINA_HOME too,but that didnt help. Below is the contents of alfresco.log
Im stuck, please help.
Thank You.
Im stuck, please help.
Thank You.
12:03:47,995 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]12:03:47,995 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]12:03:47,995 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\alfresco-community-tomcat-3.3g\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\test\alfresco-global.properties]12:03:47,995 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\alfresco-community-tomcat-3.3g\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\tests\alfresco-global.properties]12:03:47,995 INFO [org.alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/C:/alfresco-community-tomcat-3.3g/tomcat/shared/classes/alfresco-global.properties]12:03:48,026 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]12:04:00,479 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl12:04:00,495 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js12:04:05,495 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.12:04:06,432 INFO [org.alfresco.repo.domain.schema.SchemaBootstrap] No changes were made to the schema.12:04:07,057 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]12:04:07,057 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]12:04:07,089 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete12:04:07,964 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]12:04:07,979 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]12:04:08,026 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete12:04:08,026 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]12:04:08,042 INFO [org.alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]12:04:08,198 ERROR [org.alfresco.util.exec.RuntimeExecBootstrapBean] Bootstrap command failed: Execution result: os: Windows XP command: [soffice, -accept=socket,host=localhost,port=8100;urp;StarOffice.ServiceManager, -env:UserInstallation=file:///C:/alfresco-community-tomcat-3.3g/alfresco-community-tomcat-3.3galf_data/oouser, -nologo, -headless, -nofirststartwizard, -nocrashrep, -norestore] succeeded: false exit code: 2 out: err: Cannot run program "soffice": CreateProcess error=2, The system cannot find the file specified12:04:09,245 WARN [org.alfresco.util.OpenOfficeConnectionTester] An initial OpenOffice connection could not be established.12:04:09,245 INFO [org.alfresco.repo.management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete12:04:09,511 WARN [org.alfresco.repo.node.index.FullIndexRecoveryComponent] The indexes are not synchronized with the database.12:04:09,604 WARN [org.alfresco.repo.node.index.AVMFullIndexRecoveryComponent] Index for avm store sitestore is out of date12:04:09,870 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:alfresco-community-tomcat-3.3galf_data12:04:09,932 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: Indexes not found for 7 stores.12:04:09,932 INFO [org.alfresco.repo.admin.ConfigurationChecker] You may set 'index.recovery.mode=FULL' if you need to rebuild the indexes.12:04:09,932 ERROR [org.alfresco.repo.admin.ConfigurationChecker] CONTENT INTEGRITY ERROR: System content not found in content store.12:04:09,932 ERROR [org.alfresco.repo.admin.ConfigurationChecker] Ensure that the 'dir.root' property is pointing to the correct data location.12:04:09,932 ERROR [org.springframework.web.context.ContextLoader] Context initialization failedorg.alfresco.error.AlfrescoRuntimeException: 05290000 Ensure that the 'dir.root' property is pointing to the correct data location. at org.alfresco.repo.admin.ConfigurationChecker.check(ConfigurationChecker.java:332) at org.alfresco.repo.admin.ConfigurationChecker.access$000(ConfigurationChecker.java:68) at org.alfresco.repo.admin.ConfigurationChecker$1.execute(ConfigurationChecker.java:180) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:321) at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:247) at org.alfresco.repo.admin.ConfigurationChecker.onBootstrap(ConfigurationChecker.java:184) at org.springframework.extensions.surf.util.AbstractLifecycleBean.onApplicationEvent(AbstractLifecycleBean.java:56) at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:97) at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:294) at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:858) at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:419) at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:261) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:192) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47) at org.alfresco.web.app.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:63) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3972) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4467) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:546) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:637) at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:563) at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:498) at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1277) at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:321) at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053) at org.apache.catalina.core.StandardHost.start(StandardHost.java:785) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443) at org.apache.catalina.core.StandardService.start(StandardService.java:519) at org.apache.catalina.core.StandardServer.start(StandardServer.java:710) at org.apache.catalina.startup.Catalina.start(Catalina.java:581) 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:289) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:414)12:04:15,479 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 227 Web Scripts (+0 failed), 235 URLs12:04:15,479 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed) 12:04:15,479 INFO [org.springframework.extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed) 12:04:15,557 INFO [org.springframework.extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 1399.5812ms)12:04:15,604 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl12:04:15,667 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js12:04:15,745 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl12:04:15,745 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js12:04:15,854 INFO [org.springframework.extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl12:04:15,870 INFO [org.springframework.extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2010 05:47 AM
<quote>
12:04:09,870 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:alfresco-community-tomcat-3.3galf_data
</quote>
That path looks suspicious - either use / to separate the bits of your path or \\ on windows.
12:04:09,870 INFO [org.alfresco.repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:alfresco-community-tomcat-3.3galf_data
</quote>
That path looks suspicious - either use / to separate the bits of your path or \\ on windows.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-29-2010 07:59 AM
Thanks for the reply mrogers. I was able to start alfresco by running alf_start.bat in the alfresco folder after i changed the backslashes to forward, as u suggested, for dir.root in alfresco-global.properties
.
But,i would like to have Tomcat run as a Windows service, so that alfresco is started automatically.I tried following instructions given at http://wiki.alfresco.com/wiki/Configuring_Alfresco_as_a_Windows_Service , but there is no tomcat6.exe or service.bat in tomcat/bin folder.There is startup.bat,catalina.bat etc.Im using alfresco-community-tomcat-3.3g.zip
I have posted this as a separate question at http://forums.alfresco.com/en/viewtopic.php?f=8&t=27723
Please Help
Thanks a lot

But,i would like to have Tomcat run as a Windows service, so that alfresco is started automatically.I tried following instructions given at http://wiki.alfresco.com/wiki/Configuring_Alfresco_as_a_Windows_Service , but there is no tomcat6.exe or service.bat in tomcat/bin folder.There is startup.bat,catalina.bat etc.Im using alfresco-community-tomcat-3.3g.zip
I have posted this as a separate question at http://forums.alfresco.com/en/viewtopic.php?f=8&t=27723
Please Help
Thanks a lot
