Bassel Mannaa wrote: > I've been trying to deploy a servlet. It worked out when I enabled the > "invoker" servlet and called my "Hello" servlet like this " > http://localhost:8080/myapp/servlet/Hello". > but when I redisabled the invoker servlet and inserted the web.xml file in > WEB-INF and tried to call the servlet i got the 404 error. > thats what i included in the web.xml file. > ------------------------------------------------ > <?xml version="1.0" encoding="ISO-8859-1"?> > <!DOCTYPE web-app > PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" > "http://java.sun.com/dtd/web-app_2_3.dtd"> > <web-app> > <servlet> > <servlet-name>Hello</servlet-name> > <servlet-class>Hello</servlet-class> > <servrlet-mapping> > <servlet-name>Hello</servlet-name> > <url-pattern>/Hello</url-pattern> > </servrlet-mapping> > </servlet> > </web-app> > --------------------------------------- > How can i deploy a servlet without enabling the invoker?
By simply deploying it. Your problem is not the deployment but the URL you use to access your servlet. Try http://localhost:8080/myapp/Hello At least this is what you configured in the above web.xml. Regards mks --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]