File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Other Java Products and Servers and the fly likes Servlet problems on Orion Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "Servlet problems on Orion " Watch "Servlet problems on Orion " New topic

Servlet problems on Orion

Ioan Berciu

Joined: Nov 17, 2002
Posts: 15
Can anyone help me ?
I have a servlet in the WEB-INF\classes
and when I try to access the servlet
I get the following error:
HTTP 404 - File not found
Internet Explorer
This is the web.xml content:
<display-name>Proiect SICE</display-name>
<description>Proiect pentru scoala.</description>

This is the content of the servlet:
public class Register extends HttpServlet
public void doPost(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException
PrintWriter out = response.getWriter();
out.println("<HTML><HEAD><TITLE>Server respons</TITLE></HEAD>");
out.println("<BODY><B>bla bla bla ...</B>");
Should I write anything else in the web.xml ?
Why can't orion see my servlet ?

Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9059
I am unable to duplicate your problem. It works for me (after I added a doGet())

and using your XML stuff.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Ioan Berciu

Joined: Nov 17, 2002
Posts: 15
Hi Marilyn de Queiroz.
Your solution did not worked for me.
I tried an other approach and it worked.
In web.xml file I put a the folloing code:
and only after that it worked.
I agree. Here's the link:
subject: Servlet problems on Orion
It's not a secret anymore!