<!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;">
    Re: jbpm, process definitions, jboss - looking for knowledge
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/carek">Piotr Tempes</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/597370#597370">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>thanks a lot for suggestion. Now I have changed database to mysql, but the problem still remained... I found good article about changing java context to global jndi referance here:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p><a class="jive-link-external-small" href="http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/" target="_blank">http://www.engfers.com/2008/08/07/exposing_accessing-jboss-jndi-objects_datasources-from-an-external-jvm/</a></p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I followed instructions and only stacktrace changed: </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><pre class="jive-pre"><code class="jive-code">[2011:04:92 09:04:506:info] ResourceChangeNotification created
[2011:04:92 09:04:515:info] ResourceChangeScanner reconfigured with interval=60
[2011:04:92 09:04:515:info] ResourceChangeScanner created with default interval=60
[2011:04:92 09:04:515:debug] ResourceChangeNotification monitor added monitor=org.drools.io.impl.ResourceChangeScannerImpl@1cffeb4
[2011:04:92 09:04:521:debug] KnowledgeAgent building resource map
[2011:04:92 09:04:522:info] KnowledgeAgent created, with configuration:
monitorChangeSetEvents=true scanResources=true scanDirectories=true newInstance=true
[2011:04:92 09:04:531:info] KnowledgeAgent has started listening for ChangeSet notifications
[2011:04:92 09:04:987:info] KnowledgeAgent applying ChangeSet
[2011:04:92 09:04:994:debug] KnowledgeAgent notifier subscribing to resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] ResourceChangeNotification subscribing listener=org.drools.agent.impl.KnowledgeAgentImpl@155d3a3 to resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] ResourceChangeScanner subcribing notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1b994de to resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:995:debug] KnowledgeAgent rebuilding KnowledgeBase using ChangeSet
[2011:04:92 09:04:119:exception]
java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage&#160; 
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:732)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:965)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:78)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.&lt;init&gt;(CommandDelegate.java:70)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: java.io.FileNotFoundException: http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST
&#160;&#160;&#160; at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1401)
&#160;&#160;&#160; at org.drools.io.impl.UrlResource.grabStream(UrlResource.java:210)
&#160;&#160;&#160; at org.drools.io.impl.UrlResource.getInputStream(UrlResource.java:146)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.createPackageFromResource(KnowledgeAgentImpl.java:720)
&#160;&#160;&#160; ... 9 more
[2011:04:92 09:04:122:debug] KnowledgeAgent obtaining pkg resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:123:exception]
java.lang.RuntimeException: KnowledgeAgent exception while trying to deserialize KnowledgeDefinitionsPackage&#160; 
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:993)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.rebuildResources(KnowledgeAgentImpl.java:774)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.buildKnowledgeBase(KnowledgeAgentImpl.java:646)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:190)
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.applyChangeSet(KnowledgeAgentImpl.java:172)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:78)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.&lt;init&gt;(CommandDelegate.java:70)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: java.lang.NullPointerException
&#160;&#160;&#160; at org.drools.agent.impl.KnowledgeAgentImpl.addResourcesToKnowledgeBase(KnowledgeAgentImpl.java:984)
&#160;&#160;&#160; ... 8 more
[2011:04:92 09:04:125:info] KnowledgeAgent new KnowledgeBase now built and in use
[2011:04:92 09:04:126:debug] KnowledgeAgent finished rebuilding KnowledgeBase using ChangeSet
[2011:04:92 09:04:126:debug] KnowledgeAgent unsubscribing from resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:126:debug] ResourceChangeNotification unsubscribing listener=org.drools.agent.impl.KnowledgeAgentImpl@155d3a3 to resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:127:debug] ResourceChangeScanner unsubcribing notifier=org.drools.io.impl.ResourceChangeNotifierImpl@1b994de to resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST']
[2011:04:92 09:04:127:debug] ResourceChangeScanner resource=[UrlResource path='http://localhost:8080/drools-guvnor/org.drools.guvnor.Guvnor/package/defaultPackage/LATEST'] now has no subscribers
[2011:04:92 09:04:127:info] KnowledgeAgent has stopped listening for ChangeSet notifications
jbpm.console.directory property not found
Loading process from file system: Evaluation.bpmn
SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
log4j:WARN No appenders could be found for logger (org.jnp.interfaces.TimedSocketFactory).
log4j:WARN Please initialize the log4j system properly.
Exception in thread "main" java.lang.RuntimeException: Could not initialize stateful knowledge session: [PersistenceUnit: org.drools.persistence.jpa] Unable to build EntityManagerFactory
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:179)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.getSession(CommandDelegate.java:187)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.&lt;init&gt;(CommandDelegate.java:70)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.main(CommandDelegate.java:293)
Caused by: javax.persistence.PersistenceException: [PersistenceUnit: org.drools.persistence.jpa] Unable to build EntityManagerFactory
&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:677)
&#160;&#160;&#160; at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:126)
&#160;&#160;&#160; at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:52)
&#160;&#160;&#160; at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:34)
&#160;&#160;&#160; at org.jbpm.integration.console.CommandDelegate.newStatefulKnowledgeSession(CommandDelegate.java:125)
&#160;&#160;&#160; ... 3 more
Caused by: org.hibernate.HibernateException: Could not locate TransactionManager
&#160;&#160;&#160; at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:60)
&#160;&#160;&#160; at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:357)
&#160;&#160;&#160; at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1327)
&#160;&#160;&#160; at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
&#160;&#160;&#160; at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
&#160;&#160;&#160; ... 7 more
Caused by: javax.naming.NameNotFoundException: TransactionManager not bound
&#160;&#160;&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
&#160;&#160;&#160; at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
&#160;&#160;&#160; at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
&#160;&#160;&#160; at org.jnp.server.NamingServer.lookup(NamingServer.java:443)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
&#160;&#160;&#160; at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
&#160;&#160;&#160; at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
&#160;&#160;&#160; at java.lang.reflect.Method.invoke(Method.java:616)
&#160;&#160;&#160; at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:322)
&#160;&#160;&#160; at sun.rmi.transport.Transport$1.run(Transport.java:177)
&#160;&#160;&#160; at java.security.AccessController.doPrivileged(Native Method)
&#160;&#160;&#160; at sun.rmi.transport.Transport.serviceCall(Transport.java:173)
&#160;&#160;&#160; at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:553)
&#160;&#160;&#160; at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:808)
&#160;&#160;&#160; at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:667)
&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
&#160;&#160;&#160; at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
&#160;&#160;&#160; at java.lang.Thread.run(Thread.java:636)
&#160;&#160;&#160; at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:273)
&#160;&#160;&#160; at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:251)
&#160;&#160;&#160; at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:160)
&#160;&#160;&#160; at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
&#160;&#160;&#160; at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
&#160;&#160;&#160; at javax.naming.InitialContext.lookup(InitialContext.java:409)
&#160;&#160;&#160; at org.hibernate.transaction.JNDITransactionManagerLookup.getTransactionManager(JNDITransactionManagerLookup.java:57)
&#160;&#160;&#160; ... 11 more
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>do I need to configure a transactionManager somehow?</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/597370#597370">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>