[JBoss Seam] - Usage of pooledTaskInstanceList
by limousyf
Hello,
I'm trying to use a BP I created and deployed in my newly created seam app.
I've created a mysql database for JBPM and linked it to my process.
Everything went almost fine during deployment (ie tons of warnings but no errors) and the mysql base was filled (tables created and data inserted).
But when I try to access a default pooledTaskInstanceList - which was copy/pasted from a seam book - this error occur :
rendered="#{empty pooledTaskInstanceList}": Cannot get value for expression '#{org.jboss.seam.core.pooledTaskInstanceList}'
The console tells me that it was created by:
Caused by: org.jbpm.JbpmException: couldn't get pooled task instances list for actors '[]'
(snip)
Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree [
select distinct ti
from org.jbpm.taskmgmt.exe.PooledActor pooledActor
join pooledActor.taskInstances ti
where pooledActor.actorId in ( )
and ti.actorId is null
and ti.isSuspended != true
and ti.isOpen = true
]
I noticed a unusual number of tables in the JBPM database compare to my previous deployments (in non-seam apps) : I only have 29 tables instead of 33.
Don't know if it matters because I was working in jbpm 3.1.2 before, compared to version 3.1.4 in my seam app.
Am I using correctly pooledTaskInstanceList ?
Isn't it supposed to print, well nothing, if I don't have any tasks or actors created ?
Well thanks for any help on this.
By the way, my apps versions:
Seam 1.2.1GA
JBoss AS 4.0.5
JBPM 3.1.4 (the version used in my seam dist)
BrainPower 0.0 ;)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050033#4050033
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050033
17 years, 6 months
[JBoss Seam] - problem using seam exception handling mecanism
by zdaler
I'm having trouble using the seam handling mecanism (using seam 1.2.1) :
I've added this in pages.xml
<exception>
| <end-conversation/>
| <redirect view-id="/error.xhtml" />
| </exception>
I did set <core:init debug="false" jndi-pattern="@jndiPattern@" /> in components.xml and <param-name>facelets.DEVELOPMENT</param-name><param-value>false</param-value> in web.xml
If i manually throw an exception in my code, the page just gets reloaded (no redirect) and a face message "Transaction failed" is set ....
If I try to create (and the throw) a custom exception like this :
@Redirect(viewId="/error.xhtml", end=true)
| @ApplicationException(rollback=true)
| public class MyException extends RuntimeException {
I get the exact same behaviour : no redirect, only the "Transaction failed" faces message.
I'm pretty sure the exceptionFilter is on because I have this in my log on application start :
anonymous wrote : 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.multipartFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.contextFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.exceptionFilter
| 10:35:13,297 INFO [SeamFilter] Initializing filter: org.jboss.seam.servlet.redirectFilter
Can anyone give me a hint a what could be wrong ?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050029#4050029
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050029
17 years, 6 months
[Tomcat, HTTPD, Servlets & JSP] - Question on PHP Servlet
by mottersb
I am tring to install a PHP Servlet on the following configuration:
Solaris 10
JDK 1.4
JBOSS 4.04
PHP Module downloaded from: http://labs.jboss.com/jbossweb/downloads/native: Solaris Sparc Package 12MB Thu Sep 07 03:59:39 EDT 2006
I followed the instruction under:
http://labs.jboss.com/file-access/default/members/jbossweb/freezone/modul...
Nevertheless I am getting the following error
10:14:12,801 INFO [TomcatDeployer] deploy, ctxPath=/wiki, warUrl=.../deploy/wiki.war/
10:14:12,886 INFO [[/wiki]] Marking servlet php as unavailable
10:14:12,886 ERROR [[/wiki]] Error loading org.jboss.mx.loading.UnifiedClassLoader3@118223d{ url=file:/pkg/vdcna/home/wlsna/jboss_404/server/default/deploy/jbossweb-tomcat55.sar/ ,addedOrder=9} org.apache.catalina.servlets.php.Handler
java.lang.ClassNotFoundException: No ClassLoaders found for: org.apache.catalina.servlets.php.Handler
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:212)
at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:511)
at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:405)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1034)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:932)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3917)
Please be so kind and provide me with some hint on how to solve this.
Thanks,
Marc
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050028#4050028
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050028
17 years, 6 months
[JBoss Seam] - Let Seam instantiate a second component?
by Newlukai
Hi,
I'm wondering if and how it is possible to let Seam instantiate a component B from a component A.
I have a component A - call it Manager - which is supposed to receive some data to create and persist a new entity. Therefore the Manager outjects a "blank entity" which is later injected with the data from the user. Some values are preset using a @Factory method in the Manager.
On the page the user sees to input his data, there is a drop-down menu, realised with s:selectItems which doesn't use the noSelectionLabel. Depending on the selected value some other values are set by the Manager. The drop-down menu gets its values from a component B - call it Selector. The current selected value is bijected in a third component - call it selectedValue - so that the Manager can adapt some values depending on the selectedValue.
Since there's no noSelectionLabel, i. e. the user has to choose a value, the @Create method of this Selector queries the database for some values and outjects the first one as selectedValue.
That works pretty good, but there's only one last thing to do: The first time the page is displayed, the @Factory method in Manager is invoked. And as you might guess the selectedValue is null. That's because the Selector is instantiated after the instantiation of the Manager since it occurs later on the page. But actually I want to preset some values depending on the selectedValue outjected by the @Create method of the Selector.
Is there a way to tell Seam to instantiate the Selector before the @Factory method of the Manager is invoked? One way would be to place a dummy call from the JSF page before the Manager is called. But that isn't a good design I think. Another way would be the usage of @Startup(depends). But actually I don't want to have both components instantiated before they are needed. Is there another way?
Thanks in advance
Newlukai
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4050027#4050027
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4050027
17 years, 6 months