//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
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
___
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) + " "
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?
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
"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=
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
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
"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.
|