3 Replies Latest reply on Jul 16, 2004 2:43 PM by Mike James

    default context no longer works on 3.2.3

    Ken Roberts Newbie

      Hi folks.

      I'm trying to upgrade from JBoss 3.0.6 to 3.2.3.

      I have a project that would take the default context before (http://localhost:8080) before, and it no longer does that. I would really like to know how to set the default context in a way that 3.2.3 would accept.

      Here's the web.xml that works on 3.0.6 but not 3.2.3:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
      <web-app>
      <!--distributable/-->

      <servlet-name>Warmonger</servlet-name>
      <servlet-class>com.nineci.webapp.Warmonger</servlet-class>

      <servlet-mapping>
      <servlet-name>Warmonger</servlet-name>
      <url-pattern>/war</url-pattern>
      </servlet-mapping>
      <session-config>
      <session-timeout>30</session-timeout>
      </session-config>
      <welcome-file-list>
      <welcome-file>index.html</welcome-file>
      </welcome-file-list>
      </web-app>

      When you go to http://localhost:8080, the welcome file described in this document is used, which redirects me to my /war mapping.

      Can someone explain why this no longer works, and better yet how to accomplish the same aim?

      Thanks.