[JBoss jBPM] - ClassNotFoundException loading my ActionHandler
by chip_schoch
Jbpm 3.1.3. Using jbpm.sar in my AS I am trying use Jbpm in my webapp. I created an ActionHandler and assigned it to a transition. I get the following exception:
2007-01-28 09:15:46,656 ERROR [org.jbpm.instantiation.Delegation] couldn't load delegation class 'com.eLynx.BPM.Handler.ConsentHandler'
java.lang.ClassNotFoundException: class 'com.eLynx.BPM.Handler.ConsentHandler' could not be found by the process classloader
at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:67)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)
at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)
at org.jbpm.graph.def.Action.execute(Action.java:122)
at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:235)
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 org.jbpm.graph.def.Transition.take(Transition.java:106)
at org.jbpm.graph.def.Node.leave(Node.java:383)
...
My ActionHandler class is in the war file (classpath) of my webapp. Does it need to be in the jbpm.sar deployment? That seems pretty weird. I have my logging configured so that my application logs to its own file and I noticed that this exception logs to the server file, not my app log, which suggests to me that the jbpm service is what is trying to instantiate the class and its classloader knows nothing about this class.
Is there a way around this. I don't want to have to put every custom action handler in the jbpm.sar. I have existing code that I am trying to wrap with jbpm to get better flexibility in managing process flow. Should I not use jbpm.sar and instead run jbpm embedded in my application in the manner of the simplewebapp example found on wiki? We have several webapps whose functionality we want to bpm enable and that doesn't appear to be the optimal way to approach it.
Thanks for all input.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007439#4007439
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007439
19 years, 2 months
[JBoss Seam] - Calling java bean from stateful session bean with EntityMana
by Yulia
Hello, I'm evaluating now SEAM framework as new Web development framework for our project. I have some poblems using it.
I took the Logout stateful session bean as in booking example and separated the db calls outside the ejb:
| public class ChangePasswordAction implements ChangePassword {
| @In(create=true)
| ChangePwdDao changePwdDao;
|
| public String changePassword()
| {
| if ( changePwdDao.changePassword()) {
| FacesMessages.instance().add("Password updated");
| return "main";
| }
| else
| {
| FacesMessages.instance().add("verify", "Re-enter new password");
| changePwdDao.cancel();
| return null;
| }
| }
In ChangePwdDao:
| @Scope(EVENT)
| @Name("changePwdDao")
| public class ChangePwdDao {
| @In @Out
| private User user;
| @PersistenceContext
| private EntityManager em;
| public boolean changePassword() {
| //using em here
| }
|
I receive NullPointerException while trying to use EntityManager inside the dao. As I understand SEAM injects the user variable but doesn't inject em (EntityManager).
I would like to see what's wrong with my code.
Thank you in advance.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007426#4007426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007426
19 years, 2 months
[Installation, Configuration & Deployment] - error while deploying application using JMX
by litalh
Hi,
When I try to deploy my application using the JMX over RMI I get the following error:
MBeanException: null Cause: Incomplete Deployment listing:
--- Packages waiting for a deployer ---
org.jboss.deployment.DeploymentInfo@e8499f27 { url=http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSigh...
altDD: null
lastDeployed: 1169745706645
lastModified: 1169745706630
mbeans:
--- Incompletely deployed packages ---
org.jboss.deployment.DeploymentInfo@e8499f27 { url=http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSightInstallerService.deployer }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: http://localhost:8080/AppSight/download/installer?filename=/jboss/AppSigh...
altDD: null
lastDeployed: 1169745706645
lastModified: 1169745706630
mbeans:
at org.jboss.mx.interceptor.ReflectedDispatcher.handleInvocationExceptions(ReflectedDispatcher.java:180)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:163)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
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:324)
at org.jboss.jmx.connector.invoker.InvokerAdaptorService.invoke(InvokerAdaptorService.java:266)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPProxyFactory.invoke(JRMPProxyFactory.java:179)
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:324)
at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.invocation.jrmp.server.JRMPInvoker$MBeanServerAction.invoke(JRMPInvoker.java:819)
at org.jboss.invocation.jrmp.server.JRMPInvoker.invoke(JRMPInvoker.java:420)
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:324)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:261)
at sun.rmi.transport.Transport$1.run(Transport.java:148)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:144)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:460)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:701)
at java.lang.Thread.run(Thread.java:534)
I'm using jboss 4.0.5.
What can I do about it ?
Thanks alot
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007392#4007392
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007392
19 years, 2 months
[EJB 3.0] - EJB3 service object tutorial problem
by guava
Hi,
I tried to run the 'service' tutorial came with jboss-EJB-3.0_RC9_Patch_1 in 4.05GA under windows. I can see the services are created and started.
23:48:45,796 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=tutor
ial.jar,name=ServiceOne,service=EJB3 with dependencies:
23:48:45,937 INFO [EJBContainer] STARTED EJB: org.jboss.tutorial.service.bean.S
erviceOne ejbName: ServiceOne
23:48:46,015 INFO [STDOUT] ServiceOne - Creating
23:48:46,031 INFO [STDOUT] ServiceOne - Starting
But when I CTRL-C to stop Jboss, I see that the life cycle methods on these objects are called but I got the following error:
23:50:13,890 INFO [STDOUT] ServiceOne - Stopping
23:50:13,890 INFO [STDOUT] ServiceOne - Destroying
23:50:13,890 WARN [ServiceDelegateWrapper] Stopping failed jboss.j2ee:jar=tutor
ial.jar,name=ServiceOne,service=EJB3
java.lang.RuntimeException: javax.management.InstanceNotFoundException: jboss.j2
ee:jar=tutorial.jar,name=ServiceOne,service=EJB3,type=ManagementInterface is not
registered.
at org.jboss.ejb3.JmxKernelAbstraction.uninstallMBean(JmxKernelAbstracti
on.java:159)
at org.jboss.ejb3.service.ServiceContainer.stop(ServiceContainer.java:16
6)
Any help will be great.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4007375#4007375
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4007375
19 years, 2 months