Thank you kris,
Removing persistance-api.jar from the gwt-console-server-drools.war helped
to remove the error. Now I'm able to view the process on web-console.
However, when I'm clicking on Start under Process Instances, the following
error occurs. Can you please suggest how can I solve this. I'm pasting the
full stack-trace for the same:
17:13:18,469 ERROR [STDERR] java.lang.IllegalArgumentException: Unknown
entity:
org.drools.persistence.processinstance.ProcessInstanceInfo
17:13:18,469 ERROR [STDERR] at
org.hibernate.ejb.AbstractEntityManagerImpl.p
ersist(AbstractEntityManagerImpl.java:215)
17:13:18,469 ERROR [STDERR] at
org.drools.persistence.processinstance.JPAPro
cessInstanceManager.addProcessInstance(JPAProcessInstanceManager.java:33)
17:13:18,469 ERROR [STDERR] at
org.drools.process.instance.AbstractProcessIn
stanceFactory.createProcessInstance(AbstractProcessInstanceFactory.java:37)
17:13:18,469 ERROR [STDERR] at
org.drools.common.AbstractWorkingMemory.start
Process(AbstractWorkingMemory.java:1706)
17:13:18,469 ERROR [STDERR] at
org.drools.common.AbstractWorkingMemory.start
Process(AbstractWorkingMemory.java:1682)
17:13:18,469 ERROR [STDERR] at
org.drools.impl.StatefulKnowledgeSessionImpl.
startProcess(StatefulKnowledgeSessionImpl.java:289)
17:13:18,469 ERROR [STDERR] at
org.drools.command.runtime.process.StartProce
ssCommand.execute(StartProcessCommand.java:52)
17:13:18,469 ERROR [STDERR] at
org.drools.command.runtime.process.StartProce
ssCommand.execute(StartProcessCommand.java:14)
17:13:18,469 ERROR [STDERR] at
org.drools.persistence.session.SingleSessionC
ommandService.execute(SingleSessionCommandService.java:254)
17:13:18,469 ERROR [STDERR] at
org.drools.command.impl.CommandBasedStatefulK
nowledgeSession.startProcess(CommandBasedStatefulKnowledgeSession.java:163)
17:13:18,469 ERROR [STDERR] at
org.drools.integration.console.DroolsFlowComm
andDelegate.startProcess(DroolsFlowCommandDelegate.java:125)
17:13:18,469 ERROR [STDERR] at
org.drools.integration.console.DroolsFlowProc
essManagement.newInstance(DroolsFlowProcessManagement.java:64)
17:13:18,469 ERROR [STDERR] at
org.drools.integration.console.DroolsFlowProc
essManagement.newInstance(DroolsFlowProcessManagement.java:60)
17:13:18,469 ERROR [STDERR] at
org.jboss.bpm.console.server.ProcessMgmtFacad
e.newInstance(ProcessMgmtFacade.java:189)
17:13:18,469 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke0(
Native Method)
17:13:18,469 ERROR [STDERR] at
sun.reflect.NativeMethodAccessorImpl.invoke(N
ativeMethodAccessorImpl.java:39)
17:13:18,469 ERROR [STDERR] at
sun.reflect.DelegatingMethodAccessorImpl.invo
ke(DelegatingMethodAccessorImpl.java:25)
17:13:18,469 ERROR [STDERR] at
java.lang.reflect.Method.invoke(Method.java:5
97)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.MethodInjectorImpl.in
voke(MethodInjectorImpl.java:117)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.ResourceMethod.invoke
OnTarget(ResourceMethod.java:260)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.ResourceMethod.invoke
(ResourceMethod.java:232)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.ResourceMethod.invoke
(ResourceMethod.java:166)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.DispatcherUtilities.g
etJaxrsResponse(DispatcherUtilities.java:142)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.SynchronousDispatcher
.invoke(SynchronousDispatcher.java:356)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.core.SynchronousDispatcher
.invoke(SynchronousDispatcher.java:173)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.plugins.server.servlet.Htt
pServletDispatcher.service(HttpServletDispatcher.java:93)
17:13:18,469 ERROR [STDERR] at
org.jboss.resteasy.plugins.server.servlet.Htt
pServletDispatcher.service(HttpServletDispatcher.java:68)
17:13:18,469 ERROR [STDERR] at
javax.servlet.http.HttpServlet.service(HttpSe
rvlet.java:803)
17:13:18,469 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:290)
17:13:18,469 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
17:13:18,469 ERROR [STDERR] at
org.jboss.bpm.console.server.util.GWTJsonFilt
er.doFilter(GWTJsonFilter.java:59)
17:13:18,469 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
17:13:18,485 ERROR [STDERR] at
org.jboss.web.tomcat.filters.ReplyHeaderFilte
r.doFilter(ReplyHeaderFilter.java:96)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.internalDoFilter(ApplicationFilterChain.java:235)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.ApplicationFilterCha
in.doFilter(ApplicationFilterChain.java:206)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.StandardWrapperValve
.invoke(StandardWrapperValve.java:230)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.StandardContextValve
.invoke(StandardContextValve.java:175)
17:13:18,485 ERROR [STDERR] at
org.jboss.web.tomcat.security.SecurityAssocia
tionValve.invoke(SecurityAssociationValve.java:182)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.authenticator.Authenticat
orBase.invoke(AuthenticatorBase.java:524)
17:13:18,485 ERROR [STDERR] at
org.jboss.web.tomcat.security.JaccContextValv
e.invoke(JaccContextValve.java:84)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.StandardHostValve.in
voke(StandardHostValve.java:127)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.valves.ErrorReportValve.i
nvoke(ErrorReportValve.java:102)
17:13:18,485 ERROR [STDERR] at
org.jboss.web.tomcat.service.jca.CachedConnec
tionValve.invoke(CachedConnectionValve.java:157)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.core.StandardEngineValve.
invoke(StandardEngineValve.java:109)
17:13:18,485 ERROR [STDERR] at
org.apache.catalina.connector.CoyoteAdapter.s
ervice(CoyoteAdapter.java:262)
17:13:18,485 ERROR [STDERR] at
org.apache.coyote.http11.Http11Processor.proc
ess(Http11Processor.java:844)
17:13:18,485 ERROR [STDERR] at
org.apache.coyote.http11.Http11Protocol$Http1
1ConnectionHandler.process(Http11Protocol.java:583)
17:13:18,485 ERROR [STDERR] at
org.apache.tomcat.util.net.JIoEndpoint$Worker
.run(JIoEndpoint.java:446)
17:13:18,485 ERROR [STDERR] at java.lang.Thread.run(Thread.java:619)
17:13:18,485 ERROR [STDERR] Nov 10, 2009 5:13:18 PM
org.jboss.resteasy.core.Sync
hronousDispatcher handleWebApplicationException
SEVERE: failed to execute
javax.ws.rs.WebApplicationException: java.lang.RuntimeException: Could not
rollb
ack transaction
at
org.jboss.bpm.console.server.ProcessMgmtFacade.newInstance(ProcessMgm
tFacade.java:194)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.
java:117)
at
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.
java:260)
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:232
)
at
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:166
)
at
org.jboss.resteasy.core.DispatcherUtilities.getJaxrsResponse(Dispatch
erUtilities.java:142)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:356)
at
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispa
tcher.java:173)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:93)
at
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.servi
ce(HttpServletDispatcher.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilte
r.java:59)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFi
lter.java:96)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:230)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at
org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(Securit
yAssociationValve.java:182)
at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authentica
torBase.java:524)
at
org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValv
e.java:84)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:102)
at
org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedC
onnectionValve.java:157)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:262)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:844)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.proce
ss(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:44
6)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.RuntimeException: Could not rollback transaction
at
org.drools.persistence.session.SingleSessionCommandService.execute(Si
ngleSessionCommandService.java:283)
at
org.drools.command.impl.CommandBasedStatefulKnowledgeSession.startPro
cess(CommandBasedStatefulKnowledgeSession.java:163)
at
org.drools.integration.console.DroolsFlowCommandDelegate.startProcess
(DroolsFlowCommandDelegate.java:125)
at
org.drools.integration.console.DroolsFlowProcessManagement.newInstanc
e(DroolsFlowProcessManagement.java:64)
at
org.drools.integration.console.DroolsFlowProcessManagement.newInstanc
e(DroolsFlowProcessManagement.java:60)
at
org.jboss.bpm.console.server.ProcessMgmtFacade.newInstance(ProcessMgm
tFacade.java:189)
... 36 more
Caused by: java.lang.RuntimeException: Could not execute command
at
org.drools.persistence.session.SingleSessionCommandService.execute(Si
ngleSessionCommandService.java:280)
... 41 more
Caused by: java.lang.IllegalArgumentException: Unknown entity:
org.drools.persis
tence.processinstance.ProcessInstanceInfo
at
org.hibernate.ejb.AbstractEntityManagerImpl.persist(AbstractEntityMan
agerImpl.java:215)
at
org.drools.persistence.processinstance.JPAProcessInstanceManager.addP
rocessInstance(JPAProcessInstanceManager.java:33)
at
org.drools.process.instance.AbstractProcessInstanceFactory.createProc
essInstance(AbstractProcessInstanceFactory.java:37)
at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingM
emory.java:1706)
at
org.drools.common.AbstractWorkingMemory.startProcess(AbstractWorkingM
emory.java:1682)
at
org.drools.impl.StatefulKnowledgeSessionImpl.startProcess(StatefulKno
wledgeSessionImpl.java:289)
at
org.drools.command.runtime.process.StartProcessCommand.execute(StartP
rocessCommand.java:52)
at
org.drools.command.runtime.process.StartProcessCommand.execute(StartP
rocessCommand.java:14)
at
org.drools.persistence.session.SingleSessionCommandService.execute(Si
ngleSessionCommandService.java:254)
... 41 more
Thank you in advance for your help.
--
View this message in context:
http://old.nabble.com/Drools-flow-web-console-%285.1.M1%29-deployment-in-...
Sent from the drools - user mailing list archive at
Nabble.com.