[
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1133?page=c...
]
Gabriele C. commented on HBX-1133:
----------------------------------
I think the problem are the two jars:
jcl-over-slf4j-1.5.8.jar and slf4j-jcl-1.5.8.jar .
They should never be installed together or you'll get and endless loop (java commons
logging calls are routed through slf4j to java commons logging again).
see here:
http://www.slf4j.org/legacy.html
paragraph : "jcl-over-slf4j.jar should not be confused with slf4j-jcl.jar"
Just replace slf4j-jcl with slf4j-log4j and it would be fine.
I would close this bug.
java.lang.StackOverflowError when I try to use
hibernate-tools-3.2.0.beta9a.jar with slf4j jars
------------------------------------------------------------------------------------------------
Key: HBX-1133
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1133
Project: Hibernate Tools
Issue Type: Bug
Components: hbm2java
Affects Versions: 3.2.0.GA
Reporter: Ashish Zokarkar
Hello,
I am using hbm2java ant task for creation of java classes from hbm.xml files. I am using
hibernate-tools-3.2.0.beta9a.jar
hibernate3.jar
jcl-over-slf4j-1.5.8.jar
slf4j-api-1.5.8.jar
slf4j-jcl-1.5.8.jar
When I run this task, I get StackoverflowError. But when i try same ant script with
hibernate-3.1.3.jar
hibernatetools-3.1.0-b4.jar
it executed properly. But with hibernate-tools-3.2.0.beta9a & slf4j related jars I
got StackOverflowExcpetion.
Ant script is as below:
<project default="hbm2java">
<property name="build.dir" location="." />
<property name="lib.dir" location="lib" />
<property name="conf.dir" location="conf" />
<path id="cp">
<fileset dir="${lib.dir}">
<include name="**/*.jar"/>
</fileset>
</path>
<target name="hbm2java">
<taskdef name="hibernatetool"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="cp"/>
<hibernatetool destdir="${build.dir}" classpath="${conf.dir}">
<configuration configurationfile="${conf.dir}/hibernate.cfg.xml"/>
<hbm2java jdk5="true" ejb3="false"/>
</hibernatetool>
</target>
</project>
Please suggest me how to run this command with new build. Is it a bug in this build?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira