8 Replies Latest reply on Oct 28, 2005 4:49 AM by koen.aers

    Error while deploying processdefinition xml file - java.lang

    s_kumaars

      Hi

      I am deploying the process definition xml file to the Oracle database (10g) using the following ant script and got the error (java.lang.ExceptionInInitializerError).

      Herewith I am sending the properties file as well as the ant script.

      Please help me what I am doing wrong and how to resolve the following problem.

      Thanks for your help.

      Regards
      Kumar.S


      Executing the ANT script -
      -----------------------------

      C:\JBPM\jbpm-2.0\veneer>ant

      Buildfile: build.xml

      clean:
      [delete] Deleting directory C:\JBPM\jbpm-2.0\veneer\target

      compile.process:
      [mkdir] Created dir: C:\JBPM\jbpm-2.0\veneer\target\classes
      [javac] Compiling 1 source file to C:\JBPM\jbpm-2.0\veneer\target\classes

      declare.jbpm.tasks:

      build.process.archives:
      [mkdir] Created dir: C:\JBPM\jbpm-2.0\veneer\target\par
      [par] Building par: C:\JBPM\jbpm-2.0\veneer\target\par\veneerprocess.par

      deploy.process.archives:

      BUILD FAILED
      java.lang.ExceptionInInitializerError

      Total time: 2 seconds


      ANT Script
      -------------

      <project name="jbpm.pde" basedir="." default="deploy.process.archives">
      
      <description>jBpm process development environment</description>
      
      <property file="build.properties" />
      
      <path id="classpath">
      <fileset dir="${base.lib.dir}" includes="${third.party.libs},${jbpm.core.lib}" />
      <fileset dir="${base.lib.dir}" includes="**/*.class"/>
      </path>
      
      <target name="clean" description="removes all generated files">
      <delete dir="target" />
      </target>
      
      <target name="compile.process" depends="clean" description="compiles the classes">
      <mkdir dir="target/classes" />
      <javac srcdir="src/java" destdir="target/classes" debug="on" fork="yes">
      <classpath refid="classpath"/>
      </javac>
      </target>
      
      <target name="build.process.archives" depends="compile.process,declare.jbpm.tasks" description="build the process archive">
      <mkdir dir="target/par" />
      <par destfile="target/par/veneerprocess.par" processdefinitionxml="src/process/VeneerProcess/veneerprocess.xml">
      <classes dir="target/classes" includes="**/*.class" />
      </par>
      </target>
      
      <target name="deploy.process.archives" depends="build.process.archives,declare.jbpm.tasks" description="deploys the process archive">
      <deploypar properties="src/config/jbpm.properties">
      <fileset dir="target/par" includes="*.par" />
      </deploypar>
      </target>
      
      <target name="declare.jbpm.tasks">
      <taskdef name="par" classname="org.jbpm.ant.ParTask">
      <classpath refid="classpath"/>
      </taskdef>
      <taskdef name="deploypar" classname="org.jbpm.ant.DeployParTask">
      <classpath refid="classpath"/>
      </taskdef>
      </target>
      
      </project>



      Configuration
      ----------------

      # hibernate configuration parameters
      hibernate.dialect=org.hibernate.dialect.Oracle9Dialect
      hibernate.connection.driver_class=oracle.jdbc.OracleDriver
      hibernate.connection.url=jdbc:oracle:thin:@styx:1521:ORADEV01
      hibernate.connection.username=cgardner
      hibernate.connection.password=cgardner
      hibernate.show_sql=true
      hibernate.query.substitutions=true 1, false 0

      jbpm.create.tables.log=true

      jbpm.log.default=debug