cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Donald Ball <ba...@webslingerZ.com>
Subject Re: [C2] Failed to build
Date Mon, 23 Apr 2001 16:43:18 GMT
On Mon, 23 Apr 2001, Vadim Gritsenko wrote:

> I have got build error; Cocoon 2 just from CVS:
> -------------------------------------------------------------
> compile:
>      [copy] Copying 12 files to C:\Apache\xml-cocoon\build\cocoon\classes
>     [javac] Compiling 224 source files to
> C:\Apache\xml-cocoon\build\cocoon\classes
>     [javac]
> C:\Apache\xml-cocoon\build\cocoon\src\org\apache\cocoon\acting\SendmailActio
> n.java:83: Wrong number of arguments in method.
>     [javac]       Session session = Session.getDefaultInstance(properties);
>     [javac]                                                   ^
>     [javac] Note: 5 files use or override a deprecated API.  Recompile with
> "-deprecation" for details.
>     [javac] 1 error, 1 warning
>
> BUILD FAILED
> -------------------------------------------------------------
> The problem is that javax.mail.Session does have this method only from
> JavaMail version 1.2 (and up), and existing implementations (weblogic up to
> 6.0sp1, j2sdkee1.2) of JavaMail have another method:
>   public static Session getDefaultInstance(java.util.Properties props,
> Authenticator authenticator)
>
> So, the question is:
> What everybody uses this class with?

if you compile c2 with an empty classpath, it will ignore the
SendmailAction class. if you want to compile it, download the mailapi.jar
from sun and put it in your classpath (or cocoon's lib directory). if you
want to flip me a patch to add the Authenticator object, that'd be swell.

- donald


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org


Mime
View raw message