I deploy my Java EE application and it seems to deploy ok:
the bean:
@Path("homework")
@ManagedBean
public class PujHomeworkResource { ... @EJB private PujHomeworkFacade
facade; ... }
--------- the log after deployment:
[#|2009-10-21T20:11:34.242+0200|INFO|glassfish|com.sun.jersey.server.impl.managedbeans.ManagedBeanComponentProviderFactory|_ThreadID=72;_ThreadName=Thread-3;|Binding
the Managed bean class com.kenai.puj.arena.http.PujHomeworkResource to
ManagedBeanComponentProvider|#]
-------- the log after accessing the HTTP GET /homework
Caused by: java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
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.PujHomeworkResource
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)