2 Replies Latest reply on Nov 24, 2008 2:45 PM by salaboy21

    Implement JBPM on WEBLogic and using DB2

    momocha

      hi all,

      i have a problem implementing the jbpm on weblogic using db2 ...
      i want to deploy the process definition ... with this class ...


      public static void main( String[] args ) {
      String processDef = args[0];
      ProcessDefinition processDefinition = ProcessDefinition.parseXmlResource( processDef );
      JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
      try {
      jbpmContext.deployProcessDefinition(processDefinition);
      } finally {
      jbpmContext.close();
      }
      }


      and the connection for the hibernate, i'm using the jndi ...

      OFAPool
      t3://localhost:80
      weblogic.jndi.WLInitialContextFactory
      org.hibernate.dialect.DB2Dialect


      and here is the error ...

      [java] DEBUG - 15 Sep 2008 19:51:16,845:org.hibernate.jdbc.AbstractBatcher - closing statement
      [java] DEBUG - 15 Sep 2008 19:51:16,855:org.hibernate.util.JDBCExceptionReporter - could not execute query [select proce
      ssdef0_.ID_ as ID1_4_, processdef0_.NAME_ as NAME3_4_, processdef0_.DESCRIPTION_ as DESCRIPT4_4_, processdef0_.VERSION_ as VE
      RSION5_4_, processdef0_.ISTERMINATIONIMPLICIT_ as ISTERMIN6_4_, processdef0_.STARTSTATE_ as STARTSTATE7_4_ from JBPM_PROCESSD
      EFINITION processdef0_ where processdef0_.NAME_=? order by processdef0_.VERSION_ desc]
      [java] java.sql.SQLException: [BEA][DB2 JDBC Driver][DB2]ILLEGAL SYMBOL ; VALID SYMBOLS ARE )