[jboss-jira] [JBoss JIRA] Created: (JBPM-857) NullPointerException when using console in jboss 4.0.5.GA
Tom Baeyens (JIRA)
jira-events at lists.jboss.org
Thu Mar 1 03:04:08 EST 2007
NullPointerException when using console in jboss 4.0.5.GA
---------------------------------------------------------
Key: JBPM-857
URL: http://jira.jboss.com/jira/browse/JBPM-857
Project: JBoss jBPM
Issue Type: Bug
Components: Core Engine
Affects Versions: jBPM jPDL 3.2 beta 2
Environment: jboss 4.0.5.GA
Reporter: Tom Baeyens
Assigned To: Tom Baeyens
> Ashok Kumar wrote:
>> Jeff
>>
>> I downloaded 3.2.beta2 and deployed it into my jboss 4.0.5.GA server.
>> Fired up the console and logged in as 'ernie' and right away I got a
>> NullPointerException.
>>
>> Out of curiosity, I thought I would check out the pre-packaged suite in
>> my jbpm 3.2.beta1 environment.I fired up the server and launched
>> jbpm-console; logged in as ernie. Then successfully launched a process
>> instance of the already existing process definition. There were some
>> glitches but I could progress from task to task, as it went from web
>> sale order creation to payment to shipping, etc.
>>
>> Therefore, in this suite environment with the pre-populated database
>> schema and table rows, the process instance seems to work OK (barring
>> some gliches). In this same environment, through the jbpm-console if I
>> upload my websale.par and then launch a process instance, the first task
>> appears for ernie, but if I drill into it I get a NullPointerException -
>> the very same thing I encountered in step 18 in my non-suite environment
>> [I get /common/template.xhtml @59,71 value =
>> "{taskInstanceBean.idParameter}:java.lang.NullPointerException].
>>
>> BTW, I repeated the above test for the jbpm 3.2.beta2 environment as
>> well with identical result.
>>
>> So the issue does not appear to be jbpm console behavior in an
>> environment where jbpm is deployed to a Jboss 4.05.GA with SQL server
>> database[my environment] Versus jbpm console behavior in the 3.2.beta1
>> suite environment.
>> The issue is jbpm console behavior in handling task instances for a
>> process instance where the process definition was uploaded by the user.
>> Wondering if I should be filing a support case for this.
>>
>> Ashok
>>
>> -----Original Message-----
>> From: Jeff DeLong [mailto:jdelong at redhat.com] Sent: Tuesday, February
>> 27, 2007 4:09 PM
>> To: Ashok Kumar
>> Subject: Re: Following up on transaction issue
>>
>>
>> Downloaded jbpm suite 3.2.beta1 ?
>>
>> If this is the case you should download beta2. There were real issues
>> with console and beta1.
>>
>> Jeff
>>
>>
>>
>> Ashok Kumar wrote:
>>
>>> Jeff
>>>
>>> I list the process instances. For a given process instance I drill
>>> into it. However the list of tasks is empty.
>>>
>>> I may have just stumbled into admin console issues.
>>>
>>> Here's how I set up my system and deployed jbpm
>>>
>>> 1. Downloaded jbpm suite 3.2.beta1
>>> 2. Exploded jbpm-enterprise.ear into a directory
>>> 3. Replaced hibernate.cfg.xml and jbpm.cfg.xml in jbpm-configs.jar
>>> with my own
>>>
>>> In hibernate.cfg.xml I define my own MSSQL server data source
>>> In jbpm.cfg.xml I set isCurrentSessionEnabled false.
>>> 4. Repackaged jbpm-enterprise.ear
>>>
>>> 5. Ran the database sql scripts for mssql.
>>> 6. Created sql schema for the identity management component tables 7.
>>> Populated the identity management tables with users (ernie,bert,etc)
>>> and roles and groups.
>>>
>>> 8. Deployed .ear file into Jboss 4.0.5.GA
>>>
>>> 9. Started the jboss server; server started fine; application deployed
>>>
>>
>>
>>> fine 10. Pointed the browser at the jbpm-console.
>>>
>>> 11. Logged in as ernie
>>>
>>> 12. Uploaded websale.par file.
>>> 13. Did 'Find Process' to get list of process definitions
>>>
>>> 14. Started process instance of the websale process definition.
>>>
>>> 15. Get following messages in the page:
>>>
>>> New Tasks created
>>> New process started successfully.
>>>
>>> Task listed in the table under New Tasks created
>>> 8 View Created new web sale order ernie 3
>>> 16. I look at the jboss server console (where I had set the logging
>>> level to DEBUG) ; no errors
>>>
>>> 17. At this point if I look at the JBPM_TASKINSTANCE table in the
>>> database, a new row exists, but
>>> actorId_ is null.
>>>
>>> 18. If I drill into 'View' in step 15 I get
>>> /common/template.xhtml @ 59,71 value
>>> ="#{taskInstanceBean.idParameter}:java.lang.NullPointerException.
>>>
>>> 19. Even if I open a new browser instance and log in the task list
>>> for ernie it is empty.
>>>
>>>
>>>
>>> Whats bugging me is why is the actorId_ null in JBPM_TASKINSTANCE?. Is
>>>
>>
>>
>>> that whats causing the other problems. Is there possible set up issues..
>>>
>>> I am attaching hibernate.cfg.xml and jbpm.cfg.xml
>>>
>>> If any required steps are missing or there could be any other
>>> configuration glitch, please let me know.
>>>
>>> Thanks
>>>
>>> Ashok
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Jeff DeLong [mailto:jdelong at redhat.com]
>>> Sent: Tuesday, February 27, 2007 2:00 PM
>>> To: Ashok Kumar
>>> Subject: Re: Following up on transaction issue
>>>
>>>
>>> However, I think this may be more of an issue with the new admin
>>> console, and how to navigate with it. The fact is that the
>>>
>> taskInstance
>>> has not been assigned to the logged in user, and it is somewhat
>>> confusing to see it after the processInstance is started. Try going to
>>>
>>
>>
>>> the taskInstance page and assign it to a user.
>>>
>>> Jeff
>>>
>>> Ashok Kumar wrote:
>>>
>>>> Jeff
>>>>
>>>> Attached is the hibernate.cfg.xml file. The basic problem is that
>>>> when I launch a process instance from the jbpm console, I see a task
>>>> item for the logged in user; however when I drill into it a Null
>>>> Pointer Exception is generated.
>>>>
>>>> Upon examination of the JBPM_TASKINSTANCE table , a row does exist
>>>> for the task but the actorId_ is null. Has the indications of a
>>>> transaction issue. The isCurrentSessionEnabled property is set to
>>>>
>>> false.
>>>
>>>>
>>>> Ashok
>>>>
>>>>
>>>> Ashok Kumar | Principal Engineer, OA Infrastructure team |* **Infor* |
>>>> office: 650.578.7554 | ashok.kumar at infor.com
>>>> <mailto:ashok.kumar at infor.com>
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> -
>>>> --
>>>>
>>>> <?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>
>>>>
>>>> <!-- hibernate dialect -->
>>>> <property
>>>>
>>>>
>>> name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</prope
>>> rt
>>> y>
>>>
>>>>
>>>> <!-- JDBC connection properties (begin) -->
>>>> <property
>>>> name="hibernate.connection.datasource">java:jdbc/jbpmdb</property>
>>>>
>>>> <!-- JDBC connection properties (begin) ===
>>>> <property
>>>>
>>> name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</proper
>>> ty
>>>
>>>> <property
>>>>
>>> name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
>>>
>>>> <property name="hibernate.connection.username">sa</property>
>>>> <property name="hibernate.connection.password"></property>
>>>> === JDBC connection properties (end) -->
>>>> <property
>>>>
>>>>
>>> name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCac
>>> he
>>> Provider</property>
>>>
>>>> <!-- JBoss transaction manager lookup (begin) ===
>>>> <property
>>>>
>>> name="hibernate.transaction.manager_lookup_class">org.hibernate.transa
>>> ct
>>> ion.JBossTransactionManagerLookup</property>
>>>
>>>> ==== JBoss transaction manager lookup (end) -->
>>>>
>>>> <!-- DataSource properties (begin) ===
>>>> <property
>>>>
>>> name="hibernate.connection.datasource">java:/JbpmDS</property>
>>>
>>>> ==== DataSource properties (end) -->
>>>> <!-- JTA transaction properties (begin) ===
>>>> <property
>>>>
>>> name="hibernate.transaction.factory_class">org.hibernate.transaction.J
>>> TA
>>> TransactionFactory</property>
>>>
>>>> <property
>>>>
>>> name="jta.UserTransaction">java:comp/UserTransaction</property>
>>>
>>>> ==== JTA transaction properties (end) -->
>>>>
>>>> <!-- CMT transaction properties (begin) ===
>>>> <property
>>>>
>>> name="hibernate.transaction.factory_class">org.hibernate.transaction.C
>>> MT
>>> TransactionFactory</property>
>>>
>>>> <property
>>>>
>>> name="hibernate.transaction.manager_lookup_class">org.hibernate.transa
>>> ct
>>> ion.JBossTransactionManagerLookup</property>
>>>
>>>> ==== CMT transaction properties (end) -->
>>>>
>>>> <!-- logging properties (begin) ===
>>>> <property name="hibernate.show_sql">true</property>
>>>> <property name="hibernate.format_sql">true</property>
>>>> <property name="hibernate.use_sql_comments">true</property>
>>>> ==== logging properties (end) -->
>>>> <!-- ############################################ -->
>>>> <!-- # 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.xm
>>> l"
>>> />
>>>
>>>> ==== jcr mappings (end) -->
>>>>
>>>>
>>>> <!-- ###################### -->
>>>> <!-- # jbpm mapping files # -->
>>>> <!-- ###################### -->
>>>>
>>>> <!-- hql queries and type defs -->
>>>> <mapping resource="org/jbpm/db/hibernate.queries.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/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.
>>> xm
>>> l"/>
>>>
>>>> <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.
>>> hb
>>> m.xml"/>
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/exe/variableinstance/HibernateStringInstanc
>>> e.
>>> 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
>>> .x
>>> ml"/>
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/DateUpdateLog.hbm.xml"
>>> />
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/DoubleUpdateLog.hbm.xm
>>> l"
>>> />
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/HibernateLongUpdateLog
>>> .h
>>> bm.xml"/>
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/HibernateStringUpdateL
>>> og
>>> .hbm.xml"/>
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/LongUpdateLog.hbm.xml"
>>> />
>>>
>>>> <mapping
>>>>
>>> resource="org/jbpm/context/log/variableinstance/StringUpdateLog.hbm.xm
>>> l"
>>> />
>>>
>>>> <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>
>>>>
>>>> ---------------------------------------------------------------------
>>>> ---
>>>>
>>>> <jbpm-configuration>
>>>>
>>>> <jbpm-context>
>>>> <service name="persistence">
>>>> <factory>
>>>> <bean
>>>>
>> class="org.jbpm.persistence.db.DbPersistenceServiceFactory">
>>
>>>> <field name="isCurrentSessionEnabled"><false /></field>
>>>> <field name="isTransactionEnabled"><false /></field>
>>>> </bean>
>>>> </factory>
>>>> </service>
>>>> <service name="message">
>>>> <factory>
>>>> <bean class="org.jbpm.msg.jms.JmsMessageServiceFactoryImpl">
>>>> <field name="connectionFactoryJndiName"><string
>>>>
>> value="java:/JmsXA"/></field>
>>
>>>> <field name="destinationJndiName"><string
>>>>
>> value="queue/JbpmCommandQueue"/></field>
>>
>>>> </bean>
>>>> </factory>
>>>> </service>
>>>> <service name="scheduler"
>>>> factory="org.jbpm.scheduler.ejbtimer.EjbSchedulerServiceFactory" />
>>>>
>>>> <service name="tx" factory="org.jbpm.tx.TxServiceFactory" />
>>>> <service name="logging"
>>>>
>> factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
>>
>>>> <service name="authentication"
>>>>
>> factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFa
>> ctory" />
>>
>>>> </jbpm-context>
>>>>
>>>> <!-- configuration property used by persistence service impl
>>>>
>> org.jbpm.persistence.db.DbPersistenceServiceFactory -->
>>
>>>> <string name="resource.hibernate.cfg.xml" value="hibernate.cfg.xml"
>>>>
>>
>>
>>>> />
>>>>
>>>> <!-- configuration resource files pointing to default configuration
>>>>
>> files in jbpm-jpdl.jar -->
>>
>>>> <string name="resource.business.calendar"
>>>>
>> value="org/jbpm/calendar/jbpm.business.calendar.properties" />
>>
>>>> <string name="resource.default.modules"
>>>>
>> value="org/jbpm/graph/def/jbpm.default.modules.properties" />
>>
>>>> <string name="resource.converter"
>>>>
>> value="org/jbpm/db/hibernate/jbpm.converter.properties" />
>>
>>>> <string name="resource.action.types"
>>>>
>> value="org/jbpm/graph/action/action.types.xml" />
>>
>>>> <string name="resource.node.types"
>>>>
>> value="org/jbpm/graph/node/node.types.xml" />
>>
>>>> <string name="resource.parsers"
>>>>
>> value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
>>
>>>> <string name="resource.varmapping"
>>>>
>> value="org/jbpm/context/exe/jbpm.varmapping.xml" />
>>
>>>> <string name="resource.mail.templates"
>>>> value="jbpm.mail.templates.xml" />
>>>>
>>>> <int name="jbpm.byte.block.size" value="1024" singleton="true"
>>>>
>> />
>>
>>>> <string name="jbpm.mail.smtp.host" value="localhost" />
>>>> <bean name="jbpm.task.instance.factory"
>>>>
>> class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl"
>> singleton="true" />
>>
>>>> <bean name="jbpm.variable.resolver"
>>>>
>> class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true" />
>>
>>>> <bean name="jbpm.mail.address.resolver"
>>>>
>> class="org.jbpm.identity.mail.IdentityAddressResolver" singleton="true"
>> />
>>
>>>> <!-- note that the default job executor needs to be overwritten
>>>>
>> with a null value -->
>>>> <null name="jbpm.job.executor" />
>>>> </jbpm-configuration>
>>>>
>>>> ---------------------------------------------------------------------
>>>> ---
>>>>
>>>> <?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>
>>>>
>>>> <!-- hibernate dialect -->
>>>> <property
>>>>
>> name="hibernate.dialect">org.hibernate.dialect.SQLServerDialect</propert
>> y>
>>
>>>>
>>>> <!-- JDBC connection properties (begin) -->
>>>> <property
>>>> name="hibernate.connection.datasource">java:jdbc/jbpmdb</property>
>>>>
>>>> <!-- JDBC connection properties (begin) ===
>>>> <property
>>>>
>> name="hibernate.connection.driver_class">org.hsqldb.jdbcDriver</property
>>
>>>> <property
>>>>
>> name="hibernate.connection.url">jdbc:hsqldb:mem:jbpm</property>
>>
>>>> <property name="hibernate.connection.username">sa</property>
>>>> <property name="hibernate.connection.password"></property>
>>>> === JDBC connection properties (end) -->
>>>> <property
>>>>
>> name="hibernate.cache.provider_class">org.hibernate.cache.HashtableCache
>> Provider</property>
>>
>>>> <!-- JBoss transaction manager lookup (begin) === -->
>>>> <property
>>>>
>> name="hibernate.transaction.manager_lookup_class">org.hibernate.transact
>> ion.JBossTransactionManagerLookup</property>
>>>> <!-- ==== JBoss transaction manager lookup (end) -->
>>>>
>>>> <!-- DataSource properties (begin) ===
>>>> <property
>>>>
>> name="hibernate.connection.datasource">java:/JbpmDS</property>
>>
>>>> ==== DataSource properties (end) -->
>>>> <!-- JTA transaction properties (begin) === -->
>>>> <property
>>>>
>> name="hibernate.transaction.factory_class">org.hibernate.transaction.JTA
>> TransactionFactory</property>
>>
>>>> <property
>>>>
>> name="jta.UserTransaction">java:comp/UserTransaction</property>
>>
>>>> <!-- ==== JTA transaction properties (end) -->
>>>>
>>>> <!-- CMT transaction properties (begin) ===
>>>> <property
>>>>
>> name="hibernate.transaction.factory_class">org.hibernate.transaction.CMT
>> TransactionFactory</property>
>>
>>>> <property
>>>>
>> name="hibernate.transaction.manager_lookup_class">org.hibernate.transact
>> ion.JBossTransactionManagerLookup</property>
>>
>>>> ==== CMT transaction properties (end) -->
>>>>
>>>> <!-- logging properties (begin) ===
>>>> <property name="hibernate.show_sql">true</property>
>>>> <property name="hibernate.format_sql">true</property>
>>>> <property name="hibernate.use_sql_comments">true</property>
>>>> ==== logging properties (end) -->
>>>> <!-- ############################################ -->
>>>> <!-- # 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.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/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.xm
>> l"/>
>>
>>>> <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.hb
>> m.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.xm
>>>> l"/>
>>>>
>>>> <!-- 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.x
>> ml"/>
>>
>>>> <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.h
>> bm.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>
>>>>
>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list