Hi,

I amd unable to deploy my servlets in weblogic its gives error 404
created class files in class folder

In my IE :

http://system5:7001/SampApp/serv/HelloWorldServlets

import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
public class HelloWorldServlets extends HttpServlet{
public void doGet(HttpServletRequest req,HttpServletResponse res) throws IOException,ServletException{
res.setContentType("text/html");
PrintWriter out = res.getWriter();
out.println("<html><head><title>Hello World!</title></head>");
}
}

web.xml

<web-app>
<display-name>SampApp</display-name>
<servlet>
<servlet-name>HelloWorldServlets</servlet-name>
<servlet-class>HelloWorldServlets</servlet-class>
<load-on-startup>2</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>HelloWorldServlets</servlet-name>
<url-pattern>/serv</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>
HelloWorldServlets
</welcome-file>
</welcome-file-list>
</web-app>