cancel
Showing results for 
Search instead for 
Did you mean: 

SAXParserFactory issue while deploying 5.2.7.8 with tomcat 8.5

ariesb2b
Champ in-the-making
Champ in-the-making

Our application (ACS 5.2.7.8) is working fine with tomcat 7.x but when i try to deploy the same on tomcat 8.5 i get following error. 

My enviroment:

JVM Version: 1.8.0_192-b12( on linux RHEL 7.x)

i have logback-classic-1.1.9.jar, logback-core-1.1.9.jar and slf4j-api-1.7.21.jar in tomcat/lib and WEB-INF/lib both places. Do i need to update anything else here for this setup to work?

Trace:

org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].XYZContext[/alfresco/content]]
at org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:705)
at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:614)
at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1822)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: javax.xml.parsers.FactoryConfigurationError: Provider for class javax.xml.parsers.SAXParserFactory cannot be created
at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:311)
at javax.xml.parsers.FactoryFinder.find(FactoryFinder.java:267)
at javax.xml.parsers.SAXParserFactory.newInstance(SAXParserFactory.java:127)
at org.apache.tomcat.util.digester.Digester.getFactory(Digester.java:500)
at org.apache.tomcat.util.digester.Digester.getParser(Digester.java:680)
at org.apache.tomcat.util.descriptor.web.WebXmlParser.<init>(WebXmlParser.java:62)
at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1056)
at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:778)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:299)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5053)
at com.xyz.webeng.tomcat.XYZContext.startInternal(MorganStanleyContext.java:204)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183)
... 10 more
Caused by: java.util.ServiceConfigurationError: javax.xml.parsers.SAXParserFactory: Provider org.alfresco.xmlfactory.SAXParserFactoryXercesImpl could not be instantiated
at java.util.ServiceLoader.fail(ServiceLoader.java:232)
at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
at javax.xml.parsers.FactoryFinder$1.run(FactoryFinder.java:294)
at java.security.AccessController.doPrivileged(Native Method)
at javax.xml.parsers.FactoryFinder.findServiceProvider(FactoryFinder.java:289)
... 53 more
Caused by: java.lang.NullPointerException
at org.alfresco.xmlfactory.SAXParserFactoryXercesImpl.<init>(SAXParserFactoryXercesImpl.java:41)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at java.lang.Class.newInstance(Class.java:442)
at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
... 58 more

1 ACCEPTED ANSWER

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ariesb2b 

Just to be clear, Enterprise version 5.2.x is not supported on Tomcat 8.5. In this one case, based on specific circumstances, it was agreed to temporarily support this customer’s instance on Tomcat 8.5 while they prepared to upgrade to 6.2.x.

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!

View answer in original post

3 REPLIES 3

cristinamr
World-Class Innovator
World-Class Innovator

Hi!

Following the official documentation Alfresco 5.2 is supported by Tomcat 7.0.82.

Cheers,

Cristina.

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

ariesb2b
Champ in-the-making
Champ in-the-making

Latest enterprise version 5.2.7.8 is supported on tomcat 8.5.

EDIT: https://alfresco.atlassian.net/browse/MNT-21872

EddieMay
World-Class Innovator
World-Class Innovator

Hi @ariesb2b 

Just to be clear, Enterprise version 5.2.x is not supported on Tomcat 8.5. In this one case, based on specific circumstances, it was agreed to temporarily support this customer’s instance on Tomcat 8.5 while they prepared to upgrade to 6.2.x.

Digital Community Manager, Alfresco Software.
Problem solved? Click Accept as Solution!