File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JBoss and the fly likes Relative URI Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » JBoss
Reply Bookmark "Relative URI "-//Sun Microsystems, Inc.//DTDWeb Application 2.3//EN"; can not be reso" Watch "Relative URI "-//Sun Microsystems, Inc.//DTDWeb Application 2.3//EN"; can not be reso" New topic
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
 
Threads others viewed
Depployed in ROOT but error in webapps
Error in "web-app" in deployment descriptor
According to TLD or attribute directive in tag file, attribute items does not accept any expressions
[WSAD] jndi problem with java client
ServletContextListener Deployment
IntelliJ Java IDE