You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Roger Wisler <rw...@hsr.ch> on 2000/11/21 15:27:59 UTC

Problems with JDOM and Tomcat

Hello
I've read you posting in the tomcat-user@jakarta.apache.org mailing
list.
I've also a troubles with the tomcat.
I use the tomcat 3.1 unter winNT and jdom-b5.

I use a class in a jsp, this class use jdom:
          DOMBuilder builder = new DOMBuilder(false);
          Document doc = builder.build(new File("test.xml"));

when it would compile, then an exception comes:
org.apache.xerces.parsers.DOMParser: org.apache.xerces.parsers.DOMParser

org.jdom.JDOMException: org.apache.xerces.parsers.DOMParser:
org.apache.xerces.parsers.DOMParser
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:194)
        at org.jdom.input.DOMBuilder.build(DOMBuilder.java:216)
        at hsr.e.bsw.xml.XMLClass.sucheMitarbeiter(XMLClass.java:41)
        at
_0002fzugriff_0002ejspzugriff_jsp_10._jspService(_0002fzugriff_0002ejspzugriff_jsp_10.jav

a:90)

I update the classpath in winNT under : control panel / systems /
environment:
%TOMCAT_HOME%\lib\jdom.jar;
And also in the file: tomcat.bat : set
CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jdom.jar

But it doesn't work.
Could you help me?

Thanks Roger Wisler

PS: For what is the jar-fiel: jdom-jdk11.jar ?

--
 _  _ ___ ___  Roger Wisler
| || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
| __ \__ \   / CH-8640 Rapperswil; Switzerland; Fax:+41 55 222 4400
|_||_|___/_|_\ EMAIL: rwisler@hsr.ch; WWW:www.hsr.ch



Re: Problems with JDOM and Tomcat

Posted by Mark Balster <ma...@hotmail.com>.
What version of Xerces do you have installed?

----- Original Message -----
From: "Roger Wisler" <rw...@hsr.ch>
To: <to...@jakarta.apache.org>
Sent: Tuesday, November 21, 2000 9:27 AM
Subject: Problems with JDOM and Tomcat


> Hello
> I've read you posting in the tomcat-user@jakarta.apache.org mailing
> list.
> I've also a troubles with the tomcat.
> I use the tomcat 3.1 unter winNT and jdom-b5.
>
> I use a class in a jsp, this class use jdom:
>           DOMBuilder builder = new DOMBuilder(false);
>           Document doc = builder.build(new File("test.xml"));
>
> when it would compile, then an exception comes:
> org.apache.xerces.parsers.DOMParser: org.apache.xerces.parsers.DOMParser
>
> org.jdom.JDOMException: org.apache.xerces.parsers.DOMParser:
> org.apache.xerces.parsers.DOMParser
>         at org.jdom.input.DOMBuilder.build(DOMBuilder.java:194)
>         at org.jdom.input.DOMBuilder.build(DOMBuilder.java:216)
>         at hsr.e.bsw.xml.XMLClass.sucheMitarbeiter(XMLClass.java:41)
>         at
>
_0002fzugriff_0002ejspzugriff_jsp_10._jspService(_0002fzugriff_0002ejspzugri
ff_jsp_10.jav
>
> a:90)
>
> I update the classpath in winNT under : control panel / systems /
> environment:
> %TOMCAT_HOME%\lib\jdom.jar;
> And also in the file: tomcat.bat : set
> CLASSPATH=%CLASSPATH%;%TOMCAT_HOME%\lib\jdom.jar
>
> But it doesn't work.
> Could you help me?
>
> Thanks Roger Wisler
>
> PS: For what is the jar-fiel: jdom-jdk11.jar ?
>
> --
>  _  _ ___ ___  Roger Wisler
> | || / __| _ \ HSR Hochschule Rapperswil; Oberseestrasse 10;
> | __ \__ \   / CH-8640 Rapperswil; Switzerland; Fax:+41 55 222 4400
> |_||_|___/_|_\ EMAIL: rwisler@hsr.ch; WWW:www.hsr.ch
>
>
>