tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Gagné <tga...@wideopenwest.com>
Subject Re: Session.getInstance(props) causes catalina compile error
Date Wed, 02 Jul 2003 14:39:13 GMT
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/catalina/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.html#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: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>

-- 
.tom




---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message