RE: Packaged TAGLIB

2001-05-22 Thread Robert Petersen

Actually it's a bug.  After some digging around in the code I discovered a
bug in Jasper.  Therefore I took this topic over to the tomcat-dev list.
Thanks for your help though.

Robert

-Original Message-
From: Gilles [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 22, 2001 6:28 AM
To: Tomcat-User
Subject: Re: Packaged TAGLIB


Hi Robert,

Try the following:

%@ taglib uri=/WEB-INF/lib/yourjar.jar prefix=util

Gilles

On Mon, 21 May 2001, Robert Petersen wrote:


 I am having a problem when I try to package up my tag libraries.  They
seem
 to work when the are not packaged.  When I try to access a page that uses
my
 custom tags I get an exception that states:
 org.apache.jasper.JasperException: File /util not found
 The full exception is at the end. The jsp file uses the following tag lib
 directive: %@ taglib uri=/util prefix=util %

 My .tld files (I'm using Tomcat 4, Jsp 1.2) are located in the META-INF of
 the jar file and I place that jar file in the WEB-INF/lib directory.
 Any help would be appreciated.  At the end of the email is any info I
think
 is important.

 Thanks,
 Robert

 My jar file looks like this:
  0 Mon May 21 14:10:54 PDT 2001 META-INF/
 68 Mon May 21 14:10:54 PDT 2001 META-INF/MANIFEST.MF
  0 Mon May 21 13:12:24 PDT 2001 com/
  0 Mon May 21 13:12:24 PDT 2001 com/orangefood/
  0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/
  0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/
252 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/db/ResultSetDuring.class
246 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/db/ResultSetEnd.class
250 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/db/ResultSetStart.class
   1707 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/db/ResultSetState.class
   4530 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/SQL.class
  0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/
   1602 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/BeanBodyTagSupport.class
   1549 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/BeanTagSupport.class
   1774 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Case.class
   2231 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/ForEach.class
  0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/form/
450 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/form/FormException.class
295 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/form/FormHandler.class
   4828 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/form/FormHandlerTag.class
   1044 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Get.class
   4510 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/If.class
   1589 Mon May 21 13:12:24 PDT 2001
 com/orangefood/taglib/util/LastUpdated.class
   1124 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Now.class
603 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/Request.class
   1503 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/Switch.class
702 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Time.class
   4315 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/URLTag.class
   1480 Mon May 21 14:08:46 PDT 2001 META-INF/db.tld
   5212 Mon May 21 14:08:22 PDT 2001 META-INF/util.tld

 Part of my tld looks like this:
 ?xml version=1.0 encoding=ISO-8859-1 ?
 !DOCTYPE taglib PUBLIC
   -//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN
   http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd;

 !-- a tag library descriptor --

 taglib
   !-- after this the default space is
   http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd;
   --

   tlib-version1.0/tlib-version
   jsp-version1.2/jsp-version
   short-nameutil/short-name
   uri/util/uri
   description
   A utility tag library for orangefood.com
   /description

   tag
 .
 .
 .

 Exception:
 org.apache.jasper.JasperException: File /util not found
   at

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:213)
   at

org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:173)
   at

org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP
 arseEventListener.java:1143)
   at

org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
 ntListener.java:754)
   at

org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
 ener.java:121)
   at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
   at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
   at

org.apache.jasper.compiler.ParserController.parse(ParserController.java:220)
   at org.apache.jasper.compiler.Compiler.compile(Compiler.java:207

RE: Custom Tag Problem

2001-05-21 Thread Robert Petersen

I don't think your tag should compile because you can't have a getClass()
method.
Reason being that getClass() lives on java.lang.Object and is final, i.e.
you
can't override it.

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Kevin Long [mailto:[EMAIL PROTECTED]]
Sent: Monday, May 21, 2001 8:43 AM
To: '[EMAIL PROTECTED]'
Subject: Custom Tag Problem



I'm using Tomcat 3.2.1.  I have a custom tag that has some standard HTML
attributes in the custom tag.  One of the attributes is called class.
When I try to load the JSP page that contains this tag with the attribute,
I'm getting a compile error.  Here is the stack trace:

org.apache.jasper.JasperException: Unable to compile class for JSP
at
org.apache.jasper.servlet.JspServlet.doLoadJSP(JspServlet.java:476)
at
org.apache.jasper.servlet.JasperLoader12.loadJSP(JasperLoader12.java:146)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:433)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:152)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:164)
at
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:318)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:391)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:404)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at
org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at
org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:79
7)
at
org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at
org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpC
onnectionHandler.java:210)
at
org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at
org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484

Thanks for any assistance!

Kevin Long
[EMAIL PROTECTED]




Packaged TAGLIB

2001-05-21 Thread Robert Petersen

I am having a problem when I try to package up my tag libraries.  They seem
to work when the are not packaged.  When I try to access a page that uses my
custom tags I get an exception that states:
org.apache.jasper.JasperException: File /util not found
The full exception is at the end. The jsp file uses the following tag lib
directive: %@ taglib uri=/util prefix=util %

My .tld files (I'm using Tomcat 4, Jsp 1.2) are located in the META-INF of
the jar file and I place that jar file in the WEB-INF/lib directory.
Any help would be appreciated.  At the end of the email is any info I think
is important.

Thanks,
Robert

My jar file looks like this:
 0 Mon May 21 14:10:54 PDT 2001 META-INF/
68 Mon May 21 14:10:54 PDT 2001 META-INF/MANIFEST.MF
 0 Mon May 21 13:12:24 PDT 2001 com/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/
   252 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetDuring.class
   246 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetEnd.class
   250 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetStart.class
  1707 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetState.class
  4530 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/SQL.class
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/
  1602 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/BeanBodyTagSupport.class
  1549 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/BeanTagSupport.class
  1774 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Case.class
  2231 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/ForEach.class
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/form/
   450 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormException.class
   295 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormHandler.class
  4828 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormHandlerTag.class
  1044 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Get.class
  4510 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/If.class
  1589 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/LastUpdated.class
  1124 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Now.class
   603 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Request.class
  1503 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Switch.class
   702 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Time.class
  4315 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/URLTag.class
  1480 Mon May 21 14:08:46 PDT 2001 META-INF/db.tld
  5212 Mon May 21 14:08:22 PDT 2001 META-INF/util.tld

Part of my tld looks like this:
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib PUBLIC
-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd;

!-- a tag library descriptor --

taglib
!-- after this the default space is
http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd;
--

tlib-version1.0/tlib-version
jsp-version1.2/jsp-version
short-nameutil/short-name
uri/util/uri
description
A utility tag library for orangefood.com
/description

tag
.
.
.

Exception:
org.apache.jasper.JasperException: File /util not found
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:213)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:173)
at
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP
arseEventListener.java:1143)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:754)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:220)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:207)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:175)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:187)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

Packaged TAGLIB

2001-05-21 Thread Robert Petersen


I am having a problem when I try to package up my tag libraries.  They seem
to work when the are not packaged.  When I try to access a page that uses my
custom tags I get an exception that states:
org.apache.jasper.JasperException: File /util not found
The full exception is at the end. The jsp file uses the following tag lib
directive: %@ taglib uri=/util prefix=util %

My .tld files (I'm using Tomcat 4, Jsp 1.2) are located in the META-INF of
the jar file and I place that jar file in the WEB-INF/lib directory.
Any help would be appreciated.  At the end of the email is any info I think
is important.

Thanks,
Robert

My jar file looks like this:
 0 Mon May 21 14:10:54 PDT 2001 META-INF/
68 Mon May 21 14:10:54 PDT 2001 META-INF/MANIFEST.MF
 0 Mon May 21 13:12:24 PDT 2001 com/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/
   252 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetDuring.class
   246 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetEnd.class
   250 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetStart.class
  1707 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/db/ResultSetState.class
  4530 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/db/SQL.class
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/
  1602 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/BeanBodyTagSupport.class
  1549 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/BeanTagSupport.class
  1774 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Case.class
  2231 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/ForEach.class
 0 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/form/
   450 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormException.class
   295 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormHandler.class
  4828 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/form/FormHandlerTag.class
  1044 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Get.class
  4510 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/If.class
  1589 Mon May 21 13:12:24 PDT 2001
com/orangefood/taglib/util/LastUpdated.class
  1124 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Now.class
   603 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Request.class
  1503 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Switch.class
   702 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/Time.class
  4315 Mon May 21 13:12:24 PDT 2001 com/orangefood/taglib/util/URLTag.class
  1480 Mon May 21 14:08:46 PDT 2001 META-INF/db.tld
  5212 Mon May 21 14:08:22 PDT 2001 META-INF/util.tld

Part of my tld looks like this:
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE taglib PUBLIC
-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN
http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd;

!-- a tag library descriptor --

taglib
!-- after this the default space is
http://java.sun.com/j2ee/dtds/jsptaglibrary_1_2.dtd;
--

tlib-version1.0/tlib-version
jsp-version1.2/jsp-version
short-nameutil/short-name
uri/util/uri
description
A utility tag library for orangefood.com
/description

tag
.
.
.

Exception:
org.apache.jasper.JasperException: File /util not found
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:213)
at
org.apache.jasper.compiler.TagLibraryInfoImpl.(TagLibraryInfoImpl.java:173)
at
org.apache.jasper.compiler.JspParseEventListener.processTaglibDirective(JspP
arseEventListener.java:1143)
at
org.apache.jasper.compiler.JspParseEventListener.handleDirective(JspParseEve
ntListener.java:754)
at
org.apache.jasper.compiler.DelegatingListener.handleDirective(DelegatingList
ener.java:121)
at org.apache.jasper.compiler.Parser$Directive.accept(Parser.java:243)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1126)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1091)
at org.apache.jasper.compiler.Parser.parse(Parser.java:1087)
at
org.apache.jasper.compiler.ParserController.parse(ParserController.java:220)
at org.apache.jasper.compiler.Compiler.compile(Compiler.java:207)
at org.apache.jasper.servlet.JspServlet.loadJSP(JspServlet.java:523)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNecessary(JspSe
rvlet.java:175)
at
org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.ja
va:187)
at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:379)
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:453)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at

RE: web.xml layout

2001-05-19 Thread Robert Petersen

It matters, and doesn't have to do with SAX vs. DOM, it's because
of the DTD - check out this bit of the DTD:
!ELEMENT web-app (icon?, display-name?, description?, distribut-able?,
context-param*, filter*, filter-mapping*, listener*, servlet*,
servlet-mapping*,
session-config?, mime-mapping*, welcome-file-list?, error-page*,
taglib*, resource-env-ref*, resource-ref*, security-constraint*,
login-config?,
security-role*, env-entry*, ejb-ref*, ejb-local-ref*)

This says that the servlet-mapping tags must follow all of the servlet.
Basically the
tags must be in the order above.

- Robert Petersen
http://www.orangefood.com


-Original Message-
From: Richard Draucker [mailto:[EMAIL PROTECTED]]
Sent: Saturday, May 19, 2001 9:24 AM
To: [EMAIL PROTECTED]
Subject: web.xml layout


Does anyone know if it makes any difference whether I group
servlet contexts with servlet mappings or keep all contexts
together and below them keep all mappings together.

Assuming the xml file is being processed by SAX, the
callback handling would make this irrelevant I would think.

Thoughts?

Thanks,
Richard











RE: where would I put a properties file?

2001-05-18 Thread Robert Petersen

I think that WEB-INF is the right place.  I put my .properties files in
WEB-INF/config/ and refer to that path thusly: ../webapps/of/WEB-INF/config
where of is the name of my context.  What problems are you having?

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Montgomery, Kendal L [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 5:47 AM
To: Tomcat-User (E-mail)
Subject: where would I put a properties file?


Hello all..

I have an application that calls a javabean from a JSP.  The bean gets data
from a properties file and returns it to the JSP client.  Trouble being that
I don't know exactly where to place the properties file or make it so that
the bean can find the properties file.  I have tried placing it in the
WEB-INF directory, but no luck there...

Thanks for any help!

Kendal L. Montgomery
Qwest - eFlow Development Team
614-215-4937





RE: Log bytes sent in each response

2001-05-18 Thread Robert Petersen

If you are using Servlets 2.3 API then try a filter.

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Wong Liong Hung [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 18, 2001 6:06 AM
To: [EMAIL PROTECTED]
Subject: Log bytes sent in each response



Hi,

How to log number of bytes sent in each response?


--Thanks,

--Liong Hung




RE: SessionListener

2001-05-17 Thread Robert Petersen



Yup - 

My 
web.xml looks like this:
 
listener 
listener-classcom.orangefood.java.servlet.http.SessionTracker/listener-class 
/listener
Make 
sure the listerer tags are after any filter-mapping tags and before any 
servlet tags.
Then 
just make sure your class is in a .jar in the WEB-INF/lib or in the right 
directory in the
WEB-INF/classes.

- 
Robert
http://www.orangefood.com

  -Original Message-From: Alin Simionoiu 
  [mailto:[EMAIL PROTECTED]]Sent: Thursday, May 17, 2001 2:20 
  PMTo: [EMAIL PROTECTED]Subject: 
  SessionListener
  Does anybody use SessionListener?..
  I try to use this, but is absolutly an nightmare 
  to put everithing in place.
  I cannot find a very clear documentation about 
  how the web.xml file should be set.
  
  Alin


RE: Tomcat/Xalan

2001-05-04 Thread Robert Petersen

Not sure if your are interested in jumping to Tomcat 4.0b3 but I'm using it
and having no problems at all.

- Robert Petersen
http://www.orangefood.com


-Original Message-
From: Dante le Poole [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 9:26 AM
To: Tomcat User
Subject: Tomcat/Xalan


Hi,

has anyone used the xalan-package in their webapps? I am and it's going
troublesome.

With tomcat 3.2.1 it originally kept giving a NoSuchMethodError for the
method getNamespaceOfNode (in one of apache's
xpath-classes).
I solved that one by replacing the jaxp.jar in tomcat's lib-dir with the
latest version and adding crimson.jar.

Now tomcat has started hanging on me, refusing any http-requests and
requiring several resets a day (see my post from yesterday).
I'm looking into upgrading to 3.2.2b4, but I'm running into the exact same
problem with the NoSuchMethodError again, only this time
adding jaxp.jar and crimson.jar doesn't work!

Now I'm stuck with two problems that have got me baffled, and my boss isn't
amused about our site not functioning correctly! Does
anyone please have any ideas?

Thanx,

Dante le Poole





RE: Tomcat/Xalan

2001-05-04 Thread Robert Petersen

Just FYI -
Xerxes is a parser and Xalan is for XML Transformations (XSLT), they do two
different things and both are from Apache.

- Robert Petersen
http://www.orangefood.com

-Original Message-
From: Noel E. Lecaros [mailto:[EMAIL PROTECTED]]
Sent: Friday, May 04, 2001 12:39 PM
To: [EMAIL PROTECTED]
Subject: Re: Tomcat/Xalan


Hi, Dante

Just a thought but have you tried using the Apache Xerces parser?  Hopefully
this parser provides better integration with Xalan.

Hope this helps.

Regards,
Noel Lecaros

Dante le Poole wrote:

 Hi,

 has anyone used the xalan-package in their webapps? I am and it's going
troublesome.

 With tomcat 3.2.1 it originally kept giving a NoSuchMethodError for the
method getNamespaceOfNode (in one of apache's
 xpath-classes).
 I solved that one by replacing the jaxp.jar in tomcat's lib-dir with the
latest version and adding crimson.jar.

 Now tomcat has started hanging on me, refusing any http-requests and
requiring several resets a day (see my post from yesterday).
 I'm looking into upgrading to 3.2.2b4, but I'm running into the exact same
problem with the NoSuchMethodError again, only this time
 adding jaxp.jar and crimson.jar doesn't work!

 Now I'm stuck with two problems that have got me baffled, and my boss
isn't amused about our site not functioning correctly! Does
 anyone please have any ideas?

 Thanx,

 Dante le Poole