[jBPM] - Having problems in configuring jBPM persistence on AS 7.1.0 Final
by Vimal Kansal
Vimal Kansal [https://community.jboss.org/people/vimalkansal] created the discussion
"Having problems in configuring jBPM persistence on AS 7.1.0 Final"
To view the discussion, visit: https://community.jboss.org/message/738203#738203
--------------------------------------------------------------
Hi,
I am trying to configure jBPM 5.3 persistence configured and having troubles, any help will be gretaly appreciated. So here is what I am doing :
My use case involves building a JEE6 web app with jBPM 5.2 engine embedded in it.
I am using JBoss Developer Studio 5.0 Beta 3 to generate a JEE6 web app using one of the maven plugins. Once the app is generated, I have added dependencies on jbpm-bpmn2 and jbpm-persistence-jpa. I have also updated the persistence.xml file (please see the attached file). Note that I have 2 persistence units in it : one for application data and other for jbpm. When I deploy this application to AS 7.1.0, (mvn clean package jboss-as:deploy), I get the following persistence exception :
=========================================================================================================================================
23:32:43,335 INFO [org.hibernate.hql.internal.ast.ASTQueryTranslatorFactory] (MSC service thread 1-2) HHH000397: Using ASTQueryTranslatorFactory
23:32:43,341 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-4) MSC000001: Failed to start service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": org.jboss.msc.service.StartException in service jboss.persistenceunit."jbpmDemo.war#org.jbpm.persistence.jpa": Failed to start service
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1767) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) [rt.jar:1.6.0_31]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) [rt.jar:1.6.0_31]
at java.lang.Thread.run(Thread.java:662) [rt.jar:1.6.0_31]
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.jbpm.persistence.jpa] class or package not found
at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1401)
at org.hibernate.ejb.Ejb3Configuration.addClassesToSessionFactory(Ejb3Configuration.java:1184)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:1048)
at org.hibernate.ejb.Ejb3Configuration.configure(Ejb3Configuration.java:693)
at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:73)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.createContainerEntityManagerFactory(PersistenceUnitServiceImpl.java:162)
at org.jboss.as.jpa.service.PersistenceUnitServiceImpl.start(PersistenceUnitServiceImpl.java:85)
at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1811) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1746) [jboss-msc-1.0.2.GA-redhat-1.jar:1.0.2.GA-redhat-1]
... 3 more
Caused by: java.lang.ClassNotFoundException: org.jbpm.process.audit.ProcessInstanceLog from [Module "org.hibernate:main" from local module loader @23e5d1 (roots: /home/vimal/Apps/jboss-eap-6.0/modules)]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:468)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:456)
at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:423)
at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:398)
at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:120)
at java.lang.Class.forName0(Native Method) [rt.jar:1.6.0_31]
at java.lang.Class.forName(Class.java:247) [rt.jar:1.6.0_31]
at org.hibernate.internal.util.ReflectHelper.classForName(ReflectHelper.java:170)
at org.hibernate.ejb.Ejb3Configuration.classForName(Ejb3Configuration.java:1318)
at org.hibernate.ejb.Ejb3Configuration.addNamedAnnotatedClasses(Ejb3Configuration.java:1390)
... 11 more
===================================================================================================================================
Can somebody please help.
Thx
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/738203#738203]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[JBoss Tools] - Debugger Stopped Working
by Stephen Seltzer
Stephen Seltzer [https://community.jboss.org/people/steve_np] created the discussion
"Debugger Stopped Working"
To view the discussion, visit: https://community.jboss.org/message/722161#722161
--------------------------------------------------------------
To start, my system is:
Windows 7 (64bit)
Eclipse Indigo (Build id: 20110916-0149)
JBossASTools (Version: 2.3.0.v20111213-1423-H61-M5)
JBoss AS 7.1
I have had this configuration up and running for over a month. Suddenly starting yesterday I have been unable to start up my system in debug. I have made no significant changes to my system (save for the installation of TOAD but it was still working for a while after that was installed). It will start fine in run mode and it starts in < 10 seconds. When I start using the debugger, it takes > 1:30 and then fails in the end. The last couple of lines from server.log are:
10:11:11,188 INFO [org.jboss.web] (MSC service thread 1-2) JBAS018210: Registering web context: /speed2
10:11:11,207 DEBUG [org.apache.jasper.servlet.JspServlet] (MSC service thread 1-3) JspServlet.destroy()
10:11:11,214 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/speed2]] (MSC service thread 1-3) Stopping filters
10:11:11,220 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/speed2]] (MSC service thread 1-3) Stopping filter 'com.newpig.speed2.filters.NoCacheFilter'
10:11:11,227 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/speed2]] (MSC service thread 1-3) Stopping filter 'MyFacesExtensionsFilter'
10:11:11,238 DEBUG [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/speed2]] (MSC service thread 1-3) Stopping filter 'noCacheFilter'
10:11:11,244 DEBUG [org.apache.catalina.session.ManagerBase] (MSC service thread 1-3) Unloading persisted sessions
10:11:11,250 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Sending application stop events
10:11:11,255 FINE [javax.enterprise.resource.webcontainer.jsf.config] (MSC service thread 1-3) ConfigureListener.contextDestroyed(null)
10:11:11,271 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Processing standard container shutdown
10:11:11,277 DEBUG [org.apache.catalina.startup.ContextConfig] (MSC service thread 1-3) ContextConfig: Processing STOP
10:11:11,291 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) resetContext null
10:11:11,296 DEBUG [org.apache.catalina.core.StandardContext] (MSC service thread 1-3) Stopping complete
10:11:13,150 ERROR [org.jboss.as] (MSC service thread 1-7) JBAS015875: JBoss AS 7.1.0.Final "Thunder" started (with errors) in 93195ms - Started 407 of 481 services (1 services failed or missing dependencies, 72 services are passive or on-demand)
10:11:16,251 INFO [org.jboss.as.server.deployment] (MSC service thread 1-5) JBAS015877: Stopped deployment speed2.war in 34435ms
I have attached a zip containing server.log files from starting with a plain run and starting in debug to show the success/failure. Also, I bumped my logging up to DEBUG to give a little more information.
Any assistance getting my debugging back on line sure would be appreciated!
Steve
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/722161#722161]
Start a new discussion in JBoss Tools at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[jBPM] - Tomcat6 + Spring + JBPM5.3 integration
by Houssem Salah
Houssem Salah [https://community.jboss.org/people/soyeur] created the discussion
"Tomcat6 + Spring + JBPM5.3 integration"
To view the discussion, visit: https://community.jboss.org/message/753537#753537
--------------------------------------------------------------
Hello
I have a web application configured to work in tomcat using spring . I'm trying to add JBPM workflow engine to my application.
I have configured persistence to work with MySql and JPA 2.0 in persistence.xml. and I have added a spring bean contaning transaction manager and EntityManagerFactory.
My probleme is I got the error saying *could not parse knowledge* when running the following:
KnowledgeBuilder kbuilder = KnowledgeBuilderFactory.newKnowledgeBuilder();
kbuilder.add(ResourceFactory.newClassPathResource("process/Evaluation.bpmn"), ResourceType.BPMN2);
KnowledgeBuilderErrors errors = kbuilder.getErrors();
KnowledgeBase kbase = kbuilder.newKnowledgeBase();
The line in green check if there is any errors. it contain [ProcessLoadError: unable to parse xml : Exception class java.lang.NullPointerException : null]
Any help will be great
Thinx
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/753537#753537]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[jBPM] - Problems with jbpm demo
by Franck cdsosi
Franck cdsosi [https://community.jboss.org/people/cdsosi] created the discussion
"Problems with jbpm demo"
To view the discussion, visit: https://community.jboss.org/message/750409#750409
--------------------------------------------------------------
Hi everyone,
I am new to BPM world so I am starting to have interest with open source BPM solutions including jBPM of course ;)
Before dealing with complex business processes, I am starting playing with the Sample Demo but encounter some problems.
I succeed in executing the demo under eclipse till complete process completion (john + mary Start / Complete jobs) so no problem.
I am playing now with the jBPM console to do the same :
1- log in with krisv and start a new Evaluation process
2- able to see in Personal Task the task just started and click on View to Complete
3- log out
4- log in as john but impossible to get any task displaying in john's Personal Task View even with clicking on Refresh button...
5- log out
6- log in as mary but same as step 4. In the Messages log area i always have a "[INFO ] Loaded 0 tasks"
7- log out
8- log in as krisv, delete the process instance running and start a new one and now no Personal Task displaying with krisv :(
In the log area i have :
2012-07-26 11:30:58,217 [DEBUG] GET: http://localhost:8080/gwt-console-server/rs/tasks/krisv http://localhost:8080/gwt-console-server/rs/tasks/krisv
2012-07-26 11:31:18,261 [DEBUG] parse {"tasks":[]}
2012-07-26 11:31:18,277 [INFO ] Loaded 0 tasks
or sometimes
2012-07-26 11:18:33,597 [DEBUG] GET: http://localhost:8080/gwt-console-server/rs/tasks/krisv http://localhost:8080/gwt-console-server/rs/tasks/krisv
2012-07-26 11:18:46,536 [FATAL] Uncaught Exception:
java.lang.IllegalArgumentException:
*must be positive*
at Unknown.$fillInStackTrace(StackTraceCreator.java:147)
at Unknown.fillInStackTrace(StackTraceCreator.java:387)
at Unknown.IllegalArgumentException_1(Throwable.java:46)
at Unknown.$schedule(Timer.java:106)
at Unknown.run_26(ClientMessageBusImpl.java:961)
at Unknown.fire(Timer.java:141)
at Unknown.anonymous(Timer.java:60)
at Unknown.entry0(Impl.java:214)
at Unknown.anonymous(Impl.java:57)
2012-07-26 11:18:53,636 [DEBUG] parse {"tasks":[]}
2012-07-26 11:18:53,649 [INFO ] Loaded 0 tasks
Any idea on what's going wrong or what i am doing wrong actually?
I am testing with the jbpm-5.3.0.Final-installer-full version.
Regards
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/750409#750409]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[jBPM] - jBPM 5.3 - Eclipse BPMN 2.0 Plugin - Could not open editor: assertion failed
by Sam Matsoukis
Sam Matsoukis [https://community.jboss.org/people/matsoukis] created the discussion
"jBPM 5.3 - Eclipse BPMN 2.0 Plugin - Could not open editor: assertion failed"
To view the discussion, visit: https://community.jboss.org/message/744681#744681
--------------------------------------------------------------
Hi,
I've been using the old BPMN editor in eclipse. I really like the new BPMN 2 editor with swim lanes and more,
so I installed a fresh copy of Eclipse indigo and installed the BPMN plugin by following jBPM 5.3 Chapter 10 instruction
of http://download.eclipse.org/bpmn2-modeler/site/ http://download.eclipse.org/bpmn2-modeler/site/ After a successful install, I see the BPMN in the
Eclipse preferences, but when I create a BPMN diagram, I get an assertion error:
Could not open editor: assertion failed
With stack trace:
org.eclipse.core.runtime.AssertionFailedException: assertion failed:
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110)
at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96)
at org.eclipse.ui.part.MultiPageEditorPart.setActivePage(MultiPageEditorPart.java:1065)
at org.eclipse.ui.part.MultiPageEditorPart.createPartControl(MultiPageEditorPart.java:352)
at org.eclipse.ui.internal.EditorReference.createPartHelper(EditorReference.java:670)
at org.eclipse.ui.internal.EditorReference.createPart(EditorReference.java:465)
...
I've tried this install on Windows XP 32 bit, and also on Linux/Ubuntu 2.6.38 64-bit
Using Eclipse Indigo 3.7.2. Both have the same assertion failure.
Given that there are demo's of this plugins in the documentation, this is probably an install issue on my part.
Any idea what I need to do to get the new BPMN editor to work correctly?
Thanks - sam.
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/744681#744681]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months
[jBPM] - JBPM-Console Error org.jbpm.task.service.mina.MinaTaskClientConnector.write(MinaTaskClientConnector.java:118) when opening task form on external port.
by renez
renez [https://community.jboss.org/people/renez] created the discussion
"JBPM-Console Error org.jbpm.task.service.mina.MinaTaskClientConnector.write(MinaTaskClientConnector.java:118) when opening task form on external port."
To view the discussion, visit: https://community.jboss.org/message/725743#725743
--------------------------------------------------------------
Hi,
I create for my process a task form by guvnor/ designer. When I run my process using the local port http://localhost:8080/jbpm-console/ http://localhost:8080/jbpm-console/ everything works fine:
https://community.jboss.org/servlet/JiveServlet/showImage/2-725743-18261/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-725743-18...
But when I try to run the process on my external test server I got a strange behaviour:
* I get asked for credentials again
* When I enter them, I receive an error
org.jboss.resteasy.spi.UnhandledException: java.lang.NullPointerException
org.jboss.resteasy.core.SynchronousDispatcher.unwrapException(SynchronousDispatcher.java:345)
org.jboss.resteasy.core.SynchronousDispatcher.handleApplicationException(SynchronousDispatcher.java:321)
org.jboss.resteasy.core.SynchronousDispatcher.handleException(SynchronousDispatcher.java:214)
org.jboss.resteasy.core.SynchronousDispatcher.handleInvokerException(SynchronousDispatcher.java:190)
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:534)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
root cause
java.lang.NullPointerException
org.jbpm.task.service.mina.MinaTaskClientConnector.write(MinaTaskClientConnector.java:118)
org.jbpm.task.service.TaskClient.getTask(TaskClient.java:83)
org.jbpm.integration.console.forms.TaskFormDispatcher.provideForm(TaskFormDispatcher.java:73)
org.jbpm.integration.console.forms.FormDispatcherComposite.provideForm(FormDispatcherComposite.java:50)
org.jboss.bpm.console.server.FormProcessingFacade.provideForm(FormProcessingFacade.java:205)
org.jboss.bpm.console.server.FormProcessingFacade.renderTaskUI(FormProcessingFacade.java:127)
sun.reflect.GeneratedMethodAccessor161.invoke(Unknown Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:601)
org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:140)
org.jboss.resteasy.core.ResourceMethod.invokeOnTarget(ResourceMethod.java:255)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:220)
org.jboss.resteasy.core.ResourceMethod.invoke(ResourceMethod.java:209)
org.jboss.resteasy.core.SynchronousDispatcher.getResponse(SynchronousDispatcher.java:519)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:496)
org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:119)
org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:208)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:55)
org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:50)
javax.servlet.http.HttpServlet.service(HttpServlet.java:847)
org.jboss.bpm.console.server.util.GWTJsonFilter.doFilter(GWTJsonFilter.java:59)
https://community.jboss.org/servlet/JiveServlet/showImage/2-725743-18263/... https://community.jboss.org/servlet/JiveServlet/downloadImage/2-725743-18...
I read this posts: https://community.jboss.org/message/643297#643297 https://community.jboss.org/message/643297#643297 but I don't have whitespaces in the task name.
Any suggestions?
Thank you,
René
--------------------------------------------------------------
Reply to this message by going to Community
[https://community.jboss.org/message/725743#725743]
Start a new discussion in jBPM at Community
[https://community.jboss.org/choose-container!input.jspa?contentType=1&con...]
11 years, 8 months