|| | |||Browse by category|
Why do I get a ClassCastException when deploying my Web application on the Tomcat server that came with the JViews distribution?
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.