0 Replies Latest reply on Nov 5, 2002 7:46 AM by Renjith K. V

    DTD - java.net.ConnectException: Connection timed out

    Renjith K. V Newbie


      I deployed my ejbs in the JBoss server,
      When deploying/at the time of JBoss start up i got error messages when there is BAD INTERNET CONNECTION.

      It works fine when net connection is fine,

      how can i remove exception occuring in server.?

      Actually server tries to get DTDs from sun's site ,
      how can i point to dtds present in JBoss directories ?
      or prevent server from going to suns site for dtds ?

      error i got is like this

      ERROR [XmlFileLoader] External entity not found: "http://java.sun.c
      om/j2ee/dtds/ejb-jar_1_1.dtd".:-1:3
      java.net.ConnectException: Connection timed out: connect
      at org.apache.crimson.parser.Parser2.fatal(Parser2.java:3182)
      at org.apache.crimson.parser.Parser2.externalParameterEntity(Parser2.jav
      a:2870)
      at org.apache.crimson.parser.Parser2.maybeDoctypeDecl(Parser2.java:1167)

      at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:489)
      at org.apache.crimson.parser.Parser2.parse(Parser2.java:305)
      at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:442)

      at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl
      .java:185)
      at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:86)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:257)
      at org.jboss.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.jav
      a:226)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:147)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:321)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:755)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)