Rick,

Can you get the entire stack trace of that error?

-----Original Message-----
From: Rick Roberts [mailto:[EMAIL PROTECTED] 
Sent: Thursday, April 01, 2004 2:17 PM
To: Tag Libraries Users List
Subject: Re: Which jar file supports the XML tld?


*---*
This is my JSP file:
*---*

<[EMAIL PROTECTED] contentType="text/html"%>
<%@ taglib uri="/jstl/core" prefix="c" %>
<%@ taglib uri="/jstl/xml" prefix="x" %>
<html>
<head><title>XML Rolodex</title></head>
<body>
<c:import var='rolodex_xml' url='rolodex.xml'/>
<x:parse var='document' xml='${rolodex_xml}'/>
<p>There are
     <x:out select='count($document//contact)'/>
     contacts in the rolodex.</p>
</body>
</html>

*---*
This is my web.xml file:
*---*

<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE web-app
     PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
     "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd";>
<web-app>
     <welcome-file-list>
         <welcome-file>
             index.jsp
         </welcome-file>
     </welcome-file-list>

     <taglib>
         <taglib-uri>/jstl/core</taglib-uri>
         <taglib-location>/WEB-INF/tld/c.tld</taglib-location>
     </taglib>

     <taglib>
         <taglib-uri>/jstl/fmt</taglib-uri>
         <taglib-location>/WEB-INF/tld/fmt.tld</taglib-location>
     </taglib>

     <taglib>
         <taglib-uri>/jstl/xml</taglib-uri>
         <taglib-location>/WEB-INF/tld/x.tld</taglib-location>
     </taglib>
</web-app>

*---*


Johnson, Chris wrote:
> Can you paste some of your code in where you are using xpath 
> expressions (in select attributes)?
> 
> 
> -----Original Message-----
> From: Rick Roberts [mailto:[EMAIL PROTECTED]
> Sent: Thursday, April 01, 2004 1:55 PM
> To: Tag Libraries Users List
> Subject: Re: Which jar file supports the XML tld?
> 
> 
> I mentioned saxpath.jar in my previous message.
> 
> Tomcat marks the context as unavailable which leads me to believe that

> Tomcat already has a saxpath.jar available to it from somewhere and 
> the new one is
> causing a conflict.
> 
> 
> 
> Johnson, Chris wrote:
> 
>>Throw in saxpath.jar.
>>
>>-----Original Message-----
>>From: Rick Roberts [mailto:[EMAIL PROTECTED]
>>Sent: Thursday, April 01, 2004 1:48 PM
>>To: Tag Libraries Users List
>>Subject: Re: Which jar file supports the XML tld?
>>
>>
>>Still not working.
>>
>>If I only have jstl.jar and standard.jar in my lib directory then I
>>get this error message:
>>
>>org.apache.jasper.JasperException: org/saxpath/SAXPathException
>>      at org.apache.jasper.servlet.JspServletWrapper.service(Unknown
>>Source)
>>      at org.apache.jasper.servlet.JspServlet.serviceJspFile(Unknown
>>Source)
>>      at org.apache.jasper.servlet.JspServlet.service(Unknown Source)
>>      at javax.servlet.http.HttpServlet.service(HttpServlet.java)
>>      ...
>>      ...
>>      ...
>>
>>If I put saxpath.jar in my lib directory then Tomcat marks the context
> 
> 
>>as unavailable.
>>
>>If I put xercesImpl.jar in the lib directory then Tomcat hangs and
>>leave a process running that I can only kill by restarting my machine 
>>(Redhat 9).
>>
>>I have tried other combinations of jar files in the lib directory also
> 
> 
>>but get similar results.
>>
>>I am using Tomcat 4.1.24.
>>
>>Any suggestions?
>>
>>Thanks,
>>
>>
>>
>>Johnson, Chris wrote:
>>
>>
>>>If you use the latest Tomcat 5.0.19 and 1.4.2x java, you don't really

>>>need any, but if you are using older versions, then try these for
>>>starters:
>>>
>>>jaxp-api.jar
>>>dom.jar
>>>sax.jar
>>>xercesImpl.jar
>>>
>>>Then if it seems to work, but complains about a missing class, you 
>>>can
>>
>>
>>>look for the missing class and add the necessary jar.
>>>
>>>Chris
>>>
>>>
>>>-----Original Message-----
>>>From: Rick Roberts [mailto:[EMAIL PROTECTED]
>>>Sent: Thursday, April 01, 2004 7:14 AM
>>>To: Taglibs Users List
>>>Subject: Which jar file supports the XML tld?
>>>
>>>
>>>
>>>There are several JAR files with the JSTL distribution.  If i just 
>>>drop them all into my lib directory then Tomcat complains and marks 
>>>the context as invalid.
>>>
>>>So, which jar files are required to get started with XML?
>>>
>>>Thank,
>>>
>>
>>
> 

-- 
*******************************************
* Rick Roberts                            *
* Advanced Information Technologies, Inc. *
* http://www.aitsupport.com               *
*******************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to