14 Replies Latest reply on Jan 29, 2009 9:20 AM by Ales Justin

    Error deploying application on JBoss 5

    Sonali Kate Newbie

      my application is running on JBoss 4.x but on JBoss 5 i am getting following exception (server starts without any problem)

      ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.war/ state=Not Installed mode=Manual requiredState=Parse
      org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.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.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:595)
      Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: Failed to start listener-class: the element is not repeatable, repeatable parent expected to be a model group but got element listener
       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(AbstractParsingDeployerWithOutput.java:323)
       ... 22 more
      Caused by: org.jboss.xb.binding.JBossXBRuntimeException: Failed to start listener-class: the element is not repeatable, repeatable parent expected to be a model group but got element listener
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.endRepeatableParent(SundayContentHandler.java:703)
       at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:341)
       at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$DelegatingContentHandler.startElement(SaxJBossXBParser.java:401)
       at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
       at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source)
       at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
       at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)
       at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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


        • 1. Re: Error deploying application on JBoss 5
          Ales Justin Master

          How does your web.xml look like?

          • 2. Re: Error deploying application on JBoss 5
            Sonali Kate Newbie

             

            <?xml version="1.0" encoding="ISO-8859-1"?>
            
            <!DOCTYPE web-app PUBLIC
             "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
             "http://java.sun.com/dtd/web-app_2_3.dtd">
            ---
            


            please help..i am not able to proceed as my application in not loaded

            • 3. Re: Error deploying application on JBoss 5
              jaikiran pai Master

              sk2009,

              As i mentioned in your other post about this issue here http://www.jboss.com/index.html?module=bb&op=viewtopic&t=148953, you will have to show us the remaining part of the web.xml.

              • 4. Re: Error deploying application on JBoss 5
                Sonali Kate Newbie

                actually i am not allowed to display entire contents of my web.xml file..but can you please tell me what should i check in that.
                Please help..

                • 5. Re: Error deploying application on JBoss 5
                  jaikiran pai Master

                   

                  actually i am not allowed to display entire contents of my web.xml file


                  Fair enough.

                  but can you please tell me what should i check in that


                  Based on the error message, your web.xml contains a listener-class element which is configured incorrectly. A wild guess - your web.xml maybe containing something like:

                  <listener>
                   <listener-class>...</listener-class>
                   <listener-class>...</listener-class>
                  ....
                  </listener>
                  


                  • 6. Re: Error deploying application on JBoss 5
                    Sonali Kate Newbie

                    Hello Jaikiran,

                    Here are the relevant sections from my web.xml -

                    <?xml version="1.0" encoding="ISO-8859-1"?>
                    
                    <!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>
                    
                     <display-name>My Application</display-name>



                    :
                    :
                    :

                    <listener>
                     <listener-class>com.mypackage.MyListener</listener-class>
                     <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
                     </listener>



                    After going through the following link (https://jira.jboss.org/jira/browse/JBSEAM-334)
                    I tried removing the listner tag altogether. But in that case i get a DTD violation.


                    • 7. Re: Error deploying application on JBoss 5
                      jaikiran pai Master

                       

                      "sk2009" wrote:


                      <listener>
                       <listener-class>com.mypackage.MyListener</listener-class>
                       <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
                       </listener>



                      There is the problem :) The web-app_2_3.dtd has this:
                      <!--
                      The listener element indicates the deployment properties for a web
                      application listener bean.
                      
                      Used in: web-app
                      -->
                      <!ELEMENT listener (listener-class)>
                      
                      <!--
                      The listener-class element declares a class in the application must be
                      registered as a web application listener bean. The value is the fully qualified classname of the listener class.
                      
                      
                      Used in: listener
                      -->
                      <!ELEMENT listener-class (#PCDATA)>
                      


                      This means you can use only one listener-class. In your app you are using two of them which is not allowed by the dtd.

                      "sk2009" wrote:

                      After going through the following link (https://jira.jboss.org/jira/browse/JBSEAM-334)

                      I don't think that JIRA is related. I'm might be wrong though.

                      You have to choose between those two listener-class. Why do you need the
                      <listener-class>com.mypackage.MyListener</listener-class>


                      I haven't worked on Spring, so i don't know whether the org.springframework.web.context.ContextLoaderListener is needed.




                      • 8. Re: Error deploying application on JBoss 5
                        Sonali Kate Newbie

                        Hello Jaikiran,

                        when i tried removing one of the listener class i got following exception

                        10:14:44,827 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/workbench_tru
                        nk_5.war/ state=Not Installed mode=Manual requiredState=Parse
                        org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/workbench_tr
                        unk_5.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.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.hotdeploy.HDScanner.scan(HDScanner.java:290)
                         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                         at java.lang.Thread.run(Thread.java:595)
                        Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-n
                        ame?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,we
                        lcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,e
                        jb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/workbench_trunk_5.war/WEB-INF/web.xml[187,11]
                         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(AbstractParsingDeployerWithOutput.java:
                        323)
                         ... 27 more
                        Caused by: org.xml.sax.SAXException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,cont
                        ext-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,
                        resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-
                        5.0.0.GA/server/default/deploy/workbench_trunk_5.war/WEB-INF/web.xml[187,11]
                         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
                         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.XMLErrorReporter.reportError(Unknown Source)
                         at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
                         at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
                         at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
                         at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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)
                         ... 35 more
                        10:14:45,022 WARN [HDScanner] Failed to process changes
                        org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                        
                        *** CONTEXTS IN ERROR: Name -> Error
                        
                        vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/workbench_trunk_5.war/ -> org.xml.sax.SAXException: The content of element type "web-app" m
                        ust match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessi
                        on-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-
                        role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/workbench_trunk_5.war/WEB-INF/web.xml[187,11]
                        
                        
                        
                         at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
                         at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
                         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
                         at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                         at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                         at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
                         at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                         at java.lang.Thread.run(Thread.java:595)
                        
                        


                        i am getting what went wrong


                        • 9. Re: Error deploying application on JBoss 5
                          Sonali Kate Newbie

                          Hello Jaikiran,

                          i got this exception when i tried to remove one of the listener class


                          
                          10:21:46,365 ERROR [AbstractKernelController] Error installing to Parse: name=vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.war/ state=Not Installed mode=Manual requiredState=Parse
                          org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.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.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.hotdeploy.HDScanner.scan(HDScanner.java:290)
                           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
                           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                           at java.lang.Thread.run(Thread.java:595)
                          Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-n
                          ame?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,we
                          lcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,e
                          jb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.war/WEB-INF/web.xml[186,11]
                           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(AbstractParsingDeployerWithOutput.java:
                          323)
                           ... 27 more
                          Caused by: org.xml.sax.SAXException: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,cont
                          ext-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,
                          resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-
                          5.0.0.GA/server/default/deploy/application.war/WEB-INF/web.xml[186,11]
                           at org.jboss.xb.binding.parser.sax.SaxJBossXBParser$MetaDataErrorHandler.error(SaxJBossXBParser.java:426)
                           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.XMLErrorReporter.reportError(Unknown Source)
                           at org.apache.xerces.impl.dtd.XMLDTDValidator.handleEndElement(Unknown Source)
                           at org.apache.xerces.impl.dtd.XMLDTDValidator.endElement(Unknown Source)
                           at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanEndElement(Unknown Source)
                           at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.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)
                           ... 35 more
                          10:21:46,566 WARN [HDScanner] Failed to process changes
                          org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
                          
                          *** CONTEXTS IN ERROR: Name -> Error
                          
                          vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.war/ -> org.xml.sax.SAXException: The content of element type "web-app" m
                          ust match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,sessi
                          on-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-
                          role*,env-entry*,ejb-ref*,ejb-local-ref*)". @ vfsfile:/D:/jboss-5.0.0.GA/server/default/deploy/application.war/WEB-INF/web.xml[186,11]
                          
                          
                          
                           at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:863)
                           at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:665)
                           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:293)
                           at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
                           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417)
                           at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:280)
                           at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:135)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:65)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:142)
                           at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:166)
                           at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
                           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
                           at java.lang.Thread.run(Thread.java:595)
                          
                          


                          I am not getting what went wrong.




                          • 10. Re: Error deploying application on JBoss 5
                            jaikiran pai Master

                             

                            Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: The content of element type "web-app" must match "(icon?,display-name?,description?,distributable?,context-param*,filter*,filter-mapping*,listener*,servlet*,servlet-mapping*,session-config?,mime-mapping*,welcome-file-list?,error-page*,taglib*,resource-env-ref*,resource-ref*,security-constraint*,login-config?,security-role*,env-entry*,ejb-ref*,ejb-local-ref*)"


                            sk2009,

                            It looks like your web.xml is still not well formed. I would recommend that you use a XML editor or maybe an IDE which will help in pointing out the error in the web.xml.

                            • 11. Re: Error deploying application on JBoss 5
                              Sonali Kate Newbie

                              Hello Jaikiran,

                              Yes there was problem with my web.xml, i am able solve it.
                              Thanks a lot.

                              Now my server starts without any exception and my application accepts username and password but i get following exception if i am calling
                              org.jboss.resource.adapter.jdbc.jdk5.WrappedResultSetJDK5.getLong(int) method through reflection (JBoss 5) :-

                              With reflection :-

                              final Method method = resultSet.getClass().getDeclaredMethod(
                               methodName, parameterTypes);
                              



                              and the Exception is :
                              java.lang.NoSuchMethodException: org.jboss.resource.adapter.jdbc.jdk5.WrappedResultSetJDK5.getLong(int)
                              at java.lang.Class.getDeclaredMethod(Class.java:1909)
                              


                              Without reflection if i call getLong(int) it works i.e:-
                              resultSet.getLong(index);
                              



                              please can you suggest what might be missing?


                              • 12. Re: Error deploying application on JBoss 5
                                Ales Justin Master

                                 

                                "sk2009" wrote:
                                please can you suggest what might be missing?

                                You're missing reading the Class javadocs. ;-)

                                Class::getDeclaredMethod != Class::getMethod.
                                As WrappedResultSetJDK5 doesn't explicitly define that method.


                                • 13. Re: Error deploying application on JBoss 5
                                  Sonali Kate Newbie

                                  Hello alesj,

                                  Sorry, but can you please tell me in detail what is going wrong?
                                  I am not getting your point?

                                  • 14. Re: Error deploying application on JBoss 5
                                    Ales Justin Master

                                     

                                    "sk2009" wrote:

                                    Sorry, but can you please tell me in detail what is going wrong?
                                    I am not getting your point?

                                    Did you read Class's javadocs in detail?
                                    Specially the getDeclaredX vs. getX part, their differences.