You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Thomas Gagné <tg...@wideopenwest.com> on 2003/07/02 06:05:41 UTC

ant build fails due to /usr/local/LICENSE (Permission denied)

I suppose I could try it as root, but I'd like first to know what else 
will end-up in /usr/local, and am also wondering if the build *really* 
wants things there or if it was a mistake.

I looked around in build.xml for "license" and found:
    <cvs cvsroot="${cvsroot}" quiet="true"
         command="checkout -P jakarta-commons/LICENSE"
         dest="${basedir}" compression="true" />
and basedir was supposedly ".", so how did it end-up trying to create a 
file in /usr/local/ ?


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


Session.getInstance(props) causes catalina compile error

Posted by Thomas Gagné <tg...@efinnet.com>.
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)

>
> Thomas Gagné wrote:
>
>> I tried it as root anyway and it got further, but eventually failed.  
>> I need some help on this one.
>>
>> 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.
>>
>
>
> ---------------------------------------------------------------------
> 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


Re: Session.getInstance(props) causes catalina compile error

Posted by Thomas Gagné <tg...@wideopenwest.com>.
I'm using the 1.4.2 SDK:

    tgagne:/home/tgagne which javac
    /opt/j2sdk_nb/j2sdk1.4.2/bin/javac

Are you suggesting I need to download a new/different jar file?

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


Re: Session.getInstance(props) causes catalina compile error

Posted by Thomas Gagné <tg...@wideopenwest.com>.
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


Re: Session.getInstance(props) causes catalina compile error

Posted by Tim Funk <fu...@joedog.org>.
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


Session.getInstance(props) causes catalina compile error

Posted by Thomas Gagné <tg...@wideopenwest.com>.
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)

 >
 > Thomas Gagné wrote:
 >
 >> I tried it as root anyway and it got further, but eventually failed.
 >> I need some help on this one.
 >>
 >> 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.
 >>
 >
 >
 > ---------------------------------------------------------------------
 > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
 > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
 >
 >


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


Re: ant build fails due to /usr/local/LICENSE (Permission denied)

Posted by Tim Funk <fu...@joedog.org>.
Look at build.properties (or build.properties.default) and override as needed.

-Tim

Thomas Gagné wrote:
> I tried it as root anyway and it got further, but eventually failed.  I 
> need some help on this one.
> 
> 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.
> 


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


Re: ant build fails due to /usr/local/LICENSE (Permission denied)

Posted by Thomas Gagné <tg...@wideopenwest.com>.
I tried it as root anyway and it got further, but eventually failed.  I 
need some help on this one.

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.

-- 
.tom




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