8 Replies Latest reply on Oct 24, 2007 5:06 PM by Pete Muir

    Serious issue getting a basic example of seam 2, jbpm, ejb3

    Mick Knutson Newbie

      I have been pounding everything I can for 2 solid days now with no luck.

      I have a war with (WEB-INF/component.xml):

      <?xml version="1.0" encoding="UTF-8"?>
      <components xmlns="http://jboss.com/products/seam/components"
       xmlns:core="http://jboss.com/products/seam/core"
       xmlns:bpm="http://jboss.com/products/seam/bpm"
       xmlns:persistence="http://jboss.com/products/seam/persistence"
       xmlns:security="http://jboss.com/products/seam/security"
       xmlns:mail="http://jboss.com/products/seam/mail"
       xmlns:framework="http://jboss.com/products/seam/framework"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="
       http://jboss.com/products/seam/core http://jboss.com/products/seam/core-2.0.xsd
       http://jboss.com/products/seam/bpm http://jboss.com/products/seam/bpm-2.0.xsd
       http://jboss.com/products/seam/persistence http://jboss.com/products/seam/persistence-2.0.xsd
       http://jboss.com/products/seam/security http://jboss.com/products/seam/security-2.0.xsd
       http://jboss.com/products/seam/mail http://jboss.com/products/seam/mail-2.0.xsd
       http://jboss.com/products/seam/framework http://jboss.com/products/seam/framework-2.0.xsd
       http://jboss.com/products/seam/components http://jboss.com/products/seam/components-2.0.xsd">
      
       <!--<core:init debug="true" jndi-pattern="@jndiPattern@"/>-->
       <core:init debug="true" jndi-pattern="#{ejbName}/local"/>
      
       <!-- 120 second conversation timeout -->
       <core:manager conversation-timeout="120000"
       concurrent-request-timeout="500"
       conversation-id-parameter="cid"/>
      
       <!--<persistence:hibernate-session-factory name="hibernateSessionFactory"/>-->
      
       <!--<persistence:managed-hibernate-session name="yoursosEntityManagerFactory"
       auto-create="true"/>-->
      
       <persistence:managed-persistence-context name="entityManager"
       auto-create="true"
       persistence-unit-jndi-name="java:/yoursosEntityManagerFactory"/>
      
       <!--<drools:rule-base name="securityRules">
       <drools:rule-files>
       <value>/security.drl</value>
       </drools:rule-files>
       </drools:rule-base>
      
       <security:identity authenticate-method="#{authenticator.authenticate}"/>
      
       <security:identity authenticate-method="#{authenticator.authenticate}"
       security-rules="#{securityRules}"/>-->
      
       <!--<factory name="contact" value="#{contactHome.instance}"/>
       <framework:entity-home name="contactHome"
       entity-class="com.baselogic.yoursos.Contact"/>
      
       <component name="contact"
       class="com.baselogic.yoursos.Contact"/>-->
      
       <!--<event type="org.jboss.seam.notLoggedIn">
       <action execute="#{redirect.captureCurrentView}"/>
       </event>
       <event type="org.jboss.seam.postAuthenticate">
       <action execute="#{redirect.returnToCapturedView}"/>
       </event>-->
      
       <mail:mail-session host="localhost" port="2525" username="test" password="test" />
      
       <!-- For use with jBPM pageflow or process management -->
       <bpm:jbpm>
       <!--<bpm:process-definitions></bpm:process-definitions>-->
       <bpm:pageflow-definitions>
       <value>registration.jpdl.xml</value>
       </bpm:pageflow-definitions>
       </bpm:jbpm>
      
      </components>
      


      and WEB-INF/classes/META-INF/persistance.xml:
      
      <?xml version="1.0" encoding="UTF-8"?>
      <!-- Persistence deployment descriptor -->
      <persistence xmlns="http://java.sun.com/xml/ns/persistence"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
       version="1.0">
      
       <persistence-unit name="yoursosEntityManagerFactory">
       <provider>org.hibernate.ejb.HibernatePersistence</provider>
       <jta-data-source>java:/yoursosDatasource</jta-data-source>
       <properties>
      
       <property name="hibernate.hbm2ddl.auto" value="${hibernate.hbm2ddl.auto}"/>
       <property name="hibernate.show_sql" value="${hibernate.show_sql}"/>
       <property name="hibernate.jdbc.batch_size" value="${hibernate.jdbc.batch_size}"/>
      
       <property name="hibernate.dialect" value="${hibernate.dialect}"/>
      
       <!-- not in seam examples -->
       <property name="hibernate.transaction.flush_before_completion" value="true"/>
       <property name="hibernate.connection.release_mode" value="after_statement"/>
      
       <property name="hibernate.cache.use_second_level_cache" value="${hibernate.cache.use_second_level_cache}"/>
       <property name="hibernate.transaction.factory_class" value="${hibernate.transaction.factory_class}"/>
       <property name="hibernate.transaction.manager_lookup_class"
       value="${hibernate.transaction.manager_lookup_class}"/>
      
      
      
       <property name="hibernate.cache.provider_class"
       value="org.hibernate.cache.HashtableCacheProvider"/>
      
       <!-- use a file system based index -->
       <property name="hibernate.search.default.directory_provider"
       value="org.hibernate.search.store.FSDirectoryProvider"/>
       <!-- directory where the indexes will be stored -->
       <property name="hibernate.search.default.indexBase" value="./YourSOSindexes"/>
       <!-- Not needed with HA 3.3 -->
       <property name="hibernate.ejb.event.post-insert"
       value="org.hibernate.search.event.FullTextIndexEventListener"/>
       <property name="hibernate.ejb.event.post-update"
       value="org.hibernate.search.event.FullTextIndexEventListener"/>
       <property name="hibernate.ejb.event.post-delete"
       value="org.hibernate.search.event.FullTextIndexEventListener"/>
      
       <!-- Required binding for Seam-managed persistence context in Embeddable JBoss -->
       <!--<property name="jboss.entity.manager.factory.jndi.name"
       value="java:/yoursosEntityManagerFactory"/>-->
       </properties>
       </persistence-unit>
      </persistence>
      
      


        • 1. Re: Serious issue getting a basic example of seam 2, jbpm, e
          Mick Knutson Newbie

          Also in my war /hibernate.cfg.xml:

          <?xml version='1.0' encoding='utf-8'?>
          
          <!DOCTYPE hibernate-configuration PUBLIC
           "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
           "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
          
          <hibernate-configuration>
           <session-factory>
          
           <property name="show_sql">false</property>
           <property name="connection.datasource">java:/yoursosDatasource</property>
           <property name="transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
           <property name="transaction.manager_lookup_class">org.hibernate.transaction.JBossTransactionManagerLookup
           </property>
           <property name="cache.provider_class">org.hibernate.cache.HashtableCacheProvider</property>
           <property name="hbm2ddl.auto">create-drop</property>
           <!--property name="transaction.flush_before_completion">true</property-->
          
           <!-- ############################################ -->
           <!-- # mapping files with external dependencies # -->
           <!-- ############################################ -->
          
           <!-- following mapping file has a dependendy on -->
           <!-- 'bsh-{version}.jar'. -->
           <!-- uncomment this if you don't have bsh on your -->
           <!-- classpath. you won't be able to use the -->
           <!-- script element in process definition files -->
           <mapping resource="org/jbpm/graph/action/Script.hbm.xml"/>
          
           <!-- following mapping files have a dependendy on -->
           <!-- 'jbpm-identity.jar', mapping files -->
           <!-- of the pluggable jbpm identity component. -->
           <!-- Uncomment the following 3 lines if you -->
           <!-- want to use the jBPM identity mgmgt -->
           <!-- component. -->
           <!-- identity mappings (begin) ===
           <mapping resource="org/jbpm/identity/User.hbm.xml"/>
           <mapping resource="org/jbpm/identity/Group.hbm.xml"/>
           <mapping resource="org/jbpm/identity/Membership.hbm.xml"/>
           ==== identity mappings (end) -->
          
           <!-- following mapping files have a dependendy on -->
           <!-- the JCR API -->
           <!-- jcr mappings (begin) ===
           <mapping resource="org/jbpm/context/exe/variableinstance/JcrNodeInstance.hbm.xml"/>
           ==== jcr mappings (end) -->
          
          
           <!-- ###################### -->
           <!-- # jbpm mapping files # -->
           <!-- ###################### -->
          
           <!-- hql queries and type defs -->
           <mapping resource="org/jbpm/db/hibernate.queries.hbm.xml"/>
          
           <!-- graph.action mapping files -->
           <mapping resource="org/jbpm/graph/action/MailAction.hbm.xml"/>
          
           <!-- graph.def mapping files -->
           <mapping resource="org/jbpm/graph/def/ProcessDefinition.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/Node.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/Transition.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/Event.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/Action.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/SuperState.hbm.xml"/>
           <mapping resource="org/jbpm/graph/def/ExceptionHandler.hbm.xml"/>
           <mapping resource="org/jbpm/instantiation/Delegation.hbm.xml"/>
          
           <!-- graph.node mapping files -->
           <mapping resource="org/jbpm/graph/node/StartState.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/EndState.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/ProcessState.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/Decision.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/Fork.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/Join.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/MailNode.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/State.hbm.xml"/>
           <mapping resource="org/jbpm/graph/node/TaskNode.hbm.xml"/>
          
           <!-- context.def mapping files -->
           <mapping resource="org/jbpm/context/def/ContextDefinition.hbm.xml"/>
           <mapping resource="org/jbpm/context/def/VariableAccess.hbm.xml"/>
          
           <!-- taskmgmt.def mapping files -->
           <mapping resource="org/jbpm/taskmgmt/def/TaskMgmtDefinition.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/def/Swimlane.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/def/Task.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/def/TaskController.hbm.xml"/>
          
           <!-- module.def mapping files -->
           <mapping resource="org/jbpm/module/def/ModuleDefinition.hbm.xml"/>
          
           <!-- bytes mapping files -->
           <mapping resource="org/jbpm/bytes/ByteArray.hbm.xml"/>
          
           <!-- file.def mapping files -->
           <mapping resource="org/jbpm/file/def/FileDefinition.hbm.xml"/>
          
           <!-- scheduler.def mapping files -->
           <mapping resource="org/jbpm/scheduler/def/CreateTimerAction.hbm.xml"/>
           <mapping resource="org/jbpm/scheduler/def/CancelTimerAction.hbm.xml"/>
          
           <!-- graph.exe mapping files -->
           <mapping resource="org/jbpm/graph/exe/Comment.hbm.xml"/>
           <mapping resource="org/jbpm/graph/exe/ProcessInstance.hbm.xml"/>
           <mapping resource="org/jbpm/graph/exe/Token.hbm.xml"/>
           <mapping resource="org/jbpm/graph/exe/RuntimeAction.hbm.xml"/>
          
           <!-- module.exe mapping files -->
           <mapping resource="org/jbpm/module/exe/ModuleInstance.hbm.xml"/>
          
           <!-- context.exe mapping files -->
           <mapping resource="org/jbpm/context/exe/ContextInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/TokenVariableMap.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/VariableInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/ByteArrayInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/DateInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/DoubleInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/HibernateLongInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/HibernateStringInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/LongInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/NullInstance.hbm.xml"/>
           <mapping resource="org/jbpm/context/exe/variableinstance/StringInstance.hbm.xml"/>
          
           <!-- job mapping files -->
           <mapping resource="org/jbpm/job/Job.hbm.xml"/>
           <mapping resource="org/jbpm/job/Timer.hbm.xml"/>
           <mapping resource="org/jbpm/job/ExecuteNodeJob.hbm.xml"/>
           <mapping resource="org/jbpm/job/ExecuteActionJob.hbm.xml"/>
          
           <!-- taskmgmt.exe mapping files -->
           <mapping resource="org/jbpm/taskmgmt/exe/TaskMgmtInstance.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/exe/TaskInstance.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/exe/PooledActor.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/exe/SwimlaneInstance.hbm.xml"/>
          
           <!-- logging mapping files -->
           <mapping resource="org/jbpm/logging/log/ProcessLog.hbm.xml"/>
           <mapping resource="org/jbpm/logging/log/MessageLog.hbm.xml"/>
           <mapping resource="org/jbpm/logging/log/CompositeLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/ActionLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/NodeLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/ProcessInstanceCreateLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/ProcessInstanceEndLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/ProcessStateLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/SignalLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/TokenCreateLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/TokenEndLog.hbm.xml"/>
           <mapping resource="org/jbpm/graph/log/TransitionLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/VariableLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/VariableCreateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/VariableDeleteLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/VariableUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/ByteArrayUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/TaskLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/TaskCreateLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/TaskAssignLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/TaskEndLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/SwimlaneLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/SwimlaneCreateLog.hbm.xml"/>
           <mapping resource="org/jbpm/taskmgmt/log/SwimlaneAssignLog.hbm.xml"/>
          
           </session-factory>
          </hibernate-configuration>
          



          • 2. Re: Serious issue getting a basic example of seam 2, jbpm, e
            Mick Knutson Newbie

            in my war the my jbpm.xml:

            <jbpm-configuration>
            
             <jbpm-context>
             <service name="persistence">
             <factory>
             <bean class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
             <field name="isTransactionEnabled"><false/></field>
             </bean>
             </factory>
             </service>
             <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
             <service name="message" factory="org.jbpm.msg.db.DbMessageServiceFactory" />
             <service name="scheduler" factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
             <service name="logging" factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
             <service name="authentication" factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory" />
             </jbpm-context>
            
            </jbpm-configuration>
            


            • 3. Re: Serious issue getting a basic example of seam 2, jbpm, e
              Mick Knutson Newbie

              Sorry for all the code, but there is an issue I have...

              I also have an ejb-jar in this deployment. So when the persistence.xml is in the war, I get this error:

              11:21:34,552 INFO [EARDeployer] Init J2EE application: file:/C:/temp/baselogic/yoursos/ear/target/ear-1.0-SNAPSHOT.ear
              11:21:37,833 WARN [DeploymentInfo] Only the root deployment can set the loader repository, ignoring config=LoaderRepositoryConfig(repositoryName: com.baselogic:loader=ear-1.0
              -SNAPSHOT.ear, repositoryClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3, configParserClassName: org.jboss.mx.loading.HeirarchicalLoaderRepository3ConfigParser,
              repositoryConfig: java2ParentDelegation=false)
              11:21:39,365 WARN [ServiceController] Ignoring request to stop nonexistent service: jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=YourSOS.ejb3,name=UserServiceAction,service=EJB3
              11:21:39,365 WARN [ServiceController] Ignoring request to destroy nonexistent service: jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=YourSOS.ejb3,name=UserServiceAction,service=EJB
              3
              11:21:39,365 WARN [JmxKernelAbstraction] jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=YourSOS.ejb3,name=UserServiceAction,service=EJB3 is not registered
              11:21:39,365 WARN [ServiceController] Problem starting service jboss.j2ee:service=EJB3,module=YourSOS.ejb3
              java.lang.RuntimeException: Illegal @PersistenceUnit on javax.persistence.EntityManager com.baselogic.yoursos.user.UserServiceAction.em :There is no default persistence unit i
              n this deployment.
               at org.jboss.injection.PersistenceContextHandler.handleFieldAnnotations(PersistenceContextHandler.java:182)
               at org.jboss.injection.InjectionUtil.processFieldAnnotations(InjectionUtil.java:137)
               at org.jboss.injection.InjectionUtil.processAnnotations(InjectionUtil.java:174)
               at org.jboss.ejb3.EJBContainer.processMetadata(EJBContainer.java:354)
               at org.jboss.ejb3.SessionContainer.processMetadata(SessionContainer.java:120)
               at org.jboss.ejb3.Ejb3Deployment.processEJBContainerMetadata(Ejb3Deployment.java:292)
               at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:356)
               at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy33.start(Unknown Source)
               at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
               at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
               at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
               at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
               at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy34.start(Unknown Source)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
               at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:287)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:102)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:595)
              11:21:39,380 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/YourSOS.ejb3
              11:21:39,427 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
              11:21:39,443 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=jboss-seam.ejb3,name=TimerServiceDispatcher,service=EJB3 with dependencies:
              
              11:21:39,646 INFO [EJBContainer] STARTED EJB: org.jboss.seam.async.TimerServiceDispatcher ejbName: TimerServiceDispatcher
              11:21:39,708 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateful.StatefulContainer
              11:21:39,708 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=jboss-seam.ejb3,name=EjbSynchronizations,service=EJB3 with dependencies:
              11:21:39,771 INFO [EJBContainer] STARTED EJB: org.jboss.seam.transaction.EjbSynchronizations ejbName: EjbSynchronizations
              11:21:39,787 INFO [EJB3Deployer] Deployed: file:/C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/jboss-seam.ejb3
              11:21:39,802 INFO [TomcatDeployer] deploy, ctxPath=/yoursos, warUrl=.../tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/yoursos-war-exp.war/
              11:21:43,896 INFO [ServletContextListener] Welcome to Seam 2.0.0-SNAPSHOT
              11:21:43,912 INFO [Scanner] scanning: /C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/jboss-seam.ejb3
              11:21:44,021 INFO [Scanner] scanning: /C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/yoursos-war-exp.war/WEB-INF/lib/jboss-seam-ioc-2.0.0-
              SNAPSHOT.jar
              11:21:44,021 INFO [Scanner] scanning: /C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/yoursos-war-exp.war/WEB-INF/lib/jboss-seam-remoting-2
              .0.0-SNAPSHOT.jar
              11:21:44,037 INFO [Scanner] scanning: /C:/jboss-4.2.1.GA/server/default/tmp/deploy/tmp24491ear-1.0-SNAPSHOT.ear-contents/yoursos-war-exp.war/WEB-INF/lib/jboss-seam-ui-2.0.0-S
              NAPSHOT.jar
              


              When I move the persistence.xml to the META-INF directory of my ejb jar, I get this error:
              11:27:35,791 INFO [Contexts] starting up: org.jboss.seam.ui.resource.webResource
              11:27:35,791 INFO [Contexts] starting up: org.jboss.seam.bpm.jbpm
              11:27:35,807 ERROR [[/yoursos]] Exception sending context initialized event to listener instance of class org.jboss.seam.servlet.SeamListener
              java.lang.ExceptionInInitializerError
               at org.jboss.seam.bpm.Jbpm.<clinit>(Jbpm.java:305)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
               at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
               at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
               at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
               at java.lang.Class.newInstance0(Class.java:350)
               at java.lang.Class.newInstance(Class.java:303)
               at org.jboss.seam.Component.instantiateJavaBean(Component.java:1317)
               at org.jboss.seam.Component.instantiate(Component.java:1273)
               at org.jboss.seam.Component.newInstance(Component.java:1971)
               at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)
               at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)
               at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:95)
               at org.jboss.seam.init.Initialization.init(Initialization.java:554)
               at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:34)
               at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3854)
               at org.apache.catalina.core.StandardContext.start(StandardContext.java:4359)
               at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)
               at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)
               at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:553)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
               at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.apache.catalina.core.StandardContext.init(StandardContext.java:5310)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.apache.tomcat.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:297)
               at org.jboss.mx.server.RawDynamicInvoker.invoke(RawDynamicInvoker.java:164)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:301)
               at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
               at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
               at org.jboss.web.WebModule.startModule(WebModule.java:83)
               at org.jboss.web.WebModule.startService(WebModule.java:61)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
               at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
               at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
               at $Proxy0.start(Unknown Source)
               at org.jboss.system.ServiceController.start(ServiceController.java:417)
               at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy45.start(Unknown Source)
               at org.jboss.web.AbstractWebContainer.start(AbstractWebContainer.java:466)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
               at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
               at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
               at org.jboss.ws.integration.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:93)
               at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
               at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
               at $Proxy46.start(Unknown Source)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
               at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
               at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
               at sun.reflect.GeneratedMethodAccessor18.invoke(Unknown Source)
               at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
               at java.lang.reflect.Method.invoke(Method.java:585)
               at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
               at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
               at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
               at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
               at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
               at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
               at org.jboss.jmx.adaptor.control.Server.invokeOpByName(Server.java:258)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.invokeOpByName(HtmlAdaptorServlet.java:287)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.processRequest(HtmlAdaptorServlet.java:102)
               at org.jboss.jmx.adaptor.html.HtmlAdaptorServlet.doGet(HtmlAdaptorServlet.java:77)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
               at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
               at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
               at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
               at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
               at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
               at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
               at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
               at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
               at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
               at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
               at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
               at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
               at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
               at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
               at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
               at java.lang.Thread.run(Thread.java:595)
              Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class 'org.apache.commons.logging.impl.Log4JLogger' cannot be found or is not useable.
               at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:798)
               at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:601)
               at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:333)
               at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:307)
               at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:645)
               at org.jbpm.JbpmConfiguration.<clinit>(JbpmConfiguration.java:585)
               ... 122 more
              


              • 4. Re: Serious issue getting a basic example of seam 2, jbpm, e
                Pete Muir Master

                1) If you want to use ejb3 you must use an ear and put persistence.xml in the ejb3 module

                I would recommend you follow the packaging structure of the dvdstore example

                • 5. Re: Serious issue getting a basic example of seam 2, jbpm, e
                  Mick Knutson Newbie

                  I do have an ear with my ejb3 jar and my war.

                  I moved the persistence.xml back into my ejb3 jar.

                  I get a *** error:

                  12:08:10,182 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.RESOURCE_VIRTUAL_PATH' found, using default value /faces/myFacesExtensionResource
                  12:08:10,182 INFO [MyfacesConfig] No context init parameter 'org.apache.myfaces.CHECK_EXTENSIONS_FILTER' found, using default value true
                  12:08:10,182 INFO [MyfacesConfig] Starting up Tomahawk on the RI-JSF-Implementation.
                  12:08:20,197 WARN [lifecycle] Could not instantiate Seam component: userService
                  org.jboss.seam.InstantiationException: Could not instantiate Seam component: userService
                   at org.jboss.seam.Component.newInstance(Component.java:1975)
                   at org.jboss.seam.Component.getInstance(Component.java:1878)
                   at org.jboss.seam.Component.getInstance(Component.java:1845)
                   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:55)
                   at org.jboss.seam.Namespace.getComponentInstance(Namespace.java:50)
                   at org.jboss.seam.el.SeamELResolver.resolveBase(SeamELResolver.java:166)
                   at org.jboss.seam.el.SeamELResolver.getValue(SeamELResolver.java:53)
                   at javax.el.CompositeELResolver.getValue(CompositeELResolver.java:53)
                   at com.sun.faces.el.FacesCompositeELResolver.getValue(FacesCompositeELResolver.java:64)
                   at org.jboss.el.parser.AstIdentifier.getValue(AstIdentifier.java:44)
                   at org.jboss.el.parser.AstValue.getTarget(AstValue.java:34)
                   at org.jboss.el.parser.AstValue.invoke(AstValue.java:95)
                   at org.jboss.el.MethodExpressionImpl.invoke(MethodExpressionImpl.java:276)
                   at com.sun.facelets.el.TagMethodExpression.invoke(TagMethodExpression.java:68)
                   at javax.faces.component.MethodBindingMethodExpressionAdapter.invoke(MethodBindingMethodExpressionAdapter.java:77)
                   at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:91)
                   at javax.faces.component.UICommand.broadcast(UICommand.java:383)
                   at org.ajax4jsf.component.AjaxViewRoot.processEvents(AjaxViewRoot.java:184)
                   at org.ajax4jsf.component.AjaxViewRoot.broadcastEvents(AjaxViewRoot.java:162)
                   at org.ajax4jsf.component.AjaxViewRoot.processApplication(AjaxViewRoot.java:350)
                   at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)
                   at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
                   at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
                   at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
                   at org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:68)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.MultipartFilter.doFilter(MultipartFilter.java:85)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.ExceptionFilter.doFilter(ExceptionFilter.java:64)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.RedirectFilter.doFilter(RedirectFilter.java:44)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:141)
                   at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:281)
                   at org.jboss.seam.web.Ajax4jsfFilter.doFilter(Ajax4jsfFilter.java:60)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
                   at org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
                   at org.jboss.seam.servlet.SeamFilter.doFilter(SeamFilter.java:150)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
                   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
                   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
                   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
                   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
                   at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
                   at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
                   at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
                   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
                   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
                   at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
                   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
                   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
                   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
                   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
                   at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
                   at java.lang.Thread.run(Thread.java:595)
                  Caused by: javax.naming.NameNotFoundException: UserServiceAction not bound
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
                   at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
                   at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
                   at org.jnp.server.NamingServer.lookup(NamingServer.java:267)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:627)
                   at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:589)
                   at javax.naming.InitialContext.lookup(InitialContext.java:351)
                   at org.jboss.seam.Component.instantiateSessionBean(Component.java:1292)
                   at org.jboss.seam.Component.instantiate(Component.java:1278)
                   at org.jboss.seam.Component.newInstance(Component.java:1971)
                   ... 60 more
                  


                  But in my logs above, it seems that it is there:
                  12:07:22,900 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:ear=ear-1.0-SNAPSHOT.ear,jar=YourSOS.ejb3,name=UserServiceAction,service=EJB3 with dependencies:
                  12:07:22,900 INFO [JmxKernelAbstraction] persistence.units:ear=ear-1.0-SNAPSHOT.ear,jar=YourSOS.ejb3.jar,unitName=yoursosEntityManagerFactory
                  12:07:23,119 INFO [EJBContainer] STARTED EJB: com.baselogic.yoursos.user.UserServiceAction ejbName: UserServiceAction
                  
                  ...
                  
                  12:07:32,181 INFO [Component] Component: org.jboss.seam.web.userPrincipal, scope: APPLICATION, type: JAVA_BEAN, class: org.jboss.seam.faces.UserPrincipal
                  12:07:32,181 INFO [Component] Component: userService, scope: CONVERSATION, type: STATEFUL_SESSION_BEAN, class: com.baselogic.yoursos.user.UserServiceAction, JNDI: UserService
                  Action/local
                  12:07:32,197 INFO [Contexts] starting up: org.jboss.seam.ui.resource.styleResource
                  12:07:32,197 INFO [Contexts] starting up: org.jboss.seam.remoting.remoting
                  12:07:32,197 INFO [Contexts] starting up: org.jboss.seam.ui.graphicImage.graphicImageResource
                  12:07:32,197 INFO [Contexts] starting up: org.jboss.seam.ui.resource.webResource
                  12:07:32,197 INFO [Contexts] starting up: org.jboss.seam.bpm.jbpm
                  12:07:33,150 INFO [Initialization] done initializing Seam
                  
                  




                  • 6. Re: Serious issue getting a basic example of seam 2, jbpm, e
                    Pete Muir Master

                    Your jndi-pattern in components.xml is wrong - it should be ear-name/#{ejbName}/local

                    • 7. Re: Serious issue getting a basic example of seam 2, jbpm, e
                      Mick Knutson Newbie

                      Got that, and that helped. Thanks!

                      I have another isuue though as soon as that one was complete:

                      Exception during request processing:
                      Caused by javax.servlet.ServletException with message: "#{userService.startRegistration}: javax.ejb.EJBTransactionRolledbackException: @In attribute requires non-null value: userService.user"

                      Here is my UserServiceAction:

                      package com.baselogic.yoursos.user;
                      
                      import org.hibernate.validator.InvalidStateException;
                      import org.hibernate.validator.InvalidValue;
                      
                      import org.jboss.seam.annotations.Begin;
                      import org.jboss.seam.annotations.In;
                      import org.jboss.seam.annotations.Name;
                      import org.jboss.seam.annotations.Out;
                      import org.jboss.seam.bpm.Actor;
                      import org.jboss.seam.contexts.Context;
                      import org.jboss.seam.faces.FacesMessages;
                      import org.jboss.seam.security.Identity;
                      
                      import javax.annotation.Resource;
                      
                      import javax.ejb.Remove;
                      import javax.ejb.SessionContext;
                      import javax.ejb.Stateful;
                      
                      import javax.persistence.EntityManager;
                      import javax.persistence.PersistenceContext;
                      
                      
                      /**
                       * User Service Bean.
                       */
                      @Stateful
                      @Name("userService")
                      public class UserServiceAction implements UserService {
                      
                       /** variable. */
                       @PersistenceContext EntityManager em;
                      
                       /** variable. */
                       @Resource SessionContext ctx;
                      
                       /** variable. */
                       @In Context sessionContext;
                      
                       /** variable. */
                       @In(create=true)
                       @Out
                       User user;
                      
                       /** variable. */
                       @In FacesMessages facesMessages;
                      
                       /** variable. */
                       @In Identity identity;
                      
                       /** variable. */
                       String password = null;
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @param password todo DOCUMENT ME!
                       */
                       public void setPasswordVerify(String password) {
                       this.password = password;
                       }
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @return todo DOCUMENT ME!
                       */
                       public String getPasswordVerify() {
                       return password;
                       }
                      
                      
                       /**
                       * todo DOCUMENT ME!
                       */
                       @Begin(
                       nested = true,
                       pageflow = "registration"
                       )
                       public void startRegistration() {
                       }
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @return todo DOCUMENT ME!
                       */
                       public boolean isValidNamePassword() {
                       boolean ok = true;
                      
                       if (!isUniqueName()) {
                       facesMessages.add("userName", "This name is already in use");
                       ok = false;
                       }
                      
                       if (!isPasswordsMatch()) {
                       facesMessages.add("passwordVerify", "Must match password field");
                       ok = false;
                       }
                      
                       return ok;
                       }
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @return todo DOCUMENT ME!
                       */
                       @SuppressWarnings("unchecked")
                       private boolean isUniqueName() {
                       String name = user.getUsername();
                      
                       /*if (name == null) return true;
                      
                       List<User> results = em.createQuery("select u from User u where u.userName = :name")
                       .setParameter("name", name)
                       .getResultList();
                      
                       return results.size() == 0;*/
                       return true;
                       }
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @return todo DOCUMENT ME!
                       */
                       private boolean isPasswordsMatch() {
                       String customerpass = user.getPassword();
                      
                       return (password != null) && (customerpass != null)
                       && (customerpass.equals(password));
                       }
                      
                       /**
                       * todo DOCUMENT ME!
                       *
                       * @return todo DOCUMENT ME!
                       */
                       public String saveUser() {
                      
                       if (!isValidNamePassword()) {
                       /////facesMessages.add("User name #{customer.userName} is not unique");
                      
                       return null;
                       }
                      
                       try {
                       em.persist(user);
                       sessionContext.set("currentUser", user);
                       Actor.instance().setId(user.getUsername());
                      
                       identity.setUsername(user.getUsername());
                       identity.setPassword(user.getPassword());
                       identity.login();
                      
                       facesMessages.addFromResourceBundle("createCustomerSuccess");
                      
                       return "success";
                       } catch (InvalidStateException e) {
                       InvalidValue[] vals = e.getInvalidValues();
                      
                       for (InvalidValue val : vals) {
                       facesMessages.add(val);
                       }
                      
                       return null;
                       } catch (RuntimeException e) {
                       ctx.setRollbackOnly();
                      
                       facesMessages.addFromResourceBundle("createCustomerError");
                      
                       return null;
                       }
                       }
                      
                       /*public Map<String, Integer> getCreditCardTypes() {
                       Map<String, Integer> map = new TreeMap<String, Integer>();
                       for (int i = 1; i <= 5; i++) {
                       map.put(Customer.cctypes[i - 1], i);
                       }
                       return map;
                       }*/
                      
                       /**
                       * todo DOCUMENT ME!
                       */
                       @Remove public void destroy() {
                       }
                      
                      } // The End...
                      



                      • 8. Re: Serious issue getting a basic example of seam 2, jbpm, e
                        Pete Muir Master

                        Do you have a factory or component for user?