I'm getting the following error with no other output in the Tomcat logs when my
code attempts to buildjBPMSessionFactory. I assume I have something wrong in my
hibernate.cfg.xml but don't know what.
Here's the call chain:
java.lang.NoClassDefFoundError: bsh/EvalError
java.lang.Class.getDeclaredMethods0(Native Method)
java.lang.Class.privateGetDeclaredMethods(Unknown Source)
java.lang.Class.getDeclaredMethods(Unknown Source)
org.hibernate.property.BasicPropertyAccessor.getterMethod(BasicPropertyAccessor.java:248)
org.hibernate.property.BasicPropertyAccessor.getGetterOrNull(BasicPropertyAccessor.java:228)
org.hibernate.property.BasicPropertyAccessor.createGetter(BasicPropertyAccessor.java:211)
org.hibernate.property.BasicPropertyAccessor.getGetter(BasicPropertyAccessor.java:207)
org.hibernate.util.ReflectHelper.getter(ReflectHelper.java:87)
org.hibernate.util.ReflectHelper.reflectedPropertyClass(ReflectHelper.java:78)
org.hibernate.mapping.SimpleValue.setTypeUsingReflection(SimpleValue.java:275)
org.hibernate.cfg.HbmBinder.createProperty(HbmBinder.java:1841)
org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1827)
org.hibernate.cfg.HbmBinder.createClassProperties(HbmBinder.java:1728)
org.hibernate.cfg.HbmBinder.bindSubclass(HbmBinder.java:743)
org.hibernate.cfg.HbmBinder.handleSubclass(HbmBinder.java:1887)
org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:160)
org.hibernate.cfg.Configuration.add(Configuration.java:362)
org.hibernate.cfg.Configuration.addInputStream(Configuration.java:400)
org.hibernate.cfg.Configuration.addResource(Configuration.java:449)
org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1263)
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1235)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1217)
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1184)
org.hibernate.cfg.Configuration.configure(Configuration.java:1112)
org.hibernate.cfg.Configuration.configure(Configuration.java:1098)
org.jbpm.db.JbpmSessionFactory.createConfiguration(JbpmSessionFactory.java:114)
org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:90)
org.jbpm.db.JbpmSessionFactory.buildJbpmSessionFactory(JbpmSessionFactory.java:86)
com.teampnt.process.ProcessServer.(ProcessServer.java:67)
Here's the cfg.xml (I only updated the top few lines from the default):
<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE hibernate-configuration PUBLIC
"-//Hibernate/Hibernate Configuration DTD 3.0//EN"
"http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
<hibernate-configuration>
<session-factory>
<!-- jdbc connection properties -->
org.hibernate.dialect.OracleDialect
oracle.jdbc.driver.OracleDriver
<!--
jdbc:oracle//amsast0001.nm.dsx.bae.co.uk:8080;sql.enforce_strict_size=true -->
jdbc:oracle//amsast0001.nm.dsx.bae.co.uk:8080
hibernate
xxxxxxx
<!-- c3p0 connection pooling properties
1
3
-->
<!-- other hibernate properties -->
true
<!--identity mapping files -->
<!-- uncomment if you don't want to use the default jBPM identity mgmgt
component -->
<!-- graph.def mapping files -->
<!-- graph.node mapping files -->
<!-- graph.action mapping files -->
<!-- context.def mapping files -->
<!-- taskmgmt.def mapping files -->
<!-- module.def mapping files -->
<!-- bytes mapping files -->
<!-- file.def mapping files -->
<!-- scheduler.def mapping files -->
<!-- graph.exe mapping files -->
<!-- module.exe mapping files -->
<!-- context.exe mapping files -->
<!-- taskmgmt.exe mapping files -->
<!-- scheduler.exe mapping files -->
<!-- logging mapping files -->
</session-factory>
</hibernate-configuration>
Any ideas?
Thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3910978#3910978
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3910978
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user