AJAX 404找不到错误

I am facing some problem while working on JBOSS 4.0.2 .

What I am trying to do is to make a simple AJAX call from a jsp file to a servlet class file which is stored in the WEB-INF/classes/servlet here.

The hierarchy is like this:

server/ABC/deploy/xyz.war/customform/form/a.jsp
server/ABC/deploy/xyz.war/WEB-INF/classes/abc.class

added this manually in web.xml

<servlet><servlet-name>abc</servlet-name><servlet-class>abc</servlet-class></servlet>

....

<servlet-mapping><servlet-name>abc</servlet-name><url-pattern>/abc</url-pattern></servlet-mapping>

URL in AJAX is same as given in the <url-pattern>

I get AJAX status "404" when send requset to the servlet.

Also, when I used alert box to show the status, it replied "Unspecified error" and after that status=404 for readyState=2 , readyState=3 , readyState=4

I can't figure it out that why it is not able to call the servlet.

Are there other steps required to be done for calling that servlet that I am missing,

or

If I went somewhere wrong, please point out the mistake.

It would be a great help if someone posts the steps to be done for such a calling to the servlet.

well then it seems your either of the following: programming error, too bad it doesnt show line number OR your server software needs to be updated.