[jboss-user] [JBoss Seam] - Error with seam-gen
rengar
do-not-reply at jboss.com
Mon Dec 18 08:55:58 EST 2006
The error :
| [hibernate] 9. task: generic exportertemplate: src/EntityHome.java.ftl
| [hibernate] 18-dic-2006 14:49:19 freemarker.log.JDK14LoggerFactory$JDK14Logger error
| [hibernate] GRAVE:
|
| [hibernate] get(type) failed on instance of org.hibernate.mapping.Property
| [hibernate] The problematic instruction:
| [hibernate] ----------
| [hibernate] ==> assignment: idType=pojo.importType(pojo.identifierProperty.type.returnedClass.name) [on line 20, column 1 in src/EntityHome.java.ftl]
| [hibernate] ----------
|
| [hibernate] Java backtrace for programmers:
| [hibernate] ----------
| [hibernate] freemarker.template.TemplateModelException: get(type) failed on instance of org.hibernate.mapping.Property
| [hibernate] at freemarker.ext.beans.BeanModel.get(BeanModel.java:211)
| [hibernate] at freemarker.core.Dot._getAsTemplateModel(Dot.java:76)
| [hibernate] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| [hibernate] at freemarker.core.Dot._getAsTemplateModel(Dot.java:74)
| [hibernate] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| [hibernate] at freemarker.core.Dot._getAsTemplateModel(Dot.java:74)
| [hibernate] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| [hibernate] at freemarker.core.ListLiteral.getModelList(ListLiteral.java:119)
| [hibernate] at freemarker.core.MethodCall._getAsTemplateModel(MethodCall.java:89)
| [hibernate] at freemarker.core.Expression.getAsTemplateModel(Expression.java:89)
| [hibernate] at freemarker.core.Assignment.accept(Assignment.java:90)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:233)
| [hibernate] at freemarker.core.BlockAssignment.accept(BlockAssignment.java:83)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.MixedContent.accept(MixedContent.java:92)
| [hibernate] at freemarker.core.Environment.visit(Environment.java:196)
| [hibernate] at freemarker.core.Environment.process(Environment.java:176)
| [hibernate] at freemarker.template.Template.process(Template.java:231)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateHelper.processTemplate(TemplateHelper.java:247)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produceToString(TemplateProducer.java:67)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:28)
| [hibernate] at org.hibernate.tool.hbm2x.TemplateProducer.produce(TemplateProducer.java:97)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPOJO(GenericExporter.java:84)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportPersistentClass(GenericExporter.java:73)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.exportClasses(GenericExporter.java:56)
| [hibernate] at org.hibernate.tool.hbm2x.GenericExporter.doStart(GenericExporter.java:41)
| [hibernate] at org.hibernate.tool.hbm2x.AbstractExporter.start(AbstractExporter.java:95)
| [hibernate] at org.hibernate.tool.ant.ExporterTask.execute(ExporterTask.java:40)
| [hibernate] at org.hibernate.tool.ant.HibernateToolTask.execute(HibernateToolTask.java:182)
| [hibernate] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
| [hibernate] at org.apache.tools.ant.Task.perform(Task.java:364)
| [hibernate] at org.apache.tools.ant.Target.execute(Target.java:341)
| [hibernate] at org.apache.tools.ant.Target.performTasks(Target.java:369)
| [hibernate] at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
| [hibernate] at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
| [hibernate] at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
| [hibernate] at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
| [hibernate] at org.apache.tools.ant.Main.runBuild(Main.java:668)
| [hibernate] at org.apache.tools.ant.Main.startAnt(Main.java:187)
| [hibernate] at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
| [hibernate] at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
| [hibernate] Caused by: java.lang.reflect.InvocationTargetException
| [hibernate] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| [hibernate] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| [hibernate] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| [hibernate] at java.lang.reflect.Method.invoke(Method.java:585)
| [hibernate] at freemarker.ext.beans.BeansWrapper.invokeMethod(BeansWrapper.java:583)
| [hibernate] at freemarker.ext.beans.BeanModel.invokeThroughDescriptor(BeanModel.java:252)
| [hibernate] at freemarker.ext.beans.BeanModel.get(BeanModel.java:177)
| [hibernate] ... 43 more
| [hibernate] Caused by: org.hibernate.MappingException: component class not found: com.minalink.reservas.model.TiposAgrupacionId
| [hibernate] at org.hibernate.mapping.Component.getComponentClass(Component.java:104)
| [hibernate] at org.hibernate.tuple.component.PojoComponentTuplizer.buildGetter(PojoComponentTuplizer.java:130)
| [hibernate] at org.hibernate.tuple.component.AbstractComponentTuplizer.<init>(AbstractComponentTuplizer.java:43)
| [hibernate] at org.hibernate.tuple.component.PojoComponentTuplizer.<init>(PojoComponentTuplizer.java:38)
| [hibernate] at org.hibernate.tuple.component.ComponentEntityModeToTuplizerMapping.<init>(ComponentEntityModeToTuplizerMapping.java:52)
| [hibernate] at org.hibernate.tuple.component.ComponentMetamodel.<init>(ComponentMetamodel.java:50)
| [hibernate] at org.hibernate.mapping.Component.buildType(Component.java:152)
| [hibernate] at org.hibernate.mapping.Component.getType(Component.java:145)
| [hibernate] at org.hibernate.mapping.Property.getType(Property.java:50)
| [hibernate] ... 50 more
| [hibernate] Caused by: java.lang.ClassNotFoundException: com.minalink.reservas.model.TiposAgrupacionId
| [hibernate] at org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1166)
| [hibernate] at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1107)
| [hibernate] at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:977)
| [hibernate] at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| [hibernate] at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| [hibernate] at java.lang.Class.forName0(Native Method)
| [hibernate] at java.lang.Class.forName(Class.java:164)
| [hibernate] at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:100)
| [hibernate] at org.hibernate.mapping.Component.getComponentClass(Component.java:101)
| [hibernate] ... 58 more
| [hibernate] An exception occurred while running exporter #10:generic exportertemplate: src/EntityHome.java.ftl
| [hibernate] To get the full stack trace run ant with -verbose
| [hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing template src/EntityHome.java.ftl
| [hibernate] freemarker.template.TemplateModelException: get(type) failed on instance of org.hibernate.mapping.Property
| [hibernate] java.lang.reflect.InvocationTargetException
| [hibernate] org.hibernate.MappingException: component class not found: com.minalink.reservas.model.TiposAgrupacionId
| [hibernate] java.lang.ClassNotFoundException: com.minalink.reservas.model.TiposAgrupacionId
| [hibernate] A class were not found in the classpath of the Ant task.
| [hibernate] Ensure that the classpath contains the classes needed for Hibernate and your code are in the classpath.
|
| BUILD FAILED
| /usr/java/jboss-seam-1.1.0.GA/seam-gen/build.xml:666: org.hibernate.tool.hbm2x.ExporterException: Error while processing template src/EntityHome.java.ftl
|
- "com.minalink.reservas.model.TiposAgrupacionId" is in project/src that has generated seam-gen.
-"[hibernate] A class were not found in the classpath of the Ant task.
[hibernate] Ensure that the classpath contains the classes needed for Hibernate and your code are in the classpath."
How added I this sources to classpath ANT?
Regards.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994676#3994676
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994676
More information about the jboss-user
mailing list