<!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;">
    How to use seam 2.2 with jbpm 4.4?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/nilesh.chauhan">Nilesh Chauhan</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/557534#557534">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p><span>I want migrate my old application with seam 2.2 and jbpm4.4. Current version is seam 2.0.1 and jbpm3.I am using </span><a class="jive-link-external-small" href="http://www.lunatech-research.com/archives/2010/03/09/jbpm4-and-seam-working-together" target="_blank">http://www.lunatech-research.com/archives/2010/03/09/jbpm4-and-seam-working-together</a><span> approach to migrate my application. While configuring my application with given option, i am getting following exeption.</span></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>org.jboss.seam.InstantiationException: Could not instantiate Seam component: <strong><span style="text-decoration: underline;">org.jboss.seam.bpm.jbpm</span> <span style="color: #339966;">&lt;- newly created seam Component</span></strong></p><p>&#160;&#160;&#160; at org.jboss.seam.Component.newInstance(Component.java:2144)<br/>&#160;&#160;&#160; at org.jboss.seam.contexts.Contexts.startup(Contexts.java:304)<br/>&#160;&#160;&#160; at org.jboss.seam.contexts.Contexts.startup(Contexts.java:296)<br/>&#160;&#160;&#160; at org.jboss.seam.contexts.Contexts.startup(Contexts.java:278)<br/>&#160;&#160;&#160; at org.jboss.seam.contexts.ServletLifecycle.endInitialization(ServletLifecycle.java:116)<br/>&#160;&#160;&#160; at org.jboss.seam.init.Initialization.init(Initialization.java:740)<br/>&#160;&#160;&#160; at org.jboss.seam.servlet.SeamListener.contextInitialized(SeamListener.java:36)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3830)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardContext.start(StandardContext.java:4337)<br/>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)<br/>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)<br/>&#160;&#160;&#160; at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)<br/>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1053)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)<br/>&#160;&#160;&#160; at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardService.start(StandardService.java:516)<br/>&#160;&#160;&#160; at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.Catalina.start(Catalina.java:566)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br/>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)<br/>&#160;&#160;&#160; at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)<br/>Caused by: java.lang.RuntimeException: exception invoking: init<br/>&#160;&#160;&#160; at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:154)<br/>&#160;&#160;&#160; at org.jboss.seam.Component.callComponentMethod(Component.java:2249)<br/>&#160;&#160;&#160; at org.jboss.seam.Component.callCreateMethod(Component.java:2172)<br/>&#160;&#160;&#160; at org.jboss.seam.Component.newInstance(Component.java:2132)<br/>&#160;&#160;&#160; ... 30 more<br/>Caused by: java.lang.reflect.InvocationTargetException<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)<br/>&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Unknown Source)<br/>&#160;&#160;&#160; at org.jboss.seam.util.Reflections.invoke(Reflections.java:22)<br/>&#160;&#160;&#160; at org.jboss.seam.util.Reflections.invokeAndWrap(Reflections.java:144)<br/>&#160;&#160;&#160; ... 33 more<br/>Caused by: java.lang.ExceptionInInitializerError<br/>&#160;&#160;&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)<br/>&#160;&#160;&#160; at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)<br/>&#160;&#160;&#160; at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)<br/>&#160;&#160;&#160; at java.lang.reflect.Constructor.newInstance(Unknown Source)<br/>&#160;&#160;&#160; at org.hibernate.engine.UnsavedValueFactory.instantiate(UnsavedValueFactory.java:22)<br/>&#160;&#160;&#160; at org.hibernate.engine.UnsavedValueFactory.getUnsavedIdentifierValue(UnsavedValueFactory.java:44)<br/>&#160;&#160;&#160; at org.hibernate.tuple.PropertyFactory.buildIdentifierProperty(PropertyFactory.java:44)<br/>&#160;&#160;&#160; at org.hibernate.tuple.entity.EntityMetamodel.&lt;init&gt;(EntityMetamodel.java:124)<br/>&#160;&#160;&#160; at org.hibernate.persister.entity.AbstractEntityPersister.&lt;init&gt;(AbstractEntityPersister.java:434)<br/>&#160;&#160;&#160; at org.hibernate.persister.entity.SingleTableEntityPersister.&lt;init&gt;(SingleTableEntityPersister.java:109)<br/>&#160;&#160;&#160; at org.hibernate.persister.PersisterFactory.createClassPersister(PersisterFactory.java:55)<br/>&#160;&#160;&#160; at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:226)<br/>&#160;&#160;&#160; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1300)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionFactoryDescriptor.construct(HibernateSessionFactoryDescriptor.java:62)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:154)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:711)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.descriptor.HibernateSessionDescriptor.construct(HibernateSessionDescriptor.java:63)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.construct(WireContext.java:487)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:466)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.create(WireContext.java:455)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:429)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:339)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.wire.WireContext.get(WireContext.java:704)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:132)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.BasicEnvironment.get(BasicEnvironment.java:123)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:207)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.env.EnvironmentImpl.getFromCurrent(EnvironmentImpl.java:196)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.cmd.CheckDbCmd.execute(CheckDbCmd.java:44)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.svc.DefaultCommandService.execute(DefaultCommandService.java:42)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.tx.StandardTransactionInterceptor.execute(StandardTransactionInterceptor.java:50)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.executeInNewEnvironment(EnvironmentInterceptor.java:53)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.svc.EnvironmentInterceptor.execute(EnvironmentInterceptor.java:40)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.svc.RetryInterceptor.execute(RetryInterceptor.java:56)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.svc.SkipInterceptor.execute(SkipInterceptor.java:43)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.checkDb(ProcessEngineImpl.java:152)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.processengine.ProcessEngineImpl.&lt;init&gt;(ProcessEngineImpl.java:105)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.cfg.ConfigurationImpl.instantiateProcessEngine(ConfigurationImpl.java:100)<br/>&#160;&#160;&#160; at org.jbpm.pvm.internal.cfg.ConfigurationImpl.buildProcessEngine(ConfigurationImpl.java:92)<br/>&#160;&#160;&#160; at exienta.bpm.jbpm.Jbpm.init(Jbpm.java:42)<br/>&#160;&#160;&#160; ... 39 more<br/>Caused by: org.jbpm.JbpmException: couldn't parse jbpm configuration from resource 'jbpm.cfg.xml'<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:285)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:257)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration$Configs.getObjectFactory(JbpmConfiguration.java:418)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration$Configs.getObject(JbpmConfiguration.java:430)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration$Configs.getString(JbpmConfiguration.java:434)<br/>&#160;&#160;&#160; at org.jbpm.calendar.BusinessCalendar.getBusinessCalendarProperties(BusinessCalendar.java:49)<br/>&#160;&#160;&#160; at org.jbpm.calendar.BusinessCalendar.&lt;init&gt;(BusinessCalendar.java:56)<br/>&#160;&#160;&#160; at org.jbpm.job.Timer.&lt;clinit&gt;(Timer.java:21)<br/>&#160;&#160;&#160; ... 86 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.parseElements(ObjectFactoryParser.java:117)<br/>&#160;&#160;&#160; at org.jbpm.configuration.ObjectFactoryParser.parseElementsStream(ObjectFactoryParser.java:110)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration.parseObjectFactory(JbpmConfiguration.java:317)<br/>&#160;&#160;&#160; at org.jbpm.JbpmConfiguration.getInstance(JbpmConfiguration.java:281)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>My jbpm.cfg.xml looks like below:</p><p>&lt;jbpm-configuration&gt;<br/>&lt;import resource="jbpm.default.cfg.xml"/&gt;<br/>&lt;import resource="jbpm.tx.hibernate.cfg.xml"/&gt;<br/>&lt;import resource="jbpm.jpdl.cfg.xml"/&gt;<br/>&lt;import resource="jbpm.bpmn.cfg.xml" /&gt;<br/>&lt;/jbpm-configuration&gt;</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I am trying to resolve the issues but still unable to get the root cause of this exception. I guess internally Jbpm.class is getting called of seam's jbpm.jpdl jar is the problem.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any idea about this error or a way to migrate jbpm4 with seam 2.2 is highly appriciated.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Thanks in advance</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/557534#557534">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>