Community

jBPM4.3 on Weblogic 9.2

created by Abhishek Chikane in jBPM - View the full discussion

Hi,

 

I am installing jBPM 4.3 on Weblogic 9.2. I followed falling steps.

 

1) Added all the jars (78 jars from jBPM  lib directory) on Weblogic classpath.

2) Added the  jbpm.hibernate.cfg.xml, jbpm.cfg.xml, logging.properties inside my application. (Put on classpath)

3) Here are the xml files details,

    jbpm.hibernate.cfg.xml

     <hibernate-configuration>
     <session-factory>   
        <property  name="connection.datasource">JbpmDS</property>
         <property name="jndi.url">t3://localhost:7001</property>
          <property  name="jndi.class">weblogic.jndi.WLInitialContextFactory</property>
          <property  name="dialect">org.hibernate.dialect.OracleDialect</property>
          <property name="show_sql">false</property>
         <property  name="hibernate.transaction.factory_class">org.hibernate.transaction.JTATransactionFactory</property>
          <property  name="hibernate.transaction.manager_lookup_class">org.hibernate.transaction.WeblogicTransactionManagerLookup</property>
          <property  name="hibernate.transaction.factory_class">org.hibernate.transaction.CMTTransactionFactory</property>
         
        <mapping resource="jbpm.repository.hbm.xml" />
          <mapping resource="jbpm.execution.hbm.xml" />
         <mapping resource="jbpm.history.hbm.xml" />
         <mapping resource="jbpm.task.hbm.xml" />
        <mapping  resource="jbpm.identity.hbm.xml" />

 

     </session-factory>
</hibernate-configuration>

 

      jbpm.cfg.xml

     <jbpm-configuration>
     <import resource="jbpm.default.cfg.xml"/>
    <import  resource="jbpm.tx.hibernate.cfg.xml"/>
    <import  resource="jbpm.tx.jta.cfg.xml" />
    <import  resource="jbpm.jpdl.cfg.xml"/>
    <import  resource="jbpm.businesscalendar.cfg.xml" />
    <import  resource="jbpm.bpmn.cfg.xml" />
    <import  resource="jbpm.identity.cfg.xml" />
    <import  resource="jbpm.jobexecutor.cfg.xml" />
    <import  resource="jbpm.console.cfg.xml" />
</jbpm-configuration>

 

4)  Created a server directory and added a Java option -  -Dorg.jbpm.report.engine.dir and copied the unzipped report zip file and  jbpm reports jar file  to that directory.

5) Created datasource  named JbpmDS and created all the tables(Oracle db).

 

 

The  deployment works fine without error. But now I am facing two problems.

1)  The jbpm console did not allow to login. Authentication failure on weblogic error. I have following entries into tables.

     JBPM4_ID_USER

      1    0    abhishek    abhishek    Abhishek    Chikane     achikane@ccrn.com

 

     JBPM4_ID_GROUP

      1    0    administrator    administrator    security-role      

 

    JBPM4_ID_MEMBERSHIP

     1    0    1    1 

 

      Also I have got this notice in weblogic log.

     <Jun 1,  2010 1:03:34 AM IST> <Notice> <Security>  <BEA-090078> <User abhishek in security realm myrealm has had 5  invalid login attempts, locking account for 30 minutes.>

 

I  haven't created any user on weblogic. Is it due to the role type  (security-role)? Can you please help to resolve this issue?

 

2)  When I try to run the process I got this exception.

 

org.hibernate.TransactionException: Could not register synchronization for container transaction
     at org.hibernate.transaction.CMTTransaction.begin(CMTTransaction.java:76)
     at org.hibernate.impl.SessionImpl.beginTransaction(SessionImpl.java:1353)
     at org.jbpm.pvm.internal.tx.HibernateSessionResource.(HibernateSessionResource.java:44)
     at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:87)
     at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:469)
     at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:448)
     at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:437)

 

Can anybody verify and give me tips why this error is occurring?

Reply to this message by going to Community

Start a new discussion in jBPM at Community