[jboss-user] [JBoss jBPM] - Re: Calling processInstance.end() when the the process is wa

2008-08-19 Thread pbrewer_uk
Looks like this is a bug: https://jira.jboss.org/jira/browse/JBPM-1471 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4171258#4171258 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4171258

[jboss-user] [JBoss jBPM] - Calling processInstance.end() when the the process is waitin

2008-07-22 Thread pbrewer_uk
I'm using Jboss Seam 2.0.1.GA with jbpm 3.2.3.GA. I have a simple process that has a process-state in it. Sometimes, I need to cancel the parent process instance, which should also cancel the child (process-state) process instance, if the child happens to be open. Once the child process is in

[jboss-user] [JBoss Seam] - jbpm timer duedate causes StaleObjectStateException

2008-02-11 Thread pbrewer_uk
I have a state node that requires a specific time be set (e.g. at 16:00 instead of 3 hours from now). I can achieve this via the following: jpdl code: |state name=Buffer period | event type=timer-create |action expression=#{orderFulfillmentWorkflow.setBufferDueDate} / |

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2008-02-04 Thread pbrewer_uk
Thanks Pete, I have now filled a JIRA relating to this issue. I've also done some further investigation and discovered that JBPM session is not null. The NPE is caused by a call to getTransactionManager().getTransaction() in Hibernates JTATransaction class that returns null. Its detailed in the

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2008-02-04 Thread pbrewer_uk
I've added an example ear and project source to the jira And I've now posted on the jBPM forums too: http://www.jboss.com/index.html?module=bbop=viewtopicp=4126208#4126208 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4126213#4126213 Reply to the post :

[jboss-user] [JBoss jBPM] - null transaction when ending a process that was triggered by

2008-02-04 Thread pbrewer_uk
Hi, I've been using Seam 2.0.0.GA with jBPM 3.2.2 and have run into some issues with executing timer tasks. I have a simple process with a timer: | ?xml version=1.0 encoding=UTF-8? | process-definition xmlns=urn:jbpm.org:jpdl-3.1 |

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2008-02-01 Thread pbrewer_uk
I'm more than willing to take this task on, but I'll need some pointers on where the cause of the problem lies and how to tackle it. This is now a critical issue for my project, so any help at all would be greatly appreciated. In addition, I think a related problem can be observed if, for

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2008-01-04 Thread pbrewer_uk
Thanks Pete. Let me know how you get on, or if you need anything else from me to replicate the problem. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4116994#4116994 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4116994

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-12-27 Thread pbrewer_uk
Unfortunately, this is still a major problem for me. I'd be grateful for any suggestions you may have. If you need any further info then please don't hesitate to ask. Many thanks, Pete. BTW Are you able to replicate this issue using the code I posted previously? View the original post :

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-11-15 Thread pbrewer_uk
Thanks Jamie, I think we have slightly different problems (although possibly/ probably related). I am deploying on JBoss AS 4.2.1.GA and my processes manage to complete successfully, as long as I do not use jbpm timers. My problem occurs when a jbpm timer fires and then I think it trys to

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-11-14 Thread pbrewer_uk
Hi Alex, thanks for your continued help. Unfortunately, I get the same behaviour whether I initiate the JobExecutor via a seam component or by using the JobExecutorServlet. | 2007-11-14 11:58:05,675 ERROR [org.jbpm.db.JobSession] org.hibernate.TransactionException: could not register

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-11-14 Thread pbrewer_uk
I'm a bit puzzled as to why my custom resource loader isn't being called for anything other than page resource bundles. I'm using Seam 2.0.0.GA with Java 6: components.xml | ... | component name=org.jboss.seam.core.resourceLoader | property name=bundleNames |

[jboss-user] [JBoss Seam] - Seam 2 shutdown exception

2007-11-14 Thread pbrewer_uk
I'm using Seam 2.0.0.GA on JBoss 4.2.1.GA and have discovered that when I include seam-pdf.jar (with jfreechart.jar and jcommon.jar) in the ear's lib directory, and then press ctrl+c to shutdown JBoss I get the following error: | 13:16:45,817 ERROR [STDERR] Exception in thread AWT-Windows |

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-11-14 Thread pbrewer_uk
Ok I've solved that problem. Now I have a problem with seam caching resource bundles. I'm using Java 6 to do my resource bundle caching, so I want to remove, disable or override the following method in org.jboss.seam.core.SeamResourceBundle.java: |private Listjava.util.ResourceBundle

[jboss-user] [JBoss Seam] - jbpm timer transaction issues

2007-11-13 Thread pbrewer_uk
I'm using Seam 2.0.0.GA with jbpm 3.2.1.GA and have a simple timer process that simple creates a task and if it is not completed by a user within 1 minute a timer fires and progresses the workflow automatically, writing out messages to the logs as it goes: | ?xml version=1.0 encoding=UTF-8?

[jboss-user] [JBoss Seam] - Re: jbpm timer transaction issues

2007-11-13 Thread pbrewer_uk
Thanks for the speedy reply. I have set that property - heres my config in full: jbpm.cfg.xml | ?xml version=1.0 encoding=utf-8? | | jbpm-configuration | | jbpm-context | service name=persistence |factory | bean

[jboss-user] [JBoss Seam] - jBPM timer doesnt fire

2007-10-31 Thread pbrewer_uk
I'm trying to get a simple jbpm timer to fire in JBoss 4.2.1GA, Seam 1.2.1.GA (using jbpm 3.1.4) with JSF RI 1.2 and RichFaces 3.1.1: |task-node name=timerTest | event type=node-enter | action expression=#{timerTestWorkflow.logNodeEnter} / | /event | event

[jboss-user] [JBoss Seam] - Re: jBPM timer doesnt fire

2007-10-31 Thread pbrewer_uk
Ah, ok thanks, I've changed the timer definition to: | timer duedate=1 minute transition=finished | action class=uk.co.iblocks.midas.workflow.TimerTestWorkflow / | /timer | which implements the ActionHandler and simply outputs a debug message. But the behaviour

[jboss-user] [JBoss Seam] - Re: jBPM timer doesnt fire

2007-10-31 Thread pbrewer_uk
I've discovered that I'm missing a scheduler service. jBPM 3.1.4 provides a SchedulerServlet that I had trouble getting to work out of the box, so I created a Seam component that starts the scheduler instead. This helps to some extent with Seam 1.2.1.GA integration, but be aware that since

[jboss-user] [JBoss jBPM] - Re: Selecting non-string valued variable instances

2007-07-13 Thread pbrewer_uk
Thanks vtysh, that's true, but LongInstance is a sub-class of VariableInstance. And it does define a value property: | hibernate-mapping default-access=field | subclass name=org.jbpm.context.exe.variableinstance.LongInstance | extends=org.jbpm.context.exe.VariableInstance

[jboss-user] [JBoss jBPM] - Re: Selecting non-string valued variable instances

2007-07-13 Thread pbrewer_uk
If anyone has any ideas at all, I'd be very grateful. Thanks again, Pete. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4063922#4063922 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4063922

[jboss-user] [JBoss jBPM] - Selecting non-string valued variable instances

2007-07-11 Thread pbrewer_uk
I'm using Hibernate 3.2.2 and jBPM 3.1.4 in a Seam 1.2.1GA environment. I have a problem with a query that should return VariableInstance entities based on a particular name and value. The variable instance is actually an instance of org.jbpm.context.exe.variableinstance.LongInstance. The

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-09 Thread pbrewer_uk
For the needsReload method, I implemented a public boolean isDirty(Date lastLoaded) on the resource bundle entity. It simply compares the lastLoaded date to the last modified date stored on the entity (which is updated each time a message in the bundle is updated). If you do decide to reload

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-07-08 Thread pbrewer_uk
You can also retrieve the entity manager by calling: | EntityManager em = (EntityManager) Component.getInstance(entityManager, true); | Sorry that this posting is delayed, it sounds like you're pretty much there. But here is a more expanded version of the steps I outlined earlier.

[jboss-user] [JBoss jBPM] - Re: leaving transition on sub processes

2007-05-08 Thread pbrewer_uk
Has there been any further developments on this? I'm starting to use sub-processes and it would be very convenient to have the leaving transition of the process-state dependent on the end-state of the sub-process. So, if the queryProcess ends in a state of Details received I would like the

[jboss-user] [JBoss Seam] - Re: How to authenticate user by department?

2007-05-04 Thread pbrewer_uk
Overriding a built-in seam component was previously discussed in this thread: http://www.jboss.com/index.html?module=bbop=viewtopict=101324 View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4043208#4043208 Reply to the post :

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-05-04 Thread pbrewer_uk
I have implemented a database resource bundle using entities in Seam - its too verbose to post, but here are the steps to implement it: 1. Create the entity beans/ tables. To accurately match the ResourceBundle concept, I created a Resource Bundle table and a child Resource Message table (see

[jboss-user] [JBoss Seam] - Re: inputText form array / dynamic form

2007-04-20 Thread pbrewer_uk
I'm not sure if I completely understand what you are trying to achieve, but why not use something like facelets ui:repeat or tomahawks t:dataList component? E.g. | ui:repeat value=#{myBean.name} var=arrayItem | h:inputText id=firstname value=#{arrayItem.firstname}/ | /ui:repeat

[jboss-user] [JBoss Seam] - Re: Exporting XML with faceltes

2007-04-02 Thread pbrewer_uk
This is really just a jsf question, but you can acheive this just like exporting to html - with one key difference, you must include the f:view tag with a content type of text/xml. Although I have used facelet templates with this technique, I assume the examples below can easily be adapted.

[jboss-user] [JBoss Seam] - jBPM and LIE

2007-03-20 Thread pbrewer_uk
I'm new to using jBPM and am trying to query the jBPM database objects. I run a query that returns summary data containing the process and the number of tasks for the process. The summary data is displayed, however, the user then trys to click a process to display a list of tasks for that

[jboss-user] [JBoss Seam] - Re: jBPM and LIE

2007-03-20 Thread pbrewer_uk
Thanks for the tip, is there a jBPM sub-forum of the Seam forum? I can't find a link to it :( I thought it was more relevant to the Seam forum than the jBPM forum as my question is more about how to access jBPM database objects through Seam in a conversation safe manner. Perhaps I wasn't clear

[jboss-user] [JBoss Seam] - Re: Argh! Attribute access

2007-03-02 Thread pbrewer_uk
For anyone else that runs into this problem - it occurs because it is not permitted to call a method of a List implementation - you can only access its index. The following example will fail with the error mentioned previously. E.g. SummingList.java | public class SummingList extends

[jboss-user] [JBoss Seam] - Re: ResourceBundle in Database

2007-02-14 Thread pbrewer_uk
How would a subclass of org.jboss.seam.core.ResourceBundle be annotated in this case - are the annotations below correct? Also, would some extra configuration in components.xml be required too? ExtendedResourceBundle.java | ... | @Scope(ScopeType.SESSION) | @Intercept(NEVER) |

[jboss-user] [JBoss Seam] - Re: seam-gen error

2007-02-14 Thread pbrewer_uk
I can confirm that the current cvs fixes the issue I was encountering. Unfortunately, now it gets a bit further and fails. Any ideas on this one? Cheers, Pete. The ant output is listed below: | ... | [hibernate] 14-Feb-2007 11:44:37 org.hibernate.tool.Version clinit | [hibernate] INFO:

[jboss-user] [JBoss Seam] - Re: seam-gen error

2007-02-08 Thread pbrewer_uk
The schema is called PBTEST and contains more than 40 tables and I've also set the default_schema property via Seam setup (to avoid generating against system tables). I've just tried it against 1.1.6.GA and generation still fails, with the same problem. Is there anyway I can tell seam-gen

[jboss-user] [JBoss Seam] - seam-gen error

2007-02-07 Thread pbrewer_uk
I've just started looking at seam-gen (with Seam 1.1.5 and Oracle XE) and it fails when running the generate-entites task. It manages to build all the entity beans, but breaks half way through building the xxxList.xhtml pages (it does output about 10 files of an expected 40). The error message

[jboss-user] [JBoss Seam] - Re: seam-gen error

2007-02-07 Thread pbrewer_uk
Thanks for the quick response. Unfortunately, I've just updated to the latest cvs (list.xhtml.ftl is now v1.11) and the problem is still present (with the same error as before). If there's anything else I can try let me know. Cheers, Pete. View the original post :

[jboss-user] [JBoss Seam] - Re: Redirecting into view that is inside a directory

2006-12-15 Thread pbrewer_uk
If I understand correctly, then I should explain how navigation rules are supposed to work. This is how your current setup will work: Your /index.jsp will redirect to /home.seam which, in turn will map to a file in your war called /home.xhtml which will then be rendered on the front-end. (Note

[jboss-user] [JBoss Seam] - online dvd demo is down

2006-12-11 Thread pbrewer_uk
Not sure where I should post/ email this, but for your info the dvd demo at http://dvdstore.demo.jboss.com/browse.seam is currently down (see trace below). Hope to see it back up soon. javax.ejb.EJBTransactionRolledbackException: javax.persistence.PersistenceException:

[jboss-user] [JBoss Seam] - Seam 1.1 @RequestParameter NullPointerException

2006-11-24 Thread pbrewer_uk
Since moving to Seam 1.1 (b1, b2 and cr1) I've been getting NullPointerExceptions when using the @RequestParameter annotation - I can ignore these errors and the application continues to work. However, it is filling up the logs. It appears to occur when destroying a component that has been

[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta12 (dis?)injecting issue

2006-11-14 Thread pbrewer_uk
Thanks Gavin. Just checked out the latest CVS head and that solves the problem completely. Thanks to superflav for posting the testcase, too. I wasn't using @EJB annotation but did do a jndi lookup for a different bean, which is the same thing according to the JIRA issue. Sorry I didn't spot

[jboss-user] [JBoss Seam] - Re: Problem with ajax4jsf, page actions, @Begin and stateful

2006-11-14 Thread pbrewer_uk
Upon futher investigation, this appears to be related to using ajax4jsf. I can revert back to a version without ajax4jsf that works, and then after integrating ajax4jsf the problem previously outlined occurs. I thought this may be caused by the view handler that ajax4jsf uses, but it use the

[jboss-user] [JBoss Seam] - Problem with page actions, @Begin and stateful beans

2006-11-14 Thread pbrewer_uk
I'm using seam 1.1beta2 (although the error occurs in 1.0.1.GA as well). I have defined some page actions to setup some virtual pages so that two different user types (standard and special) get redirected to a single sign-up page. So, when a user goes to standardRegistration.faces they: 1. hit

[jboss-user] [JBoss Seam] - Seam 1.1 beta12 (dis?)injecting issue

2006-11-13 Thread pbrewer_uk
I've got a web app built on JBoss Seam 1.0.1.GA that works fine. I've tried to upgrade to both 1.1beta1 and 1.1beta2, but I get an error when seam trys to inject a value. I've stepped through some of the code: extract from Component.java | 1513 private void setFieldValue(Object bean, Field

[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta12 (dis?)injecting issue

2006-11-13 Thread pbrewer_uk
Thanks for the prompt response. Perhaps what I'm doing is a little unusual. I've created a simple way to update resource bundle messages that is intended to be a stop-gap until java 6 sorts out ResourceBundles. My application also has a login component that takes a username and password. But

[jboss-user] [JBoss Seam] - Re: Seam 1.1 beta12 (dis?)injecting issue

2006-11-13 Thread pbrewer_uk
Unfortunately, cvs head (includes Component.java version 1.206) doesn't seem to solve the problem. I get exactly the same error. If you still want me to, I'll look into building a test case sometime tomorrow. Not fully understanding the error, it may take me a little while to get the test case

[jboss-user] [Installation, Configuration Deployment] - Unable to deploy ejb3 entities and jsf web app in an ear?

2006-11-08 Thread pbrewer_uk
I'm using JBoss 4.0.5 configured to use ejb3 via the jems installer. I have a web application based on the myfaces JSF implementation combined with icefaces community edition 1.0.1 and facelets, which deploys without error into jboss. The package structure is defined below: | web.war | +

[jboss-user] [JBoss Seam] - Re: Problems using Ajax4jsf to Seam Hibernate3 sample app

2006-10-03 Thread pbrewer_uk
Hi Todd, I'm just starting to look at integrating Seam and ajax4jsf. It would be great if you could email me a working example of the two working together (or better still add a wiki entry). My email address is peter (at) iblocks.co.uk. Thanks in advance for saving alot of head scratching,

[jboss-user] [JBoss Seam] - Many clicks cause touchConversationStack to NPE

2006-09-26 Thread pbrewer_uk
I've got a strange bug in my seam application. If a user clicks on many different links in quick succession then they can frequently get seam to break with the stacktrace below. Any ideas why this may be happening and how to prevent it? I'm using Seam 1.0.1GA in tomcat without using pageflows.

[jboss-user] [JBoss Seam] - Re: Many clicks cause touchConversationStack to NPE

2006-09-26 Thread pbrewer_uk
Thanks for the JIRA tip-off. Any work-arounds, ideas for work-arounds or hints for where to get started on looking how I can resolve the issue? This is a fairly major bug for me, so any hints you can throw my way would be good. View the original post :