2 Replies Latest reply on Feb 3, 2009 6:42 AM by mablaev

    Forwarding to myapp.war from JBoss wellcome page

    mablaev

      Hi all!

      I newbie in JBoss and use 4.2.3 GA version.

      How I can forward all request that comes to JBoss Wellcome page to myapp.war?

      I try to use index.jsp from JBOSS_HOME/server/default/deploy/jboss-web.deployer/ROOT.war with following source:


      <%@ page language="java" contentType="text/html; charset=UTF-8"
       pageEncoding="ISO-8859-1"%>
      
      <% ServletContext ctx = application.getContext("/myapp");
       if(ctx != null){
       RequestDispatcher rdpt = ctx.getRequestDispatcher("/index.html");
       if(rdpt != null){
       rdpt.forward(request, response);
       }
       }
      %>
      


      Instead forwarding to myapp/index.html it show me page with error 404:

      The requested resource (/myapp/index.html) is not available.

      Thanks a lot.