0 Replies Latest reply on Jul 8, 2009 10:13 PM by Kyle Renfro

    exception: missing jbpm dependency on session bean passiviation

    Kyle Renfro Newbie

      Environment:



      • JBoss AS 5.1.0.GA

      • Seam 2.1.2.GA

      • RichFaces 3.3.1.GA

      • JDK 1.6.0_12

      • Project deployed as EAR



      When container attempts to passivate my SFSB, I often get this stack trace repeated many times. See partial listing below:


      14:14:10,510 ERROR [STDERR]      ... 177 more
      14:14:10,510 ERROR [STDERR] Caused by: java.lang.reflect.InvocationTargetException
      14:14:10,510 ERROR [STDERR]      at sun.reflect.GeneratedMethodAccessor563.invoke(Unknown Source)
      14:14:10,510 ERROR [STDERR]      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      14:14:10,510 ERROR [STDERR]      at java.lang.reflect.Method.invoke(Method.java:597)
      14:14:10,510 ERROR [STDERR]      at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithMethod(RegularObjectPersister.java:120)
      14:14:10,510 ERROR [STDERR]      ... 209 more
      14:14:10,510 ERROR [STDERR] Caused by: java.lang.NoClassDefFoundError: org/jbpm/graph/def/Node
      14:14:10,510 ERROR [STDERR]      at java.lang.Class.getDeclaredMethods0(Native Method)
      14:14:10,510 ERROR [STDERR]      at java.lang.Class.privateGetDeclaredMethods(Class.java:2427)
      14:14:10,510 ERROR [STDERR]      at java.lang.Class.getDeclaredMethod(Class.java:1935)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.classmetamodel.ClassMetaData.lookupMethodOnHierarchy(ClassMetaData.java:102)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.classmetamodel.ClassMetaData.lookupInternalMethods(ClassMetaData.java:432)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.classmetamodel.ClassMetaData.<init>(ClassMetaData.java:122)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.classmetamodel.ClassMetamodelFactory.getClassMetaData(ClassMetamodelFactory.java:350)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:168)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.persister.RegularObjectPersister.writeSlotWithFields(RegularObjectPersister.java:182)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.persister.RegularObjectPersister.defaultWrite(RegularObjectPersister.java:90)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.persister.RegularObjectPersister.writeData(RegularObjectPersister.java:62)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.objectmetamodel.ObjectDescriptorFactory.describeObject(ObjectDescriptorFactory.java:276)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.objectmetamodel.DataContainer$DataContainerDirectOutput.writeObject(DataContainer.java:206)
      14:14:10,511 ERROR [STDERR]      at org.jboss.serial.persister.ObjectOutputStreamProxy.writeObjectOverride(ObjectOutputStreamProxy.java:60)
      14:14:10,511 ERROR [STDERR]      at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:322)
      14:14:10,511 ERROR [STDERR]      at java.util.concurrent.ConcurrentHashMap.writeObject(ConcurrentHashMap.java:1247)
      14:14:10,511 ERROR [STDERR]      ... 213 more
      14:14:10,511 ERROR [STDERR] Caused by: java.lang.ClassNotFoundException: org.jbpm.graph.def.Node from BaseClassLoader@606145c5{VFSClassLoaderPolicy@122bb9f2{name=vfszip:/opt/jboss-5.1.0.GA/server/default/deploy/user-admin.ear/ domain=ClassLoaderDomain@7f5db23e{name=com.realcomp.user.user-admin:loader=user-admin.ear parentPolicy=AFTER_BUT_JAVA_BEFORE parent=ClassLoaderDomain@1b5b8520{DefaultDomain}} roots=[MemoryContextHandler@1958529071[path= context=vfsmemory://3j001-8a91db-fwwf42uj-1-fwwf4efr-2j real=vfsmemory://3j001-8a91db-fwwf42uj-1-fwwf4efr-2j], DelegatingHandler@368755081[path=lib/commons-beanutils-1.7.0.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/commons-beanutils-1.7.0.jar], DelegatingHandler@28841125[path=lib/commons-collections-3.2.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/commons-collections-3.2.jar], DelegatingHandler@1548967300[path=lib/commons-digester-1.8.1.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/commons-digester-1.8.1.jar], DelegatingHandler@1696642166[path=lib/dom4j-1.6.1-brew.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/dom4j-1.6.1-brew.jar], DelegatingHandler@1177019096[path=lib/jboss-el-1.0_02.CR4.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/jboss-el-1.0_02.CR4.jar], DelegatingHandler@1688073955[path=lib/jboss-seam-remoting-2.1.2.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/jboss-seam-remoting-2.1.2.jar], DelegatingHandler@1052501168[path=lib/richfaces-api-3.3.1.GA.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/richfaces-api-3.3.1.GA.jar], DelegatingHandler@564330237[path=lib/user-entities-0.0.1-SNAPSHOT.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/lib/user-entities-0.0.1-SNAPSHOT.jar], DelegatingHandler@1410508107[path= context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=vfszip:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear], DelegatingHandler@337775116[path=jboss-seam-2.1.2.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/jboss-seam-2.1.2.jar], DelegatingHandler@1012437877[path=seam.deployer/lib-int/jboss-seam-int-jbossas.jar context=file:/opt/jboss-5.1.0.GA/server/default/deployers/ real=file:/opt/jboss-5.1.0.GA/server/default/deployers/seam.deployer/lib-int/jboss-seam-int-jbossas.jar], DelegatingHandler@1187095591[path=user-admin-ui-0.0.1-SNAPSHOT.jar context=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear real=file:/opt/jboss-5.1.0.GA/server/default/tmp/3j001-8a91db-fwwf42uj-1-fwwf4c7j-w/user-admin.ear/user-admin-ui-0.0.1-SNAPSHOT.jar]]  delegates=null exported=[, org.apache.commons.collections.keyvalue, org.jboss.seam.theme, org.jboss.seam.security.crypto, org.jboss.seam.security.management, org.jboss.seam.contexts, org.jboss.seam.el, org.jboss.seam.exception, org.richfaces.model.filter, org.apache.commons.digester.plugins, org.apache.commons.beanutils.locale.converters, org.apache.commons.beanutils.converters, META-INF.maven.com.realcomp.user.user-entities, org.apache.commons.collections.bag, org.dom4j.dtd, org.jboss.seam.annotations.datamodel, org.jboss.seam.security.jaas, org.jboss.seam.init, org.jboss.el.parser, org.dom4j.xpath, org.dom4j.bean, org.richfaces.model.selection, org.jboss.seam.annotations.bpm, org.jboss.seam.framework, org.dom4j.rule.pattern, org.jboss.seam.remoting.gwt, org.apache.commons.collections.list, org.ajax4jsf.event, org.jboss.seam.log, org.jboss.seam.captcha, org.jboss.seam.core, org.dom4j.util, org.jboss.seam.remoting.messaging, org.jboss.seam.remoting.wrapper, org.ajax4jsf, org.jboss.seam.servlet, org.apache.commons.digester.plugins.strategies, org.jboss.seam.annotations, org.jboss.seam.drools, org.jboss.seam.persistence, org.dom4j.rule, org.apache.commons.beanutils.locale, org.jboss.seam.pageflow, org.apache.commons.collections, org.jboss.seam.security.digest, org.jboss.seam.text, org.jboss.seam.faces, org.ajax4jsf.resource.util, org.jboss.seam.deployment, org.apache.commons.digester, org.jboss.seam.jmx, org.jboss.seam.jms, org.dom4j.jaxb, org.richfaces.event.sort, org.apache.commons.collections.set, org.jboss.seam.async, org.ajax4jsf.resource, org.jboss.seam.annotations.security.management, org.jboss.seam.integration.jbossas.jms, org.jboss.seam.annotations.remoting, org.dom4j, org.jboss.el.util, org.jboss.seam.bpm, org.jboss.seam.security, org.jboss.seam.web, org.ajax4jsf.javascript, org.jboss.el, org.jboss.seam.security.management.action, org.richfaces.event, org.jboss.seam.databinding, org.apache.commons.collections.functors, org.ajax4jsf.model, org.jboss.seam.annotations.security, org.richfaces.component.xml, org.richfaces.event.extdt, org.apache.commons.digester.parser, org.dom4j.io, org.jboss.seam.transaction, org.jboss.seam.document, org.jboss.seam.mock, org.jboss.seam.mail, org.apache.commons.collections.bidimap, org.dom4j.dom, META-INF.maven.org.richfaces.framework.richfaces-api, org.apache.commons.collections.collection, META-INF.maven.com.realcomp.user.user-admin-ear, org.jboss.seam.navigation, org.jboss.seam.international, org.richfaces.model, org.apache.commons.collections.map, org.jboss.seam.remoting, org.jboss.seam.webservice, org.ajax4jsf.renderkit, META-INF.maven.org.jboss.seam.integration.jboss-seam-int-jbossas, org.ajax4jsf.context, org.jboss.seam.cache, org.jboss.seam.jsf, org.apache.commons.digester.substitution, org.jboss.seam.intercept, org.apache.commons.collections.buffer, org.jboss.seam.integration.jbossas.vfs, org.jboss.seam.annotations.intercept, org.jboss.seam.ejb, org.apache.commons.beanutils, org.jboss.seam.annotations.async, org.apache.commons.collections.comparators, org.dom4j.xpp, org.apache.commons.digester.xmlrules, org.richfaces.skin, org.jboss.seam.annotations.web, org.apache.commons.collections.iterators, org.ajax4jsf.application, org.jboss.seam, org.jboss.seam.annotations.faces, org.jboss.seam.security.openid, META-INF.maven.com.realcomp.user.user-admin-ui, org.jboss.seam.security.permission, org.ajax4jsf.component, com.realcomp.user.entities, org.jboss.seam.annotations.exception, org.dom4j.swing, org.dom4j.tree, org.jboss.seam.util, org.richfaces.event.scroll, META-INF, org.ajax4jsf.cache, org.jboss.seam.security.permission.action, org.jboss.seam.remoting.client, org.jboss.seam.annotations.security.permission, org.dom4j.datatype, META-INF.maven.commons-digester.commons-digester, com.realcomp.user.admin.ui, org.jboss.el.lang, org.richfaces.component] <IMPORT-ALL>NON_EMPTY}}
      14:14:10,547 ERROR [STDERR]      at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:448)
      14:14:10,547 ERROR [STDERR]      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
      14:14:10,547 ERROR [STDERR]      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
      14:14:10,547 ERROR [STDERR]      ... 230 more
      14:14:10,547 FATAL [RegularObjectPersister] error
      java.lang.reflect.InvocationTargetException
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      



      The application seems to operate properly, but the exception is troubling.  I do not use any jbpm facilities (that I am aware of.)  If I add the jbpm-jpdl.jar dependency to my EAR the exception is replaced by a similar exception, this time complaining about a missing net.sf.ehcache.CacheException 


      So, I have no problem adding these dependencies, but I believe they are optional.  My only guess is I have screwed up configuration.


      components.xml:


      <components xmlns="http://jboss.com/products/seam/components"        
                  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"    
                  xmlns:core="http://jboss.com/products/seam/core"            
                  xmlns:transaction="http://jboss.com/products/seam/transaction"
                      
                  xsi:schemaLocation=
                      "http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
                       http://jboss.com/products/seam/transaction http://jboss.com/products/seam/transaction-2.0.xsd
                       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
           
          <!-- Configure the jndi pattern for jee5 (JBoss) --> 
          <core:init jndi-pattern="user-admin/#{ejbName}/local"/>
                      
          <component class="org.jboss.seam.web.MultipartFilter">
              <property name="createTempFiles">true</property>
              <!--<property name="maxRequestSize">1000000</property>  -->
          </component>
                  
          <transaction:ejb-transaction/>
         
      </components>




      pages.xml:


      <pages xmlns="http://jboss.com/products/seam/pages"
             xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
             xsi:schemaLocation="http://jboss.com/products/seam/pages http://jboss.com/products/seam/pages-2.0.xsd">
           
          <page view-id="/index.jsp">
              <description></description>
          </page>
          
          <exception>
              <redirect view-id="/error.jsp">
                  <message severity="ERROR">#{org.jboss.seam.handledException.message}</message>
              </redirect>
          </exception>   
      </pages>



      user-admin.ear:


      /jboss-seam-2.1.2.jar
      /user-admin-ui.0.0.1-SNAPSHOT.jar
      /user-admin.war-0.0.1-SNAPSHOT.war
      /lib/commons-beanutils-1.7.0.jar
      /lib/commons-collections-3.2.jar
      /lib/commons-digester-1.8.1.jar
      /lib/jboss-el-1.0_02.CR4.jar
      /lib/richfaces-api-3.3.1.GA.jar
      /lib/user-entities.0.0.1-SNAPSHOT.jar
      /META-INF/application.xml
      /META-INF/jboss-app.xml




      user-admin-ui.jar:



      /META-INF/seam.properties
      /META-INF/ejb-jar.xml
      /META-INF/jboss.xml
      





      user-admin.war:


      /WEB-INF/lib/jboss-seam-ui-2.1.2.jar
      /WEB-INF/lib/richfaces-impl-3.3.1.GA.jar
      /WEB-INF/lib/richfaces-ui.3.3.1.GA.jar



      Any help would be appreciated!