Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > XML in Tomcat

Reply
Thread Tools

XML in Tomcat

 
 
Juan
Guest
Posts: n/a
 
      08-04-2005
Hi,

Does anyone know how to configure the XML catalog in Tomcat to
avoid loading remote DTD's everytime a XML file is parsed ? I've been
reading the docs at apache.org without success.

Any hint would be really welcome.

Thanks in advance,

- Juan

 
Reply With Quote
 
 
 
 
Harry Bosch
Guest
Posts: n/a
 
      08-04-2005
Hmm, I am trying to remember this issue. I had it once, a long time
ago when I was working behind a proxy and couldn't test my freakin'
code because both weblogic and tomcat wanted to validate my docs.

But, alas I don't remember how you turn it off! It's a SAX feature
(part of the api) that you can turn on and off in code, and I believe
as a property in some file in your classpath.

Here is a starting point... I'll keep looking.
http://xml.apache.org/xerces-j/features.html

 
Reply With Quote
 
 
 
 
Harry Bosch
Guest
Posts: n/a
 
      08-05-2005
Well, I really can't think of if I actually "Fixed" the problem or just
went ahead and changed the xml file to reference a local copy and not
the remote copy... I found a discussion about this sort of issue here:
http://www.mail-archive.com/struts-u.../msg03510.html


I seem to recall this also has a problem while I was using ANT. There
is a task there where you have a remote name resolved locally.

Yeah, it was an ejbjar task where you could do the following:
<dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN" location="${dtd.ejb}" />

I know that doesn't help, but well, it's part of the plan.

 
Reply With Quote
 
Juan
Guest
Posts: n/a
 
      08-08-2005
Harry Bosch wrote:
> Well, I really can't think of if I actually "Fixed" the problem or just
> went ahead and changed the xml file to reference a local copy and not
> the remote copy... I found a discussion about this sort of issue here:
> http://www.mail-archive.com/struts-u.../msg03510.html
>
> I seem to recall this also has a problem while I was using ANT. There
> is a task there where you have a remote name resolved locally.
>
> Yeah, it was an ejbjar task where you could do the following:
> <dtd publicId="-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
> 2.0//EN" location="${dtd.ejb}" />


Harry,

Thank you for your help. Before trying to edit the XML file using other
tools ,I'd like to try to solve this in a "correct" way. That is,
providing a XML catalog to Tomcat so that it can resolve the local DTD
using its key.

So far I didn't find a solution, though.

Regards,

- Juan

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Tomcat 5 runs what Tomcat 4 doesn't after modifying WEB.XML vunet.us@gmail.com Java 5 04-18-2007 12:41 AM
Different results parsing a XML file with XML::Simple (XML::Sax vs. XML::Parser) Erik Wasser Perl Misc 5 03-05-2006 10:09 PM
need tomcat's web.xml and server.xml adamR Java 4 07-16-2004 08:52 PM
Apache Tomcat 4.1.24: problem with Tomcat Administration link Christos Gravvanis Java 0 07-07-2004 05:21 PM
[TOMCAT] Tomcat crashes %=zerointeractive.it% Java 1 01-22-2004 12:08 PM



Advertisments