[
https://issues.jboss.org/browse/JBSEAM-4978?page=com.atlassian.jira.plugi...
]
Tomas Remes commented on JBSEAM-4978:
-------------------------------------
Well ok. First workaround is to change seam-gen/build.xml target "init generate"
as follows:
{noformat}
<target name="init-generate">
<path id="htools.classpath">
<fileset dir="${seam.dir}">
<include name="lib/*.jar"/>
<include name="lib/gen/*.jar"/>
</fileset>
<pathelement path="${driver.jar}"/>
</path>
<taskdef name="hibernate"
classname="org.hibernate.tool.ant.HibernateToolTask"
classpathref="htools.classpath"/>
</target>
{noformat}
and replace lib/gen/hibernate-tools.jar by the one from attachement. Next problem is with
javaformatter taskdef.
Seam-gen commands using hibernate-tools doesn't work
----------------------------------------------------
Key: JBSEAM-4978
URL:
https://issues.jboss.org/browse/JBSEAM-4978
Project: Seam 2
Issue Type: Bug
Components: Tools
Affects Versions: 2.3.0.BETA2
Reporter: Tomas Remes
Fix For: 2.3.0.CR1
Seam-gen commands like "generate-model","generate",
"generate-ui" does not work, because it's using old hibernate-tools version.
Major problem is that this old version is using classes from hibernate-core 3.2.4 (and
probably many other jars) and those are not compatible with hibernate 4 versions. So when
you try for example command "generate-model", you will get following error:
{noformat}
jboss-seam-2.3.0.CR1-SNAPSHOT/seam-gen/build.xml:1554: java.lang.NoClassDefFoundError:
org/hibernate/engine/Mapping
{noformat}
I am trying/investigating how is this used in JBoss Tools, but as far as I've
understood there is entirely bundled old hibernate 3 and its related stuff.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira