Currently I'm getting a nullpointer exception on my servlet that uses an EJB.
Here is my servlet
Here is my EJB
Here's my application.xml
I have deployed both the war file and the ejb jar file into a single EAR file. Is there something more I need to do? Thank you.
Sonal Popat
Greenhorn
Joined: May 10, 2010
Posts: 9
posted
0
In web.xml file add servlet-name, servlet-class and servlet mapping tags.
<servlet>
<servlet-name>HelloServlet</servlet-name>
<servlet-class>com.test.servlet.HelloServlet</servlet-class> /* package name of your HelloServlet */
</servlet>
<servlet-mapping>
<servlet-name>HelloServlet</servlet-name>
<url-pattern>/HelloServlet</url-pattern>
</servlet-mapping>