[jboss-user] [JBoss jBPM] - Re: How to run a timer

s_aliakbary do-not-reply at jboss.com
Sun Apr 15 09:35:19 EDT 2007


Hi again
According to some posts on this forum, I added these lines to my web.xml :

  | 	<servlet>
  | 		<servlet-name>JbpmThreadsServlet</servlet-name>
  | 		<servlet-class>org.jbpm.web.JbpmThreadsServlet</servlet-class>
  | 		<load-on-startup>1</load-on-startup>
  | 	</servlet>
  | 	<servlet-mapping>
  | 		<servlet-name>JbpmThreadsServlet</servlet-name>
  | 		<url-pattern>/threads</url-pattern>
  | 	</servlet-mapping>
  | 

But now every 5 seconds I see an exception : 
anonymous wrote : 
  | org.hibernate.HibernateException: /hibernate.cfg.xml not found
  | 	at org.hibernate.util.ConfigHelper.getResourceAsStream(ConfigHelper.java:147)
  | 	at org.hibernate.cfg.Configuration.getConfigurationInputStream(Configuration.java:1287)
  | 	at org.hibernate.cfg.Configuration.configure(Configuration.java:1309)
  | 	at org.hibernate.cfg.Configuration.configure(Configuration.java:1296)
  | 	at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:93)
  | 	at org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:68)
  | 	at org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:90)
  | 	at org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:74)
  | 	at org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:78)
  | 	at org.jbpm.persistence.db.DbPersistenceService.getMessagingSession(DbPersistenceService.java:234)
  | 	at org.jbpm.JbpmContext.getMessagingSession(JbpmContext.java:411)
  | 	at org.jbpm.msg.db.DbMessageService.(DbMessageService.java:49)
  | 	at org.jbpm.msg.db.DbMessageServiceFactory.openService(DbMessageServiceFactory.java:32)
  | 	at org.jbpm.svc.Services.getService(Services.java:136)
  | 	at org.jbpm.svc.Services.getMessageService(Services.java:172)
  | 	at org.jbpm.msg.command.CommandExecutorThread.executeCommand(CommandExecutorThread.java:111)
  | 	at org.jbpm.msg.command.CommandExecutorThread.run(CommandExecutorThread.java:79)
  | 

(I'm using springmodules to integrate jbpm to my project, so I have not any hibernate.cfg.xml file) 
Any idea?


View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037369#4037369

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037369



More information about the jboss-user mailing list