After following TEC1680587 to upgrade Tomcat web server used with CABI JasperSoft from 7.x to 8.x, JasperSoft interface is not available and produces the following error: HTTP Status [404] – [Not Found] Type Status Report Message /jasperserver-pro

Document ID : KB000007210
Last Modified Date : 14/02/2018
Show Technical Document Details
Issue:

After following TEC1680587 to upgrade Tomcat web server used with CABI JasperSoft from 7.x to 8.x, JasperSoft interface is not available and produces the following error:

HTTP Status [404] – [Not Found] 

Type Status Report 

Message /jasperserver-pro

Environment:
JasperSoft 6.xAll Supported Windows Operating Systems
Cause:

The Tomcat Catalina log contains the following error:

SEVERE [localhost-startStop-1] org.apache.catalina.core.ContainerBase.addChildInternal ContainerBase.addChild: start: 

 org.apache.catalina.LifecycleException: Failed to start component [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/jasperserver-pro]]

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:167)

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

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

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

at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1107)

at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1841)

at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)

at java.util.concurrent.FutureTask.run(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

at java.lang.Thread.run(Unknown Source)

Caused by: java.lang.NoClassDefFoundError: org/apache/tomcat/dbcp/dbcp/BasicDataSourceFactory

at java.lang.ClassLoader.defineClass1(Native Method)

at java.lang.ClassLoader.defineClass(Unknown Source)

at java.security.SecureClassLoader.defineClass(Unknown Source)

at org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2277)

at org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:811)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1254)

at org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1119)

at org.apache.naming.factory.FactoryBase.getObjectInstance(FactoryBase.java:61)

at javax.naming.spi.NamingManager.getObjectInstance(Unknown Source)

at org.apache.naming.NamingContext.lookup(NamingContext.java:839)

at org.apache.naming.NamingContext.lookup(NamingContext.java:159)

at org.apache.naming.NamingContext.lookup(NamingContext.java:827)

at org.apache.naming.NamingContext.lookup(NamingContext.java:173)

at org.apache.catalina.core.NamingContextListener.addResource(NamingContextListener.java:1091)

at org.apache.catalina.core.NamingContextListener.createNamingContext(NamingContextListener.java:661)

at org.apache.catalina.core.NamingContextListener.lifecycleEvent(NamingContextListener.java:249)

at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:94)

at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5105)

at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)

The reference to JSBasicDataSourceFactory extends a library that Tomcat 8.x no longer supports

Resolution:

1.  Stop the Apache Tomcat 8.x service on the JasperSoft server

2.  Navigate to the <Apache Tomcat 8.x Install Directory>\webapps\jasperserver-pro\META-INF directory

3.  Open the CONTEXT.XML file with a text editor

4.  Replace all instances of 'com.jaspersoft.jasperserver.tomcat.jndi.JSBasicDataSourceFactory' to 'com.jaspersoft.jasperserver.tomcat.jndi.JSCommonsBasicDataSourceFactory'

5.  Save changes to the file

6. Restart the Apache Tomcat 8.x service on the JasperSoft server

 

Additional Information:

TEC1680587 - https://www.ca.com/us/services-support/ca-support/ca-support-online/knowledge-base-articles.TEC1680587.html