An EJB3.0 project created by the IDE didn't allow a JNDI lookup
from a remote client to find a Session Bean.
------------------------------------------------------------------------------------------------------------
Key: JBIDE-297
URL:
http://jira.jboss.com/jira/browse/JBIDE-297
Project: JBoss Tools
Issue Type: Bug
Components: ejb3
Affects Versions: 1.5.1
Environment: Eclipse 3.1.2 running with Sun JRE 1.5 and Windows XP.
Reporter: Michel Halde
When running the code below, at the lookup call, a ClassNotFoundException occured on the
client-side for "org.jboss.proxy.ejb.EJBMetaDataImpl" class.
package org.jboss.tutorial.stateless.client;
import javax.naming.InitialContext;
import org.jboss.tutorial.stateless.bean.Calculator;
public class Client {
/**
* @param args
*/
public static void main(String[] args) throws Exception {
// TODO Auto-generated method stub
InitialContext ctx = new InitialContext();
Calculator calculator = (Calculator)
ctx.lookup("CalculatorBean/remote");
System.out.println("1 + 1 = " + calculator.add(1, 1));
System.out.println("1 - 1 = " + calculator.subtract(1, 1));
}
}
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: