You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/02/21 13:27:32 UTC
DO NOT REPLY [Bug 6609] New: -
SendMailServlet.java is not compiled even if javamail is installed correctly
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: tomcat-dev@jakarta.apache.org
ReportedBy: ruediger.pluem@vodafone-telecommerce.de
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: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>