6 Replies Latest reply on Nov 20, 2012 4:51 PM by Stephen Coy

    JBoss 7.1.1 newbie

    hoffz31 Newbie

      Sorry I am new to JBoss and can't seem to get a simple JSP to work.  I am deploying to JBoss 7.1.1 via eclipse.  The war deploys fine, it is registered in the console managed applications.  I have attached my web.xml and jboss-web.xml.  I don't receive any errors except a 404 when I go to http://localhost:8080/mike/index.jsp .  I have even tried a simpel html page with no luck.  My index.jsp is under WEB-INF.

       

      web.xml

       

      <?xml version="1.0" encoding="UTF-8"?>

      <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

          xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

          xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"

          id="WebApp_ID" version="3.0">

         

          <display-name>mike</display-name>

         

          <welcome-file-list>

              <welcome-file>index.html</welcome-file>

              <welcome-file>index.htm</welcome-file>

              <welcome-file>index.jsp</welcome-file>

              <welcome-file>default.html</welcome-file>

              <welcome-file>default.htm</welcome-file>

              <welcome-file>default.jsp</welcome-file>

          </welcome-file-list>

      </web-app>

       

      jboss-web.xml

      <?xml version="1.0" encoding="UTF-8"?>

      <!DOCTYPE jboss-web PUBLIC

        "-//JBoss//DTD Web Application 5.0//EN"

        "http://www.jboss.org/j2ee/dtd/jboss-web_5_0.dtd">

       

      <jboss-web>

          <context-root>/mike</context-root>

      </jboss-web>

       

       

      index.html

      <html>

      <head>

          

      </head>

      <body>

      Test

       

      </body>

      </html>