4 Replies Latest reply on Jan 28, 2002 6:01 AM by aqil

    Plz post  web.xml  for jboss2.4+catalina

    aqil

      can anyone post a working web.xml, which can run without any problem with jboss2.4+catalina ? i've the following web.xml but catalina is unable to run it where as jetty run it without any problem.
      ========================================================
      <?xml version="1.0" encoding="ISO-8859-1"?>

      <web-app>
      <!-- ### Servlets -->

      <servlet-name>InterestServlet</servlet-name>
      <servlet-class>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 References (java:comp/env/ejb) -->
      <ejb-ref>
      <ejb-ref-name>ejb/Interest</ejb-ref-name>
      <ejb-ref-type>Session</ejb-ref-type>
      InterestHome
      Interest
      </ejb-ref>

      </web-app>

        • 1. Re: Plz post  web.xml  for jboss2.4+catalina
          aqil

          >Your ear file did not deploy on Jboss2.4.4 & Tomcat4.x. >The main reason for
          >this is the fussy Catalina container. You have to >provide a complete web.xml
          >as it is in servlet 2.3 dtd .Try to add ><display-name>and
          >DOCTYPE:

          ><!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>
          >
          ><dispaly-name>
          >..................
          ></web-app>
          >Good luck
          >faisal

          I'm still not able to run it.Can anyone re-write the above web.xml according to 2.3 specification?

          • 2. Re: Plz post  web.xml  for jboss2.4+catalina
            ysiraj

            I've modified the web.xml file which comes with interest (session bean) example. It's working fine now. here is 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>

            • 3. Re: Plz post  web.xml  for jboss2.4+catalina
              aqil

              i compared the above two web.xml line by line but could'nt find any difference :(

              • 4. Re: Plz post  web.xml  for jboss2.4+catalina
                aqil

                yup with the following modification it works fine.
                Thanks Yasir

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