[JBoss Seam] - Issue with 'seam generate-entities'
by dacloutierï¼ gmail.com
Hi,
I am trying to lear seam, going through the doc/tutorials etc and I have come up with an issue that I can't find in the Jira's or forum.
I am using SEAM 1.6, with jdk 1.5.08 on Windonws 2000. Here's the error I get:
================================================
[hibernate] Expression property.value.typeName is undefined on line 30, column 6 in view/list.xhtml.ftl.
[hibernate] The problematic instruction:
[hibernate] ----------
[hibernate] ==> if property.value.typeName == "string" [on line 30, column 1 in view/list.xhtml.ftl]
[hibernate] ----------
[hibernate] Java backtrace for programmers:
[hibernate] ----------
[hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/
list.xhtml.ftl.
[hibernate] at freemarker.core.TemplateObject.assertNonNull(TemplateObject.java:124)
[hibernate] at freemarker.core.ComparisonExpression.isTrue(ComparisonExpression.java:121)
[hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:77)
[hibernate] at freemarker.core.Environment.visit(Environment.java:196)
[hibernate] at freemarker.core.ConditionalBlock.accept(ConditionalBlock.java:79)
[hibernate] at freemarker.core.Environment.visit(Environment.java:196)
[hibernate] at freemarker.core.IteratorBlock$Context.runLoop(IteratorBlock.java:160)
[hibernate] at freemarker.core.Environment.visit(Environment.java:351)
[hibernate] at freemarker.core.IteratorBlock.accept(IteratorBlock.java:95)
[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] An exception occurred while running exporter #3:generic exportertemplate: view/list.xhtml.ftl
[hibernate] To get the full stack trace run ant with -verbose
[hibernate] org.hibernate.tool.hbm2x.ExporterException: Error while processing template view/list.xhtml.ftl
[hibernate] freemarker.core.InvalidReferenceException: Expression property.value.typeName is undefined on line 30, column 6 in view/
list.xhtml.ftl.
BUILD FAILED
C:\jboss_seam\seam-gen\build.xml:786: org.hibernate.tool.hbm2x.ExporterException: Error while processing template view/list.xhtml.ft
l
Total time: 7 seconds
===============================================
Can anyone help me?
thanks.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015196#4015196
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015196
19Â years, 2Â months
[JBoss jBPM] - Accessing file that is not in DB from deployed jBPM process
by warmonga
Hello,
I've got a problem accessing a file that is not deployed in the jBPM database. I want to access it in an ActionHandler of a deployed process. When test-running the jBPM process through teh jBPM API (through token.signal() etc) the file is found but when running the deployed process through the jbpm webapp, a JbpmException occurs saying:
anonymous wrote : org.jbpm.JbpmException: couldn't get value for file 'com/sample/action/Sample.drl'
and further down in the console:
anonymous wrote : Caused by: org.jbpm.JbpmException: file 'com/sample/action/Sample.drl' not found in db
Te critical piece of code from the ActionHandler-class is the following:
| package com.sample.action;
| [...]
| public class FireRulesActionHandler implements ActionHandler {
| [...]
| Reader reader = new InputStreamReader(FireRulesActionHandler.class.getResourceAsStream(rulefile));
| [...]
| }
|
Thanks in advance.
Best regards,
Maurice
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015182#4015182
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015182
19Â years, 2Â months
[JCA/JBoss] - Re: change background-validation-minutes to seconds
by bortx
Yes, you are right, but I have the problem that I have to check connections to the EIS periodically in order to maintain connections. If not, the EIS closes connections not checked. The expiration time is exactly one minute. I use the background validation to perform those checks, so the EIS is constantly closing connections.
One more thing that I've noticed, is that jboss always checks all connections that have been created, the ones that are in the pool at the moment, and the ones that have been destroyed previously. The pool works right, I mean, it never returns a destroyed connection, and the pool has the number of connections I've specified, but I don't know why it tries to validate destroyed connections.
I've implemented the destroy() method so that it closes the connection to the EIS. What actions am I supposed to perform on the destroy() method? May I notify ConnectionEventListener set on some event? I only notify those listeners when in the close() method.
Thanks a lot.
Bortx
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4015176#4015176
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4015176
19Â years, 2Â months