4 Replies Latest reply on Sep 16, 2010 3:56 PM by Geoff Hay

    AS 5 EAR Deployment problem Seam DVDStore example

    Geoff Hay Newbie

      Hi
      I've been trying to get the DVDstore example running as its the closest to what I want to develop (Seam,jBPM). I have had little success and have tried different versions of AS, Seam, and JDK.

      AS seems to crash with the output below when I try to hot deploy (ant explode) the Seam dvdstore example. Note exception:`org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jboss-seam-dvdstore.ear)`

      AS seems to be working fine up till that point and I am previously able to deploy and access the Seam booking example. Hope someone can help.

      jboss-5.1.0.GA-jdk6
      jboss-seam-2.2.0.GA
      apache-ant-1.7.0
      jdk1.6.0_04


      server.log
      `
      2010-09-15 11:53:46,218 WARN  [org.jboss.seam.security.permission.PersistentPermissionResolver] (HDScanner) no permission store available - please install a PermissionStore with the name 'org.jboss.seam.security.jpaPermissionStore' if persistent permissions are required.
      2010-09-15 11:54:15,671 WARN  [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (http-127.0.0.1-8080-1) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      2010-09-15 11:54:15,671 WARN  [org.jboss.ejb3.interceptors.aop.InterceptorsFactory] (http-127.0.0.1-8080-1) EJBTHREE-1246: Do not use InterceptorsFactory with a ManagedObjectAdvisor, InterceptorRegistry should be used via the bean container
      2010-09-15 11:55:06,421 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] (HDScanner) Scan failed
      org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(jboss-seam-dvdstore.ear)
      at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(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:1004)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:390)
      at org.jboss.deployers.plugins.main.MainDeployerImpl.addDeployment(MainDeployerImpl.java:300)
      at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.addDeployment(MainDeployerAdapter.java:86)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:344)
      at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
      at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
      at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
      at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
      at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.lang.RuntimeException: Error determining structure: jboss-seam-dvdstore.ear
      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:293)
      at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
      at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
      at org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
      ... 16 more
      Caused by: java.lang.RuntimeException: jboss-seam.jar module listed in application.xml does not exist within .ear vfsfile:/D:/java/jbossAS/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/deploy/jboss-seam-dvdstore.ear/
      at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
      ... 20 more

       

      Geoff

        • 1. Re: AS 5 EAR Deployment problem Seam DVDStore example
          jaikiran pai Master

          Geoff Hay wrote:

           

          Caused by: java.lang.RuntimeException: jboss-seam.jar module listed in application.xml does not exist within .ear vfsfile:/D:/java/jbossAS/jboss-5.1.0.GA-jdk6/jboss-5.1.0.GA/server/default/deploy/jboss-seam-dvdstore.ear/

          at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:272)
          ... 20 more

           

           

          So does the jboss-seam-dvdstore.ear that you are deploying, have the jboss-seam.jar in it? Where is it located? And what does the application.xml look like?

          • 2. Re: AS 5 EAR Deployment problem Seam DVDStore example
            Geoff Hay Newbie

            Hi

            Thanks for your reply, yes the .jar file exists:

             

            Directory of D:\java\jbossAS\jboss-5.1.0.GA-jdk6\jboss-5.1.0.GA\server\default\
            deploy\jboss-seam-dvdstore.ear

            16/09/2010  09:53 a.m.    <DIR>          .
            16/09/2010  09:53 a.m.    <DIR>          ..
            16/09/2010  09:53 a.m.               971 checkout.jpdl.xml
            16/09/2010  09:53 a.m.             9,008 hibernate.cfg.xml
            16/09/2010  09:53 a.m.    <DIR>          jboss-seam-dvdstore.jar
            16/09/2010  09:53 a.m.    <DIR>          jboss-seam-dvdstore.war
            16/09/2010  09:53 a.m.         1,171,234 jboss-seam.jar
            16/09/2010  09:53 a.m.               762 jbpm.cfg.xml
            16/09/2010  09:53 a.m.    <DIR>          lib
            16/09/2010  09:53 a.m.    <DIR>          META-INF
            16/09/2010  09:53 a.m.             1,607 newuser.jpdl.xml
            16/09/2010  09:53 a.m.               803 ordermanagement1.jpdl.xml
            16/09/2010  09:53 a.m.             1,252 ordermanagement2.jpdl.xml
            16/09/2010  09:53 a.m.             1,344 ordermanagement3.jpdl.xml
                           8 File(s)      1,186,981 bytes
                           6 Dir(s)  133,057,089,536 bytes free

             

            here is the application.xml

            <?xml version="1.0" encoding="UTF-8"?>
            <application xmlns="http://java.sun.com/xml/ns/javaee"
                         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">
               
                <display-name>DVD Store</display-name>
               
                <module>
                    <ejb>jboss-seam-dvdstore.jar</ejb>
                </module>
               
                <module>
                    <web>
                        <web-uri>jboss-seam-dvdstore.war</web-uri>
                        <context-root>/seam-dvdstore</context-root>
                    </web>
                </module>
               
                <module>
                    <ejb>jboss-seam.jar</ejb>
                </module>
               
            </application>

            BTW: When I restart AS it seems to go into a loop trying to do something with the DVDstore but eventually runs out of memory.

            Thanks

            Geoff

            • 3. Re: AS 5 EAR Deployment problem Seam DVDStore example
              jaikiran pai Master

              Geoff Hay wrote:

               

              BTW: When I restart AS it seems to go into a loop trying to do something with the DVDstore but eventually runs out of memory.

              Thanks

              Geoff

              Before we start looking into that issue, is there any chance you can upgrade to JBoss AS 6.0 M4? There were some known issues, like the continuous redeploy, with JBoss AS 5.1.0 and Seam.

              • 4. Re: AS 5 EAR Deployment problem Seam DVDStore example
                Geoff Hay Newbie

                Hi

                OK that didn't work either. I did a complete reinstall of Seam and AS6 M4, deployed the dvdstore example and now there are different exceptions.

                 

                Server.log

                 

                2010-09-17 07:49:50,984 INFO  [org.apache.coyote.ajp.AjpProtocol] (Thread-2) Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
                2010-09-17 07:49:50,984 INFO  [org.jboss.bootstrap.impl.base.server.AbstractServer] (Thread-2) JBossAS [6.0.0.20100721-M4 "Neo"] Started in 35s:47ms
                2010-09-17 07:50:16,890 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] (HDScanner) Error installing to Parse: name=vfs:///D:/java/jbossAS/as6m4/as6m4/server/default/deploy/jboss-seam-dvdstore.ear state=PreParse mode=Manual requiredState=Parse: org.jboss.deployers.spi.DeploymentException: Error creating managed object for vfs:///D:/java/jbossAS/as6m4/as6m4/server/default/deploy/jboss-seam-dvdstore.ear/jboss-seam-dvdstore.war/
                at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49) [:2.2.0.Alpha6]
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:383) [:2.2.0.Alpha6]
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:343) [:2.2.0.Alpha6]
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:315) [:2.2.0.Alpha6]
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.deploy(AbstractParsingDeployerWithOutput.java:255) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1603) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.Alpha6]
                at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.Alpha10]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.Alpha6]
                at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.Alpha6]
                at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.20100721-M4]
                at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:130) [:0.1.0.Alpha1]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.deploy(HDScanner.java:240) [:0.1.0.Alpha1]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner$HDScanAction.complete(HDScanner.java:192) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.TwoPCActionWrapper.doComplete(TwoPCActionWrapper.java:59) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.complete(AbstractTwoPhaseModificationAction.java:74) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:94) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150) [:0.1.0.Alpha1]
                at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:135) [:0.1.0.Alpha1]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.scan(HDScanner.java:146) [:0.1.0.Alpha1]
                at org.jboss.profileservice.deployment.hotdeploy.HDScanner.run(HDScanner.java:90) [:0.1.0.Alpha1]
                at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) [:1.6.0_04]
                at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317) [:1.6.0_04]
                at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150) [:1.6.0_04]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98) [:1.6.0_04]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181) [:1.6.0_04]
                at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205) [:1.6.0_04]
                at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885) [:1.6.0_04]
                at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907) [:1.6.0_04]
                at java.lang.Thread.run(Thread.java:619) [:1.6.0_04]
                Caused by: org.jboss.xb.binding.JBossXBException: Failed to parse source: cvc-complex-type.2.4.a: Invalid content was found starting with element 'description'. One of '{"http://java.sun.com/xml/ns/javaee":type, "http://java.sun.com/xml/ns/javaee":deferred-value, "http://java.sun.com/xml/ns/javaee":deferred-method}' is expected. @ vfs:///D:/java/jbossAS/as6m4/as6m4/server/default/deploy/jboss-seam-dvdstore.ear/jboss-seam-dvdstore.war/WEB-INF/lib/jboss-seam-ui.jar/META-INF/s.tld[2444,18]
                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:195) [jbossxb.jar:2.0.2.Beta7]
                at org.jboss.xb.binding.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168) [jbossxb.jar:2.0.2.Beta7]
                at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:229) [jbossxb.jar:2.0.2.Beta7]
                at org.jboss.xb.util.JBossXBHelper.parse(JBossXBHelper.java:206) [jbossxb.jar:2.0.2.Beta7]
                at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:137) [:2.2.0.Alpha6]
                at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:64) [:6.0.0.20100721-M4]
                at org.jboss.deployment.TldParsingDeployer.parse(TldParsingDeployer.java:38) [:6.0.0.20100721-M4]
                at org.jboss.deployers.vfs.spi.deployer.SchemaResolverDeployer.parse(SchemaResolverDeployer.java:121) [:2.2.0.Alpha6]
                at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parseAndInit(AbstractVFSParsingDeployer.java:352) [:2.2.0.Alpha6]
                at org.jboss.deployers.vfs.spi.deployer.AbstractVFSParsingDeployer.parse(AbstractVFSParsingDeployer.java:317) [:2.2.0.Alpha6]
                at org.jboss.deployers.spi.deployer.helpers.AbstractParsingDeployerWithOutput.createMetaData(AbstractParsingDeployerWithOutput.java:376) [:2.2.0.Alpha6]
                ... 42 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/javaee":type, "http://java.sun.com/xml/ns/javaee":deferred-value, "http://java.sun.com/xml/ns/javaee":deferred-method}' is expected. @ vfs:///D:/java/jbossAS/as6m4/as6m4/server/default/deploy/jboss-seam-dvdstore.ear/jboss-seam-dvdstore.war/WEB-INF/lib/jboss-seam-ui.jar/META-INF/s.tld[2444,18]
                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.error(SaxJBossXBParser.java:382) [jbossxb.jar:2.0.2.Beta7]
                at org.apache.xerces.util.ErrorHandlerWrapper.error(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.xs.XMLSchemaValidator$XSIErrorReporter.reportError(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.reportSchemaError(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.handleStartElement(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.xs.XMLSchemaValidator.startElement(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.xinclude.XIncludeHandler.startElement(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source) [xercesImpl.jar:6.0.0.20100721-M4]
                at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:191) [jbossxb.jar:2.0.2.Beta7]
                ... 52 more

                2010-09-17 07:50:17,015 INFO  [org.jboss.resource.connectionmanager.ConnectionFactoryBindingService] (HDScanner) Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=dvdstoreDatasource' to JNDI name 'java:dvdstoreDatasource'