Hi,
You are looking up a remote EJB home object (although you're in a servlet-that makes only sense if your servlet engine is on another host than the ejb container).
The WAR archive must then include the stub for the EJB Object and the EJB Home object. If you try to narrow a remote object, the stub MUST BE PRESENT on gthe CLASSPATH! If not, a ClassCastException is thrown (until 1.4, using
Java 5 a NullPointerException is thrown!)
so just run:
(and for the EJB Object)
and include the stubs in the war archive
and the problem should dissapear. Write a message if not. Bye.
[ January 13, 2006: Message edited by: Marco Barenkamp ]
[ January 13, 2006: Message edited by: Marco Barenkamp ]