| Author |
Relative URI "-//Sun Microsystems, Inc.//DTDWeb Application 2.3//EN"; can not be reso
|
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 494
|
|
I am rewritting my web.xml file so that it points at a local web-app instead of the jboss web-app: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE web-app SYSTEM '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'file:///C:/PanEuro-jboss-3.0.6/docs/dtd/web-app_2_3.dtd'> <--!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://www.jboss.org/j2ee/dtd/web-app_2_3.dtd'--> <web-app> <display-name>PanEuropean</display-name> <listener> <listener-class>DoubleHelix.PanEurope.ContextListener</listener-class> </listener> I am getting the following error : 11:25:37,679 ERROR [XmlFileLoader] Relative URI "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"; can not be resolved without a document URI.:-1:2 org.xml.sax.SAXParseException: Relative URI "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"; can not be resolved without a document URI. at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3108) at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3102) at org.apache.crimson.parser.Parser2.resolveURI(Parser2.java:2700) at org.apache.crimson.parser.Parser2.maybeExternalID(Parser2.java:2672) at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1117) Thanks for any help Tony
|
 |
Tony Evans
Ranch Hand
Joined: Jun 29, 2002
Posts: 494
|
|
Fixed by experimentation : <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "file:///C:/PanEuro-jboss-3.0.6/docs/dtd/jboss-web_3_0.dtd"> <!--DOCTYPE jboss-web PUBLIC "-//JBoss//DTD Web Application 2.3V2//EN" "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd"--> <jboss-web> <resource-ref> <res-ref-name>jdbc/PanEuropean</res-ref-name> <jndi-name>java:/OracleDS</jndi-name> </resource-ref> </jboss-web> would welcome any explanation of what the problem was and how this fixed it. Also how would it need to be coded to operate in a UNIX environment. Thanks for any help Tony
|
 |
Jeff Shelley
Ranch Hand
Joined: May 21, 2003
Posts: 70
|
|
|
looks like the commented out line in the first example is incorrect for comment syntax. Could that have been the problem?
|
It's almost Friday
|
 |
 |
|
|
subject: Relative URI "-//Sun Microsystems, Inc.//DTDWeb Application 2.3//EN"; can not be reso
|
|
|