[
http://jira.jboss.com/jira/browse/JBSEAM-3023?page=comments#action_12416126 ]
Jay Balunas commented on JBSEAM-3023:
-------------------------------------
Here is the full stack trace. I was thinking the same thing - something changed with API
or library dependencies.
jar:
[copy] seam.properties omitted as
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/seam.properties is
up to date.
[copy] security.drl omitted as
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/security.drl is up
to date.
[copy] No sources found.
[copy] ejb-jar.xml omitted as
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/META-INF/ejb-jar.xml
is up to date.
[copy] No sources found.
[copy] Copying 1 file to
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/META-INF
[copy] Copying
/jboss/projects/seam/trunk/test/hibtest/resources/META-INF/persistence-dev.xml to
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/META-INF/persistence.xml
[copy] Copying 1 file to
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar
[copy] Copying /jboss/projects/seam/trunk/test/hibtest/resources/import-dev.sql to
/jboss/projects/seam/trunk/test/hibtest/exploded-archives/hibtest.jar/import.sql
[ant] Exiting /jboss/projects/seam/trunk/test/hibtest/build.xml.
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] Jun 9, 2008 1:34:34 PM org.hibernate.cfg.annotations.Version <clinit>
[hibernate] INFO: Hibernate Annotations 3.3.0.GA
[hibernate] Jun 9, 2008 1:34:34 PM org.hibernate.ejb.Version <clinit>
[hibernate] INFO: Hibernate EntityManager 3.3.2.GA
[hibernate] An exception occurred while running exporter #2:generic exportertemplate:
view/list.xhtml.ftl
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] Problems in creating a configuration for JPA. Have you remembered to add
hibernate EntityManager jars to the classpath ?
[hibernate] java.lang.reflect.InvocationTargetException
[hibernate] java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
BUILD FAILED
/jboss/projects/seam/trunk/jboss-seam-2.1.0-SNAPSHOT/seam-gen/build.xml:1127: Problems in
creating a configuration for JPA. Have you remembered to add hibernate EntityManager jars
to the classpath ?
at
org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:57)
at
org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:54)
at
org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:302)
at
org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:318)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at
org.hibernate.tool.ant.GenericExporterTask.configureExporter(GenericExporterTask.java:65)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:43)
... 23 more
Caused by: java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
at org.hibernate.ejb.Ejb3Configuration.setProperty(Ejb3Configuration.java:535)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:165)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
... 28 more
--- Nested Exception ---
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.hibernate.tool.ant.JPAConfigurationTask.createConfiguration(JPAConfigurationTask.java:43)
at
org.hibernate.tool.ant.ConfigurationTask.getConfiguration(ConfigurationTask.java:54)
at
org.hibernate.tool.ant.HibernateToolTask.getConfiguration(HibernateToolTask.java:302)
at
org.hibernate.tool.ant.HibernateToolTask.getProperties(HibernateToolTask.java:318)
at org.hibernate.tool.ant.ExporterTask.configureExporter(ExporterTask.java:94)
at
org.hibernate.tool.ant.GenericExporterTask.configureExporter(GenericExporterTask.java:65)
at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:39)
at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:186)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288)
at sun.reflect.GeneratedMethodAccessor1.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:357)
at org.apache.tools.ant.Target.performTasks(Target.java:385)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
at org.apache.tools.ant.Main.runBuild(Main.java:698)
at org.apache.tools.ant.Main.startAnt(Main.java:199)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
at org.hibernate.ejb.Ejb3Configuration.setProperty(Ejb3Configuration.java:535)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:165)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:253)
... 28 more
Total time: 4 seconds
seam-gen generate-entities throws NoSuchMethodError on
AnnotationConfiguration.setProperty
------------------------------------------------------------------------------------------
Key: JBSEAM-3023
URL:
http://jira.jboss.com/jira/browse/JBSEAM-3023
Project: Seam
Issue Type: Bug
Affects Versions: 2.1.0.BETA1
Reporter: Jay Balunas
Priority: Blocker
Fix For: 2.1.0.BETA1
This is effecting the current trunk - I have not verified if this is happening in
2.1.0.A1. Below is the output from the console. I saw this error both with and without
the fix for JBSEAM-3017. I quickly checked that the correct jars are in the lib, and
should be loaded for the classpath in the seam-gen/build.xml. There may be a new
dependency or configuration needed.
jar:
[copy] Copying 2 files to
/jboss/temp/workspace/libtest3/exploded-archives/libtest3.jar
[copy] Copying 1 file to
/jboss/temp/workspace/libtest3/exploded-archives/libtest3.jar/META-INF
[copy] Copying 1 file to
/jboss/temp/workspace/libtest3/exploded-archives/libtest3.jar/META-INF
[copy] Copying 1 file to
/jboss/temp/workspace/libtest3/exploded-archives/libtest3.jar
[hibernate] Executing Hibernate Tool with a JPA Configuration
[hibernate] 1. task: generic exportertemplate: view/list.xhtml.ftl
[hibernate] May 22, 2008 9:37:04 AM org.hibernate.cfg.annotations.Version <clinit>
[hibernate] INFO: Hibernate Annotations 3.3.0.GA
[hibernate] May 22, 2008 9:37:04 AM org.hibernate.ejb.Version <clinit>
[hibernate] INFO: Hibernate EntityManager 3.3.2.GA
[hibernate] An exception occurred while running exporter #2:generic exportertemplate:
view/list.xhtml.ftl
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] Problems in creating a configuration for JPA. Have you remembered to add
hibernate EntityManager jars to the classpath ?
[hibernate] java.lang.reflect.InvocationTargetException
[hibernate] java.lang.NoSuchMethodError:
org.hibernate.cfg.AnnotationConfiguration.setProperty(Ljava/lang/String;Ljava/lang/String;)Lorg/hibernate/cfg/AnnotationConfiguration;
BUILD FAILED
/jboss/temp/trunk/jboss-seam-2.1.0-SNAPSHOT/seam-gen/build.xml:1124: Problems in creating
a configuration for JPA. Have you remembered to add hibernate EntityManager jars to the
classpath ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira