2 Replies Latest reply on Dec 10, 2004 3:22 AM by Loopy

    Correct XML document for a servlet?

    Loopy Newbie

      I'm trying to deploy a servlet in a WAR for Jboss. I've tried to do it through JBossIDE, but haven't had any luck, so I'm trying to do this manually. I have created a ZIP file, and renamed it to WAR. Inside the WAR, I have the following structure

      |- classes
       \- servletTest
       \- Test.class
      \- web.xml

      As you can see, I have a simple class servletTest.Test which I want to be able to run.

      This is my web.xml (I used one of the JBoss WARs own web.xmls and modified it.)

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!--$Header: /home/cvs/thirdparty/ebxmlrr-2.1-final1/ebxmlrr/conf/web.xml,v 2004/05/31 06:35:05 aloubyansky Exp $-->
       Copyright 2002 Sun Microsystems, Inc. All rights reserved.
       SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
      <!DOCTYPE web-app
       PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN"

      When I deploy this, I get the message saying that it got deployed, but was missing an "application web.xml" and has used the default context of /bin (the WAR file is "bin.war") When I type in http://localhost:8080/bin I don't get the servlet output, I get a directory listing. If I type http://localhost:8080/test or http://localhost:8080/Test, I get a 404.

      Can anyone help me out here? What am I doing wrong?