Hi ,
I am trying to migrate my web.xml servlet and filter definitions to my servlet and filter Java files respectively.
Sample code for moving Servlet from web.xml to servlet 3 annotations
WEB.XML CONTENT
=================
<servlet>
<description/>
<display-name>ChartServlet</display-name>
<servlet-name>ChartServlet</servlet-name>
<servlet-class>
com.test.ChartServlet
</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>ChartServlet</servlet-name>
<url-pattern>/ChartServlet</url-pattern>
</servlet-mapping>
SERVLET 3 ANNOTATION ADDED IN JAVA FILE
===============================
@WebServlet(name="ChartServlet",
displayName="ChartServlet",
description="This Servlet creates chart",
urlPatterns={"/ChartServlet"}
)
public class ChartServlet extends javax.servlet.http.HttpServlet implements
+++++++++++++++++++++++++++++++++++++++++++++++
But it seems servlets never deployed and whenever my jsp tried to access /ChartServlet glassfish gives error "Service Not Avaialble" confirming that new servlets never deployed.
My web.xml uses struts 2.x.
Is it open bug with Glassfish V3 or do I need to download any other latest Jars from Struts or Spring ?
Any Help would be highly appreciated.
[Message sent by forum member 'bshukla' (bheem.shukla_at_gmail.com)]
http://forums.java.net/jive/thread.jspa?messageID=381734