Posted By:
bsn_raju
Posted On:
Tuesday, April 29, 2003 03:57 AM
I deployed a simple war file which is hving one servlet under package called test I deployed that in the jboss-3.0.4_tomcat-4.1.12 application server. and it is deployed successfully. After deploying, the directory structure created is like this test web-inf classes test t.class The files iam sending are my servlet, web.xml 1) t.servlet ----------------- package test; import java.io.*; import java.util.*; import javax.servlet.*; import javax.servlet.http.*; public class t extends HttpServlet { public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException {
More>>
I deployed a simple war file which is hving one servlet under package called test
I deployed that in the jboss-3.0.4_tomcat-4.1.12 application server. and it is deployed successfully.
After deploying, the directory structure created is like this
test
web-inf
classes
test
t.class
The files iam sending are my servlet, web.xml
1) t.servlet
-----------------
package test;
import java.io.*;
import java.util.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class t extends HttpServlet
{
public void doGet(HttpServletRequest req,HttpServletResponse res)throws ServletException,IOException
{
res.setContentType("text/plain");
PrintWriter out=res.getWriter();
out.println(new Date().toString());
}
}
2) web.xml
----------------
<?xml version="1.0" encoding="UTF-8"?>
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
"http://java.sun.com/dtd/web-app_2_3.dtd">
t1
test.t
test.t
When I requested like this http://localhost:8080/test/test.t
Error is like this
HTTP Status 404 - /test/test.t
--------------------------------------------------------------------------------
type Status report
message /test/test.t
description The requested resource (/test/test.t) is not available.
--------------------------------------------------------------------------------
Can any one help me to get rid of this. My war file is deployed successfully i know
Bsn Raju
<<Less