Hello ranchers i am trying a small example of jndi global namespace . I have deployed my service bean in
jboss , packaged in
TestLocationIndependence.jar , my client is web application (
servlet) packaged in
RemClientJboss.war . Inside my servlet i have written the following jndi code
and when i try to request this servlet i get
javax.naming.NameNotFoundException: global not bound . I dont understand where i am getting wrong.
Does this exception have any relation because i am using
jboss 5.1 (I dont know whether it supports
ejb 3.1)
But to add on i tries the same example in
glassfishv3 which i think support JEE 6 so it should have worked there atleast ?
Rancher just to add on in Glassfish i am getting a little different error
SEVERE: javax.naming.NamingException: Lookup failed for 'java:global/TestLocationIndependece/MyBean!mypack.MyBeanRemote' in SerialContext [Root exception is javax.naming.NamingException: ejb ref resolution error for remote business interfacemypack.MyBeanRemote [Root exception is java.lang.ClassNotFoundException: mypack.MyBeanRemote]]
Why ClassNotFoundException ? confused
Regards,
Shroff