I am trying to use JSTL tags in my jsp and when deploy it in the weblogic server I am getting the following error.
1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory"
I have placed JSTL library in the lib folder of WEB_INF and even declared tld in the web.xml file. I have heard that JSTL library is provided by both apache and sun and I am using sun provded JSTL library and tag lib declaration is also in align with that library in my jsp, something like this (<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>), still I am not sure why the weblogic is showing org.apache.taglibs.standard.tlv.JstlCoreTLV in the error message which must be presented in the apache jstl library.
The same libarary and JSPs are working well in the Jboss and Tomcat. I am facing this issue only in weblogic server. I tried several ways to resolve it but with vain.
Any help will be appreciated.....Thanks in advance!!!
This is because the jstl libraries are packaged with the Weblogic distribution.
To use the jstl libraries you might need to add a library-ref to these in the application’s weblogic.xml.
Hope that helps!
Joined: Dec 08, 2009
Thank you for the reply!!!
Do you mean that I should remove sun provided JSTL library that I have put in WEB_INF\lib folder of my application? Can't Weblogic treat this library separately which might have been loaded by a different class loader? Still I worry that why weblogic is showing org.apache.taglibs.standard.tlv.JstlCoreTLV in the error message which is related to apache JSTL library. Does it mean that weblogic distribution has bundled with apache JSTL library? If so, how to refer it in my weblogic.xml file?