Re: Which jar file supports the XML tld?

2004-04-02 Thread Rick Roberts
)
	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:594)
	at 
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:392)
	at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:565)
	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
headtitleXML Rolodex/title/head
body
c:import var='rolodex_xml' url='rolodex.xml'/
x:parse var='document' xml='${rolodex_xml}'/
pThere 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]


Re: Which jar file supports the XML tld?

2004-04-02 Thread Rick Roberts
 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

Re: Which jar file supports the XML tld?

2004-04-02 Thread Rick Roberts
Thanks a lot for the help, Chris.

I found the error.  FINALLY!
I have saxen-full.jar, saxpath.jar, jstl.jar and standard.jar in the WEB-INF/lib 
dir.

The last stack trace that I just listed:

 - Root Cause -
 java.lang.IllegalArgumentException: Invalid TLD resource path
 /WEB-INF/lib/jaxen-full.jar
at org.apache.catalina.startup.ContextConfig.tldScanJar(Unknown
 Source)
Was corrected when I changed the permissions on the file to allow someone other 
than root to read it. stupid error on my part

Some of the jar files will still cause major problems with tomcat, such as 
xercesImpl.jar which locks up tomcat such that I have to REBOOT my LINUX comp to 
clear it.

But the good news is that my test app is working! YAY!

Thanks again,

Rick



Johnson, Chris wrote:
Rick,

I saw some people on the web talking about jar corruption.  Can you go
to the /var/tomcat4/webapps/jstl/WEB-INF/lib/ directory and do a jar tvf
on the problem jars?  One guy said that it reported his jar as being
corrupted.  One post talked about Ant causing jar corruption (and that
was posted on the redhat site).  How are you creating your war file?
-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED] 
Sent: Friday, April 02, 2004 7:35 AM
To: Tag Libraries Users List
Subject: Re: Which jar file supports the XML tld?

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
j 
/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.jav
a:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessor
Impl.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

Which jar file supports the XML tld?

2004-04-01 Thread Rick Roberts
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]


Re: Which jar file supports the XML tld?

2004-04-01 Thread Rick Roberts
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]


Re: Which jar file supports the XML tld?

2004-04-01 Thread Rick Roberts
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]


Re: Which jar file supports the XML tld?

2004-04-01 Thread Rick Roberts
*---*
This is my JSP file:
*---*
[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/jstl/core prefix=c %
%@ taglib uri=/jstl/xml prefix=x %
html
headtitleXML Rolodex/title/head
body
c:import var='rolodex_xml' url='rolodex.xml'/
x:parse var='document' xml='${rolodex_xml}'/
pThere 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]


Having trouble getting started

2004-03-31 Thread Rick Roberts
I am using jakarta-tomcat-4.1.24

I downloaded jakarta-taglibs-standard-1.0.5

I have a tomcat context in webapps/jstl/ that works for simple JSP files.

I placed c.tld and fmt.tld in webapps/jstl/WEB-INF/tld/

I placed jstl.jar and standard.jar into webapps/jstl/WEB-INF/classes/lib/

Here is a copy of 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
/web-app
I restarted Tomcat and JSP files work correctly at the /jstl/ context

Here is a copy of my JSP file:

[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/jstl/core prefix=c %
html
head
/head
body
c:set var=hi value=Hello/
c:out value=${hi}/
/body
/html
This is the error it get:
org.apache.jasper.JasperException: /index.jsp(6,0) Unable to load class set
at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown Source)
at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown Source)
at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown Source)
...
...
...
What am I doing wrong?

Thanks

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.aitsupport.com  *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Having trouble getting started

2004-03-31 Thread Rick Roberts
Chris,

YOU DA MAN!

Thanks

:)

Johnson, Chris wrote:
Robert,

Try putting the jar files in webapps/jstl/WEB-INF/lib

Chris

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, March 31, 2004 10:23 AM
To: Taglibs Users List
Subject: Having trouble getting started

I am using jakarta-tomcat-4.1.24

I downloaded jakarta-taglibs-standard-1.0.5

I have a tomcat context in webapps/jstl/ that works for simple JSP
files.
I placed c.tld and fmt.tld in webapps/jstl/WEB-INF/tld/

I placed jstl.jar and standard.jar into
webapps/jstl/WEB-INF/classes/lib/
Here is a copy of 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
/web-app
I restarted Tomcat and JSP files work correctly at the /jstl/ context

Here is a copy of my JSP file:

[EMAIL PROTECTED] contentType=text/html%
%@ taglib uri=/jstl/core prefix=c %
html
head
/head
body
c:set var=hi value=Hello/
c:out value=${hi}/
/body
/html
This is the error it get:
org.apache.jasper.JasperException: /index.jsp(6,0) Unable to load class
set at org.apache.jasper.compiler.DefaultErrorHandler.jspError(Unknown
Source) at org.apache.jasper.compiler.ErrorDispatcher.dispatch(Unknown
Source) at org.apache.jasper.compiler.ErrorDispatcher.jspError(Unknown
Source) at org.apache.jasper.compiler.Parser.parseCustomTag(Unknown
Source) ... ... ...
What am I doing wrong?

Thanks

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.aitsupport.com   *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: several messages

2003-08-14 Thread Rick Roberts
Dude!
Amazon and BarnesAndNobel are out of JSTL in Action.
They must be selling like hot-cakes :)
Rick

Shawn Bayern wrote:
On Fri, 25 Jul 2003, Thomas Martin wrote:


Reading tech books is a good way to ruin a good cigar.


Hey!  Parts of my book should go quite well with a cigar (though I can't
honestly say that was the design goal).  :-)
On Fri, 25 Jul 2003 [EMAIL PROTECTED] wrote:


I much prefer Shawn's new book, JSTL Inaction, written after he took up
Zen last year.


Indeed.  Check out JSTL at Rest, too...

Shawn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
* http://www.ait-web.com  *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat Crashing on Linux

2003-07-29 Thread Rick Roberts
ARGH!
Sent to wrong list.
Sorry.
Rick Roberts wrote:
Tomcat is crashing every 2 - 3 days on 2 different Linux machines.
Both machines are running pretty much identical software configurations.
Both machines are serving the same web application so, it's almost 
certainly something in my web app code that causes the problem.  
However; the logs from my  web app do not tell me anything.

I am seeing this error on 2 different Linux machines.
Tomcat just stops responding to my requests.
Also when I restart Tomcat (using: /etc/init.d/tomcat restart), I get 
this:

[EMAIL PROTECTED] root]# /etc/init.d/tomcat4 restart
waiting for processes to exit  [  OK  ]
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
waiting for processes to exit
The only info from logs I can find is from catalina.out:

Jul 29, 2003 10:54:06 AM org.apache.tomcat.util.net.PoolTcpEndpoint 
closeServerSocket
SEVERE: Caught exception trying to unlock accept.
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at 
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:426)
at java.net.Socket.connect(Socket.java:376)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:326) 

at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397) 

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) 

at java.lang.Thread.run(Thread.java:536)
Jul 29, 2003 10:54:07 AM org.apache.tomcat.util.net.PoolTcpEndpoint 
closeServerSocket
SEVERE: Caught exception trying to close socket.
java.lang.NullPointerException
at 
org.apache.tomcat.util.net.PoolTcpEndpoint.closeServerSocket(PoolTcpEndpoint.java:338) 

at 
org.apache.tomcat.util.net.PoolTcpEndpoint.acceptSocket(PoolTcpEndpoint.java:397) 

at 
org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:529)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:619) 

at java.lang.Thread.run(Thread.java:536)
Jul 29, 2003 10:54:07 AM org.apache.tomcat.util.net.PoolTcpEndpoint 
acceptSocket
WARNING: Reinitializing ServerSocket

Any help greatly appreciated.

Thanks,

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Book Recomendation

2003-07-25 Thread Rick Roberts
Thanks.  It's on the way from Amazon now :)

Aditya Akella wrote:
JSTL in Action   http://www.manning.com/bayern by Shawn Bayern. 

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:56 PM
To: Taglibs Users List
Subject: Book Recomendation
Anyone wish to recomend their favorite JSTL book?

Thanks,

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Book Recomendation

2003-07-25 Thread Rick Roberts
It's on sale.  I got it for 27.97 with free shipping.

I prefer books because, I like to grab a book, beer and cigar and get out of my 
basement with no windows and sit on the deck on nice days. :)

Thomas Martin wrote:
You have down load a pdf version for half the price ($20) from that site.

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Friday, July 25, 2003 10:39 AM
To: Tag Libraries Users List
Subject: Re: Book Recomendation
Thanks.  It's on the way from Amazon now :)

Aditya Akella wrote:

JSTL in Action   http://www.manning.com/bayern by Shawn Bayern. 

-Original Message-
From: Rick Roberts [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 24, 2003 3:56 PM
To: Taglibs Users List
Subject: Book Recomendation
Anyone wish to recomend their favorite JSTL book?

Thanks,



--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Book Recomendation

2003-07-24 Thread Rick Roberts
Anyone wish to recomend their favorite JSTL book?

Thanks,

--
***
* Rick Roberts*
* Advanced Information Technologies, Inc. *
***
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]