ClassCastException occurs when deploying Web application on the Tomcat server that came with the JViews distribution

Article ID: 2342
Last updated: 29 May, 2018
Article ID: 2342
Last updated: 29 May, 2018
Revision: 3
Views: 630
Posted: 06 Nov, 2007
by Dean J.
Updated: 29 May, 2018
by Gargani A.

Question

Why do I get a ClassCastException when deploying my Web application on the Tomcat server that came with the JViews distribution?

Answer

The Tomcat server that came with the JViews distribution has been customized to avoid multiple loading of JViews jar files.
Prior to JViews version 8.6, it references the shared JViews jars located in the <JVIEWS_TOMCAT_HOME>\shared directory.
Starting with JViews version 8.6, it references the shared JViews jars specified in the <JVIEWS_FRAMEWORK_HOME>\tools\tomcat-jsf\conf\catalina.properties file. 


A possible reason for the ClassCastException when you use the Tomcat server from the JViews distribution can be that you have a JViews version in your Web application WEB-INF\lib directory that is different from the one that is referenced to (in the shared directory or in the catalina.properties file).

Please make sure to add all the JViews-dependent jar files in the shared directory when using JViews 8.5 and earlier. Otherwise, conflicts leading to a ClassCastException might occur.

This article was:   Helpful | Not helpful
Report an issue
Article ID: 2342
Last updated: 29 May, 2018
Revision: 3
Views: 630
Posted: 06 Nov, 2007 by Dean J.
Updated: 29 May, 2018 by Gargani A.
Also listed in


Others in this category