Link to home
Start Free TrialLog in
Avatar of nitin22
nitin22Flag for United States of America

asked on

JSTL exception in Weblogic 10

Hi,
I am developing a web application to run on Java5, and Weblogic Application Server 10.x.
I am also using struts to develop the application. Ihave the jstl.jar and standard.jar in WEB-INF\lib directory. Also have c.tld (that I extracted from jstl.jar). I have done the mapping of the URI in the web.xml file and referring to the same URI in my JSP. But when I am trying to render the JSP, it is not getting compiled and throws exception as follows:

Compilation of JSP File '/resources/jsp/noProjectsAssigned.jsp' failed:
--------------------------------------------------------------------------------
 
noProjectsAssigned.jsp:1:1: The validator class: "org.apache.taglibs.standard.tlv.JstlCoreTLV" has failed with the following exception: "java.lang.ClassCastException: weblogic.xml.jaxp.RegistrySAXParserFactory".
<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
^----------------------------------------------------------------------------------------------^

I checked the version of JSTL in the manifest.mf file in the JAR and it is as follows:

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.5
Created-By: 1.5.0_06-b03 (Sun Microsystems Inc.)
Extension-Name: javax.servlet.jsp.jstl
Specification-Title: JavaServer Pages(TM) Standard Tag Library
Specification-Version: 1.2
Specification-Vendor: Sun Microsystems, Inc.
Implementation-Version: 1.2
Implementation-Vendor: Sun Microsystems, Inc.
Implementation-Vendor-Id: org.apache
Implementation-Title: Sun Java System Application Server


AND in standard.jar

Manifest-Version: 1.0
Ant-Version: Apache Ant 1.6.1
Created-By: 1.4.2-38 ("Apple Computer, Inc.")
Specification-Title: JavaServer Pages Standard Tag Library (JSTL)
Specification-Version: 1.1
Implementation-Title: jakarta-taglibs 'standard': an implementation of
  JSTL
Implementation-Version: 1.1.2
Implementation-Vendor: Apache Software Foundation
Implementation-Vendor-Id: org.apache
Extension-Name: org.apache.taglibs.standard


I am doing something wrong somewhere!
Any help is really appreciated.

Please let me know you need more information!!

--Nitin
Avatar of rrz
rrz
Flag of United States of America image

I would delete the two jars you have now and start over. You can download the binary  from  
http://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi 

>Also have c.tld (that I extracted from jstl.jar). I have done the mapping of the URI in the web.xml file  
Don't  either of those things. Delete them.  
> referring to the same URI in my JSP.    
The line in your JSP should be like  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
Avatar of nitin22

ASKER

Hi rrz,

Thanks for the reply, and here's what I did.

1. From the link I downloaded the 1.1.2.zip.
2. Unzipped it and copied the jstl and the standard jars into my projects WEB-INF\lib.
3. Removed the URI mapping from web.xml
4. Removed the c.tld file
5. replaced the URI in the JSP with the one you mentioned above.

But I am still getting that same error.

One more thing is that, I have deployed the web app exploded in weblogic server. I am not sure if this is something that's causing the error.

Looking forward to hear!

--Nitin
SOLUTION
Avatar of rrz
rrz
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
the last one works
Avatar of nitin22

ASKER

Hi rrz,

I did restart the server and nothing changes, still getting the same error.

I looked into the links above and none has a solution.

If you find anything on this, please post it. this has become a show stopper for me.

Thanks,
Nitin
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial