2 Replies Latest reply on Feb 16, 2009 3:44 PM by Peter Petrovski

    ClassLoader problem

    Peter Petrovski Newbie

      Hello,

      I'm doing my first steps with jbpm and I have one problem.
      With any example from jbpm-jpdl-3.2.3 package, which contain java class in project I have same exception.
      This is exception from "websale" example:


      java.lang.ClassNotFoundException
      : class 'org.jbpm.websale.ShipItem' could not be found by the process classloader

      at org.jbpm.instantiation.ProcessClassLoader.findClass(ProcessClassLoader.java:118)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at java.lang.ClassLoader.loadClass(Unknown Source)

      at org.jbpm.instantiation.Delegation.instantiate(Delegation.java:140)

      at org.jbpm.instantiation.Delegation.getInstance(Delegation.java:125)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.instantiation.Delegation_$$_javassist_4.getInstance(Delegation_$$_javassist_4.java)

      at org.jbpm.graph.def.Action.execute(Action.java:121)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.graph.def.Action_$$_javassist_63.execute(Action_$$_javassist_63.java)

      at org.jbpm.graph.def.GraphElement.executeAction(GraphElement.java:259)

      at org.jbpm.graph.def.Node.execute(Node.java:338)

      at org.jbpm.graph.def.Node.enter(Node.java:318)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)

      at org.jbpm.graph.def.Transition.take(Transition.java:151)

      at org.jbpm.graph.def.Node.leave(Node.java:393)

      at org.jbpm.graph.def.Node.leave(Node.java:368)

      at org.jbpm.graph.node.Fork.execute(Fork.java:140)

      at org.jbpm.graph.def.Node.enter(Node.java:318)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.graph.def.Node_$$_javassist_49.enter(Node_$$_javassist_49.java)

      at org.jbpm.graph.def.Transition.take(Transition.java:151)

      at org.jbpm.graph.def.Node.leave(Node.java:393)

      at org.jbpm.graph.node.TaskNode.leave(TaskNode.java:209)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.graph.node.TaskNode_$$_javassist_15.leave(TaskNode_$$_javassist_15.java)

      at org.jbpm.graph.exe.Token.signal(Token.java:192)

      at org.jbpm.graph.exe.Token.signal(Token.java:163)

      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)

      at java.lang.reflect.Method.invoke(Unknown Source)

      at org.hibernate.proxy.pojo.javassist.JavassistLazyInitializer.invoke(JavassistLazyInitializer.java:173)

      at org.jbpm.graph.exe.Token_$$_javassist_64.signal(Token_$$_javassist_64.java)

      at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:482)

      at org.jbpm.taskmgmt.exe.TaskInstance.end(TaskInstance.java:421)

      at org.jbpm.jsf.core.action.CompleteTaskActionListener.handleAction(CompleteTaskActionListener.java:52)

      at org.jbpm.jsf.core.impl.JbpmActionListenerWrapper.processAction(JbpmActionListenerWrapper.java:82)

      at javax.faces.event.ActionEvent.processListener(ActionEvent.java:77)

      at javax.faces.component.UIComponentBase.broadcast(UIComponentBase.java:746)

      at javax.faces.component.UICommand.broadcast(UICommand.java:368)

      at org.jbpm.jsf.taskform.ui.UITaskFormButtonBase.broadcast(UITaskFormButtonBase.java:56)

      at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:447)

      at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:752)

      at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:97)

      at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)

      at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)

      at javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)

      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:524)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)

      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)

      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)

      at java.lang.Thread.run(Unknown Source)


      Can you please help?