[
https://jira.jboss.org/jira/browse/JBPM-2456?page=com.atlassian.jira.plug...
]
c_inconnu commented on JBPM-2456:
---------------------------------
I just lost 3 hours to figure out why this property is not taken into account. For a first
time JBPM user, this was rude...
I see that when "jbpm.cfg.xml" is parsed, the "JbpmContextInfo"
constructor is called, but inside there is no code retrieving
"resource.hibernate.properties" nor "resource.hibernate.cfg.xml". In
fact when I look into the source of "jbpm-jpdl-3.2.3", there are only 4
references to "resource.hibernate.cfg.xml" and there are all getter like
"JbpmConfiguration.Configs.getString("resource.hibernate.cfg.xml")"
So what about this documentation:
"http://docs.jboss.com/jbpm/v3.2/userguide/html_single/#thehibernatesessionfactory"
?
Thanks
jbpm.cfg.xml : resource.hibernate.properties seems to be ignored.
-----------------------------------------------------------------
Key: JBPM-2456
URL:
https://jira.jboss.org/jira/browse/JBPM-2456
Project: jBPM
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Runtime Engine
Affects Versions: jBPM 3.2.6 GA
Environment: WinXP
Java 1.5
Reporter: Davy Toch
Priority: Minor
jbpm.cfg.xml has the following content:
<jbpm-configuration>
<string name='resource.hibernate.properties'
value='/be/fgov/minfin/stirint/gen/common/resources/PropertyGetter.properties'/>
<string name='resource.hibernate.cfg.xml'
value='/be/fgov/minfin/stirint/gen/bpm/hibernate.cfg.xml'/>
</jbpm-configuration>
However the value given to the property resource.hibernate.properties seems to be
ignored, because in the logs I get:
...
[2009-07-28 23:30:42,953] [INFO ] [org.jbpm.JbpmConfiguration] [] : using configuration
resource: jbpm.cfg.xml
[2009-07-28 23:30:43,328] [INFO ] [org.hibernate.cfg.Environment] [] : Hibernate 3.2.6
[2009-07-28 23:30:43,328] [INFO ] [org.hibernate.cfg.Environment] [] :
hibernate.properties not found
[2009-07-28 23:30:43,343] [INFO ] [org.hibernate.cfg.Environment] [] : Bytecode provider
name : cglib
[2009-07-28 23:30:43,343] [INFO ] [org.hibernate.cfg.Environment] [] : using JDK 1.4
java.sql.Timestamp handling
[2009-07-28 23:30:43,406] [INFO ] [org.hibernate.cfg.Configuration] [] : configuring from
resource: /be/fgov/minfin/stirint/gen/bpm/hibernate.cfg.xml
[2009-07-28 23:30:43,406] [INFO ] [org.hibernate.cfg.Configuration] [] : Configuration
resource: /be/fgov/minfin/stirint/gen/bpm/hibernate.cfg.xml
...
Also in hibernate.cfg.xml I refer to the property ${datasource} as datasource JNDI name
which is defined in my PropertyGetter.properties, but apparently it's not replaced
when I do a unit test.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira