[jboss-user] [JBoss Seam] - Serious issue getting a basic example of seam 2, jbpm, ejb3

mickknutson do-not-reply at jboss.com
Wed Oct 24 14:17:45 EDT 2007


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>
  | 
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4098471#4098471

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4098471



More information about the jboss-user mailing list