Hi,

I am having a problem calling a findby method on a entity bean.  I get the
home interface fine and everything is deployed on the server but I can't
make any method calls on the home interface.

[Container factory] Deploying UserInfo
[Container factory] Deploying WorkInProgress
[Container factory] Deployed application:
file:/E:/mixonic/jboss/tmp/deploy/Default/mixonic.jar/
[J2EE Deployer Default] J2EE application:
file:/E:/mixonic/jboss/deploy/mixonic.jar is deployed.

I am using jdk 1.3, and have tried to not narrow the object as some posting
have suggested to no avail. I am able to call the home interface methods on
session beans, just not the entity beans.

This is the code I use to call the bean

Context ctx = ContextMaker.getInitialContext();
//Get a reference
home = (Home)ctx.lookup("home");
User user = home.findByUsername(username);

I have tried to narrow as well, no avail.

The here is the error message.

[UserInfo] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is:
        javax.ejb.EJBException
[UserInfo] java.lang.ClassCastException: java.lang.NoClassDefFoundError
[UserInfo]      at
org.jboss.ejb.plugins.BMPPersistenceManager.createEntity(BMPP
ersistenceManager.java:151)
[UserInfo]      at
org.jboss.ejb.EntityContainer.createHome(EntityContainer.java
:441)
[UserInfo]      at java.lang.reflect.Method.invoke(Native Method)
[UserInfo]      at
org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome
(EntityContainer.java:639)
[UserInfo]      at
org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke
Home(EntitySynchronizationInterceptor.java:160)
[UserInfo]      at
org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En
tityInstanceInterceptor.java:87)
[UserInfo]      at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept
orCMT.java:135)
[UserInfo]      at
org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx
InterceptorCMT.java:263)
[UserInfo]      at
org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxIntercept
orCMT.java:86)
[UserInfo]      at
org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(Security
Interceptor.java:164)
[UserInfo]      at
org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogIntercepto
r.java:106)
[UserInfo]      at
org.jboss.ejb.EntityContainer.invokeHome(EntityContainer.java
:316)
[UserInfo]      at
org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke
Home(JRMPContainerInvoker.java:369)
[UserInfo]      at java.lang.reflect.Method.invoke(Native Method)
[UserInfo]      at
sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.jav
a:241)
[UserInfo]      at sun.rmi.transport.Transport$1.run(Transport.java:142)
[UserInfo]      at java.security.AccessController.doPrivileged(Native
Method)
[UserInfo]      at
sun.rmi.transport.Transport.serviceCall(Transport.java:139)
[UserInfo]      at
sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTranspor
t.java:443)
[UserInfo]      at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPT
ransport.java:643)
[UserInfo]      at java.lang.Thread.run(Thread.java:484)


Any help would be much appreciated

Zach legein
[EMAIL PROTECTED]


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

Reply via email to