now I tried my own code here and I got:
@Path("user")
@ManagedBean
public class PujUserResource {
@Resource
private PujUserFacade userFacade;
// "PujUserFacade" is the @Remote interface of an EJB
.....
}
Glassfish v3b68 log:
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.lang.reflect.Method.invoke(Method.java:597)
at com.sun.jersey.server.impl.managedbeans.ManagedBeanComponentProviderFactory$ManagedBeanComponentProvider.getInstance(ManagedBeanComponentProviderFactory.java:104)
... 37 more
Caused by: com.sun.enterprise.container.common.spi.util.InjectionException:
Error creating managed object for class
com.kenai.puj.arena.http.PujUserResource
at com.sun.enterprise.container.common.impl.util.InjectionManagerImpl.createManagedObject(InjectionManagerImpl.java:312)
... 42 more
Caused by: java.lang.NullPointerException
at com.sun.enterprise.container.common.impl.managedbean.ManagedBeanManagerImpl.createManagedBean(ManagedBeanManagerImpl.java:462)
... 42 more
Any problem of using the EJB interface instead of the stateless class itself?