1 Reply Latest reply on Mar 4, 2003 5:38 PM by Julian Gosnell

    Simple Servlet/JSP deployment on Jboss/Jetty

    jdeviney Newbie

      This is a newbie configuration question.

      How can I configure Jboss/Jettie to allow simple dynamic deployment of Servlets/JSPs without EARs or WARs?

      My immediate goal is to learn Servlet/JSP development. I just need to get beyond the configuration issues.

      I read the Jetty FAQ and found the following:

      I want to serve content from outside a war

      To serve external content, you can step outside the J2EE way of doing
      things and use Jetty's proprietary configuration mechanism to tell it
      to serve pages from anywhere on your disc.

      Add something like this to the ConfigurationElement in
      jbossweb.sar/META-INF/jboss-service.xml, to serve static pages:


      This example maps the context /documents to the directory /docroot, so
      to retrieve e.g. /docroot/myfile.html you would hit

      For CGI, see below...

      For other dynamic content, you can do the same sort of thing, but add
      servlet handlers etc. to the context.

      This is great but I want to do this exclusively for Servlets/JSPs. I've yet to find the correct config syntax.

      My simple servlet is located here:


      I tried the following updates in my D:\jboss-3.0.4\server\default\deploy\jbossweb.sar\META-INF\jboss-service.xml file:




      I'm literally shooting in the dark at this point. I know the answer is probably very simple but I'm at a roadblock and need to get through.

      Any help is appreciated.