<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">

<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>

                                <td>

                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>

                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px;  -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
    org.jbpm.JbpmException: no ObjectInfo class specified for element 'import'
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/aneesh.kumar">aneesh kumar CM</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/570736#570736">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

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

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/570736#570736">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in jBPM at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2034">Community</a></p>
</div></td>
                        </tr>
                    </tbody>
                </table>


                </td>
            </tr>
        </tbody>
    </table>

</div>

</body>
</html>