We have a Sessionbean that is being used as a facade between the JSP server
and the Bean server, however when we instantiate the Session we get the
following errors

INFO EJB Daemon [3] Transaction - TX_RequiresNew: Suspended transaction null
INFO EJB Daemon [3] Transaction - TX_RequiresNew: Started transaction
[EMAIL PROTECTED]
INFO EJB Daemon [3] Transaction - TX_RequiresNew: Committing transaction
[EMAIL PROTECTED]
ERROR EJB Daemon [3] Transaction -
java.lang.RuntimeException: JDBC driver failed to commit transaction.
Invalid transaction context. No active transaction
        at
org.openejb.resource.SharedLocalConnectionManager$Synchronizer.afterCompleti
on(SharedLocalConnectionManager.java:211)
        at
org.openejb.core.TransactionManagerWrapper$TransactionWrapper.afterCompletio
n(TransactionManagerWrapper.java:418)
        at
org.openejb.ri.sp.PseudoTransactionService$MyTransaction.doAfterCompletion(P
seudoTransactionService.java:181)
        at
org.openejb.ri.sp.PseudoTransactionService$MyTransaction.commit(PseudoTransa
ctionService.java:140)
        at
org.openejb.ri.sp.PseudoTransactionService$MyTransactionManager.commit(Pseud
oTransactionService.java:91)
        at
org.openejb.core.TransactionManagerWrapper.commit(TransactionManagerWrapper.
java:143)
        at
org.openejb.core.transaction.TransactionPolicy.commitTransaction(Transaction
Policy.java:171)
        at
org.openejb.core.transaction.TxRequiresNew.afterInvoke(TxRequiresNew.java:11
8)
        at
org.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java
:343)
        at
org.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java
:269)
        at
org.openejb.server.EjbDaemon.doEjbObject_BUSINESS_METHOD(EjbDaemon.java:695)
        at org.openejb.server.EjbDaemon.processEjbRequest(EjbDaemon.java:534)
        at org.openejb.server.EjbDaemon.run(EjbDaemon.java:374)
        at java.lang.Thread.run(Thread.java:536)
INFO EJB Daemon [3] Transaction - TX_RequiresNew: No transaction to resume

our ejb-jar.xml file is as follows.

<?xml version="1.0" encoding="UTF-8"?>
<ejb-jar>
  <enterprise-beans>

  <!-- Session beans -->
     <session>
      <ejb-name>SessionManagerBean</ejb-name>
      <home>com.ingotz.j2ee.ejb.SessionManagerHome</home>
      <remote>com.ingotz.j2ee.ejb.SessionManager</remote>
      <ejb-class>com.ingotz.j2ee.ejb.SessionManagerBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>

  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>SessionManagerBean</ejb-name>
        <method-name>*</method-name>
      </method>
      <trans-attribute>RequiresNew</trans-attribute>
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>

Can anyone enlighten me as to how to stop the errors.
(I have tried Required, Never, Supports, all with no luck either)


Michael Forster

Ingotz International Inc.
Tel: 07005006216
Fax: 07005006217

This email (and any attachments) is for the addressee only. It is
confidential and protected by copyright, any opinions/information are those
of the author and not Ingotz International. Ingotz accepts no responsibility
for loss or damage (including by viruses) due to it's use. Ingotz reserves
the right to monitor emails with the lawful business practice regulations
2000.
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.620 / Virus Database: 399 - Release Date: 11/03/2004



-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
http://OpenEJB.sf.net
OpenEJB-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/openejb-user

Reply via email to