tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dan D." <...@dubomail.com>
Subject Re: If xerces is in WEB-INF/lib this is used for deployment/web.xml parsing on tomcat6 (bug or feature?)
Date Sat, 28 Jul 2007 23:33:10 GMT
I'm wondering if anyone has any input regarding this?  I am having a similar 
problem.

We are currently working on upgrading from Tomcat 5 (5.0.27) to Tomcat 6 
(6.0.13) to take advantage of the better resource utilization.  We are also 
going from mod_jk2 to mod_jk (1.2.23), as we have had issues with jk2.

This is in a shared environment, so I do not know ahead of time what our 
users will be loading in their webapps, and we have too many users to be 
able to go through all of their apps and be sure they work properly.

I do have a sampling of apps that I am using to attempt to get a rough 
feeling of how the migration will go, however.

There are a couple issues I have run into thus far, the xerces issue is one 
of them.  What I'm wondering is if there is a way to override the 
functionality of allowing the WEB-INF/lib/xercesImpl.jar and 
WEB-INF/lib/xml-apis.jar (and potentially other system jar files) being used 
for a given app?  Since we are not using xerces as the xml parser (crimson 
is still being used here), it causes the web-app to fail, as it can't find 
the ${java.home}/jre/lib/xerces.properties file.

Any advice would be greatly apprecated.

Thanks,
Dan

----- Original Message ----- 
From: "Michael Wyraz" <lists@wyraz.de>
To: <users@tomcat.apache.org>
Sent: Friday, May 25, 2007 5:36 AM
Subject: If xerces is in WEB-INF/lib this is used for deployment/web.xml 
parsing on tomcat6 (bug or feature?)


> Hi,
>
> today i played around with tomcat 6 (latest).
> I have an old webapp wich used Xerces 2.0.0. The Webapp deploys fine and 
> runs without Problems until i try to reload the Context.
> In this case i get a NullpointerException fro xerces when it tries to load 
> web.xml via JNDI.
>
> I played around with it and found that:
> - when xerces is not present in WEB-INF/web.xml, the jdk-builtin xml 
> parser is used (com.sun...)
> - when xerces is present in WEB-INF/web.xml, it is used to parse web.xml 
> during deployment and during reload
> - in the 2nd case reload fails because the old xerces cannot read from 
> JNDI
>
> I'm not sure how to solve this. I could change the Xerces version of my 
> application but this is the first of many apps i want to migrate to tomcat 
> 6. Maybe some of this apps will not work with newer xerces.
>
> I think tomcat should _not_ use a parser which is within the webapp's lib 
> directory for tomcat-specific tasks.
>
> What do you think?
>
>
>
> ---------------------------------------------------------------------
> To start a new topic, e-mail: users@tomcat.apache.org
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
> 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message