-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: JBPM Configuration with Hibernate 3.0 & OC4J Appl-Server
PostPosted: Tue Oct 17, 2006 5:30 am 
Newbie

Joined: Tue Oct 17, 2006 4:35 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.