-
1. Re: RE: Trying to get started with jBPM 3.0
kukeltje Jul 25, 2005 2:05 PM (in response to sak)???? You can also not reply to posts? What browser are you using? In jBPM 3.0 there is a webapp if you just go to http://servername:port/jbpm
This webapp is generic for all processes. -
2. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 27, 2005 11:32 AM (in response to sak)Susan,
I tried your examples for process deploying but I get an error when executing the jsps:
16:16:01,983 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.RuntimeException: couldn't deploy process archives : String index out of range: -1
at org.apache.jsp.processDeployed_jsp._jspService(org.apache.jsp.processDeployed_jsp:106)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
...
...
...
...
16:16:01,993 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
at org.jbpm.db.JbpmSessionFactory.
This errors appear after "in DeployProcess....Step2...",that is, the line producing the error should be:
JbpmSessionFactory jbpmSessionFactory =
JbpmSessionFactory.buildJbpmSessionFactory();
Any clues?
Thanks,
Igor. -
3. Re: RE: Trying to get started with jBPM 3.0
kukeltje Jul 27, 2005 12:43 PM (in response to sak)Yes, you do not have apache commons-logging and probably some dependend jars in your classpath.
-
4. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 27, 2005 1:19 PM (in response to sak)Hi again! I have the following jars in the WEB-INF/lib folder:
jbpm-3.0.jar
jbpm-webapp-3.0.jar
commons-logging-1.0.4.jar
hibernate3.jar
converter.jar
jbpm-identity-3.0.jar
jbpm.sar.cfg.jar
and the two jsp Susan wrote in the root folder: deployProcess.jsp and processDeployed.jsp
I still get the following error message when I load a process definition:
EXCEPTION
javax.servlet.ServletException: org/apache/commons/logging/LogFactory
org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:848)
org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:781)
....
ROOT CAUSE
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:40)
...
Any idea of why is this happening?
Thanks,
Igor. -
5. Re: RE: Trying to get started with jBPM 3.0
kukeltje Jul 27, 2005 1:28 PM (in response to sak)??? hmm... no classdef found. Is there other info in the logging? NoClassDefFoundError.... have a look at http://www.qos.ch/logging/classloader.jsp and see if something is familiar.
-
6. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 27, 2005 2:00 PM (in response to sak)Thanks for the info, I had a look at the web page but I didn't see the same exact error...I'll have a more thorough look tomorrow...
Igor. -
7. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 28, 2005 7:49 AM (in response to sak)I've been surfing around different forums to find a solution for the commons-logging but I still get the error when I run the processDeployed.jsp:
12:44:52,050 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jbpm.JbpmConfiguration.(JbpmConfiguration.java:92)
at org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:40)
at org.apache.jsp.processDeployed_jsp._jspService(org.apache.jsp.processDeployed_jsp:89)
at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:322)
at org.apache.jasper.servlet.JspServlet.serviceJspFile
...
...
...
Anybody has run Susan's jsps succesfully?
Thanks,
Igor. -
8. Re: RE: Trying to get started with jBPM 3.0
sak Jul 29, 2005 12:43 AM (in response to sak)Thanks Roanald for your patient to reply to my stupid questions!!!!
and sushant your jsp works perfectly fine and deployed the process smoothly...
I think Igor is having problems in Logging Jar as i didn`t face this prob.
defnetly get back if i get an ans.... -
9. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 29, 2005 4:14 AM (in response to sak)Could you send me please the structure of your .war and the contents of the web.xml?
Thanks,
Igor. -
10. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 29, 2005 6:57 AM (in response to sak)I'm having the following error now when deploying the jsps:
11:51:35,365 INFO [STDOUT] in DeployProcess....Step1...
11:51:35,375 INFO [STDOUT] in DeployProcess....Step2...
11:51:35,475 DEBUG [JbpmConfiguration] jbpm.task.instance.class=org.jbpm.taskmgmt.exe.TaskInstance
11:51:35,475 DEBUG [JbpmConfiguration] jbpm.hibernate.cfg.xml=hibernate.cfg.xml
11:51:35,475 DEBUG [JbpmConfiguration] jbpm.scheduler.service.factory=org.jbpm.scheduler.impl.SchedulerServiceImpl
11:51:35,475 DEBUG [JbpmConfiguration] jbpm.hibernate.properties=hibernate.properties
11:51:35,545 INFO [Environment] Hibernate 3.0.2
11:51:35,565 INFO [Environment] loaded properties from resource hibernate.properties: {hibernate.connection.driver_class=com.mysql.jdbc.Driver, hibernate.cglib.use_reflection_optimizer=true, hibernate.c3p0.max_size=3, hibernate.dialect=org.hibernate.dialect.MySQLInnoDBDialect, hibernate.c3p0.min_size=1, hibernate.query.substitutions=true 1, false 0 , hibernate.connection.username=root, hibernate.connection.url=jdbc:mysql://localhost:3306/jbpmtest, hibernate.show_sql=true, hibernate.connection.password=****}
11:51:35,565 INFO [Environment] using CGLIB reflection optimizer
11:51:35,565 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
11:51:35,755 DEBUG [JbpmSessionFactory] using 'hibernate.cfg.xml' as hibernate configuration for jbpm
11:51:35,755 INFO [Configuration] configuring from resource: hibernate.cfg.xml
11:51:35,755 INFO [Configuration] Configuration resource: hibernate.cfg.xml
11:51:35,775 INFO [Configuration] Mapping resource: org/jbpm/identity/User.hbm.xml
11:51:35,966 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: org/apache/commons/collections/SequencedHashMap
at org.hibernate.mapping.Table.(Table.java:33)
at org.hibernate.cfg.Mappings.addTable(Mappings.java:116)
at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:250)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:235)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:151)
at org.hibernate.cfg.Configuration.add(Configuration.java:360)
Any clues?
Thanks,
Igor. -
11. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 29, 2005 7:23 AM (in response to sak)OK, I got the solution, I copied commons-collections-2.1.1.jar in the ser/lib of my JBoss configuration. But now I have the following error:
12:08:38,306 INFO [HbmBinder] Mapping collection: org.jbpm.taskmgmt.def.TaskMgmtDefinition.tasks -> JBPM_TASK
12:08:38,306 INFO [Configuration] processing association property references
12:08:38,306 INFO [Configuration] processing foreign key constraints
12:08:38,566 INFO [C3P0ConnectionProvider] C3P0 using driver: com.mysql.jdbc.Driver at URL: jdbc:mysql://localhost:3306/jbpmtest
12:08:38,566 INFO [C3P0ConnectionProvider] Connection properties: {user=root, password=****}
12:08:38,566 INFO [C3P0ConnectionProvider] autocommit mode: false
12:08:38,576 ERROR [[jsp]] Servlet.service() for servlet jsp threw exception
java.lang.NoClassDefFoundError: com/mchange/v2/c3p0/PoolConfig
at org.hibernate.connection.C3P0ConnectionProvider.configure(C3P0ConnectionProvider.java:84)
at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:80) at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:362)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:60)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
at org.jbpm.db.JbpmSessionFactory.buildSessionFactory(JbpmSessionFactory.java:138)
at org.jbpm.db.JbpmSessionFactory.(JbpmSessionFactory.java:77)
Any clues again?
Thanks,
Igor. -
12. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 29, 2005 7:32 AM (in response to sak)OK, finally I got it!!! I also added ehcache-1.1.jar and c3p0-0.8.5.2.jar libraries to the server/.../lib folder of my JBoss configuration. Hope this is helpful for somebody. Now I'll try to run the process through the weapp...
Thanks,
Igor. -
13. Re: RE: Trying to get started with jBPM 3.0
kukeltje Jul 29, 2005 10:00 AM (in response to sak)That is why I said to use the src version in another thread. The ant tasks that are in there (maybe they are even in the starter kit) take care of all this!!!!!
The starter-kit should be used as a completely preconfigured running version of jBPM, not as a starting point to repackage things.
Read the docs at http://docs.jboss.com/jbpm/v3/userguide/deployment.html -
14. Re: RE: Trying to get started with jBPM 3.0
isellakuria Jul 29, 2005 10:03 AM (in response to sak)Hi Ronald! Which thread are you talking about, can you post me the link?
Thanks,
Igor.