[JBoss jBPM] - java.lang.NoClassDefFoundError: javax/transaction/Synchroniz
by mr.lou
Hello,
I'm trying to run an example from the jBPM jPDL 3.2 User Guide. I have changed the database example a little bit so that the jUnit assertions are just some System.out.println and the program is starting by an public static void main.
Nice so far. But the main problem is to get all the necessary libraries to run this simple class. I have added a lot of jars now, but there is still an exception occurring.
The following exception occurs when i try to deploy the process definition with the following code:
| JbpmContext jbpmContext = jbpmConfiguration.createJbpmContext();
| try {
| jbpmContext.deployProcessDefinition(processDefinition);
| } finally {
| jbpmContext.close();
| }
|
The exception:
| Exception in thread "main" java.lang.NoClassDefFoundError: javax/transaction/Synchronization
| at org.hibernate.impl.SessionImpl.<init>(SessionImpl.java:213)
| at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:473)
| at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:497)
| at org.hibernate.impl.SessionFactoryImpl.openSession(SessionFactoryImpl.java:505)
| at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:97)
| at org.jbpm.persistence.db.DbPersistenceService.getGraphSession(DbPersistenceService.java:234)
| at org.jbpm.JbpmContext.getGraphSession(JbpmContext.java:539)
| at org.jbpm.JbpmContext.deployProcessDefinition(JbpmContext.java:173)
| at scr.own.ProcessWork.deploy(ProcessWork.java:91)
| at scr.own.ProcessWork.testProcess(ProcessWork.java:71)
| at scr.own.ProcessWork.main(ProcessWork.java:37)
|
It would be great if someone can tell me what to do!! Or is there somebody who just can tell me what libs I need to run this tutorial example?
thanks in advance
lou
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069240#4069240
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069240
18Â years, 8Â months
[JBoss Seam] - Re: Target Unreachable error w/ Seam 2.0.0.Beta1?
by cupdike
Part of the exception message was cut off (see below for full message), but everything needed is in that message (the fact that 'ppPemsItemMv' returned null). The problem was that the generated getter was as follows:
@Name("ppPemsItemMvList")
| public class PpPemsItemMvList extends EntityQuery {
|
| ...
| public PpPemsItemMv getPpPemsItemMv() {
| return ppPemsItemMv;
| }
| ...
When I changed the getter to this:
public PpPemsItemMv getPpPemsItemMv() {
| return (ppPemsItemMv == null) ? new PpPemsItemMv() : ppPemsItemMv;
| }
It started working. Note that when I tried to put an @Create on this getter, I got an exception which I don't quite understand (anyone can explain this?):
Caused by: java.lang.IllegalStateException: component has two @Create methods: ppPemsItemMvList
In any event, I'm past this problem.
Thanks, Clark
p.s. Here is the full exception message.
10:18:15,725 WARN [lifecycle] /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on 'edu.j
| huapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
| javax.el.PropertyNotFoundException: /PpPemsItemMvList.xhtml @22,101 value="#{ppPemsItemMvList.ppPemsItemMv.propertyNum}": Target Unreachable, 'ppPemsItemMv' returned null on '
| edu.jhuapl.app.model.entities.PpPemsItemMvList_$$_javassist_11'
| at ...
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069234#4069234
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069234
18Â years, 8Â months
[Installation, Configuration & DEPLOYMENT] - Re: Cant Handle EJB for REMOTE INVOCATION
by PeterJ
1) By definition, no posts in this forum are urgent. These forums are user forums where users help each other out. This is not a support portal. If you have urgent need for support, then you should buy support from RedHat or one of the many other companies that provide support. Then you will get a guaranteed response.
2) Do not be so impatient. You first post was all of 20 minutes before this one (and your replied twice to your original post within 10 minutes.) As I said, this is not a support forum. Users read this forum at their leisure. There is no-one constantly monitoring these forums.
3) Maybe it is my eyes, or maybe I am getting old, but I find it difficult to comprehend text containing instant messaging-style abbreviations. If I don't understand a post the first read-through I usually skip it. I had to read yours several times to figure out what you were asking.
4) It does not help that you did not post the full stack trace. Most likely the important part is missing. The "caused by" clause gives me concern.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4069229#4069229
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4069229
18Â years, 8Â months