You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Stefan Kost <s....@webmacher.de> on 2002/02/04 11:45:28 UTC

tomcat 4.01 with jboss 2.4.4 and a webapplication using xalan/xerces

hi hi,

Even after reading the docs (
http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html)
and mailing list archive (
http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2)
I am still stuck with the following problem:
We are currently using jboss-2.4.4 with tomcat-3.2.3 and I am trying to
upgrade to tomcat 4.0.1 as we need its newer jsp features. Our
application is using jsp together with a custom xsl-tag-library based on
xalan/xerces. JBoss itself is using xerces as its xml-parser (for
configs) in our setup. I plugged it in using JAXP.
Now when I am trying to access any jsp which is using the xsl-taglibrary
(which uses xalan/xerces) under tomcat 4.0.1 I get:
-------------- snip ---------------
type Exception report

message Internal Server Error

description The server encountered an internal error (Internal Server
Error) that prevented it from fulfilling this request.

exception

javax.servlet.ServletException: Servlet.init() for servlet jsp threw
exception
...
root cause

java.lang.ClassCastException:
org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
	at
javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
...
-------------- snip ---------------

I guess the issue is somehow related to the fact that jboss is not
starting tomcat separately but using it as an own service and thus
tomcat inherits the classpath. The classpath in turn contains
../lib/xml-apis.jar:../lib/xerces.jar:../lib/xalan.jar

I've read about the issuses with xerces and tried to copy the xerces.jar
included with tomcat 4.0.1 (size 1808883 bytes) over all location of
mine; still it happens.

Now I am running out of ideas.

Stefan
-- 

 < W E B M A C H E R > 
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
      04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Tomcat on QNX with the J9VM !

Posted by Attila Szegedi <sz...@freemail.hu>.
My bet would be that you're running Tomcat on a JRE instead on a JDK, and it can't find the Java compiler (which is necessary for compiling JSPs). 

Attila.

----- Original Message ----- 
From: "Thai DANG" <th...@nextenso.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: 2002. február 4. 11:58
Subject: Tomcat on QNX with the J9VM !


> Hi all
> 
> I tried to start TOMCAT with the J9VM (oti). All seems to work fine
> (servlet, internal web server of Tomcat) except the JSP page. Did
> someone experienced such trouble ?
> 
> Many thanks.
> Thai
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
> 

Tomcat on QNX with the J9VM !

Posted by Thai DANG <th...@nextenso.com>.
Hi all

I tried to start TOMCAT with the J9VM (oti). All seems to work fine
(servlet, internal web server of Tomcat) except the JSP page. Did
someone experienced such trouble ?

Many thanks.
Thai

--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: tomcat 4.01 with jboss 2.4.4 and a webapplication using xalan/xerces

Posted by Stefan Kost <s....@webmacher.de>.
Hi again,

I did more tests and I am getting more and more sure that this is whats
called a bug (please enlighten me if I am wrong). I don't care which
xerces.jar tomcat is using, but if I have one in my
"<webapp>/WEB-INF/lib/" I definitely want to use this one (as written
below, I've even tried to use the same). As I am getting class cast
exceptions, I belived TCs classloader has some problem.
> hi hi,
> 
> Even after reading the docs (
> http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html)
> and mailing list archive (
> http://marc.theaimsgroup.com/?l=tomcat-user&r=1&w=2)
> I am still stuck with the following problem:
> We are currently using jboss-2.4.4 with tomcat-3.2.3 and I am trying to
> upgrade to tomcat 4.0.1 as we need its newer jsp features. Our
> application is using jsp together with a custom xsl-tag-library based on
> xalan/xerces. JBoss itself is using xerces as its xml-parser (for
> configs) in our setup. I plugged it in using JAXP.
> Now when I am trying to access any jsp which is using the xsl-taglibrary
> (which uses xalan/xerces) under tomcat 4.0.1 I get:
> -------------- snip ---------------
> type Exception report
> 
> message Internal Server Error
> 
> description The server encountered an internal error (Internal Server
> Error) that prevented it from fulfilling this request.
> 
> exception
> 
> javax.servlet.ServletException: Servlet.init() for servlet jsp threw
> exception
> ...
> root cause
> 
> java.lang.ClassCastException:
> org.apache.xerces.jaxp.DocumentBuilderFactoryImpl
> 	at
> javax.xml.parsers.DocumentBuilderFactory.newInstance(DocumentBuilderFactory.java:103)
> ...
> -------------- snip ---------------
> 
> I guess the issue is somehow related to the fact that jboss is not
> starting tomcat separately but using it as an own service and thus
> tomcat inherits the classpath. The classpath in turn contains
> ../lib/xml-apis.jar:../lib/xerces.jar:../lib/xalan.jar
> 
> I've read about the issuses with xerces and tried to copy the xerces.jar
> included with tomcat 4.0.1 (size 1808883 bytes) over all location of
> mine; still it happens.
> 
> Now I am running out of ideas.
> 
> Stefan
> -- 
> 
>  < W E B M A C H E R > 
> EDV+INTERNETSERVICE GMBH
> 
> POST: August Bebel Str. 69
>       04275 Leipzig
> 
> FON:  +49 341 30 34 832
> FAX:  +49 341 30 34 840
> WEB:  www.webmacher.de
> 
> 
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
> 
-- 

 < W E B M A C H E R > 
EDV+INTERNETSERVICE GMBH

POST: August Bebel Str. 69
      04275 Leipzig

FON:  +49 341 30 34 832
FAX:  +49 341 30 34 840
WEB:  www.webmacher.de


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>