[jboss-user] [JNDI/Naming/Network] - Re: ClassCastException on remote calling of an EJB3.0

broneo do-not-reply at jboss.com
Mon Jul 30 04:05:02 EDT 2007

Hello PeterJ,

first of all thanks a lot for your help.
This morning ich changed the lookupt name to "ClientBean/remote" as you proposed. Surprisingly this time ist works well. 

This is the output i get:

ClientBean is bound to: jboss.j2ee:jar=TEM-server.jar,name=ClientBean,service=EJB3
log4j:WARN No appenders could be found for logger (org.jboss.security.SecurityAssociation).
log4j:WARN Please initialize the log4j system properly.
getClient returns: John Doe

I can`t tell why it works this time. I changed nothing except this line:

ClientRemote client = (ClientRemote)ic.lookup("ClientBean");

to this:

ClientRemote client = (ClientRemote)ic.lookup("ClientBean/remote");

The last time i tried this i got an error.

Thank you for your help.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4068625#4068625

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4068625

More information about the jboss-user mailing list