[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-27 Thread hosierdm
I'm not sure why you felt the need to debug the application at this point, since the stack trace you posted tells you exactly what the problem is. It seems to me that you've missed some fundamental steps along the way here. Maybe you should check out the Getting Started Guide if you haven't al

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-27 Thread abdielj
I debugged the aplication and the problem seems to be in the newProcessInstance method. When it tries to create the process with the provided Process Definition Name it returns a null ProcessInstance, although the Name is the same in the process definition and the source code. View the original

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-26 Thread hosierdm
Looks to me like you don't have the hibernate jars deployed to the server. You should have at least hibernate3.jar and ehcache-1.1.jar deployed. These should be available in the jbpm distribution lib/hibernate directory. View the original post : http://www.jboss.com/index.html?module=bb&op=vi

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-26 Thread abdielj
i'm getting this error: | Exception in thread "main" java.lang.NoClassDefFoundError: org/hibernate/Session | at org.jbpm.persistence.db.DbPersistenceServiceFactory.openService(DbPersistenceServiceFactory.java:55) | at org.jbpm.svc.Services.getService(Services.java:136) | at

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread hosierdm
Oh, I'm sorry. That's actually unrelated to process instances. You really should take a look at the User Guide and the source code examples for tips on proper use of the API. I'll answer this question though. This is what you want to docreate the context like below and then put your code

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread abdielj
Thanks. I'm sorry, i'm new to JBPM. But how do i get the context variable before creating the ProcessInstance ? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953294#3953294 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mo

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread hosierdm
Two things 1. Use code tags when you want to post XML and other code. That's why lines of your process definition keep getting deleted from the post. Look right under the Subject text box when posting a reply, and you'll see the Code tag button. 2. I think you need to do something like th

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread abdielj
i don't know why some lines are getting deleted from the process definition View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953270#3953270 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953270 Using Tomcat but need to d

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread abdielj
don't know what happened to the process definition it was fine in the editor. Here it is again: PROCESS DEFINITION

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-25 Thread abdielj
Thanks for the advise. Here is the java source code and process definition: SOURCE CODE public void createInstance() throws Exception { // Extract a process definition from the processdefinition.xml file. FileInputStream fis = new FileInputStream("processes/solicitudes/prestamo/processdefinitio

[JBoss-user] [JBoss jBPM] - Re: Creating a new instance from an application

2006-06-24 Thread kukeltje
no, but it is a good habit in these kinds of circumstances to at least post the processdefinition and relevant parts of the code you created. Otherwise it would be shooting in the dark View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953224#3953224 Reply to th