We are have problems writing a client which calls some entity-ejb in JBoss.

When running as a normal client it runs OK, but we want this client to be
started when JBoss starts. Thus, we created it as a MBean-service. But now
it fails with a classnotfoundexception on the primarykey-class. 

Here is the picture we want:

Mbean -> deployedEJB. 

What are we doing wrong?

Here is the errormessage:

[Frame] Starting
[Frame] Started
[CabinBean] TRANSACTION ROLLBACK EXCEPTION:Load failed; nested exception is:
        java.rmi.NoSuchObjectException: Entity no.eob.titan.cabin.CabinPK@65
not
 found; nested exception is:
        java.rmi.ServerException: Load failed; nested exception is:
        java.rmi.NoSuchObjectException: Entity no.eob.titan.cabin.CabinPK@65
not
 found
[Service Control] Started 26 services
[CabinBean] java.rmi.ServerException: Load failed; nested exception is:
[CabinBean]     java.rmi.NoSuchObjectException: Entity
no.eob.titan.cabin.CabinP
K@65 not found
[CabinBean] java.rmi.NoSuchObjectException: Entity
no.eob.titan.cabin.CabinPK@65
 not found
[CabinBean]     at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.handleR
esult(JDBCLoadEntityCommand.java:106)
[CabinBean]     at
org.jboss.ejb.plugins.jaws.jdbc.JDBCQueryCommand.executeState
mentAndHandleResult(JDBCQueryCommand.java:59)
[CabinBean]     at
org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand.jdbcExecute(JDBCC
ommand.java:160)
[CabinBean]     at
org.jboss.ejb.plugins.jaws.jdbc.JDBCLoadEntityCommand.execute
(JDBCLoadEntityCommand.java:82)
[CabinBean]     at
org.jboss.ejb.plugins.jaws.JAWSPersistenceManager.loadEntity(
JAWSPersistenceManager.java:150)
[CabinBean]     at
org.jboss.ejb.plugins.CMPPersistenceManager.loadEntity(CMPPer
sistenceManager.java:341)
[CabinBean]     at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
(EntitySynchronizationInterceptor.java:192)
[CabinBean]     at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(Entity
InstanceInterceptor.java:186)
[CabinBean]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
orCMT.java:133)
[CabinBean]     at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
InterceptorCMT.java:263)
[CabinBean]     at
org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM
T.java:99)
[CabinBean]     at
org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte
rceptor.java:190)
[CabinBean]     at
org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja
va:195)
[CabinBean]     at
org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323
)
[CabinBean]     at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke
(JRMPContainerInvoker.java:482)
[CabinBean]     at
org.jboss.ejb.plugins.jrmp.interfaces.EntityProxy.invoke(Enti
tyProxy.java:146)
[CabinBean]     at $Proxy3.getName(Unknown Source)
[CabinBean]     at
no.eob.titan.client.CabinTable$CabinTableModel.getValueAt(Cab
inTable.java:50)
[CabinBean]     at javax.swing.JTable.getValueAt(Unknown Source)
[CabinBean]     at javax.swing.JTable.prepareRenderer(Unknown Source)
[CabinBean]     at javax.swing.plaf.basic.BasicTableUI.paintCell(Unknown
Source)

[CabinBean]     at javax.swing.plaf.basic.BasicTableUI.paintCells(Unknown
Source
)
[CabinBean]     at javax.swing.plaf.basic.BasicTableUI.paint(Unknown Source)
[CabinBean]     at javax.swing.plaf.ComponentUI.update(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paintComponent(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paint(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paintChildren(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paint(Unknown Source)
[CabinBean]     at javax.swing.JViewport.paint(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paintWithBuffer(Unknown Source)
[CabinBean]     at javax.swing.JComponent._paintImmediately(Unknown Source)
[CabinBean]     at javax.swing.JComponent.paintImmediately(Unknown Source)
[CabinBean]     at javax.swing.RepaintManager.paintDirtyRegions(Unknown
Source)
[CabinBean]     at
javax.swing.SystemEventQueueUtilities$ComponentWorkRequest.ru
n(Unknown Source)
[CabinBean]     at java.awt.event.InvocationEvent.dispatch(Unknown Source)
[CabinBean]     at java.awt.EventQueue.dispatchEvent(Unknown Source)
[CabinBean]     at java.awt.EventDispatchThread.pumpOneEvent(Unknown Source)
[CabinBean]     at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
[CabinBean]     at java.awt.EventDispatchThread.run(Unknown Source)

-----------------
Tore B. Pedersen
Eye on Business AS


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

Reply via email to