java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent.

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Can I "mix" spec levels in a single EAR?
    via by Vbkraemer-Oracle,
  • JMS Resources in sun-web.xml | Java.net
    via by Unknown author,
  • EJB 3.0 integration with JSF
    via by 843830,
  • Ejb Injection error
    via by marionee,
  • Can't inject RecourceAdapter into JSF Bean
    via by tigarr,
    • java.lang.RuntimeException: WEB5002: Exception in handleBeforeEvent. at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:260) at com.sun.web.server.J2EEInstanceListener.instanceEvent(J2EEInstanceListener.java:97) at org.apache.catalina.util.InstanceSupport.fireInstanceEvent(InstanceSupport.java:318) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1118) at org.apache.catalina.core.StandardWrapper.allocate(StandardWrapper.java:787) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:183) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:240) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:179) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.WebPipeline.invoke(WebPipeline.java:73) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:182) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at com.sun.enterprise.web.VirtualServerPipeline.invoke(VirtualServerPipeline.java:120) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:137) at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:566) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:536) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:939) at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:231) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.invokeAdapter(ProcessorTask.java:667) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.processNonBlocked(ProcessorTask.java:574) at com.sun.enterprise.web.connector.grizzly.ProcessorTask.process(ProcessorTask.java:844) at com.sun.enterprise.web.connector.grizzly.ReadTask.executeProcessorTask(ReadTask.java:287) at com.sun.enterprise.web.connector.grizzly.ReadTask.doTask(ReadTask.java:212) at com.sun.enterprise.web.connector.grizzly.TaskBase.run(TaskBase.java:252) at com.sun.enterprise.web.connector.grizzly.WorkerThread.run(WorkerThread.java:75) Caused by: com.sun.enterprise.InjectionException: Exception attempting to inject Unresolved Ejb-Ref lets.NewServlet/bean@jndi: test.NewSessionLocal@null@test.NewSessionLocal@Session@nullinto class lets.NewServlet at com.sun.enterprise.util.InjectionManagerImpl._inject(InjectionManagerImpl.java:356) at com.sun.enterprise.util.InjectionManagerImpl.inject(InjectionManagerImpl.java:193) at com.sun.enterprise.util.InjectionManagerImpl.injectInstance(InjectionManagerImpl.java:104) at com.sun.web.server.J2EEInstanceListener.handleBeforeEvent(J2EEInstanceListener.java:255)
    No Bugmate found.