Amos,

|    So must I create the servlet application myslef in
| TOMCAT.  Is the build file provided in the interest
| example directory the one used for building the
| servlet with ant?

I have been trying to deploy the interest servlet example
also today.  I just managed to get it working - realised
that there is a line in the ANT build.xml file in
examples\org\jboss\docs\interest\build.xml that is:

       <exclude name="org/jboss/docs/interest/InterestServlet.java" />

that strangely precludes the servlet from being compiled into the
directory that the .war file is constructed from; I realised by inspecting
the contents of the EAR file, that the servlet was not contained.

I changed the line above to:

       <!-- exclude name="org/jboss/docs/interest/InterestServlet.java"
/ -->

Next, in the main build.xml file in JBOSS_DIST/examples/build/build.xml, I
added the following target:


    <target name="intro-interest-servlet" depends="init">


        <ant antfile="org/jboss/docs/interest/build.xml" target="ear" />


    </target>

I put this after the other targets for Chapter 1 - doing so ensures that the
init paramaters are correctly picked up.

Then; ant intro-interest-servlet built a correct .ear file, which I just
dropped into JBOSS_DIST/deploy, restarted JBoss (not sure if Tomcat requires
a restart or not, I did, just to be sure) and surfed to:

http://localhost:8080/interest/home.html

It worked a treat, and i'm doing interest calculations as we speak.

I think it would be useful if the above text was included in a better form,
in Chapter 11 of the JBoss manual...if this seems sensible, then I'm happy
to write it up a little more clearly, for submission.

Thoughts ?

Hope this helps,

Steven


_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to