Hello
We want to start using the EJB 2.0 CMP model and have bought the MVCSofts
Persistant
Manager Educational Release. We have defined two local (same ear) Entity
beans with
a one-to-many relationship between those two. The deployment under JBoss
2.2.1 seems
to work fine, but when we try to add elements to the relationship we get an
exception.
See the dump below. Has anyone any idea why we get this exception ?

We are using MySql and all the tables has been created, and creating new
entities works
fine, but accessing the relationship fails.

Regards
Rune Hamnvik
Mobinor AS
Norway

[ProductManagerEJB] javax.naming.NameNotFoundException: jdbc not bound
[ProductManagerEJB]     at
org.jnp.server.NamingServer.getBinding(NamingServer.java:474)
[ProductManagerEJB]     at
org.jnp.server.NamingServer.getBinding(NamingServer.java:482)
[ProductManagerEJB]     at
org.jnp.server.NamingServer.getObject(NamingServer.java:488)
[ProductManagerEJB]     at
org.jnp.server.NamingServer.lookup(NamingServer.java:254)
[ProductManagerEJB]     at
org.jnp.server.NamingServer.lookup(NamingServer.java:257)
[ProductManagerEJB]     at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:295)
[ProductManagerEJB]     at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:403)
[ProductManagerEJB]     at
org.jnp.interfaces.NamingContext.lookup(NamingContext.java:279)
[ProductManagerEJB]     at
javax.naming.InitialContext.lookup(InitialContext.java:350)
[ProductManagerEJB]     at
com.mvcsoft.persistence.util.NamespaceUtil.getTransactionalConnection(Namesp
aceUtil.java:68)
[ProductManagerEJB]     at
com.mobinor.mymobile.product.ejb.PersistentRelationshipServiceHasCategories.
deleteRelationshipMembers(PersistentRelationshipServiceHasCategories.java:14
7)
[ProductManagerEJB]     at
com.mvcsoft.persistence.relationship.RelationshipBase.storeRemovals(Relation
shipBase.java:194)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeRelationshipUpdates(Con
tainerImpl.java:253)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeForTransaction(Containe
rImpl.java:266)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl$PersistenceSynchronization.b
eforeCompletion(ContainerImpl.java:283)
[ProductManagerEJB]     at
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
[ProductManagerEJB]     at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
[ProductManagerEJB]     at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ProductManagerEJB]     at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[ProductManagerEJB]     at java.lang.reflect.Method.invoke(Native Method)
[ProductManagerEJB]     at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[ProductManagerEJB]     at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[ProductManagerEJB]     at
java.security.AccessController.doPrivileged(Native Method)
[ProductManagerEJB]     at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[ProductManagerEJB]     at java.lang.Thread.run(Thread.java:484)
[ProductManagerEJB] javax.ejb.EJBException
[ProductManagerEJB]     at
com.mvcsoft.persistence.util.NamespaceUtil.getTransactionalConnection(Namesp
aceUtil.java:75)
[ProductManagerEJB]     at
com.mobinor.mymobile.product.ejb.PersistentRelationshipServiceHasCategories.
deleteRelationshipMembers(PersistentRelationshipServiceHasCategories.java:14
7)
[ProductManagerEJB]     at
com.mvcsoft.persistence.relationship.RelationshipBase.storeRemovals(Relation
shipBase.java:194)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeRelationshipUpdates(Con
tainerImpl.java:253)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl.storeForTransaction(Containe
rImpl.java:266)
[ProductManagerEJB]     at
com.mvcsoft.persistence.jboss.spi.ContainerImpl$PersistenceSynchronization.b
eforeCompletion(ContainerImpl.java:283)
[ProductManagerEJB]     at
org.jboss.tm.TxCapsule.doBeforeCompletion(TxCapsule.java:1228)
[ProductManagerEJB]     at org.jboss.tm.TxCapsule.commit(TxCapsule.java:322)
[ProductManagerEJB]     at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ProductManagerEJB]     at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[ProductManagerEJB]     at java.lang.reflect.Method.invoke(Native Method)
[ProductManagerEJB]     at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[ProductManagerEJB]     at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[ProductManagerEJB]     at
java.security.AccessController.doPrivileged(Native Method)
[ProductManagerEJB]     at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[ProductManagerEJB]     at java.lang.Thread.run(Thread.java:484)
[ProductManagerEJB] XAException: tx=XidImpl [FormatId=257,
GlobalId=innovasjon.abnett.no//1, BranchQual=] errorCode=XA_UNKNOWN(0)
[ProductManagerEJB] javax.transaction.xa.XAException: Rollback failed:
General error: Warning:  Some non-transactional changed tables couldn't be
rolled back
[ProductManagerEJB]     at
org.opentools.minerva.jdbc.xa.wrapper.XAResourceImpl.rollback(XAResourceImpl
.java:219)
[ProductManagerEJB]     at
org.jboss.tm.TxCapsule.rollbackResources(TxCapsule.java:1557)
[ProductManagerEJB]     at org.jboss.tm.TxCapsule.commit(TxCapsule.java:364)
[ProductManagerEJB]     at
org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:76)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.
java:318)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:99)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:19
0)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:195)
[ProductManagerEJB]     at
org.jboss.ejb.StatelessSessionContainer.invoke(StatelessSessionContainer.jav
a:271)
[ProductManagerEJB]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke(JRMPContainerI
nvoker.java:392)
[ProductManagerEJB]     at java.lang.reflect.Method.invoke(Native Method)
[ProductManagerEJB]     at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:241)
[ProductManagerEJB]     at
sun.rmi.transport.Transport$1.run(Transport.java:142)
[ProductManagerEJB]     at
java.security.AccessController.doPrivileged(Native Method)
[ProductManagerEJB]     at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:443)
[ProductManagerEJB]     at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:6
43)
[ProductManagerEJB]     at java.lang.Thread.run(Thread.java:484)


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to