[jboss-user] [EJB/JBoss] - Re: java.lang.ClassCastException: org.jnp.interfaces.NamingC
sony3002
do-not-reply at jboss.com
Tue Jan 2 00:40:07 EST 2007
yes solved
when u call a bean in jboss u have to call by adding remote or local to it
example
UserLoginRemote obj = (UserLoginRemote)Remote.getRemoteObject("UserLoginBean/remote");
or
UserLoginRemote obj = (UserLoginRemote)Remote.getRemoteObject("UserLoginBean/local");
and also in u r client application
u have to add the following jar files from the <jboss_home>\client\ dir
to u r classpath
<jboss_home>\client\jboss-aop-jdk50-client.jar
| <jboss_home>\client\jboss-aspect-jdk50-client.jar
| <jboss_home>\client\jboss-ejb3-client.jar
| <jboss_home>\client\jbossall-client.jar
|
this solved my problem
thanks and regards
Sony
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997166#3997166
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997166
More information about the jboss-user
mailing list