<!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 and WebLogic - someone with success?
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="http://community.jboss.org/people/thomastn">Thomas Nakken</a> in <i>jBPM</i> - <a href="http://community.jboss.org/message/644931#644931">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">

<div class="jive-rendered-content"><p>We can now start up a new porcess with HumanTaks and Session persistence, but... SessionInfo never gets written to the database (HumanTask is persisted ok). The result is that when we try to load the session again it fails - this is excpected since we can not wrtite to the database. </p><p>(We are starting Jbpm5 for a EJB context)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>The problem now (which we can se in the Hibernate log)</p><p>[05/01/12 03:33:12:012 CET] DEBUG ast.ErrorCounter: throwQueryException() : no errors</p><p>[05/01/12 03:33:12:012 CET] DEBUG impl.SessionFactoryImpl: Checking 0 named SQL queries</p><p>[05/01/12 03:33:12:012 CET] DEBUG persistence.SingleSessionCommandService: Instantiating&#160; JtaTransactionManager</p><p>[05/01/12 03:33:12:012 CET] DEBUG jta.JtaTransactionManager: No JTA TransactionManager found at fallback JNDI location [java:comp/TransactionManager]</p><p>javax.naming.NameNotFoundException: While trying to look up comp/TransactionManager in /app/ejb/svv-tt-service-3.0.0.jar#ProcessControllerFacadeBean.; remaining name 'comp/TransactionManager'</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:411)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)</p><p>&#160;&#160;&#160;&#160;&#160;&#160;&#160; at javax.naming.InitialContext.lookup(InitialContext.java:392)</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>I think this come for the setup of the Environment:</p><p class="p1"><span class="s1">ttlog</span><span class="s2">.logDebug(</span>"Creating EntityManagerFactory for persistant session"<span class="s2">);</span></p><p class="p2">&#160;&#160;&#160; EntityManagerFactory emf = Persistence.<em>createEntityManagerFactory</em>(<span class="s3">"org.jbpm.session"</span>);</p><p class="p3">&#160;&#160;&#160; Environment env = KnowledgeBaseFactory.<em>newEnvironment</em>();</p><p class="p2">&#160;&#160;&#160; env.set(EnvironmentName.<span class="s1"><em>ENTITY_MANAGER_FACTORY</em></span>, emf);</p><p class="p3" style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p class="p3">&#160;&#160;&#160; </p><p class="p3">&#160;&#160;&#160;&#160;&#160; When running i Junit mode (java SE we can use Bitronix and the line under works fine</p><p class="p4"><span class="s2">&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160; </span>env.set(EnvironmentName.TRANSACTION_MANAGER, TransactionManagerServices.getTransactionManager());</p><p class="p3">&#160;&#160;&#160; </p><p class="p3">Do someone now how we can do the same in WLS? Or must we do someting else to tell Jbpm where to find the transaction manager?</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/644931#644931">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>