Re: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES
what are your authentication/authorization settings? roles etc? Vinay - Original Message - From: "zach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 06, 2001 6:18 PM Subject: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES > Ok here is the deal, > > I really need to get this problem solved or I have to start looking at > different software. This seems like such a small problem why is this failing > > Here is the issue: > > Why does this jboss code throw me and illegalAccessException when I try to > do a ejbFindByPrimaryKey call on the home interface, everything is deployed. > > The error comes up in the following sectoin of code with in jboss > > This is in the org.jboss.ejb.plugins.BMPPersistenceManager class > > > private Object callFinderMethod(Method finderMethod, Object[] args, > EntityEnterpriseContext ctx) >throws Exception >{ > > > Method callMethod = (Method)finderMethods.get(finderMethod); > try > { > result = callMethod.invoke(ctx.getInstance(), args); > } catch (IllegalAccessException e) > { > // Throw this as a bean exception...(?) > throw new EJBException(e); > } > > here is the error corresponding to this code: > > [UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: > javax.ejb.EJBException > [UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError > [UserBean] at > org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod( > BMPPersistenceManager.java:488) > [UserBean] at > org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer > sistenceManager.java:211) > [UserBean] at > org.jboss.ejb.EntityContainer.find(EntityContainer.java:419) > [UserBean] at java.lang.reflect.Method.invoke(Native Method) > [UserBean] at > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome > (EntityContainer.java:639) > [UserBean] at > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke > Home(EntitySynchronizationInterceptor.java:160) > [UserBean] at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En > tityInstanceInterceptor.java:87) > [UserBean] at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept > orCMT.java:135) > > Thanks > > zach > [EMAIL PROTECTED] > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES
Can you please post your entire code! Trust me we can fix the problem! So don't go looking for other app servers! Vinay - Original Message - From: "zach" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Wednesday, June 06, 2001 6:18 PM Subject: [JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES > Ok here is the deal, > > I really need to get this problem solved or I have to start looking at > different software. This seems like such a small problem why is this failing > > Here is the issue: > > Why does this jboss code throw me and illegalAccessException when I try to > do a ejbFindByPrimaryKey call on the home interface, everything is deployed. > > The error comes up in the following sectoin of code with in jboss > > This is in the org.jboss.ejb.plugins.BMPPersistenceManager class > > > private Object callFinderMethod(Method finderMethod, Object[] args, > EntityEnterpriseContext ctx) >throws Exception >{ > > > Method callMethod = (Method)finderMethods.get(finderMethod); > try > { > result = callMethod.invoke(ctx.getInstance(), args); > } catch (IllegalAccessException e) > { > // Throw this as a bean exception...(?) > throw new EJBException(e); > } > > here is the error corresponding to this code: > > [UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: > javax.ejb.EJBException > [UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError > [UserBean] at > org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod( > BMPPersistenceManager.java:488) > [UserBean] at > org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer > sistenceManager.java:211) > [UserBean] at > org.jboss.ejb.EntityContainer.find(EntityContainer.java:419) > [UserBean] at java.lang.reflect.Method.invoke(Native Method) > [UserBean] at > org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome > (EntityContainer.java:639) > [UserBean] at > org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke > Home(EntitySynchronizationInterceptor.java:160) > [UserBean] at > org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En > tityInstanceInterceptor.java:87) > [UserBean] at > org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept > orCMT.java:135) > > Thanks > > zach > [EMAIL PROTECTED] > > > ___ > JBoss-user mailing list > [EMAIL PROTECTED] > http://lists.sourceforge.net/lists/listinfo/jboss-user ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] PLEASE HELP!!!! EJB ENTITY FINDBY ISSUES
Ok here is the deal, I really need to get this problem solved or I have to start looking at different software. This seems like such a small problem why is this failing Here is the issue: Why does this jboss code throw me and illegalAccessException when I try to do a ejbFindByPrimaryKey call on the home interface, everything is deployed. The error comes up in the following sectoin of code with in jboss This is in the org.jboss.ejb.plugins.BMPPersistenceManager class private Object callFinderMethod(Method finderMethod, Object[] args, EntityEnterpriseContext ctx) throws Exception { Method callMethod = (Method)finderMethods.get(finderMethod); try { result = callMethod.invoke(ctx.getInstance(), args); } catch (IllegalAccessException e) { // Throw this as a bean exception...(?) throw new EJBException(e); } here is the error corresponding to this code: [UserBean] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: javax.ejb.EJBException [UserBean] java.lang.ClassCastException: java.lang.NoClassDefFoundError [UserBean] at org.jboss.ejb.plugins.BMPPersistenceManager.callFinderMethod( BMPPersistenceManager.java:488) [UserBean] at org.jboss.ejb.plugins.BMPPersistenceManager.findEntity(BMPPer sistenceManager.java:211) [UserBean] at org.jboss.ejb.EntityContainer.find(EntityContainer.java:419) [UserBean] at java.lang.reflect.Method.invoke(Native Method) [UserBean] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invokeHome (EntityContainer.java:639) [UserBean] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke Home(EntitySynchronizationInterceptor.java:160) [UserBean] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invokeHome(En tityInstanceInterceptor.java:87) [UserBean] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept orCMT.java:135) Thanks zach [EMAIL PROTECTED] ___ JBoss-user mailing list [EMAIL PROTECTED] http://lists.sourceforge.net/lists/listinfo/jboss-user