3 Replies Latest reply on Feb 11, 2002 10:23 AM by andyhart

    External entity not  found

    sundaram

      [AutoDeployer] Auto deploy of
      I am trying to deploy the petsotre example. When I deploy the .ear file, its giving the External entiry not found error.

      org.jboss.deployment.J2eeDeploymentException: Error in parsing application.xml: External entity not found: "http://java.sun.com/dtd/application_1_3.dtd".

      Do i need to download the application_1_3.dtd file.

      Thanks
      -SR

      file:/D:/jboss/jboss/deploy/petstore.ear

      [J2EE Deployer Default] Deploy J2EE application: file:/D:/jboss/jboss/deploy/petstore.ear

      [J2eeDeployer] Create application petstore.ear

      [Default] External entity not found: "http://java.sun.com/dtd/application_1_3.dtd".:-1:3

      [Default] java.net.NoRouteToHostException: Operation timed out: no further information

      [Default] at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3035)

      [Default] at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.java:2723)

      [Default] at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1154)

      [Default] at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:488)

      [Default] at org.apache.crimson.parser.Parser2.parse(Parser2.java:304)

      [Default] at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:433)

      [Default] at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:179)

      [Default] at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)

      [Default] at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:245)

      [Default] at org.jboss.deployment.Installer.execute(Installer.java:208)

      [Default] at org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:101)

      [Default] at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:418)

      [Default] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:203)

      [Default] at java.lang.reflect.Method.invoke(Native Method)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [Default] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [Default] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)

      [Default] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [Default] at java.lang.Thread.run(Thread.java:484)

      [AutoDeployer] Deployment failed:file:/D:/jboss/jboss/deploy/petstore.ear

      [AutoDeployer] org.jboss.deployment.J2eeDeploymentException: Error in parsing application.xml: External entity not found: "http://java.sun.com/dtd/application_1_3.dtd".

      [AutoDeployer] at org.jboss.deployment.Installer.execute(Installer.java:218)

      [AutoDeployer] at org.jboss.deployment.InstallerFactory.install(InstallerFactory.java:101)

      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.installApplication(J2eeDeployer.java:418)

      [AutoDeployer] at org.jboss.deployment.J2eeDeployer.deploy(J2eeDeployer.java:203)

      [AutoDeployer] at java.lang.reflect.Method.invoke(Native Method)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)

      [AutoDeployer] at com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)

      [AutoDeployer] at org.jboss.ejb.AutoDeployer.deploy(AutoDeployer.java:379)

      [AutoDeployer] at org.jboss.ejb.AutoDeployer.run(AutoDeployer.java:217)

      [AutoDeployer] at java.lang.Thread.run(Thread.java:484)

        • 1. Re: External entity not  found
          cmouttet

          Do you have connection to the internet while deploying?

          You could download the file and put it to e.g. %JBOSS_HOME%/bin/dtd. Change the DTD definition (starts with "<!DOCTYPE application..." in the application.xml file to the new location. A web server process is started at port 8083 (default). That http://java.sun... can now be changed to http://localhost/dtd/application_1_3.dtd.

          Another possibility: Remove the whole DTD definition in the application.xml file. Drawback: the app server cannot check the xml file anymore.

          Chris

          • 2. Re: External entity not  found
            masticol

            I'm having the same problem. I think it's because we're
            using a proxy and the Apache parser doesn't know to use
            the proxy to resolve external references.

            Any way to set up the proxy configuration?

            Thanks.

            • 3. Re: External entity not  found
              andyhart

              I'm having this issue as well. I'm running JBoss 2.4.3 and I am connected to the internet.

              Are you suggesting that I create the %JBOSS_HOME%/bin/dtd directory and put it there?

              If so, do I need to export or share this directory in any way?

              - Andy