cancel
Showing results for 
Search instead for 
Did you mean: 

Alfresco 7.3 on Tomcat error alfresco.xml

teeraw
Champ in-the-making
Champ in-the-making

I tried to install Alfresco 7.3 on Tomcat follow this link.

https://docs.alfresco.com/content-services/7.3/install/zip/tomcat/

But when start tomcat and open URL http://localhost:8080/alfresco, there is error HTTP404 and catalina.out show error about alfresco.xml as below log. How can I fixed this issue.

08-Oct-2023 07:09:02.445 SEVERE [main] org.apache.catalina.startup.HostConfig.deployDescriptor Error deploying deployment descriptor [/usr/local/apache-tomcat-9.0.80/conf/Catalina/localhost/alfresco.xml]
java.lang.IllegalStateException: Error starting child
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:686)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:658)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:662)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:689)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1888)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)

...

Caused by: org.apache.catalina.LifecycleException: Failed to initialize component [org.apache.catalina.webresources.DirResourceSet@35ceec81]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:419)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:130)

...

Caused by: java.lang.IllegalArgumentException: The directory specified by base and internal path [/usr/local/apache-tomcat-9.0.80/../modules/platform]/[] does not exist.
at org.apache.catalina.webresources.DirResourceSet.checkType(DirResourceSet.java:279)
at org.apache.catalina.webresources.AbstractFileResourceSet.initInternal(AbstractFileResourceSet.java:229)

...
4 REPLIES 4

angelborroy
Community Manager Community Manager
Community Manager
The directory specified by base and internal path [/usr/local/apache-tomcat-9.0.80/../modules/platform]/[] does not exist.

Create the directory.

Hyland Developer Evangelist

teeraw
Champ in-the-making
Champ in-the-making

Thanks, @angelborroy 

After I created directories it seems previous error has been solved.

But startup still failed but error changed to below message. How can I solve for this?

10-Oct-2023 04:22:41.455 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears t
o have started a thread named [eventAsyncDequeueThreadPool1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thre
ad:
 java.base@11.0.20.1/jdk.internal.misc.Unsafe.park(Native Method)
 java.base@11.0.20.1/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
 java.base@11.0.20.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)

cristinamr
World-Class Innovator
World-Class Innovator

Hi!

10-Oct-2023 04:22:41.455 WARNING .....

This is a warning, not an error. Warnings message are just to inform you about a possible risk. You should find the word "Error" at the beggining of each line.

If you are not able to login, paste us your alfresco.log in a "fresh" start up (stop and start your Alfresco).

Cheers!

--
VenziaIT: helping companies since 2005! Our ECM products: AQuA & Seidoc

teeraw
Champ in-the-making
Champ in-the-making

Hi @cristinamr 

I have sent you startup log for my aflfresco.

...
16-Oct-2023 07:47:10.711 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-nio-8080"]
16-Oct-2023 07:47:10.744 INFO [main] org.apache.catalina.startup.Catalina.load Server initialization in [762] milliseconds
16-Oct-2023 07:47:10.881 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Catalina]
16-Oct-2023 07:47:10.883 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.80]
16-Oct-2023 07:47:10.903 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/alfresco/apache-tomcat-9.0.80/conf/Catalina/localhost/share.xml]
16-Oct-2023 07:47:18.314 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
16-Oct-2023 07:47:30.532 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/alfresco/apache-tomcat-9.0.80/conf/Catalina/localhost/share.xml] has finished in [19,629] ms
16-Oct-2023 07:47:30.532 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deploying deployment descriptor [/usr/local/alfresco/apache-tomcat-9.0.80/conf/Catalina/localhost/alfresco.xml]
16-Oct-2023 07:48:04.237 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal One or more listeners failed to start. Full details will be found in the appropriate container log file
16-Oct-2023 07:48:04.239 SEVERE [main] org.apache.catalina.core.StandardContext.startInternal Context [/alfresco] startup failed due to previous errors
16-Oct-2023 07:48:05.425 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears to have started a thread named [QuartzScheduler_Worker-1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@11.0.20.1/java.lang.Object.wait(Native Method)
 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
16-Oct-2023 07:48:05.426 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears to have started a thread named [QuartzScheduler_Worker-2] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@11.0.20.1/java.lang.Object.wait(Native Method)
 org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:568)
16-Oct-2023 07:48:05.426 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears to have started a thread named [QuartzScheduler_QuartzSchedulerThread] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@11.0.20.1/java.lang.Object.wait(Native Method)
 org.quartz.core.QuartzSchedulerThread.run(QuartzSchedulerThread.java:427)
16-Oct-2023 07:48:05.426 WARNING [main] org.apache.catalina.loader.WebappClassLoaderBase.clearReferencesThreads The web application [alfresco] appears to have started a thread named [eventAsyncDequeueThreadPool1] but has failed to stop it. This is very likely to create a memory leak. Stack trace of thread:
 java.base@11.0.20.1/jdk.internal.misc.Unsafe.park(Native Method)
 java.base@11.0.20.1/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
 java.base@11.0.20.1/java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(AbstractQueuedSynchronizer.java:2081)
 java.base@11.0.20.1/java.util.concurrent.LinkedBlockingQueue.take(LinkedBlockingQueue.java:433)
 org.alfresco.repo.event2.EventGeneratorQueue$1.run(EventGeneratorQueue.java:116)
 java.base@11.0.20.1/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
 java.base@11.0.20.1/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
 java.base@11.0.20.1/java.lang.Thread.run(Thread.java:829)
16-Oct-2023 07:48:05.428 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [org.alfresco.repo.template.QNameAwareObjectWrapper$1] (value [org.alfresco.repo.template.QNameAwareObjectWrapper$1@39f7ee05]) and a value of type [org.alfresco.repo.template.QNameAwareObjectWrapper$1$1] (value [org.alfresco.repo.template.QNameAwareObjectWrapper$1$1@1593756869(2.3.0, useAdaptersForContainers=false, forceLegacyNonListCollections=true, iterableSupport=false, domNodeSupport=true, jythonSupport=trueexposureLevel=1, exposeFields=false, preferIndexedReadMethod=true, treatDefaultMethodsAsBeanMembers=false, sharedClassIntrospCache=none, ...)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.428 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [org.alfresco.repo.template.QNameAwareObjectWrapper$1] (value [org.alfresco.repo.template.QNameAwareObjectWrapper$1@4facdf45]) and a value of type [org.alfresco.repo.template.QNameAwareObjectWrapper$1$1] (value [org.alfresco.repo.template.QNameAwareObjectWrapper$1$1@1236109171(2.3.0, useAdaptersForContainers=false, forceLegacyNonListCollections=true, iterableSupport=false, domNodeSupport=true, jythonSupport=trueexposureLevel=1, exposeFields=false, preferIndexedReadMethod=true, treatDefaultMethodsAsBeanMembers=false, sharedClassIntrospCache=none, ...)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.429 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@611df267]) and a value of type [org.alfresco.repo.content.MimetypeMap.Data] (value [(mimetypes: 202 from XML: 202 from JSON: 0 files: 0)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.430 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@49279c58]) and a value of type [org.alfresco.util.transaction.TransactionSupportUtil.ResourcesHolder] (value [org.alfresco.util.transaction.TransactionSupportUtil$ResourcesHolder@39b27283]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.431 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@de7b3f3]) and a value of type [org.alfresco.util.CachingDateFormat] (value [yyyy-MM-dd]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.431 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@611df267]) and a value of type [org.alfresco.repo.content.MimetypeMap.Data] (value [(mimetypes: 202 from XML: 202 from JSON: 0 files: 0)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.431 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@78572b4b]) and a value of type [org.alfresco.repo.content.transform.LocalTransformServiceRegistry.LocalData] (value [(transformers: 1 transforms: 204 t-engines: 0 files: 1)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.432 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@611df267]) and a value of type [org.alfresco.repo.content.MimetypeMap.Data] (value [(mimetypes: 202 from XML: 202 from JSON: 0 files: 0)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.432 SEVERE [main] org.apache.catalina.loader.WebappClassLoaderBase.checkThreadLocalMapForLeaks The web application [alfresco] created a ThreadLocal with key of type [java.lang.ThreadLocal.SuppliedThreadLocal] (value [java.lang.ThreadLocal$SuppliedThreadLocal@525b68a8]) and a value of type [org.alfresco.repo.content.transform.LocalTransformServiceRegistry.LocalData] (value [(transformers: 1 transforms: 204 t-engines: 0 files: 1)]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
16-Oct-2023 07:48:05.440 INFO [main] org.apache.catalina.startup.HostConfig.deployDescriptor Deployment of deployment descriptor [/usr/local/alfresco/apache-tomcat-9.0.80/conf/Catalina/localhost/alfresco.xml] has finished in [34,908] ms
16-Oct-2023 07:48:05.446 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/alfresco/apache-tomcat-9.0.80/webapps/ROOT.war]
16-Oct-2023 07:48:05.447 WARNING [main] org.apache.tomcat.util.digester.SetPropertiesRule.begin Match [Context] failed to set property [debug] to [100]
16-Oct-2023 07:48:05.788 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
16-Oct-2023 07:48:05.794 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/alfresco/apache-tomcat-9.0.80/webapps/ROOT.war] has finished in [348] ms
16-Oct-2023 07:48:05.796 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deploying web application archive [/usr/local/alfresco/apache-tomcat-9.0.80/webapps/_vti_bin.war]
16-Oct-2023 07:48:06.287 INFO [main] org.apache.jasper.servlet.TldScanner.scanJars At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
16-Oct-2023 07:48:06.289 INFO [main] org.apache.catalina.startup.HostConfig.deployWAR Deployment of web application archive [/usr/local/alfresco/apache-tomcat-9.0.80/webapps/_vti_bin.war] has finished in [493] ms
16-Oct-2023 07:48:06.298 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-nio-8080"]
16-Oct-2023 07:48:06.312 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [55567] milliseconds