[jboss-user] [JBoss jBPM] - Re: Scheduler and asynchronous flow in in web app

2008-12-06 Thread jeklund
1. I'll see if anyone in the Seam community has any ideas. 
(http://www.seamframework.org/Community/SchedulerIssueInWebAppWithMixedJBPMAndPageflow
 for anyone following this thread.)

2. I was thinking of creating a custom pageflow-action instead of
end-task transition=Approve/
that would somehow replace the new jbpmContext with the original one and then 
programatically end the task. But after thinking this trough I don't think it's 
a good option.

Thanks again for all your help.

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4194849#4194849

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4194849
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Scheduler and asynchronous flow in in web app

2008-12-05 Thread jeklund
Thanks again Ronald!

After further debugging I found that the reminder-tag sends a reminder every 30 
secs both with and without the additional JobExecutorLauncher. So the timer 
works in some aspect. I guess Seam starts the scheduler without leaving 
anything in the log.. sorry for not testing properly before posting.

The task causing the error is a nester Seam Pageflow and was started with
@In private Pageflow pageflow;
  | 
  | @StartTask
  | public String startTask() {
  | pageflow.begin(TaskInstance.instance().getName());
  | initializeProcessVariables();
  | return SECUREPAGESDIR + TaskInstance.instance().getName() + 
.jsp;
  | }
and ended with
page name=showIncompleteTasksApprove view-id=/secure/taskList.jsp
  | end-task transition=Approve/
  | redirect/
  | /page
which results in 

  | 14:37:39,174 WARN  [ProxyWarnLog] Narrowing proxy to class 
org.jbpm.graph.node.TaskNode - this operation breaks ==
  | 14:37:39,185 ERROR [GraphElement] action threw exception: service 
'scheduler' unavailable
  | org.jbpm.svc.JbpmServiceException: service 'scheduler' unavailable
  | at org.jbpm.svc.Services.getCurrentService(Services.java:97)
  | at org.jbpm.svc.Services.getCurrentService(Services.java:87)
  | at 
org.jbpm.scheduler.def.CancelTimerAction.execute(CancelTimerAction.java:45)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$1.process(SeamUserCodeInterceptor.java:80)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor$ContextualCall.run(SeamUserCodeInterceptor.java:33)
  | at 
org.jboss.seam.bpm.SeamUserCodeInterceptor.executeAction(SeamUserCodeInterceptor.java:74)
  | at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:254)
  | at org.jbpm.graph.def.GraphElement.executeActions(GraphElement.java:212)
  | at 
org.jbpm.graph.def.GraphElement.fireAndPropagateEvent(GraphElement.java:182)
  | at org.jbpm.graph.def.GraphElement.fireEvent(GraphElement.java:166)
  | 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:597)
  | at 
org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)
  | at 
org.jbpm.taskmgmt.def.Task_$$_javassist_2023.fireEvent(Task_$$_javassist_2023.java)
  | at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:444)
  | at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:413)
  | at org.jboss.seam.bpm.BusinessProcess.endTask(BusinessProcess.java:214)
  | at org.jboss.seam.pageflow.Page.execute(Page.java:103)
  | at org.jbpm.graph.def.Node.enter(Node.java:314)
  | at org.jbpm.graph.def.Transition.take(Transition.java:151)
  | at org.jbpm.graph.def.Node.leave(Node.java:389)
  | at org.jbpm.graph.exe.Token.signal(Token.java:192)
  | at org.jbpm.graph.exe.Token.signal(Token.java:155)
  | at org.jbpm.graph.exe.ProcessInstance.signal(ProcessInstance.java:283)
  | at org.jboss.seam.pageflow.Pageflow.signal(Pageflow.java:485)
  | at org.jboss.seam.pageflow.Pageflow.navigate(Pageflow.java:341)
  | at 
org.jboss.seam.jsf.SeamNavigationHandler.handleNavigation(SeamNavigationHandler.java:40)
  | at 
com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:130)
  | at javax.faces.component.UICommand.broadcast(UICommand.java:387)
  | at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:475)
  | at 
javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:755)
  | at 
com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:82)
  | at com.sun.faces.lifecycle.Phase.doPhase(Phase.java:100)
  | at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:118)
  | at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
  | at 
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
  | at 
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:83)
  | at org.jboss.seam.web.LoggingFilter.doFilter(LoggingFilter.java:58)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 
org.jboss.seam.debug.hot.HotDeployFilter.doFilter(HotDeployFilter.java:54)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at org.jboss.seam.web.IdentityFilter.doFilter(IdentityFilter.java:38)
  | at 
org.jboss.seam.servlet.SeamFilter$FilterChainImpl.doFilter(SeamFilter.java:69)
  | at 

[jboss-user] [JBoss jBPM] - Scheduler and asynchronous flow in in web app

2008-12-04 Thread jeklund
Hi everyone,

I'm trying to get asynchronous tasks and scheduling for things like
reminder duedate=1 minute repeat=30 seconds/
to work.

I'm deploying the application as a WAR using Seam and jbpm-jpdl-3.3.0.GA.jar. 
But I get complaints about the 'scheduler' service isn't started. And I don't 
think it is, since I have only declared
jbpm-context
  | ...
  | service name=scheduler 
factory=org.jbpm.scheduler.db.DbSchedulerServiceFactory /
  | ...
  | /jbpm-configuration
and not configured any org.jbpm.web.JbpmThreadsServlet in web.xml, since this 
wasn't included in the latest jbpm-3.3.0.GA release. (Instead it looks like it 
has been replaced with an EJB service, which isn't great for my WAR.)

Could anyone kick me in the right direction here..? Is this Servlet removed and 
some other method should be used instead?

Best Regards,
Johan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4194388#4194388

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4194388
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [JBoss jBPM] - Re: Scheduler and asynchronous flow in in web app

2008-12-04 Thread jeklund
Thank you Ronald (for this any _many_ other posts I've read on this forum)!

I didn't find anything on this changes in Jira or anywhere else related to 
JbpmThreadsServlet.. 

Does anyone know 
1. the location of documentation of how to configure it the new way? or
2. the name of the new filter? or
3. in which issue this change was made (so I could look up the made changes to 
the SVN and work backwards from there)

Best Regards,
Johan

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4194503#4194503

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4194503
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Is it possible to deploy EJB2 style entity beans in a EJ

2007-08-29 Thread jeklund
So.. I've split the project into two jar files project-ejb.jar and 
project-ejb-entities.jar that are deployed within an .ear.

The EJB version of project-ejb-entities.jar is 2.1. If the EJB version of 
project-ejb.jar is 2.1 too, everything works fine as before, but if I set the 
version of project-ejb.jar to 3.0 things start to go wrong..

using project-ejb-entities#bean-name in ejb-link elements I get the following

2007-08-29 15:07:48,261 WARN  [org.jboss.ejb3.enc.DeploymentEjbResolver] can't 
find a deployment for path 'project-ejb-entities.jar' of ejb link 
'project-ejb-entities.jar#TableProtectData'
2007-08-29 15:07:48,261 WARN  [org.jboss.injection.EJBHandler] IGNORING 
DEPENDENCY: unable to find ejb-local-ref of interface 
org.ejbca.core.ejb.protect.TableProtectDataLocal and ejbLink of 
project-ejb-entities.jar#TableProtectData in  ejb-jar.xml of 
TableProtectSession it might not be deployed yet

and without specifying the jar

2007-08-29 15:07:48,261 WARN  [org.jboss.injection.EJBHandler] IGNORING 
DEPENDENCY: unable to find ejb-local-ref of interface 
org.ejbca.core.ejb.protect.TableProtectDataLocal and ejbLink of 
TableProtectData in  ejb-jar.xml of TableProtectSession it might not be 
deployed yet

Using the same environment as before. Any help is greatly appreciated.
/Johan


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4079194#4079194

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4079194
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Is it possible to deploy EJB2 style entity beans in a EJB 3.

2007-08-28 Thread jeklund
Hi everybody,

I'm about to try a phased migration from EJB2 to EJB3. When I changed version 
to ejb-jar version=3.0 xmlns=http://java.sun.com/xml/ns/j2ee; in 
ejb-jar.xml, JBoss lists every session bean as EJB3-service, but none of the 
old entity beans show up in the debug log.

However I get a lot of 
2007-08-28 09:00:30,558 WARN  [org.jboss.injection.EJBHandler] IGNORING 
DEPENDENCY: unable to find ejb-local-ref of interface 
org.ejbca.core.ejb.ra.UserDataLocal and ejbLink of UserData in  ejb-jar.xml of 
UserAdminSession it might not be deployed yet warnings for the entity beans.

and later I get
2007-08-28 09:00:31,271 DEBUG 
[org.jboss.ejb3.stateless.StatelessDelegateWrapper] Starting failed 
jboss.j2ee:ear=ejbca.ear,jar=ejbca-ejb.jar,name=TableProtectSession,service=EJB3
java.lang.RuntimeException: Failed to populate ENC: 
env/ejb/TableProtectDataLocal global jndi name was null

I also noticed some
2007-08-28 09:00:17,579 DEBUG [org.jboss.web.tomcat.service.TomcatDeployer] 
Unable to retrieve orbjavax.management.InstanceNotFoundException: 
jboss:service=CorbaORB is not registered. but I'm not sure this is related..

Isn't it possible to start the migration by simple running the old code in it's 
new environment? I'm using JBoss 4.2.1.GA and Sun's Java 1.5.0_12 on Ubuntu x64.

Any help would be greatly appreciated,
Johan


View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078641#4078641

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078641
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user


[jboss-user] [EJB 3.0] - Re: Is it possible to deploy EJB2 style entity beans in a EJ

2007-08-28 Thread jeklund
I guess http://www.jboss.com/index.html?module=bbop=viewtopict=72369 answers 
my question (if it still is valid).

View the original post : 
http://www.jboss.com/index.html?module=bbop=viewtopicp=4078709#4078709

Reply to the post : 
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4078709
___
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user