Failed to open jasper 5.2 on tomcat 7


Hi guys,

The docs mention that tomcat 7 (as a service) is supported.

I have managed to install jasperserver 5.2 on tomcat 7 (windows service), but it fails when trying to open login page with the follwoing error:


note The full stack trace of the root cause is available in the Apache Tomcat/7.0.42 logs.

This is probably caused by the fact that tomcat has an implementation of this class in jasper.jar and you provide another implementation, therefore the class it's loaded in 2 classloaders and generates conflicts.

Any idea how to fix this?



adolha's picture
Joined: May 28 2012 - 12:54pm
Last seen: 5 years 11 months ago

1 Answer:


How was JasperServer installed?

It can be installed using the "binary" installer. Or it can be installed using the war file installation steps (please see the release notes or Install Guide for the distinction). 

Tomcat 7 should install no problem. We support tomcat 5.5, 6, and 7. Also, installing to an existing tomcat as a service should really be no different than installing to a non-service tomcat. JasperServer just wants to know the file system path to <tomcat-home> and everything else is automatic. 

There is definitely something mis-configured because there should not be a class cast exception anywhere. I'm wondering if there might be some additional components added to this tomcat instance? Because a classcast exception like this could be coming from having two different versions of the same jar. 


tkavanagh's picture
Joined: Jul 7 2006 - 8:54am
Last seen: 4 years 11 months ago