Dinesh,

We encountered probably a similar problem with iPlanet webserver 6.0 (behind
a firewall) our solution was as follows:

The original:
<!--DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
  "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd"-->

Our change, we directed the dtd reference to our struts.jar file of our
application (#MyApp#):
<!DOCTYPE web-app
  PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"
 
"jar:file:///data/webserv/data/servlets/#MyApp#/WEB-INF/lib/struts.jar!/org/
apache/struts/resources/web-app_2_2.dtd">

And it workes fine for us, would be nice if this is going to be of some help
for you.

Ciao, 
Frank Bacco

-----Oorspronkelijk bericht-----
Van: Dinesh K B [mailto:[EMAIL PROTECTED]]
Verzonden: maandag 10 september 2001 17:19
Aan: [EMAIL PROTECTED]
Onderwerp: WL5.1(sp8) Web Application 2.2 dtd


I'm getting this error while running my struts application (deployed as
a WAR) in Weblogic 5.1(sp 8).

[ServletEntityResolver] : Could not resolve entity '-//Sun Microsystems,
Inc.//DTD Web Application 2.2//EN'.  Check your dtd reference.
Mon Sep 10 20:22:35 GMT+05:30 2001:<E> <HTTP> Error reading Web
application 'c:/jakarta/webapps/joinStruts.war'

I'm not able to run my application at all after this.

Basically the XML parser (Xerces) with Weblogic doesn't like the
definition in the web.xml file. I tried changing it to '-//Sun
Microsystems, Inc.//DTD Web Application 1.2//EN'. 
This works well till the time the ActionServlet kicks up. The Xerces
parser then returns a similar error, for the 1.2//EN dtd.

Is there any fix for this, is it possible for Xerces to find the 1.2//EN
dtd locally and not throw the exception ? I have xerces.jar in
WEBLOGIC_CLASSPATH.

Thanks,
Dinesh

Reply via email to