[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-13 Thread peper
//Once again - there were some problems with the code parts// Hi. I'm using JBoss 4.2.0 CR 2 I've got: @Stateless @Remote(ProjectFacade.class) public class ProjectFacadeBean implements ProjectFacade, ProjectFacadeLocal found it in the JNDI Console as : ProjectFacadeBeanRemote (proxy: $Proxy1

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-14 Thread ALRubinger
Do you have an @Local annotation on ProjectFacadeLocal? S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045590#4045590 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4045590 ___

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-15 Thread peper
Sure, I've got. Testing : Object projectFacade = context.lookup("ProjectFacadeBean/local"); return ( projectFacade.toString() + "" + (projectFacade instanceof facade.ProjectFacadeLocal) + (projectFacade instanceof facade.ProjectFacade) + (projectFacade instanceof ProjectFacadeBean) + " "

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-15 Thread peper
I give up. I tried on JBoss 4.2.0 RC2 and on JBoss 4.2.0.GA , on Java5 and on Java6... Does anyone have a simple ear with an EJB3 jar and webapp war inside, which I can simply run and test ? I would be most grateful for such an example. View the original post : http://www.jboss.com/index.html?

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-15 Thread ALRubinger
Curious as to why you're having this problem. If you ZIP/TAR up your source and email me, I'll have a look. Contact info in my profile. S, ALR View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4045931#4045931 Reply to the post : http://www.jboss.com/index.htm

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-16 Thread Ulmer
"ALRubinger" wrote : ... i have similar problem... could you post your solution about the peper's code here? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046186#4046186 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-16 Thread ALRubinger
Peper sent me his code, and the fix was related to Classloading in JBoss. Reference: http://wiki.jboss.org/wiki/Wiki.jsp?page=ClassLoading Peper had an EAR, and in it, a WAR and EJB3 JAR. Within the WAR WEB-INF/classes were class files also defined in the EJB3 JAR. Because more than one cla

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-16 Thread peper
Thanks for Your help! Of course it was the problem. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4046254#4046254 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4046254 ___ jbo

[jboss-user] [EJB 3.0] - Re: Stateless and JNDI once again

2007-05-18 Thread Ulmer
"ALRubinger" wrote : ... | Because more than one classloader was picking up duplicates of the class definitions, the WAR-scoped classloader was attempting to cast the object retrieved from JNDI (of type recognized by the EJB3 JAR Classloader) and cast it (incorrectly) into its own version. |