Looks like you are build tomcat. Am I correct? Read building.txt carefully. It tells you which package you need to download and *unpack*.
-----Original Message----- From: Thomas Gagn� [mailto:[EMAIL PROTECTED] Sent: July 2, 2003 10:39 AM To: Tomcat Users List Subject: Re: Session.getInstance(props) causes catalina compile error I downloaded javamail-1.3, added it and its /lib to my CLASSPATH, and ant still complains. Perhaps I'm supposed to install it somewhere else? It almost appears as if the problem is inside the Jakarta directory somehwere. build-catalina-optional: [javac] Compiling 1 source file to /home/tgagne/work/jakarta-tomcat-4.0.6-src/jakarta-tomcat-5/build/classes [javac] /home/tgagne/work/jakarta-tomcat-4.0.6-src/jakarta-tomcat-catalina/catalina/ src/share/org/apache/naming/factory/SendMailFactory.java:156: getInstance(java.util.Properties,javax.mail.Authenticator) in javax.mail.Session cannot be applied to (java.util.Properties) [javac] Session.getInstance(props)); [javac] ^ [javac] 1 error BUILD FAILED file:/home/tgagne/work/jakarta-tomcat-4.0.6-src/jakarta-tomcat-catalina/cata lina/build.xml:638: Compile failed; see the compiler error output for details. Line 638 is the first "excludes" line below. <!-- Compile internal server components --> <javac srcdir="src/share" destdir="${classes.dir}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}" excludes="**/CVS/**"> <classpath refid="catalina.classpath" /> <exclude name="org/apache/naming/factory/MailSessionFactory.java" unless="compile.javamail"/> <exclude name="org/apache/naming/factory/SendMailFactory.java" unless="compile.javamail"/> <exclude name="org/apache/catalina/valves/CertificatesValve.java" unless="compile.jsse"/> </javac> Tim Funk wrote: > Do you have the right jar file for javax.mail.Session? > http://java.sun.com/products/javamail/1.2/docs/javadocs/javax/mail/Session.h tml#getInstance(java.util.Properties) > > > -Tim > > Thomas Gagn� wrote: > >> >> Tim Funk wrote: >> >> > Look at build.properties (or build.properties.default) and >> override as >> > needed. >> >> build.properties fixed the /usr/local/LICENSE problem, but I don't see >> anything that would fix the compile errror, >> >> getInstance(java.util.Properties,javax.mail.Authenticator) in >> javax.mail.Session cannot be applied to (java.util.Properties) >> > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- .tom --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
