11 Replies Latest reply on May 13, 2009 6:46 AM by wolfgangknauf

    Cant deply an .ear file into the JBOSS.

    leonidmir

      Hi all,
      I created a simple .ear and using ant deployed it into the ...\deploy\ directory.

      Unfortunately I am getting the following exceptions and still can't make my application work:

      00:39:01,593 ERROR [ProfileServiceBootstrap] Failed to load profile:
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: Ab
      stractVFSDeployment(todo.ear)
       at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
      ion(DeploymentException.java:49)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers
      .determineStructure(AbstractStructuralDeployers.java:85)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(
      MainDeployerImpl.java:743)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainD
      eployerImpl.java:280)
       at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainD
      eployerImpl.java:237)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
      ofile(ProfileServiceBootstrap.java:245)
       at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
      ProfileServiceBootstrap.java:131)
       at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
      408)
       at org.jboss.Main.boot(Main.java:208)
       at org.jboss.Main$1.run(Main.java:534)
       at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Error determining structure: todo.ear
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.jav
      a:274)
       at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.de
      termineStructure(StructureDeployerWrapper.java:65)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.
      doDetermineStructure(VFSStructuralDeployersImpl.java:194)
       at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.
      determineStructure(VFSStructuralDeployersImpl.java:218)
       at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers
      .determineStructure(AbstractStructuralDeployers.java:77)
       ... 9 more
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Elemen
      t {http://java.sun.com/xml/ns/j2ee}application is not bound as a global element.
      
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:193)
       at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
      :153)
       at org.jboss.deployment.EARStructure.determineStructure(EARStructure.jav
      a:151)
       ... 13 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Element {http://java.su
      n.com/xml/ns/j2ee}application is not bound as a global element.
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startE
      lement(SundayContentHandler.java:662)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHan
      dler.startElement(SaxJBossXBParser.java:407)
       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Sour
      ce)
       at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Sourc
      e)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
      own Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.s
      canRootElementHook(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
      Dispatcher.dispatch(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
      known 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.AbstractSAXParser.parse(Unknown Source)
       at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
      ce)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
      er.java:189)
       ... 15 more
      


      Some can help me please?
      I am kinda lost here :(


        • 1. Re: Cant deply an .ear file into the JBOSS.
          peterj

          Please post the contents of your application.xml file. It appears that something is incorrect in the way you are referencing http://java.sun.com/xml/ns/j2ee.

          Also, what version of JBossAS are you using?

          • 2. Re: Cant deply an .ear file into the JBOSS.
            leonidmir

            Thank you Peter for your reply, you are always willing to help!

            Here is my application.xml file:

            <application xmlns="http://java.sun.com/xml/ns/j2ee" version="1.4"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://java.sun.com/ xml/ns/j2ee
             http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
             <display-name>JBoss Notebook ToDo Application</display-name>
             <description>JBoss Notebook ToDo Application</description>
             <module>
             <ejb>todo.jar</ejb>
             </module>
             <module>
             <web>
             <web-uri>todo.war</web-uri>
             <context-root>todo</context-root>
             </web>
             </module>
            </application>
            


            I changed the following line to (removed the space):
            xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
            


            and now got the following exceptions:
            10:18:27,218 ERROR [AbstractKernelController] Error installing to Parse: name=vf
            sfile:/C:/jBossDev/JBoss_5_0_0_Beta4/build/output/jboss-5.0.0.Beta4/server/defau
            lt/deploy/todo.ear state=Not Installed mode=Manual requiredState=Parse
            org.jboss.deployers.spi.DeploymentException: Error creating managed object for v
            fsfile:/C:/jBossDev/JBoss_5_0_0_Beta4/build/output/jboss-5.0.0.Beta4/server/defa
            ult/deploy/todo.ear
             at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentExcept
            ion(DeploymentException.java:49)
             at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
            utput.createMetaData(AbstractParsingDeployerWithOutput.java:232)
             at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
            utput.createMetaData(AbstractParsingDeployerWithOutput.java:199)
             at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
            utput.deploy(AbstractParsingDeployerWithOutput.java:162)
             at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(Deployer
            Wrapper.java:169)
             at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFi
            rst(DeployersImpl.java:853)
             at org.jboss.deployers.plugins.deployers.DeployersImpl.install(Deployers
            Impl.java:794)
             at org.jboss.dependency.plugins.AbstractControllerContext.install(Abstra
            ctControllerContext.java:327)
             at org.jboss.dependency.plugins.AbstractController.install(AbstractContr
            oller.java:1309)
             at org.jboss.dependency.plugins.AbstractController.incrementState(Abstra
            ctController.java:734)
             at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
            actController.java:862)
             at org.jboss.dependency.plugins.AbstractController.resolveContexts(Abstr
            actController.java:784)
             at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
            ller.java:622)
             at org.jboss.dependency.plugins.AbstractController.change(AbstractContro
            ller.java:411)
             at org.jboss.deployers.plugins.deployers.DeployersImpl.process(Deployers
            Impl.java:498)
             at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeploye
            rImpl.java:506)
             at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadPr
            ofile(ProfileServiceBootstrap.java:246)
             at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(
            ProfileServiceBootstrap.java:131)
             at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:
            408)
             at org.jboss.Main.boot(Main.java:208)
             at org.jboss.Main$1.run(Main.java:534)
             at java.lang.Thread.run(Thread.java:619)
            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-co
            mplex-type.2.4.a: Invalid content was found starting with element 'description'.
             One of '{"http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/x
            ml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":module}' is expected. @ *unk
            nown*[6,18]
             at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
            er.java:193)
             at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java
            :153)
             at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(Sch
            emaResolverDeployer.java:120)
             at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse
            (AbstractVFSParsingDeployer.java:86)
             at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithO
            utput.createMetaData(AbstractParsingDeployerWithOutput.java:223)
             ... 20 more
            Caused by: org.xml.sax.SAXException: cvc-complex-type.2.4.a: Invalid content was
             found starting with element 'description'. One of '{"http://java.sun.com/xml/ns
            /j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.co
            m/xml/ns/j2ee":module}' is expected. @ *unknown*[6,18]
             at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler
            .error(SaxJBossXBParser.java:432)
             at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source)
             at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
             at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
             at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportE
            rror(Unknown Source)
             at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknow
            n Source)
             at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unkno
            wn Source)
             at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Sou
            rce)
             at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Sourc
            e)
             at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unkn
            own Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContent
            Dispatcher.dispatch(Unknown Source)
             at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Un
            known 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.AbstractSAXParser.parse(Unknown Source)
             at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Sour
            ce)
             at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBPars
            er.java:189)
             ... 24 more
            


            Can you help :)
            btw I am using JBOSS 5 Beta 4.

            • 3. Re: Cant deply an .ear file into the JBOSS.
              peterj

              Why don't you go with something simpler - get rid of the namespaces altogether:

              <application>
               <display-name>JBoss Notebook ToDo Application</display-name>
               <description>JBoss Notebook ToDo Application</description>
               <module>
               <ejb>todo.jar</ejb>
               </module>
               <module>
               <web>
               <web-uri>todo.war</web-uri>
               <context-root>todo</context-root>
               </web>
               </module>
              </application>



              • 4. Re: Cant deply an .ear file into the JBOSS.

                hi.. more likely i got the same error here. Can someone please help me how to solve this problem? i really need a guide


                ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear state=Not Installed mode=Manual requiredState=Parse
                org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war
                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:337)
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:297)
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:269)
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:230)
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                at org.jboss.Main.boot(Main.java:209)
                at org.jboss.Main$1.run(Main.java:547)
                at java.lang.Thread.run(Thread.java:619)
                Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.b: The content of element 'application' is not complete. One of '{"http://java.sun.com/xml/ns/j2ee":description, "http://java.sun.com/xml/ns/j2ee":display-name, "http://java.sun.com/xml/ns/j2ee":icon, "http://java.sun.com/xml/ns/j2ee":module}' is expected. @ vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war/WEB-INF/classes/META-INF/application.xml[2,228]


                • 5. Re: Cant deply an .ear file into the JBOSS.
                  jaikiran

                   

                  :/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war/WEB-INF/classes/META-INF/application.xml


                  Looks like you have the application.xml at the wrong place (WEB-INF/classes/META-INF/application.xml). The application.xml should be at .ear/META-INF/application.xml


                  • 6. Re: Cant deply an .ear file into the JBOSS.

                     

                    "jaikiran" wrote:
                    :/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application1.ear/webapp1.war/WEB-INF/classes/META-INF/application.xml


                    Looks like you have the application.xml at the wrong place (WEB-INF/classes/META-INF/application.xml). The application.xml should be at .ear/META-INF/application.xml

                    actually im trying to deploy adf application from jdev11g to jboss5.0.0Ga server.but i'm having a difficulty to do that

                    i'm using jdeveloper 11g to create the application.xml file. when i created deployment descriptor file its automatically reside there. what happend if i just removed the files? should it work?



                    everytime i created application.xml files.. i got error below ..there is something wrong with the .xml files. please help me


                    *** CONTEXTS IN ERROR: Name -> Error

                    vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application3.ear -> org.xml.sax.SAXException: cvc-complex-type.2.4.b: The content of element 'application' is not complete. One of '{"http://java.sun.com/xml/ns/javaee":display-name, "http://java.sun.com/xml/ns/javaee":icon, "http://java.sun.com/xml/ns/javaee":module}' is expected. @ vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application3.ear/ejb1.jar/META-INF/application.xml[4,15]




                    this is the application.xml looks like

                    <?xml version = '1.0' encoding = 'windows-1252'?>
                    <application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5" xmlns="http://java.sun.com/xml/ns/javaee">
                    <display-name>Model-application</display-name>
                    </application>



                    • 7. Re: Cant deply an .ear file into the JBOSS.
                      wolfgangknauf

                      Hi,

                      seems your "application.xml" is empty. If present, is has to contain at least one "module" element (see PeterJ's sample above).
                      But as Jaikiran said: it is at the wrong place if contained in WEB/classes/META-INF! It has to be part of the EAR file/directory (but JBoss 5 doesn't need it).

                      Best regards

                      Wolfgang

                      • 8. Re: Cant deply an .ear file into the JBOSS.

                        I'm also getting the same parse exceptions trying to deploy the mule-examples.war file to a freshly installed 5.0.1GA. BTW - this works fine on 4.2.3GA.

                        Thanks - Mark

                        11:29:54,905 WARN [JBossEntityResolver] Trying to resolve systemId as a non-file URL: http://java.sun.com/j2ee/dtds/ejb
                        -jar_1_1.dtd
                        11:30:01,595 ERROR [AbstractKernelController] Error installing to Parse: name=vfszip:/C:/D/jboss-5.0.1.GA/server/default
                        /deploy/mule-examples.war/ state=Not Installed mode=Manual requiredState=Parse
                        org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfszip:/C:/D/jboss-5.0.1.GA/server/defaul
                        t/deploy/mule-examples.war/
                        at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
                        oyerWithOutput.java:337)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
                        oyerWithOutput.java:297)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
                        oyerWithOutput.java:269)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWith
                        Output.java:230)
                        at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                        at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                        at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                        at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                        at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                        at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                        at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                        at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:698)
                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                        at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                        at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                        at org.jboss.Main.boot(Main.java:209)
                        at org.jboss.Main$1.run(Main.java:547)
                        at java.lang.Thread.run(Thread.java:595)
                        Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Connection timed out: connect
                        at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                        at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
                        at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:199)
                        at org.jboss.deployers.vfs.spi.deployer.JBossXBDeployerHelper.parse(JBossXBDeployerHelper.java:170)
                        at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:132)
                        at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:118)
                        at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:
                        256)
                        at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:188)
                        at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDepl
                        oyerWithOutput.java:323)
                        ... 22 more
                        Caused 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.AbstractSAXParser.parse(Unknown Source)
                        at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
                        at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:199)
                        ... 30 more

                        • 9. Re: Cant deply an .ear file into the JBOSS.
                          wolfgangknauf

                          Hi,

                          this is definitively another error. Please create a new thread.

                          Your error is:

                          ...
                          Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Connection timed out: connect
                          at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
                          ...

                          My guess is that an XML file is validated which references a DTD or XSD unknown to JBoss, so that the parser tries to load it from the internet.
                          Could you verify this?

                          Best regards

                          Wolfgang

                          • 10. Re: Cant deply an .ear file into the JBOSS.

                            hi
                            im using jboss5.0.0.ga. im trying to deploy *.ear file to jboss server but have this error below

                            can someone please tell me how to fix this error?

                            17:22:17,785 ERROR [AbstractKernelController] Error installing to PostClassLoader: name=vfszip:/usr/jboss/jboss-5.0.0.GA/server/default/deploy/application3.ear state=ClassLoader mode=Manual requiredState=PostClassLoader
                            org.jboss.deployers.spi.DeploymentException: Cannot process metadata
                            at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
                            at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:181)
                            at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:93)
                            at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1210)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)
                            at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
                            at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
                            at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
                            at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
                            at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
                            at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)
                            at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:545)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:304)
                            at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:205)
                            at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:405)
                            at org.jboss.Main.boot(Main.java:209)
                            at org.jboss.Main$1.run(Main.java:547)
                            at java.lang.Thread.run(Thread.java:619)
                            Caused by: java.lang.IllegalArgumentException: Class class sr.model.HIS01PMIBean does not have a default interface
                            at org.jboss.metadata.lang.ClassHelper.getDefaultInterface(ClassHelper.java:97)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.LocalProcessor.process(LocalProcessor.java:82)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.LocalProcessor.process(LocalProcessor.java:45)
                            at org.jboss.metadata.annotation.creator.AbstractProcessor.processClass(AbstractProcessor.java:215)
                            at org.jboss.metadata.annotation.creator.AbstractProcessor.processClass(AbstractProcessor.java:172)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:119)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:94)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.AbstractEnterpriseBeanProcessor.process(AbstractEnterpriseBeanProcessor.java:52)
                            at org.jboss.metadata.annotation.creator.AbstractCreator.process(AbstractCreator.java:154)
                            at org.jboss.metadata.annotation.creator.AbstractCreator.processMetaData(AbstractCreator.java:87)
                            at org.jboss.metadata.annotation.creator.ejb.jboss.JBoss50Creator.create(JBoss50Creator.java:109)
                            at org.jboss.deployment.OptAnnotationMetaDataDeployer.processJBossMetaData(OptAnnotationMetaDataDeployer.java:134)
                            at org.jboss.deployment.OptAnnotationMetaDataDeployer.processMetaData(OptAnnotationMetaDataDeployer.java:84)
                            at org.jboss.deployment.AnnotationMetaDataDeployer.deploy(AnnotationMetaDataDeployer.java:177)
                            ... 21 more


                            • 11. Re: Cant deply an .ear file into the JBOSS.
                              wolfgangknauf

                              Hi,

                              this is not related to the initial posts, please open a new thread.

                              Provide more information about your deployment. The error message is

                              Class class sr.model.HIS01PMIBean does not have a default interface

                              so please check whether this class has a remote or local interface (which is annotated with @Remote/@Local).

                              Best regards

                              Wolfgang