My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 74: jmesa.tld's schemaLocation problem
1 person starred this issue and may be notified of changes. Back to list
Status:  Fixed
Owner:  ----
Closed:  Mar 2008


 
Reported by julia.t...@gmail.com, Jan 14, 2008
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
It seems that the file is not located @ http://java.sun.com/xml/ns/j2eeweb-
jsptaglibrary_2_0.xsd
but @ http://java.sun.com/xml/ns/j2ee/web-jsptaglibrary_2_0.xsd

Hope this will be helpfull!
Jan 17, 2008
#2 extremec...@gmail.com
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
#3 julia.t...@gmail.com
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
#4 extremec...@gmail.com
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
#5 extremec...@gmail.com
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
#6 extremec...@gmail.com
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

Powered by Google Project Hosting