Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-13247

Inadequate content of web.xml in new created CDI project

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Minor Minor
    • 4.28.0.Final
    • 4.0.0.CR1
    • cdi, seam2
    • None

      Create new CDI Web project in JBDS 6.0.0.CR1c and you'll get following web.xml:

        <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>
        <servlet>
          <servlet-name>Faces Servlet</servlet-name>
          <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
          <load-on-startup>1</load-on-startup>
        </servlet>
        <servlet-mapping>
          <servlet-name>Faces Servlet</servlet-name>
          <url-pattern>*.seam</url-pattern>
        </servlet-mapping>
      

      IMHO there should be no ".seam" url pattern since that has nothing to do with Seam. Probably jsf would be better. Second thing is that there are no files like those specified in welcome list section. So it generates unnecessary warnings and would be better to remove it or generate these files along with project generation.

            jmaury@redhat.com Jeff MAURY
            tremes1@redhat.com Tomas Remes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: