0 Replies Latest reply on Apr 21, 2004 11:23 AM by cm_jboss

    Connection Timed Out: error

    cm_jboss Newbie

      I am trying to deploy a .war file to JBoss. The war is very simple. It contains only a .jsp file and a web.xml and jboss-web.xml. Here is the war structure..

      0 Wed Apr 21 11:21:20 EDT 2004 META-INF/
       71 Wed Apr 21 11:21:20 EDT 2004 META-INF/MANIFEST.MF
       0 Tue Apr 20 13:36:00 EDT 2004 WEB-INF/
       189 Wed Apr 21 11:20:58 EDT 2004 WEB-INF/web.xml
       133 Wed Apr 21 11:21:10 EDT 2004 WEB-INF/jboss-web.xml
       38 Wed Apr 21 11:20:36 EDT 2004 index.jsp
      


      Here is the web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app PUBLIC '-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN' 'http://java.sun.com/dtd/web-app_2_3.dtd'>
      <web-app>
      </web-app>
      


      Here is the jboss-web.xml
      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-web SYSTEM "http://www.jboss.org/j2ee/dtd/jboss-web_3_2.dtd">
      <jboss-web/>
      


      Here is the .jsp
      <html><body>Hello World!</body></html>


      I place the .war file in the server/default/deploy directory and I receive the following error...

      2004-04-21 12:06:50,722 ERROR [org.jboss.web.tomcat.tc4.EmbeddedTomcatService] Problem in init
      org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:323)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: java.net.ConnectException: Connection timed out: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
       at java.net.Socket.connect(Socket.java:452)
       at java.net.Socket.connect(Socket.java:402)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
       at sun.net.www.http.HttpClient.New(HttpClient.java:339)
       at sun.net.www.http.HttpClient.New(HttpClient.java:320)
       at sun.net.www.http.HttpClient.New(HttpClient.java:315)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
       at java.net.URL.openStream(URL.java:913)
       at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:740)
       at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:700)
       at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:258)
       at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:811)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
       at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
       at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
       at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       ... 17 more
      2004-04-21 12:06:50,722 WARN [org.jboss.util.NestedThrowable] Duplicate throwable nesting of same base type: class org.jboss.deployment.DeploymentException is assignable from: class org.jboss.deployment.DeploymentException
      2004-04-21 12:06:50,722 ERROR [org.jboss.deployment.MainDeployer] Could not initialise deloyment: file:/C:/jboss-3.2.3/server/default/deploy/siperian.war
      org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect); - nested throwable: (org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect))
       at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:350)
       at org.jboss.deployment.MainDeployer.init(MainDeployer.java:696)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:632)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
       at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
       at java.lang.reflect.Method.invoke(Method.java:324)
       at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:546)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
       at $Proxy6.deploy(Unknown Source)
       at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:302)
       at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:476)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:212)
       at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:191)
      Caused by: org.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
       at org.jboss.web.AbstractWebContainer.init(AbstractWebContainer.java:323)
       ... 15 more
      Caused by: java.net.ConnectException: Connection timed out: connect
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
       at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
       at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
       at java.net.Socket.connect(Socket.java:452)
       at java.net.Socket.connect(Socket.java:402)
       at sun.net.NetworkClient.doConnect(NetworkClient.java:139)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:402)
       at sun.net.www.http.HttpClient.openServer(HttpClient.java:618)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:306)
       at sun.net.www.http.HttpClient.<init>(HttpClient.java:267)
       at sun.net.www.http.HttpClient.New(HttpClient.java:339)
       at sun.net.www.http.HttpClient.New(HttpClient.java:320)
       at sun.net.www.http.HttpClient.New(HttpClient.java:315)
       at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:512)
       at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:489)
       at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:617)
       at java.net.URL.openStream(URL.java:913)
       at org.apache.xerces.impl.XMLEntityManager.startEntity(XMLEntityManager.java:740)
       at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(XMLEntityManager.java:700)
       at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScannerImpl.java:258)
       at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(XMLDocumentScannerImpl.java:811)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:333)
       at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:529)
       at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardParserConfiguration.java:585)
       at org.apache.xerces.parsers.XMLParser.parse(XMLParser.java:147)
       at org.apache.xerces.parsers.DOMParser.parse(DOMParser.java:221)
       at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:201)
       at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:293)
       ... 17 more
      


      No matter what I do, the .war file wont' deploy. Does anyone have any suggestions?