I'm testing a simple app that invokes a servlet through a html page. I
deployed the app without problems and when I invoke the html it works
fine but I when I try to access the servlet I get always an error.
I don't know if I'm copying the classes in the correct place ( i think so)
but i'm not sure. The servlets are in WEB-INF/classes but I can't connect.
I invoke the servlet with:
<form method = get action="AdderAlias">
The definition of my servlet is:
<servlet>
<servlet-name>TheAdder</servlet-name>
<display-name>TheAdder</display-name>
<servlet-class>AdderServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>TheAdder</servlet-name>
<url-pattern>AdderAlias</url-pattern>
</servlet-mapping>
With this I get an navigator error "HTTP 404 - file not found
If I change to <url-pattern>/AdderAlias</url-pattern>
i get a server error:
500 Internal Server Error
java.lang.NoClassDefFoundError: Adder
at AdderServlet.doGet(AdderServlet.java:49)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at javax.servlet.http.HttpServlet.service(HttpServlet.java)
at com.evermind.server.http.de.o6(JAX)
at com.evermind.server.http.de.forward(JAX)
at com.evermind.server.http.dl.pc(JAX, Compiled Code)
at com.evermind.server.http.dl.pb(JAX, Compiled Code)
at com.evermind.util.e.run(JAX, Compiled Code)
I tried to set the tags:
servlet-webdir="/classes/"
<classpath path="./path/to/classes/" />
in orion-web.xml but with no success.
Could someone mail me a short definition of how he does success
implementing a servlet !!!
THANK YOU VERY MUCH.
-------------------------------------------------------------
David Sierra Fern�ndez
Ingeniero Tecnico de Telecomunicaci�n
AULA RETECAL (CEDETEL) Universidad de Valladolid
Campus Miguel Delibes E-Mail: [EMAIL PROTECTED]
47011 Valladolid (SPAIN)
--------------------------------------------------------------
-- Sierr@ --