Dear users,
Usually, I use JDedveloper IDE, Oracle Database (9 or higher) and OC4J ApplicationServer for running J2EE Applications, Recently I have downloded JBPM-Workflow (jbpm-3.1.2.zip), and I tried to run a workflow sample, At first I made a simple Table in Oracle DB (TEST) and I created
a hbm.xml file as below symmetry with same Table:
==================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-mapping PUBLIC
"-//Hibernate/Hibernate Mapping DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">
<hibernate-mapping>
<class name="org.jbpm.graph.action.Test" table="TEST" dynamic-update="true" dynamic-insert="true">
<id name="id" column="ID" type="java.lang.Long">
<generator class="increment">
</generator>
</id>
<property name="name" type="java.lang.String" update="true" insert="true" column="NAME" />
<property name="lastName" type="java.lang.String" update="true" insert="true" column="LASTNAME" />
<property name="age" type="java.lang.Integer" update="true" insert="true" column="AGE" />
</class>
</hibernate-mapping>
==================================
Also I defined my hibernate.cfg.xml configuration as below:
==================================
<hibernate-configuration>
<session-factory>
<!-- jdbc connection properties -->
<property name="hibernate.dialect">org.hibernate.dialect.Oracle9Dialect</property>
<property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
<property name="hibernate.connection.url">jdbc:oracle:thin:@200.20.20.7:1521:ora10g</property>
<property name="hibernate.connection.username">user</property>
<property name="hibernate.connection.password">pass</property>
<mapping resource="org/jbpm/graph/action/Test.hbm.xml"/>
</session-factory>
</hibernate-configuration>
==================================
when I try to initialize my application with these, I get this error when "SessionFactory" is making:
SessionFactoryImpl:153 - building session factory
net.sf.ehcache.CacheException: Cannot configure
CacheManager: Resource /'ehcache-failsafe.xml' not found
It seem it's not because of missing this file and I think this is another problem.
however I can not solve this problem.
please guide me.
Regards
-- Amir Sharif
[/quote]
_________________ -- amir
|