3 Replies Latest reply on Mar 25, 2002 1:03 AM by Stewart Trenchard

    To make the Interest example work on web

    vernon wu Newbie

      When I just started to learn the JBoss, I was frustrated unable to run the web portion of the first example - interest. To make other newbies' life easier, I post the two corrections of the example here.

      1. To let it work on a web container, the ear file shall be in the deploy directory (the jar only works for a regular EJB client).
      To do that programmingly, change the target to "deploy-ear" instead in the build.xml under the examples/build





      2. Insert the following into the second line of the web.xml file under the examples/org/jboss/docs/interest directory.

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