2 Replies Latest reply on Jul 30, 2007 8:48 AM by Michael Yuan

    Help: Seam on Weblogic 10

    Lisa Mark Newbie

      Hi,
      I'm trying to run JPA example with Seam 1.2.1 GA, ended up with

      ####<12.07.2007 13.30 Uhr CEST> <Error> <J2EE> <toms-2000> <examplesServer> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1184239814906> <BEA-160197> <Unable to load descriptor weblogic.utils.classloaders.ChangeAwareClassLoader@1df0959 finder: weblogic.utils.classloaders.CodeGenClassFinder@19f58a annotation: consoleapp@console/WEB-INF/lib/jboss-seam-jpa.jar!/META-INF/persistence.xml of module jboss-seam-jpa.war. The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
       at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:152)
       at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
       at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:397)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
       at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:157)
       at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:86)
       at weblogic.deployment.PersistenceUnitViewer$ResourceViewer.loadDescriptors(PersistenceUnitViewer.java:41)
       at weblogic.application.compiler.WARModule.merge(WARModule.java:427)
       at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:16)
       at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31)
       at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
       at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
       at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
       at weblogic.application.compiler.ReadOnlyWarMerger.merge(ReadOnlyWarMerger.java:27)
       at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:94)
       at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:47)
       at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
       at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
       at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
       at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:137)
       at weblogic.utils.compiler.Tool.run(Tool.java:158)
       at weblogic.utils.compiler.Tool.run(Tool.java:115)
       at weblogic.application.compiler.AppMerge.merge(AppMerge.java:149)
       at weblogic.deploy.api.internal.utils.AppMerger.merge(AppMerger.java:70)
       at weblogic.deploy.api.internal.utils.AppMerger.getMergedApp(AppMerger.java:51)
       at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createDeployableObject(WebLogicDeployableObjectFactoryImpl.java:177)
       at weblogic.deploy.api.model.internal.WebLogicDeployableObjectFactoryImpl.createLazyDeployableObject(WebLogicDeployableObjectFactoryImpl.java:150)
      Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=persistence
       at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:329)
       at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:296)
       at com.bea.staxb.runtime.internal.UnmarshalResult.determineTypeForGlobalElement(UnmarshalResult.java:306)
       at com.bea.staxb.runtime.internal.UnmarshalResult.determineRootType(UnmarshalResult.java:287)
       at com.bea.staxb.runtime.internal.UnmarshalResult.unmarshalDocument(UnmarshalResult.java:153)
       at com.bea.staxb.runtime.internal.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:65)
       at weblogic.descriptor.internal.MarshallerFactory$1.createDescriptor(MarshallerFactory.java:141)
       at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:292)
       at weblogic.descriptor.BasicDescriptorManager.createDescriptor(BasicDescriptorManager.java:260)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.getDescriptorBeanFromReader(AbstractDescriptorLoader2.java:774)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.createDescriptorBean(AbstractDescriptorLoader2.java:397)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBeanWithoutPlan(AbstractDescriptorLoader2.java:745)
       at weblogic.application.descriptor.AbstractDescriptorLoader2.loadDescriptorBean(AbstractDescriptorLoader2.java:754)
       at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptor(AbstractPersistenceUnitRegistry.java:157)
       at weblogic.deployment.AbstractPersistenceUnitRegistry.loadPersistenceDescriptors(AbstractPersistenceUnitRegistry.java:86)
       at weblogic.deployment.PersistenceUnitViewer$ResourceViewer.loadDescriptors(PersistenceUnitViewer.java:41)
       at weblogic.application.compiler.WARModule.merge(WARModule.java:427)
       at weblogic.application.compiler.flow.SingleModuleMergeFlow.proecessModule(SingleModuleMergeFlow.java:16)
       at weblogic.application.compiler.flow.SingleModuleFlow.compile(SingleModuleFlow.java:31)
       at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
       at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
       at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
       at weblogic.application.compiler.ReadOnlyWarMerger.merge(ReadOnlyWarMerger.java:27)
       at weblogic.application.compiler.flow.AppMergerFlow.mergeInput(AppMergerFlow.java:94)
       at weblogic.application.compiler.flow.AppMergerFlow.compile(AppMergerFlow.java:47)
       at weblogic.application.compiler.FlowDriver$FlowStateChange.next(FlowDriver.java:69)
       at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
       at weblogic.application.compiler.FlowDriver.nextState(FlowDriver.java:36)
       at weblogic.application.compiler.FlowDriver$CompilerFlowDriver.compile(FlowDriver.java:96)
       at weblogic.application.compiler.AppMerge.runBody(AppMerge.java:137)
       at weblogic.utils.compiler.Tool.run(Tool.java:158)
      
      


      If anyone got SEAM working on Weblogic 10, please share your comments.

      Thanks

        • 1. Re: Help: Seam on Weblogic 10
          Lisa Mark Newbie

          Hi Guys,
          No one replied for my post yet.
          Please help me and share your comments about this error on deploying
          SEAM 1.2.1 JPA example on Weblogic 10.

          ####<12.07.2007 13.30 Uhr CEST> <Error> <J2EE> <toms-2000> <examplesServer> <[ACTIVE] ExecuteThread: '0' for queue:
           'weblogic.kernel.Default (self-tuning)'> <weblogic> <> <> <1184239814906> <BEA-160197>
          
          <Unable to load descriptor weblogic.utils.classloaders.ChangeAwareClassLoader@1df0959 finder: weblogic.utils.classloaders.CodeGenClassFinder@19f58a
          annotation: consoleapp@console/WEB-INF/lib/jboss-seam
          -jpa.jar!/META-INF/persistence.xml of module jboss-seam-jpa.war.
          The error is weblogic.descriptor.DescriptorException: Unmarshaller failed
          ....
          ....
          Caused by: com.bea.xml.XmlException: failed to load java type corresponding to e=persistence at com.bea.staxb.runtime.internal.UnmarshalResult.getPojoBindingType(UnmarshalResult.java:329)
          
          


          I already posted on BEA DEV forum and waiting for reply.

          Hope SEAM guys will help me.

          Thanks

          • 2. Re: Help: Seam on Weblogic 10
            Michael Yuan Novice

            Actually, the Unmarshaller error can be fixed by updating the XML namespace declaration in persistence.xml file to strict spec compliance. You will also need the latest Hibernate (not the one bundled with 1.2.1) in order to find resources in a WebLogic 10 EAR.

            But even after that, I encountered some reflection errors when trying to run the JPA example although I was able to get the Hibernate2 example running. I can email this stuff offline to you if you are interested in investigating this and help us with the WL10 port. :)

            cheers
            Michael