1 Reply Latest reply on Jan 26, 2006 4:58 AM by Koen Aers

    jBPM does not work in JBoss

    Alexander Rojas Newbie

      Hi, I'm using jBPM 3.0.1 in order to use it for users logging and permission management. Anyway it works so good when I use it outside JBoss (in JUnit tests) but when I deploy my aplication and I call the

      identitySession.loadUser(long)
      method, it causes an
      ClassCastException
      .

      I'm using JBoss 4.0.3 and this is the error I get:

      java.lang.ClassCastException: org.jbpm.identity.User$$EnhancerByCGLIB$$b1a7ab17
      at org.hibernate.proxy.CGLIBLazyInitializer.getProxy(CGLIBLazyInitializer.java:104)
      at org.hibernate.proxy.CGLIBProxyFactory.getProxy(CGLIBProxyFactory.java:47)
      at org.hibernate.tuple.AbstractEntityTuplizer.createProxy(AbstractEntityTuplizer.java:372)
      at org.hibernate.persister.entity.AbstractEntityPersister.createProxy(AbstractEntityPersister.java:3121)
      at org.hibernate.event.def.DefaultLoadEventListener.createProxyIfNecessary(DefaultLoadEventListener.java:232)
      at org.hibernate.event.def.DefaultLoadEventListener.proxyOrLoad(DefaultLoadEventListener.java:173)
      at org.hibernate.event.def.DefaultLoadEventListener.onLoad(DefaultLoadEventListener.java:87)
      at org.hibernate.impl.SessionImpl.fireLoad(SessionImpl.java:869)
      at org.hibernate.impl.SessionImpl.load(SessionImpl.java:788)
      at org.hibernate.impl.SessionImpl.load(SessionImpl.java:781)
      at org.jbpm.identity.hibernate.IdentitySession.loadUser(IdentitySession.java:132)
      at net.edesa.r166.service.SecurityService.getUser_aroundBody2(SecurityService.java:60)
      at net.edesa.r166.service.SecurityService.getUser_aroundBody3$advice(SecurityService.java:123)
      at net.edesa.r166.service.SecurityService.getUser(SecurityService.java)
      at net.edesa.r166.tapestry.pages.Login.attemptLogin(Login.java:101)
      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:585)
      at org.apache.tapestry.listener.ListenerMap.invokeTargetMethod(ListenerMap.java:257)
      at org.apache.tapestry.listener.ListenerMap.access$100(ListenerMap.java:46)
      at org.apache.tapestry.listener.ListenerMap$SyntheticListener.invoke(ListenerMap.java:97)
      at org.apache.tapestry.listener.ListenerMap$SyntheticListener.actionTriggered(ListenerMap.java:102)
      at org.apache.tapestry.form.Form.renderComponent(Form.java:423)
      at org.apache.tapestry.AbstractComponent.render(AbstractComponent.java:857)
      at org.apache.tapestry.form.Form.rewind(Form.java:568)
      at org.apache.tapestry.engine.RequestCycle.rewindForm(RequestCycle.java:432)
      at org.apache.tapestry.form.Form.trigger(Form.java:582)
      at org.apache.tapestry.engine.DirectService.service(DirectService.java:169)
      at org.apache.tapestry.engine.AbstractEngine.service(AbstractEngine.java:889)
      at org.apache.tapestry.ApplicationServlet.doService(ApplicationServlet.java:198)
      at org.apache.tapestry.ApplicationServlet.doPost(ApplicationServlet.java:327)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)
      at org.jboss.web.tomcat.tc5.session.ClusteredSessionValve.invoke(ClusteredSessionValve.java:81)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)
      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)
      at java.lang.Thread.run(Thread.java:595)