aneesh kumar CM [
http://community.jboss.org/people/aneesh.kumar] created the discussion
"org.jbpm.JbpmException: no ObjectInfo class specified for element
'import'"
To view the discussion, visit: 
http://community.jboss.org/message/570736#570736
--------------------------------------------------------------
hi,
iam trying to fire a timer in my appplication.
    <state name="waitForNotification">
          <timer duedate="30 seconds" transition='toTimeout'/> 
          <transition to="Timeout" name="toTimeout" />      
          <transition to="notificationSuccess"
name="toNotificationSuccess"/>
    </state>
in my web.xml i have given setvlet mappings
<servlet>
         <servlet-name>JobExecutorServlet</servlet-name>
        
<servlet-class>org.jbpm.job.executor.JobExecutorServlet</servlet-class>
         <load-on-startup>3</load-on-startup>
     </servlet>
     
     <servlet-mapping>
         <servlet-name>JobExecutorServlet</servlet-name>
         <url-pattern>/jobexecutor</url-pattern>
     </servlet-mapping>
my jbpm.cfg.xml looks like
<?xml version="1.0" encoding="UTF-8"?>
<jbpm-configuration>
  <import resource="classpath:jbpm.jobexecutor.cfg.xml"/>
  <import resource="classpath:jbpm.businesscalendar.cfg.xml"/> 
  
  <jbpm-context>
    <service name="persistence"
factory="org.jbpm.persistence.db.DbPersistenceServiceFactory" />
    <service name="tx" factory="org.jbpm.tx.TxServiceFactory"
/>
    <service name="message"
factory="org.mule.transport.bpm.jbpm.MuleMessageServiceFactory" />
    <service name="scheduler"
factory="org.jbpm.scheduler.db.DbSchedulerServiceFactory" />
    <service name="logging"
factory="org.jbpm.logging.db.DbLoggingServiceFactory" />
    <service name="authentication"
factory="org.jbpm.security.authentication.DefaultAuthenticationServiceFactory"
/>
  </jbpm-context>
  <!-- configuration resource files pointing to default configuration files in
jbpm-{version}.jar -->
  <string name="resource.hibernate.cfg.xml"
value="hibernate.cfg.xml" />
  <string name="resource.business.calendar"
value="org/jbpm/calendar/jbpm.business.calendar.properties" />
  <string name="resource.default.modules"
value="org/jbpm/graph/def/jbpm.default.modules.properties" />
  <string name="resource.converter"
value="org/jbpm/db/hibernate/jbpm.converter.properties" />
  <string name="resource.action.types"
value="org/jbpm/graph/action/action.types.xml" />
  <string name="resource.node.types"
value="org/jbpm/graph/node/node.types.xml" />
  <string name="resource.parsers"
value="org/jbpm/jpdl/par/jbpm.parsers.xml" />
  <string name="resource.varmapping"
value="org/jbpm/context/exe/jbpm.varmapping.xml" />
  <long name="jbpm.msg.wait.timout" value="5000"
singleton="true" />
  <int name="jbpm.byte.block.size" value="1024"
singleton="true" />
  <string name="mail.smtp.host" value="localhost" />
  <bean name="jbpm.task.instance.factory"
class="org.jbpm.taskmgmt.impl.DefaultTaskInstanceFactoryImpl"
singleton="true" />
  <bean name="jbpm.variable.resolver"
class="org.jbpm.jpdl.el.impl.JbpmVariableResolver" singleton="true"
/>
  <bean name="jbpm.mail.address.resolver"
class="org.jbpm.identity.mail.IdentityAddressResolver"
singleton="true" />
  
  <bean name="jbpm.job.executor"
class="org.jbpm.job.executor.JobExecutor" singelton="true">
    <field name="jbpmConfiguration"><ref
bean="jbpmConfiguration" /></field>
    <field name="name"><string value="JbpmJobExector"
/></field>
    <field name="nbrOfThreads"><int value="1"
/></field>
    <field name="idleInterval"><int value="2500"
/></field>
    <field name="maxIdleInterval"><int value="3600000"
/></field>
    <field name="historyMaxSize"><int value="20"
/></field>
  </bean>
</jbpm-configuration>
While runnig the application using jetty server it is giving the error
nested exception is org.jbpm.JbpmException: no ObjectInfo class specified for element
'import'
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1336)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:471)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)
    at java.security.AccessController.doPrivileged(Native Method)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)
    at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)
    at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:217)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)
    at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)
    at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)
    at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)
    at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)
    at org.mule.config.spring.SpringRegistry.doInitialise(SpringRegistry.java:87)
    at org.mule.registry.AbstractRegistry.initialise(AbstractRegistry.java:68)
    ... 47 more
Caused by: org.jbpm.JbpmException: no ObjectInfo class specified for element
'import'
    at org.jbpm.configuration.ObjectFactoryParser.parse(ObjectFactoryParser.java:139)
    at
org.jbpm.configuration.ObjectFactoryParser.createObjectFactory(ObjectFactoryParser.java:97)
    at
org.jbpm.configuration.ObjectFactoryParser.parseInputStream(ObjectFactoryParser.java:83)
    at
org.springmodules.workflow.jbpm31.LocalJbpmConfigurationFactoryBean.afterPropertiesSet(LocalJbpmConfigurationFactoryBean.java:127)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1367)
    at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1333)
    ... 61 more
and also another one like
ERROR: org.jbpm.job.executor.JobExecutorThread - exception in job executor thread. waiting
5000 milliseconds
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:1405)
    at org.hibernate.cfg.Configuration.configure(Configuration.java:1427)
    at org.jbpm.db.hibernate.HibernateHelper.createConfiguration(HibernateHelper.java:91)
    at
org.jbpm.persistence.db.DbPersistenceServiceFactory.getConfiguration(DbPersistenceServiceFactory.java:69)
    at
org.jbpm.persistence.db.DbPersistenceServiceFactory.getSessionFactory(DbPersistenceServiceFactory.java:91)
    at
org.jbpm.persistence.db.DbPersistenceService.getSessionFactory(DbPersistenceService.java:95)
    at
org.jbpm.persistence.db.DbPersistenceService.getSession(DbPersistenceService.java:99)
    at
org.jbpm.persistence.db.DbPersistenceService.getJobSession(DbPersistenceService.java:359)
    at org.jbpm.JbpmContext.getJobSession(JbpmContext.java:563)
    at org.jbpm.job.executor.JobExecutorThread.acquireJobs(JobExecutorThread.java:112)
    at org.jbpm.job.executor.JobExecutorThread.run(JobExecutorThread.java:58)
can anybody plz give me some directions regarding this problem
regards
Aneesh.
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/570736#570736]
Start a new discussion in jBPM at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]