DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6609>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=6609

SendMailServlet.java is not compiled  even if javamail is installed correctly

           Summary: SendMailServlet.java is not compiled  even if javamail
                    is installed correctly
           Product: Tomcat 4
           Version: 4.0.2 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Unknown
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


Hi,

compiling Tomcat 4.0.2 Final I detected the following problem:

Even if you place javamail to the correct directory (which is also
said by catalina/build.xml) and set full.dist=on
webapps/examples/WEB-INF/classes/SendMailServlet.java won't be compiled thus
breaking the mail jsp example.

Taking a look at webapps/examples/build.xml I noticed that
webapps/examples/WEB-INF/classes/SendMailServlet.java will be compiled only if
compile.javamail is set (line 81). Running ant flags in webapps/examples says
that compile.javamail will be set. In my opinion the problem seems that the
target flags is not used by any other targets as dependency. So I added flags as
dependency to the target build-prepare, recompiled Tomcat and
webapps/examples/WEB-INF/classes/SendMailServlet.java got compiled.

Adding the dependency is done by the following Patch:

--- jakarta-tomcat-4.0.2-src.orig/webapps/examples/build.xml    Sun Feb 10 20:11
+++ jakarta-tomcat-4.0.2-src/webapps/examples/build.xml Thu Feb 21 11:26:53 2002
@@ -53,7 +53,7 @@
   </target>
 
   <!-- =================== BUILD: Create Directories ====================== -->
-  <target name="build-prepare">
+  <target name="build-prepare" depends="flags">
     <mkdir dir="${webapps.build}"/>
     <mkdir dir="${webapps.build}/${webapp.name}"/>
   </target>


Is this ok? Any comments?
Best regards
Rüdiger Plüm

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to