With many of the TLD jar files, I get messages similar to this, where the presence of the jar file causes Tomcat to mark the context as unavailable.

***

2004-04-02 08:30:50 StandardContext[/jstl]: Reloading this Context has started
2004-04-02 08:30:50 WebappLoader[/jstl]: Deploying class repositories to work directory /var/jakarta-tomcat-4.1.24/work/Standalone/localhost/jstl
2004-04-02 08:30:50 WebappLoader[/jstl]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/jstl/WEB-INF/classes
2004-04-02 08:30:50 WebappLoader[/jstl]: Deploy JAR /WEB-INF/lib/jaxen-full.jar to /var/tomcat4/webapps/jstl/WEB-INF/lib/jaxen-full.jar
2004-04-02 08:30:50 WebappLoader[/jstl]: Reloading checks are enabled for this Context
2004-04-02 08:30:50 StandardWrapper[/jstl:default]: Loading container servlet default
2004-04-02 08:30:50 default: init
2004-04-02 08:30:50 StandardWrapper[/jstl:invoker]: Loading container servlet invoker
2004-04-02 08:30:50 invoker: init
2004-04-02 08:30:50 jsp: init
2004-04-02 08:30:50 StandardManager[/jstl]: Seeding random number generator class java.security.SecureRandom
2004-04-02 08:30:50 StandardManager[/jstl]: Seeding of random number generator has been completed
2004-04-02 08:30:50 StandardContext[/jstl]: Reloading this Context is completed
2004-04-02 08:31:24 WebappLoader[/jstl]: Deploying class repositories to work directory /var/jakarta-tomcat-4.1.24/work/Standalone/localhost/jstl
2004-04-02 08:31:24 WebappLoader[/jstl]: Deploy class files /WEB-INF/classes to /var/tomcat4/webapps/jstl/WEB-INF/classes
2004-04-02 08:31:24 WebappLoader[/jstl]: Deploy JAR /WEB-INF/lib/jaxen-full.jar to /var/tomcat4/webapps/jstl/WEB-INF/lib/jaxen-full.jar
2004-04-02 08:31:24 WebappLoader[/jstl]: Reloading checks are enabled for this Context
2004-04-02 08:31:25 ContextConfig[/jstl] Exception processing JAR at resource path /WEB-INF/lib/jaxen-full.jar
javax.servlet.ServletException: Exception processing JAR at resource path /WEB-INF/lib/jaxen-full.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source)
at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source)
at org.apache.catalina.startup.ContextConfig.start(Unknown Source)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)
----- Root Cause -----
java.lang.IllegalArgumentException: Invalid TLD resource path /WEB-INF/lib/jaxen-full.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown Source)
at org.apache.catalina.startup.ContextConfig.tldScan(Unknown Source)
at org.apache.catalina.startup.ContextConfig.start(Unknown Source)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Unknown Source)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(Unknown Source)
at org.apache.catalina.core.StandardContext.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardHost.start(Unknown Source)
at org.apache.catalina.core.ContainerBase.start(Unknown Source)
at org.apache.catalina.core.StandardEngine.start(Unknown Source)
at org.apache.catalina.core.StandardService.start(Unknown Source)
at org.apache.catalina.core.StandardServer.start(Unknown Source)
at org.apache.catalina.startup.Catalina.start(Unknown Source)
at org.apache.catalina.startup.Catalina.execute(Unknown Source)
at org.apache.catalina.startup.Catalina.process(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Unknown Source)


2004-04-02 08:31:25 ContextConfig[/jstl]: Marking this application unavailable due to previous error(s)
2004-04-02 08:31:25 StandardManager[/jstl]: Seeding random number generator class java.security.SecureRandom
2004-04-02 08:31:25 StandardManager[/jstl]: Seeding of random number generator has been completed
2004-04-02 08:31:25 StandardContext[/jstl]: Context startup failed due to previous errors


Johnson, Chris wrote:
Rick,

Have you tried putting jaxen-full.jar in your lib?  Sorry, I overlooked
that one before.

You can get it here: http://jaxen.org/releases.html

-----Original Message-----
From: Rick Roberts [mailto:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 6:50 AM
To: Tag Libraries Users List
Subject: Re: Which jar file supports the XML tld?



Entire stack trace:


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)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:536)


root cause

javax.servlet.ServletException: org/saxpath/SAXPathException
at
org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown
Source)
at
org.apache.jsp.xmlRolodex_jsp._jspService(xmlRolodex_jsp.java:108)
at org.apache.jasper.runtime.HttpJspBase.service(Unknown Source)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
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)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Unknown
Source)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(Unknown Source)
at org.apache.catalina.core.StandardWrapperValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContextValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardContext.invoke(Unknown
Source)
at org.apache.catalina.core.StandardHostValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(Unknown Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.valves.ErrorReportValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at org.apache.catalina.core.StandardEngineValve.invoke(Unknown
Source)
at org.apache.catalina.core.StandardPipeline$StandardPipelineValveContext.i
nvokeNext(Unknown Source)
at org.apache.catalina.core.StandardPipeline.invoke(Unknown
Source)
at org.apache.catalina.core.ContainerBase.invoke(Unknown Source)
at
org.apache.coyote.tomcat4.CoyoteAdapter.service(CoyoteAdapter.java:223)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:59
4)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processC
onnection(Http11Protocol.java:392)
at
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:56
5)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool
.java:619)
at java.lang.Thread.run(Thread.java:536)




Johnson, Chris wrote:

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]



Reply via email to