4 Replies Latest reply on Feb 7, 2003 3:36 PM by div_

    Relative URI

    div_

      I am new to Jboss and, I am attempting to deploy a simple application (jar file) per instructions on this website: http://users.pandora.be/bert.torfs/j2ee.pdf

      after moving the jar file to this folder: C:\jboss-3.0.4_tomcat-4.1.12\server\default\deploy; I receive the following errors:

      Relative URI ""; can not be resolved without a base URI.:-1:2
      org.xml.sax.SAXParseException: Relative URI ""; can not be resolved without a base URI.
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)

      I am using the Eclipse IDE with the integrated Tomcat/Jboss plugins. Any advice would be appreciated, thank you in advance.

        • 1. Re: Relative URI

          this is an XML parser problem, there's something wrong with the deployment descriptor files (could be a charset problem, could be any number of other XML related problems)

          • 2. Re: Relative URI
            div_

            Yes, I gathered that. Here are the xml files, any ideas?

            <?xml version="1.0" encoding="ISO-8859-1"?>
            <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.0//EN"
            "http://www.jboss.org/j2ee/dtd/jboss_3_0.dtd">

            <enterprise-beans>

            <ejb-name>HelloWorldServer</ejb-name><!--Matches ejb-jar.xml -->
            <jndi-name>ejb/HelloServer?</jndi-name>

            </enterprise-beans>


            =========================================================
            <?xml version="1.0" encoding="UTF-8"?>
            <!DOCTYPE root PUBLIC "" "">

            <ejb-jar>
            < enterprise-beans>
            <!-- Session Beans -->

            helloWorld Session bean example.
            <display-name>HelloWorldServerDisplayName</display-name>
            <ejb-name>HelloWorldServer</ejb-name> <!--Matches with Jboss.xml -->
            org.mikesmall.tutorialserver.HelloServerHome
            org.mikesmall.tutorialserver.HelloServer
            <ejb-class>org.mikesmall.tutorialserver.HelloServerBean</ejb-class>
            <session-type>Stateless</session-type>
            <transaction-type>Container</transaction-type>

            </enterprise-beans>
            </ejb-jar>

            • 3. Re: Relative URI



              <!DOCTYPE root PUBLIC "" ""> is wrong

              use <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd"> instead

              • 4. Re: Relative URI
                div_

                Thank you so much that did the trick! Guess I need to get my XML book out :)