4 Replies Latest reply on Jul 17, 2003 6:07 AM by wdjunai

    Deoploying EAR file

    wdjunai

      I have problem deploying an ear file.
      My ear contain a ejb jar file and a webapps that is not packed as war.

      Anyway, while deploying I got this exception, not much help on what's wrong...and wondering if anybody know what this is about...

      and I already tried taken out the webapp, and trim down the ejb-jar.xml and jboss.xml to just 1 session bean...and still the same error.

      Thanks in advance for any input.

      Here are the log:

      2003-07-16 17:39:14,553 DEBUG [org.jboss.deployment.MainDeployer] End deployment start on package: jmx-console.war
      2003-07-16 17:39:14,553 INFO [org.jboss.deployment.MainDeployer] Deployed package: file:/home/jboss/jboss-3.2.1/server/his/deploy/jmx-console.war/
      2003-07-16 17:39:14,566 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/home/jboss/jboss-3.2.1/server/his/deploy/jmx-console.war/ -> file:/home/jboss/jboss-3.2.1/server/his/deploy/jmx-console.war/WEB-INF/web.xml
      2003-07-16 17:39:14,566 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:14,568 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:14,568 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.EARDeployer@148662
      2003-07-16 17:39:14,568 INFO [org.jboss.deployment.EARDeployer] Init J2EE application: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:14,612 DEBUG [org.jboss.deployment.EARDeployer] Deployment Info: org.jboss.deployment.DeploymentInfo@338cb263 { url=file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/ }
      deployer: null
      status: null
      state: CONSTRUCTED
      watch: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/
      lastDeployed: 0
      lastModified: 0
      mbeans:
      , isDirectory: true
      2003-07-16 17:39:14,613 DEBUG [org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: javax.management.Notification[source=jboss.j2ee:service=EARDeployer,type=org.jboss.deployment.SubDeployer.init,sequenceNumber=3,timeStamp=1058348354613,message=null,userData=org.jboss.deployment.DeploymentInfo@efc51013 { url=file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/ }
      deployer: org.jboss.deployment.EARDeployer@148662
      status: null
      state: INIT_DEPLOYER
      watch: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/META-INF/application.xml
      lastDeployed: 0
      lastModified: 0
      mbeans:
      ]
      2003-07-16 17:39:14,613 DEBUG [org.jboss.deployment.DeploymentInfo] createLoaderRepository from config: LoaderRepositoryConfig(repositoryName: JMImplementation:service=LoaderRepository,name=Default, repositoryClassName: null, configParserClassName: null, repositoryConfig: null)
      2003-07-16 17:39:14,613 DEBUG [org.jboss.mx.loading.UnifiedClassLoader] New jmx UCL with url file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:14,613 DEBUG [org.jboss.mx.loading.UnifiedLoaderRepository3] Adding org.jboss.mx.loading.UnifiedClassLoader3@c5122f{ url=file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/ ,addedOrder=0}
      2003-07-16 17:39:14,968 DEBUG [org.jboss.deployment.MainDeployer] found 1 subpackages of file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:14,968 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/
      2003-07-16 17:39:14,968 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.ejb.EJBDeployer@12b3349
      2003-07-16 17:39:15,264 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.parentTraceEnabled=true
      2003-07-16 17:39:15,265 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.nestedTraceEnabled=false
      2003-07-16 17:39:15,265 DEBUG [org.jboss.util.NestedThrowable] org.jboss.util.NestedThrowable.detectDuplicateNesting=true
      2003-07-16 17:39:15,266 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
      2003-07-16 17:39:15,268 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/
      2003-07-16 17:39:15,268 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
      2003-07-16 17:39:15,275 DEBUG [org.jboss.deployment.MainDeployer] Watching new file: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/
      2003-07-16 17:39:15,284 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner] Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedURL@efc51013{ url=file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/, deployedLastModified=0 }
      org.jboss.deployment.DeploymentException: exception in init of file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/; - nested throwable: (org.jboss.deployment.DeploymentException: exception in init of file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/; - nested throwable: (org.jboss.deployment.DeploymentException: Connection refused; - nested throwable: (java.net.ConnectException: Connection refused)))
      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.GeneratedMethodAccessor15.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:549)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177)
      at $Proxy7.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:200)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:273)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      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:324)
      at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.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(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: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(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: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: exception in init of file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/; - nested throwable: (org.jboss.deployment.DeploymentException: Connection refused; - nested throwable: (java.net.ConnectException: Connection refused))
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:720)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:714)
      ... 48 more
      Caused by: org.jboss.deployment.DeploymentException: Connection refused; - nested throwable: (java.net.ConnectException: Connection refused)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:316)
      at org.jboss.metadata.XmlFileLoader.getDocument(XmlFileLoader.java:247)
      at org.jboss.ejb.EJBDeployer.init(EJBDeployer.java:388)
      at org.jboss.deployment.MainDeployer.init(MainDeployer.java:694)
      ... 49 more
      Caused by: java.net.ConnectException: Connection refused
      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.(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(HttpURLConnection.java:510)
      at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:487)
      at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.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(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)
      ... 52 more
      2003-07-16 17:39:15,327 DEBUG [org.jboss.deployment.scanner.URLDeploymentScanner] Watch URL for: file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/ -> file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/META-INF/application.xml
      2003-07-16 17:39:15,327 INFO [org.jboss.deployment.MainDeployer] Starting deployment of package: file:/home/jboss/jboss-3.2.1/server/his/deploy/jms/
      2003-07-16 17:39:15,329 DEBUG [org.jboss.deployment.MainDeployer] Starting deployment (init step) of package at: file:/home/jboss/jboss-3.2.1/server/his/deploy/jms/
      2003-07-16 17:39:15,330 DEBUG [org.jboss.deployment.JARDeployer] No META-INF or WEB-INF resource found, assuming it if for us
      2003-07-16 17:39:15,330 DEBUG [org.jboss.deployment.MainDeployer] using deployer org.jboss.deployment.JARDeployer@80fa6f



        • 1. Re: Deoploying EAR file

          The stacktrace shows an attempt to access a URL during
          XML parsing, probably a DTD

          Regards,
          Adrian

          • 2. Re: Deoploying EAR file
            pauster007

            post the deployment descriptors

            • 3. Re: Deoploying EAR file
              wdjunai

              Okay, I managed to get further now. And I indeed got descriptor problem.
              I have another problem though, on my descriptor I declared this DOCTYPE:
              <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS//EN" "http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">

              And during deployment I got these error:
              2003-07-17 16:53:29,512 ERROR [org.jboss.metadata.XmlFileLoader] XmlFileLoader: File file:/home/jboss/jboss-3.2.1/server/his/deploy/his.ear/his.jar/META-INF/jboss.xml process error. Line: 9. Error message: The content of element type "container-configuration" must match "(container-name,call-logging,container-invoker,container-interceptors?,instance-pool?,instance-cache?,persistence-manager?,transaction-manager?,container-invoker-conf?,container-cache-conf?,container-pool-conf?,commit-option?,(role-mapping-manager,authentication-module?)?)".


              Well, according the jboss_3_2.dtd has different idea about the element type which is:
              (container-name,call-logging?,container-invoker?,container-interceptors?,instance-pool?,instance-cache?,persistence-manager?,transaction-manager?,container-invoker-conf?,container-cache-conf?,container-pool-conf?,commit-option?,(role-mapping-manager,authentication-module?)?)

              How come it is checking against the jboss.dtd?
              And in the docs directory, I saw there are jboss.dtd, jboss_2_4.dtd, jboss_3_0.dtd, and jboss_3_2.dtd. These same files also available at
              http://www.jboss.org/j2ee/dtd.

              I assume these represent the different version of JBoss being used.
              So how come it is not using the jboss_3_2.dtd since that the one
              I declared and using JBoss 3.2.1?

              Thanks again

              • 4. Re: Deoploying EAR file
                wdjunai

                Nevermind, forgive my own stupidity. I wasn't paying attention to the versioning of the declaration. Now I have the "DTD JBOSS 3.2" everyhing is oke.

                thanks.