3 Replies Latest reply on Jul 29, 2003 6:35 PM by rp0428

    Deployment Error

    Mike Newbie

      Hi, I am getting the error below when deploying my ear. This seams to work fine when deploying on WinXP. The problem occurs when deploying on Linux.

      If I pull apart the .ear file and just put the .ear and just put the pce-ejb.jar and the pce-web.jar files into the deploy directory then things seem to work fine, but the access URL is "http://myhost:8080/my-web".

      That tells me that there is something wrong with my application.xml file. But I can see it...

      I am deploying to the default/deploy directory.

      Thanks in advance!
      mike.


      application.xml:
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!DOCTYPE application PUBLIC '-//Sun Microsystpce, Inc.//DTD J2EE Application 1.2//EN' 'http://java.sun.com/j2ee/dtds/application_1_2.dtd'>


      <display-name>PCE</display-name>
      PCE

      pce-ejb.jar



      <web-uri>pce-web.war</web-uri>
      <context-root>/</context-root>







      server.log snips:

      2003-06-20 14:58:12,853 INFO [org.jboss.deployment.MainDeployer] Starting deplo
      yment of package: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.
      ear
      2003-06-20 14:58:12,853 DEBUG [org.jboss.deployment.MainDeployer] Starting deplo
      yment (init step) of package at: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/defa
      ult/deploy/pce.ear
      2003-06-20 14:58:13,083 DEBUG [org.jboss.deployment.MainDeployer] using deployer
      org.jboss.deployment.EARDeployer@1829e6f
      2003-06-20 14:58:13,084 INFO [org.jboss.deployment.EARDeployer] Init J2EE appli
      cation: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.ear
      2003-06-20 14:58:13,135 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.Ne
      stedThrowable.parentTraceEnabled=true
      2003-06-20 14:58:13,138 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.Ne
      stedThrowable.nestedTraceEnabled=false
      2003-06-20 14:58:13,138 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.Ne
      stedThrowable.detectDuplicateNesting=true
      2003-06-20 14:58:13,138 WARN [org.jboss.util.NestedThrowable] Duplicate throwab
      le nesting of same base type: class org.jboss.deployment.DeploymentException is
      assignable from: class org.jboss.deployment.DeploymentException
      2003-06-20 14:58:13,138 DEBUG [org.jboss.deployment.MainDeployer] Watching new f
      ile: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.ear
      2003-06-20 14:58:13,142 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner
      ] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedUR
      L@ea838674{ url=file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.ea
      r, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: exception in init of file:/opt/jboss-3
      .2.1_tomcat-4.1.24/server/default/deploy/pce.ear; - nested throwable: (org.jboss
      .deployment.DeploymentException: java.sun.com; - nested throwable: (java.net.Unk
      nownHostException: java.sun.com))
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:637)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
      tScanner.java:302)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
      canner.java:476)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
      doScan(AbstractDeploymentScanner.java:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(A
      bstractDeploymentScanner.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
      92)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
      ler.java:966)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:392)
      at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy5.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:226)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:832)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:640)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:597)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
      java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
      sorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
      nDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy6.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:365)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:272)
      at org.jboss.Main.boot(Main.java:150)
      at org.jboss.Main$1.run(Main.java:388)
      at java.lang.Thread.run(Thread.java:534)
      Caused by: org.jboss.deployment.DeploymentException: java.sun.com; - nested thro
      wable: (java.net.UnknownHostException: java.sun.com)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
      at org.jboss.deployment.EARDeployer.init(EARDeployer.java:69)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:694)
      ... 48 more
      Caused by: java.net.UnknownHostException: java.sun.com
      at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:153)
      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.(HttpClient.java:306)
      at sun.net.www.http.HttpClient.(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(HttpURLConne
      ction.java:510)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection
      .java:487)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCon
      nection.java:615)
      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(XMLEntityManag
      er.java:700)
      at org.apache.xerces.impl.XMLDTDScannerImpl.setInputSource(XMLDTDScanner
      Impl.java:258)
      at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(
      XMLDocumentScannerImpl.java:811)
      at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(XM
      LDocumentFragmentScannerImpl.java:333)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.java:529)
      at org.apache.xerces.parsers.StandardParserConfiguration.parse(StandardP
      arserConfiguration.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)
      ... 51 more
      2003-06-20 14:58:13,149 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner
      ] Watch URL for: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.e
      ar -> file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.ear

      ....

      2003-06-20 14:58:21,791 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner
      ] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
      Cause: Incomplete Deployment listing:
      Packages waiting for a deployer:

      Incompletely deployed packages:
      [org.jboss.deployment.DeploymentInfo@ea838674 { url=file:/opt/jboss-3.2.1_tomcat
      -4.1.24/server/default/deploy/pce.ear }
      deployer: org.jboss.deployment.EARDeployer@1829e6f
      status: null
      state: FAILED
      watch: file:/opt/jboss-3.2.1_tomcat-4.1.24/server/default/deploy/pce.ear
      lastDeployed: 1056121093138
      lastModified: 1056121093000
      mbeans:
      ]MBeans waiting for classes:

      MBeans waiting for other MBeans:


      ....