Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

object is not an instance of declaring class

843830Jan 21 2008 — edited Feb 24 2008
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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 23 2008
Added on Jan 21 2008
4 comments
575 views