tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédric Viaud <cedric.vi...@matrasi-tls.fr>
Subject Re: Re[2]: XML parser
Date Wed, 20 Nov 2002 16:27:36 GMT
I'am interested by more informations on this subject.

I actually use XML librairies in my /WEB-INF/lib directory, on a Tomcat
4.0.4-LE, and it works fine. May be because of the light edition.

Regards,

  Cédric

----- Original Message -----
From: "Jacob Kjome" <hoju@visi.com>
To: "Tomcat Users List" <tomcat-user@jakarta.apache.org>
Sent: Wednesday, November 20, 2002 5:25 PM
Subject: Re[2]: XML parser


> Hello Charlie,
>
> There is actually more to it.  Putting XML or DOM libraries in
> WEB-INF/lib violates the Sun classloading spec which Tomcat has been
> enforcing since the 4.0.2 release.  Now, don't ask me why the Sun
> classloading spec says what it says.  Just know that you are
> prohibited from putting XML/DOM libraries in a child classloader such
> as WEB-INF/lib.  Ask Remmy if you want an explanation.
>
> Jake
>
> Wednesday, November 20, 2002, 9:02:01 AM, you wrote:
>
> CC> do not put xerces.jar in WEB-INF/lib. It will not work there since it
is
> CC> already in /common/lib. Tomcat comes with Xerces already, so unless
you need
> CC> functionality not contained in the provided xerces.jar, you don't have
to do
> CC> anything. if you need a newer version, replace the one in /common/lib.
>
> CC> Charlie
>
> >> -----Original Message-----
> >> From: Paul_Wallace@allsolutions.com.au
> >> [mailto:Paul_Wallace@allsolutions.com.au]
> >> Sent: Wednesday, November 20, 2002 12:34 AM
> >> To: tomcat-user@jakarta.apache.org
> >> Subject: XML parser
> >>
> >>
> >> Hi,
> >>      In my effort to parse an XML file and pull out data from it's
> >> elements where I may maninpulate them, I have downloaded the
> >> Xerces.ZIP
> >> (which incidentally is 4.8 MB - expanded to 22!), extracted it to
> >> webapps/ROOT/WEB-INF/lib/. Is this the correct location? If
> >> not, where
> >> should it reside? Looking at the rest of the documentation I
> >> cannot  find
> >> any syntax simple enough to what I want to do.
> >>         What I want to do is (real simple now!), I have an XML file:
> >>
> >> <?xml version="1.0" encoding="iso-8859-1" ?>
> >> <root>
> >>         <a_tag>1st selection</a_tag>
> >>         <a_tag>2nd selection</a_tag>
> >> </root>
> >>
> >> in a JSP I want to parse the file, iterate through it extracting the
> >> element values. Perhaps storing them in a array.
> >>         So I have 3 factors here, the one (desired) not
> >> present in this
> >> email being the JSP syntax to parse and get hold of the data. Ie:
> >>
> >> <%@ page language="java" %>
> >> <html>..
> >>
> >> <%
> >>
> >> parse and acquire contents of a_tag
> >>
> >> %>
> >>
> >> ..</html>
> >>
> >> I am obviously simplifying as much as possible here. Again, all input
> >> apreciated.
> >>
> >> Paul.
> >>
> >>
> >>
> >>
> >>
> >> ;-)
> >>
> >>
> >> Yep and yep
> >>
> >> For usage in Tomcat the process of "installation" is just as you say..
> >> manually copy the jar file into either your webapps lib folder or into
> >> the global lib folder so that all your different webapps can
> >> access it.
> >> Generally it's advisable to copy it into your webapp's lib folder as
> >> this makes your webapp deployable as a standalone application (ie: no
> >> external dependencies).
> >>
> >> <yep 2> the full download includes files documentation (yep,
> >> pretty much
> >> the website docs but available offline), jar files and demos
> >> for a wide
> >> range of applications. Mind you mine (2.2.0) is only 4.8
> >> meg.. not 22 so
> >> I can't say for sure that you haven't got hold of something extra as
> >> well.
> >>
> >> It's then a case of finding out what to do with the thing
> >> you've now got
> >> access to.  To look into that further, have a look at the different
> >> demos provided and see if they give you what you want.
> >>
> >> If you find yourself still struggling a more specific question about
> >> what you're trying to achieve and where it's going wrong may evoke a
> >> more useful response.
> >>
> >> G'luck.
> >>
> >> Tref
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
> >>
>
> CC> --
> CC> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> CC> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>
>
>
> --
> Best regards,
>  Jacob                            mailto:hoju@visi.com
>
>
> --
> To unsubscribe, e-mail:
<mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:tomcat-user-help@jakarta.apache.org>
>


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message