Hello!
Some information before: I am working on an enterprise project consisting of an EJB and an application client. Now I want to add an web client, but every time i want to call an EJB, the web application fails with the following message:
object is not an instance of declaring class
The application client & EJB works fine. The EJB is coded as follows:
@Remote
public interface EJBTestRemote {
// interface stuff [...]
}
@Local
public interface EJBTestLocal {
// interface stuff [...]
}
@Stateless
public class EJBTestBean implements EJBTestRemote, EJBTestLocal {
// implementation stuff [...]
}
In the web app I call the EJB as follows (the error occurs here):
public class EJBTestWelcome extends AbstractPageBean {
@EJB
private EJBTestRemote ejbTestBean;
// implementation stuff [...]
What does this error mean and what can be done to solve this issue?
My environment: SJAS 9.1, Netbean 6.0
Thanks in advance!
Edited by: no-tea on Jan 21, 2008 11:37 PM