You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Rautenberg, Stefan" <St...@dresdner-bank.com> on 2000/11/21 09:54:33 UTC

DTD - Errors

Hi Craig, hi all,


Thanks for the answers concerning the "cannot load application resources"
message we got last week.
Mistake was definitely on our sid :-((, we hat a duplicate struts.jar in the
parent directory.

Now we are some steps further, but unfortunately got another problem now.

In the new config file struts-config it seems the DTD cannot be resolved.

Our log file (Jrun 3.0) says 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 5 column -1: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd".
org.xml.sax.SAXParseException: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd".
	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) ...

and ...


... 11/21 09:49:27 info (JRun) Loading file
11/21 09:49:27 info (JRun) action: init
11/21 09:49:28 info (JRun) action: Loading application resources from
resource ApplicationResources
11/21 09:49:28 info (JRun) action: Initializing configuration from resource
path /WEB-INF/struts-config.xml
11/21 09:49:29 error (JRun) Could not pre-load servlet: action
[javax.servlet.ServletException: Parsing error processing resource path
/WEB-INF/struts-config.xml]
[1]org.xml.sax.SAXParseException: External entity not found:
"http://jakarta.apache.org/struts/dtds/struts-config_1_0.dtd".
	at com.sun.xml.parser.Parser.fatal(Parser.java:2817)
	at
com.sun.xml.parser.Parser.externalParameterEntity(Parser.java:2506) ...



Calling the DTD itself originally in the Browser (IE 5 or 5.5) we get the
following message:


Cannot have a DTD declaration outside of a DTD. Line 26, Position 12 
<!ENTITY % BeanName "CDATA">
-----------^




Did someone have this problem already ?
Could this be a problem in the DTD or maybe do we have again internal
mistakes ... ?


Thanks again for everything that helps.

Stefan