1 Reply Latest reply on Feb 6, 2002 6:45 AM by rob_canoe

    web.xml for JBoss 2.4 + catalina

    ysiraj

      I've modified the web.xml file which comes with interest(session bean) example. it's working fine now. The only modification required is the inclusion of DOCTYPE tag. Here's the source.

      <?xml version="1.0" encoding="ISO-8859-1"?>

      <!DOCTYPE web-app
      PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
      "http://java.sun.com/dtd/web-app_2_3.dtd">

      <web-app>

      <servlet-name>InterestServlet</servlet-name>
      <servlet-class>org.jboss.docs.interest.InterestServlet</servlet-class>

      <servlet-mapping>
      <servlet-name>InterestServlet</servlet-name>
      <url-pattern>/InterestServlet</url-pattern>
      </servlet-mapping>

      <welcome-file-list>
      <welcome-file>home.html</welcome-file>
      </welcome-file-list>


      <ejb-ref>
      <ejb-ref-name>ejb/Interest</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      org.jboss.docs.interest.InterestHome
      org.jboss.docs.interest.Interest
      </ejb-ref>

      </web-app>

        • 1. Re: web.xml for JBoss 2.4 + catalina
          rob_canoe

          Thanks for the post, saved me hours of heart-ache. But, better still, copy the dtd file to your machine, so you can deploy apps when the Sun site is not functioning. I am assuming that this is a legitimate thing to do.

          <!DOCTYPE web-app
          PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
          "file:///usr/local/dtd/web-app_2_3.dtd">