Also to add, i use MySQL database and not default Jbpm database.
I haven't faced issues with jboss & jbpm so far..
Spring: 2.5.x Hibernate: 3.3.1 GA Jboss: 5.1.0 GS JBPM: 4.1
why use 4.0.1 CR1? it does not even exist. so I'd start with 4.2
I have installed JBPM 4.2 on Jboss and can login as users and see different options.
Now, i have my own application war file (deploying process using Spring hibernate and jsf). This process uses Java task and calls class - com.test.jbpm.MyClass
When i start the process from jbpm console , i get classnotfound exception - javax.ws.rs.WebApplicationException: org.jbpm.pvm.internal.wire.JbpmClassNotFoundException: couldn't load class - since it does not have MyClass in classpath.
How do i manage, my application war file having processes & Java class files thru JBPM console ??
I dont want to merge my code into JBPM console code.
I did a similar question few days ago in http://www.jboss.org/index.html?module=bb&op=viewtopic&t=163550
I'm not using the jBPM 4 Console, I'm using my own Console but maybe this approach could help you (it works for me): try making an EAR file and packing inside the jBPM4 Console and your WAR file.
Can you send me details of your console
When you say - make ear file - wouldn't that mean i will have single web.xml , spring hibernate config files etc.
You do not need to merge your code with the console code.
Do something like that:
NOTE: You need to put all your model/ejbs classes in a separated jar file in order to be accessed by the two war applications.
The application.xml should be something like that:
<?xml version="1.0" encoding="UTF-8"?> <application xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5"> <description>RockerRocker Enterprise Application</description> <display-name>RockerRocker Enterprise Application</display-name> <module> <web> <web-uri>rockerrocker.war</web-uri> <context-root>/rockerrocker</context-root> </web> </module> <module> <ejb>rockerrocker.jar</ejb> </module> <module> <web> <web-uri>jbpmconsole.war</web-uri> <context-root>/jbpmconsole</context-root> </web> </module> </application>
NOTE: I'm using JBoss AS 4.3.2
I will try this out. I dont have any EJBs , its just POJO beans handled by Spring.
Can you please send me the details on how to create new console. Any help wud be appreciated.
Sorry, I think I did not explained myself well.
The console I'm talking about is a console my company has built by itself. It's entirely different from the jBPM console and its fully integrated with our product.
By the way, are you using any configuration management tool like maven? If so, it can be very easy to create a JavaEE project (EAR) and test if that works.
In order to do a "fast" test, you can create a maven j2ee simple project.
To do that you can run the following command:
From the list of archetypes you can select the option maven-archetype-j2ee-simple.
Only for test, you can add the jbpm4 dependencies to the pom.xml file of the "primary-source" module, and create a custom EventListener (src/main/java/....). You must create also a "test-process.bar" to call the event listener.
The last step will be add the "gwt-console" dependencies to the pom.xml file of the"ear" module. I do not know how many dependencies you will need, maybe inspect the jbpm4 maven repository could help you.
After that you can generate the ear file and deploy it to the jboss deploy folder in order to test if everything runs well.
Well, I don't know if exists a more easily way to test that.
I hope that will help you!.