I'm using Visualage with tomcat patch and the following is working fine....
I have also added the folder in the classpath...
try some permutations and u'll get it done...

<!DOCTYPE struts-config PUBLIC
          "-//Apache Software Foundation//DTD Struts Configuration 1.0//EN"
          "http://localhost:8080/examples/myproj/struts-config_1_0.dtd";>

Regards,
Satyen

-----Original Message-----
From: Thomas Burns [mailto:[EMAIL PROTECTED]]
Sent: Monday, June 25, 2001 5:03 PM
To: [EMAIL PROTECTED]
Subject: More on running Tomcat+Struts w/o internet connection


My coworker posted the original question in the "Running Tomcat+Struts w/o
internet connection" thread, but since I'm the one trying to overcome this
particular problem, I thought I'd add some more detail.  First off, we're
using Tomcat 3.2.1 or 3.2.2 (not sure) and Struts 1.0.

The DOCTYPE line of the struts-config.xml by default looks like:

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN"
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";>

If I run tomcat disconnected from the network I get the following:

resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
Not registered, use system identifier
Parse Fatal Error at line 3 column -1: External entity not found:
http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd.

whereupon Tomcat barfs and stops loading.  It was suggested to use a
'file://' style URL to fix this.  That works fine, (i.e.
'file:///c:/foo/bar/struts-config_1_0.dtd') but it demands an absolute file
path.  Any attempt to use a relative path (such as
'file://struts-config_1_0.dtd') has failed with the same 'external entity
not found' error as above.  I've tried various permutations, but either it
doesn't work, or I can't figure out what the current working directory is
that the URL will base itself off of (tried tomcat/bin, webapps,
webapps/myapp, webapps/myapp/WEB-INF).

So, how about specifying the file directly, as in:

<!DOCTYPE struts-config PUBLIC "-//Apache Software Foundation//DTD Struts
Configuration 1.0//EN" "struts-config_1_0.dtd">

Well, here's the resulting error:

Parse Fatal Error at line 3 column -1: Relative URI "struts-config_1_0.dtd";
can not be resolved without a document URI.

Even though XML Spy thinks this is OK, obviously tomcat wants a little more
information.  I poked around in the XML Bible, but couldn't find anything to
tip me off as to what to include in the XML that would make this error go
away.

All I want to do is have the struts DTD be a local file, referenced with
some sort of resolveable relative path.  An absolute path just can't be
worked with, and we cannot guarantee a network connection.  Any more ideas?

Thanks!

t
--
Thomas Burns
RiskMetrics Group
[EMAIL PROTECTED]
734.945.6428


------------------------------------------------------------------------------
The information in this Internet email is confidential and may be 
legally privileged. It is intended solely for the addressee. Access 
to this Internet email by anyone else is unauthorised.

If you are not the intended recipient, any disclosure, copying, distribution
or any action taken or omitted to be taken in reliance on it, is prohibited
and may be unlawful. When addressed to our clients any opinions or advice
contained in this Internet email are subject to the terms and conditions
expressed in any applicable governing ING Barings' terms of business or
client engagement letter.

Visit us at www.ingbarings.com

------------------------------------------------------------------------------

Reply via email to