You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Dante le Poole <da...@maverick.nl> on 2001/05/04 18:26:07 UTC
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
Posted by "Noel E. Lecaros" <sp...@mozcom.com>.
Hi, Robert
Actually, I know that, but Dante said he had problems with jaxp and crimson, so
Xerces should be another parser to try in place of that.
Regards,
Noel Lecaros
Robert Petersen wrote:
> 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:sponks@mozcom.com]
> Sent: Friday, May 04, 2001 12:39 PM
> To: tomcat-user@jakarta.apache.org
> 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
RE: Tomcat/Xalan
Posted by Allan Kamau <hu...@yahoo.com>.
Xerces is a parser and Xalan is for XML
transformations that's the difference.
The easier way to process XML content is to use an XML
publishing framework. Cocoon is probably the best
publishing framework around, you can get it from
http://xml.apache.org/ needless to say it can be
easily configured to work with your tomcat
installation having tomcat serve the .jsp and servlets
(and .html files if tomcat acting a standalone web
server) and the cocoon handling the .xml files. You
will have to configure your contexts in Tomcat to have
this-it takes two steps copying a worker file from
cocoon into your context's /WEB-INF directory then
modifying your web.xml file of your context to forward
.xml files to cocoon.
As expected the cocoon-1.8.2 docs files provide
excellent coverage on the same - refer to them first.
Allan Kamau.
--- Robert Petersen <ro...@orangefood.com> wrote:
> 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:sponks@mozcom.com]
> Sent: Friday, May 04, 2001 12:39 PM
> To: tomcat-user@jakarta.apache.org
> 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
>
>
__________________________________________________
Do You Yahoo!?
Yahoo! Auctions - buy the things you want at great prices
http://auctions.yahoo.com/
RE: Tomcat/Xalan
Posted by Robert Petersen <ro...@orangefood.com>.
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:sponks@mozcom.com]
Sent: Friday, May 04, 2001 12:39 PM
To: tomcat-user@jakarta.apache.org
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
Re: Tomcat/Xalan
Posted by "Noel E. Lecaros" <sp...@mozcom.com>.
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
Re: Tomcat/Xalan
Posted by Jim Rudnicki <jd...@pacbell.net>.
> has anyone used the xalan-package in their webapps? I am and it's going
troublesome.
The problem is with the DOM level used by the different xml packages.
Tomcat 3.x exposes the interfaces in its xml package to all the webapps. No
amount of juggling classpath will change this--whatever Tomcat uses for
reading the config files, must also be tolerated by every webapp. DOM1 DOM2
is big problem. Other nasties like W3C interface changes can make life
miserable.
This is a pain in the ass royale with the v3 classloader scheme.
If you want Xalan/Xerces, try to replace the JAXP package used by tomcat
(crimson?) and all your webapps can use that package.
Tomcat 4 does not impose its dependencies upon webapps. You just put what
you need for each webapp in their own libs. ahh
Jim
RE: Tomcat/Xalan
Posted by Robert Petersen <ro...@orangefood.com>.
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:dante@maverick.nl]
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