1 Reply Latest reply on May 20, 2009 9:02 AM by Manish Awasthi

    org.jboss.deployment.DeploymentException:

    Gopal Saha Newbie

      Hi,
      Any help on this will be highly appreciated.I have a ear file which gets deployed properly on one m/c but gives the following error on the other m/c with the same configuration and same version of JBOSS 3.2.7.

      [org.jboss.deployment.MainDeployer] could not create deployment: file:/C:/jboss-3.2.7/server/default/tmp/deploy/tmp59586messaging.ear-contents/ejb-app.jar
      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.metadata.XmlFileLoader.getDocumentFromURL(XmlFileLoader.java:219)
      at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:137)
      at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:462)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:783)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.ja


      Thanks in advance

        • 1. unable to deploy .sar file in deploy folder..getting strange
          Manish Awasthi Newbie

          JBOSS_HOME: D:\sw\jboss-4.2.2.GA

          JAVA: C:\Program Files\Java\jdk1.5.0_14\bin\java

          JAVA_OPTS: -Dprogram.name=run.bat -server -Xms128m -Xmx512m -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000

          CLASSPATH: C:\Program Files\Java\jdk1.5.0_14\lib\tools.jar;D:\sw\jboss-4.2.2.GA\bin\run.jar

          =============================================================================

          :33:35,512 INFO [Server] Starting JBoss (MX MicroKernel)...
          :33:35,512 INFO [Server] Release ID: JBoss [Trinity] 4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)
          :33:35,512 INFO [Server] Home Dir: D:\sw\jboss-4.2.2.GA
          :33:35,512 INFO [Server] Home URL: file:/D:/sw/jboss-4.2.2.GA/
          :33:35,512 INFO [Server] Patch URL: null
          :33:35,512 INFO [Server] Server Name: default
          :33:35,512 INFO [Server] Server Home Dir: D:\sw\jboss-4.2.2.GA\server\default
          :33:35,512 INFO [Server] Server Home URL: file:/D:/sw/jboss-4.2.2.GA/server/default/
          :33:35,512 INFO [Server] Server Log Dir: D:\sw\jboss-4.2.2.GA\server\default\log
          :33:35,512 INFO [Server] Server Temp Dir: D:\sw\jboss-4.2.2.GA\server\default\tmp
          :33:35,512 INFO [Server] Root Deployment Filename: jboss-service.xml
          :33:36,168 INFO [ServerInfo] Java version: 1.5.0_14,Sun Microsystems Inc.
          :33:36,168 INFO [ServerInfo] Java VM: Java HotSpot(TM) Server VM 1.5.0_14-b03,Sun Microsystems Inc.
          :33:36,168 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
          :33:37,747 INFO [Server] Core system initialized
          :33:43,076 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
          :33:43,092 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
          :33:44,358 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
          :33:44,358 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
          :33:44,608 INFO [TransactionManagerService] Starting recovery manager
          :33:44,701 INFO [TransactionManagerService] Recovery manager started
          :33:44,701 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
          :33:50,421 INFO [EJB3Deployer] Starting java:comp multiplexer
          :34:32,664 ERROR [MainDeployer] Could not initialise deployment: file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar
          g.jboss.deployment.DeploymentException: Connection timed out: connect; - nested throwable: (java.net.ConnectException: Connection timed out: connect)
          at org.jboss.deployment.SARDeployer.init(SARDeployer.java:217)
          at org.jboss.deployment.MainDeployer.init(MainDeployer.java:872)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:809)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy9.deploy(Unknown Source)
          at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
          at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
          at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
          at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
          at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
          at $Proxy0.start(Unknown Source)
          at org.jboss.system.ServiceController.start(ServiceController.java:417)
          at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy4.start(Unknown Source)
          at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
          at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
          at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
          at java.lang.reflect.Method.invoke(Method.java:585)
          at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
          at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
          at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
          at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
          at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
          at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
          at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
          at $Proxy5.deploy(Unknown Source)
          at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
          at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
          at org.jboss.Main.boot(Main.java:200)
          at org.jboss.Main$1.run(Main.java:508)
          at java.lang.Thread.run(Thread.java:595)
          used by: java.net.ConnectException: Connection timed out: connect
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)
          at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)
          at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)
          at java.net.Socket.connect(Socket.java:520)
          at java.net.Socket.connect(Socket.java:470)
          at sun.net.NetworkClient.doConnect(NetworkClient.java:157)
          at sun.net.www.http.HttpClient.openServer(HttpClient.java:388)
          at sun.net.www.http.HttpClient.openServer(HttpClient.java:523)
          at sun.net.www.http.HttpClient.(HttpClient.java:231)
          at sun.net.www.http.HttpClient.New(HttpClient.java:304)
          at sun.net.www.http.HttpClient.New(HttpClient.java:321)
          at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:813)
          at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:765)
          at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:690)
          at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:934)
          at org.apache.xerces.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityManager.startEntity(Unknown Source)
          at org.apache.xerces.impl.XMLEntityManager.startDTDEntity(Unknown Source)
          at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
          at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
          at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
          at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
          at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)
          at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:622)
          at org.jboss.deployment.SARDeployer.init(SARDeployer.java:181)
          ... 68 more
          :34:33,367 INFO [STDOUT] no object for null
          :34:33,367 INFO [STDOUT] no object for null
          :34:33,383 INFO [STDOUT] no object for null
          :34:33,399 INFO [STDOUT] no object for {urn:jboss:bean-deployer}supplyType
          :34:33,414 INFO [STDOUT] no object for {urn:jboss:bean-deployer}dependsType
          :34:35,680 INFO [NativeServerConfig] JBoss Web Services - Native
          :34:35,680 INFO [NativeServerConfig] jbossws-native-2.0.1.SP2 (build=200710210837)
          :34:37,540 INFO [Embedded] Catalina naming disabled
          :34:37,743 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Program Files\Java\jdk1.5.0_14\bin;.;C:\WINDOWS\system32;C:\WINDOWS;C:\Program
          iles\Avaya Modular Messaging\Common;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program Files\Common Files\Roxio Shared\DLLShared\;C:\Program Files\Rational\common;C:\Program Files\Rational\ClearCase\bin;C:\Program Files\Java\jdk1.6.0_03\b
          ;C:\Program Files\QuickTime\QTSystem\;C:\Program Files\Windows Imaging\;C:\mysql\bin ;C:\Sun\SDK\bin;C:\Sun\SDK\lib\ant\bin;C:\Program Files\Java\jdk1.5.0_14\bin;D:\tool
          :34:37,978 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
          :34:37,993 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
          :34:37,993 INFO [Catalina] Initialization processed in 448 ms
          :34:37,993 INFO [StandardService] Starting service jboss.web
          :34:37,993 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.1.GA
          :34:38,040 INFO [Catalina] Server startup in 53 ms
          :34:38,493 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
          :34:39,134 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
          :34:39,447 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../deploy/jbossws.sar/jbossws-context.war/
          :34:39,916 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
          :34:41,932 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
          :34:42,447 INFO [MailService] Mail Service bound to java:/Mail
          :34:42,838 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
          :34:42,885 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
          :34:42,932 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
          :34:42,963 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
          :34:43,072 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
          :34:43,213 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
          :34:43,260 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
          :34:43,276 INFO [QuartzResourceAdapter] start quartz!!!
          :34:43,322 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
          :34:43,338 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
          :34:43,338 INFO [RAMJobStore] RAMJobStore initialized.
          :34:43,338 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
          :34:43,338 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
          :34:43,338 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
          :34:44,682 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
          :34:44,901 INFO [A] Bound to JNDI name: queue/A
          :34:44,901 INFO [B] Bound to JNDI name: queue/B
          :34:44,901 INFO [C] Bound to JNDI name: queue/C
          :34:44,901 INFO [D] Bound to JNDI name: queue/D
          :34:44,901 INFO [ex] Bound to JNDI name: queue/ex
          :34:44,916 INFO [testTopic] Bound to JNDI name: topic/testTopic
          :34:44,916 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
          :34:44,916 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
          :34:44,916 INFO [testQueue] Bound to JNDI name: queue/testQueue
          :34:44,948 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
          :34:44,979 INFO [DLQ] Bound to JNDI name: queue/DLQ
          :34:45,104 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
          :34:45,182 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
          :34:45,307 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

          - Incompletely deployed packages ---
          g.jboss.deployment.DeploymentInfo@5b604a49 { url=file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar }
          deployer: org.jboss.deployment.SARDeployer@50988
          status: null
          state: FAILED
          watch: file:/D:/sw/jboss-4.2.2.GA/server/default/deploy/TokenCounterService.sar
          altDD: null
          lastDeployed: 1242821072664
          lastModified: 1242821030671
          mbeans:


          :34:45,401 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
          :34:45,432 INFO [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
          :34:45,448 INFO [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200710221139)] Started in 1m:9s:936ms