2 Replies Latest reply on Jan 20, 2005 5:58 AM by Niraj Patel

    Can't even deploy a two page html webapp properly!?!?! Help!

    Niraj Patel Newbie


      I am new to JBOSS development and deployment, so excuse my stupidity. I am creating a very basic webapp(via a war package) which has some html pages and a css i.e.

      - {webapp}/index.html
      - {webapp}/css/css.css
      - {webapp}/test/index.html
      - {webapp}/WEB-INF/web.xml

      The webapp gets deployed into {jboss_home}/server/default/deploy. Jboss starts up ok, with no problems reported.

      I have a link in the 'http://localhost:8080/{webapp}/index.html' which is '/test/index.html'. When I click on it it gives me a 404.

      The URL in the browser shows up as 'http://localhost:8080/text/index.html', instead of 'http://localhost:8080/{webapp}/text/index.html'.

      Do I need to specify a webapp doc root via the web.xml? Or is there a jboss setting I need to change?

      My web.xml is very basic -

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"


      <display-name>Test Webapp</display-name>
      Test Webapp


      Cheers for your help,