| Issue 74: | jmesa.tld's schemaLocation problem | |
| 1 person starred this issue and may be notified of changes. | Back to list |
What steps will reproduce the problem? 1. Added jmesa.tld to my project's WEB-INF directory 2. Included in the jsp file: <%@ taglib uri="/WEB-INF/jmesa.tld" prefix="jmesa" %> 3. Run the web application What is the expected output? What do you see instead? Received an Internal Server Error on the browser: org.apache.jasper.JasperException: XML parsing error on file /WEB- INF/jmesa.tld: (line 6, col 19): General Schema Error: Stopping after fatal error: File "file:///root/web-jsptaglibrary_2_0.xsd" not found. What version of the product are you using? On what operating system? jmesa v2.2.8, on Linux Please provide any additional information below. I later changed the schemaLocation in the tld file to: xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2eeweb-jsptaglibrary_2_0.xsd" and received another Internal Server Error on the browser: org.apache.jasper.JasperException: XML parsing error on file /WEB- INF/jmesa.tld: (line 6, col 19): General Schema Error: Stopping after fatal error: File "http://java.sun.com/xml/ns/j2eeweb- jsptaglibrary_2_0.xsd" not found. Any help on this will be greatly appreciated. Thank you.
Jan 17, 2008
#1
ismar...@gmail.com
Jan 17, 2008
Thats great that you found that! I will definitely confirm this myself and then make the change right away.
Status:
Accepted
Labels: -Priority-Medium Priority-High
Jan 18, 2008
Thank you for the responses. In the tld file, I modified the schemaLocation as follows: <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0"> But, I still get a XML parsing error: org.apache.jasper.JasperException: XML parsing error on file /WEB-INF/tld/jmesa.tld: (line 6, col 19): Schema error: Group descriptionGroup not found in the Schema. Any idea?
Jan 19, 2008
I did some googling this morning and found that the correct declaration is exactly like you posted. Specifically this is how the JSTL libraries are defined. Do you have any problems with any other tags? I changed it to the following, just to be clear: <taglib xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd" version="2.0">
Jan 19, 2008
What servlet container do you use...(tomcat, websphere, etc...)? Also, if your other tags work are they 2.0 compliant, or older? It would be interesting if you have other JSP 2.0 tags that work and why they work. Also, if you do then look at what they have declared for the taglib declaration.
Mar 10, 2008
I think the problem was some of the tag definitions were wrong. They are fixed now and I will wait to hear if this is still a problem.
Status:
Fixed
|