users@glassfish.java.net

deploy a servlet in sun app server 8

From: <glassfish_at_javadesktop.org>
Date: Tue, 28 Apr 2009 09:20:41 PDT

Hi, I'm having troubles deploying a servlet in Sun App Server 8, my scenario is like this:

1. context-root=tamayo

2. the web.xml:
<?xml version="1.0" encoding="UTF-8"?>

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

<display-name>tamayo1</display-name>

<servlet>

<display-name>empdets</display-name>

<servlet-name>empdets</servlet-name>

<servlet-class>empdets</servlet-class>

<servlet-mapping>

<servlet-name>empdets</servlet-name>

<url-pattern>/jaco</url-pattern>

</servlet-mapping>

</servlet>

</web-app>
    


3. the findemp.html calls the empdets servlet, in the <form> tag I have:
   <form name='frmemp' action='http://localhost:8080/tamayo/jaco' method='get'>

4. when the user press submit I got a 404 status code --Not Found--

5. the servlet, the EAR file and the html are in the same directory

My question is: what am I missing to find the servlet? is my web.xml wrong? something with my ear file?

I'm attaching my EAR file if you want to take a look

Regards
[Message sent by forum member 'htamayo' (htamayo)]

http://forums.java.net/jive/thread.jspa?messageID=344169