[jboss-user] [Tomcat, HTTPD, Servlets & JSP] - Re: What does
rajrsingh
do-not-reply at jboss.com
Fri Jan 26 02:44:01 EST 2007
What was the solution? I have the same problem.
I have a dead simple web.xml:
<web-app>
| <display-name>UMI</display-name>
| <description>UMI web service interfaces</description>
| <servlet>
| <servlet-name>TEST</servlet-name>
| <servlet-class>org.rajsingh.umi.service.client.BasetableService</servlet-class>
| </servlet>
| <servlet-mapping>
| <servlet-name>TEST</servlet-name>
| <url-pattern>/test</url-pattern>
| </servlet-mapping>
| </web-app>
and a very basic test servlet:
public class BasetableService extends HttpServlet {
| @Override
| protected void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
| doXMLResponse("<msg><content>Hello EJB!</content></msg>", res);
| }
|
| public static void doXMLResponse(String xml, HttpServletResponse res) throws IOException {
| res.setContentType("text/xml");
| res.getWriter().write(xml);
| res.getWriter().close();
| }
| }
and here's the war file listing:
META-INF/
META-INF/MANIFEST.MF
org/
org/rajsingh/
org/rajsingh/umi/
org/rajsingh/umi/service/
org/rajsingh/umi/service/BasetableService.class
WEB-INF/
WEB-INF/web.xml
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4006682#4006682
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4006682
More information about the jboss-user
mailing list