Hi,

We have being using struts for a while now. We got it running on VAJ 3.5.3 .
Also, on Websphere 3.5.3 on NT box.  But now when time for actual deployment
came ( which is on AIX Box ) , struts is giving a hard time . We are getting
following error :

[01.08.03 16:12:21:326 EDT] 6a64e3f8 WebGroup      A SRVE0091I: [Servlet
LOG]: "action: Initializing configuration from resource path
/WEB-INF/struts-config.xml"
register('-//Apache Software Foundation//DTD Struts Configuration 1.0//EN',
'classloader:/disk1/test/test/struts-example/servlets/org/apache/struts/reso
urces/struts-config_1_0.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN',
'classloader:/disk1/test/test/struts-example/servlets/org/apache/struts/reso
urces/web-app_2_2.dtd'
register('-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN',
'classloader:/disk1/test/test/struts-example/servlets/org/apache/struts/reso
urces/web-app_2_3.dtd'
resolveEntity('-//Apache Software Foundation//DTD Struts Configuration
1.0//EN', 'http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd')
 Resolving to alternate DTD
'classloader:/disk1/test/test/struts-example/servlets/org/apache/struts/reso
urces/struts-config_1_0.dtd'
Parse Fatal Error at line 5 column -1: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd";.
java.net.MalformedURLException: null: java.lang.NullPointerException
        at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
        at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506)
        at com.sun.xml.parser.Parser.maybeDoctypeDecl(Parser.java:1137)
        at com.sun.xml.parser.Parser.parseInternal(Parser.java:481)
        at com.sun.xml.parser.Parser.parse(Parser.java:284)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:155)
        at javax.xml.parsers.SAXParser.parse(SAXParser.java:77)
        at org.apache.struts.digester.Digester.parse(Digester.java:755)
        at
org.apache.struts.action.ActionServlet.initMapping(ActionServlet.java:1331)
        at
org.apache.struts.action.ActionServlet.init(ActionServlet.java:465)
        at javax.servlet.GenericServlet.init(GenericServlet.java:258)

We completely followed the steps of running the struts example on the
Struts apache web site. Also, tried   "In the DOCTYPE declaration, change
the word PUBLIC to SYSTEM and completely remove the line that reads "-//Sun
Microsystems, Inc.//DTD Web Application 2.2//EN" from web.xml and remove
"-//Apache Software Foundation//DTD Struts Configuration 1.0//EN" from
struts-config.xml. " step as mentioned there but then it says  DTD not
registered.

We have tried lots of work around but nothing worked till now. Have anyone
tried the same & got it working. Please let us know. Struts version used is
1.0 ( final release).

Its urgent !

Thanks, in advance
Shipra Jain

Reply via email to