You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@santuario.apache.org by Nandkumar Kesavan <na...@sun.com> on 2003/03/26 20:02:14 UTC

Building xml-security fails for the 1.0.5D2 src bundle, using JDK 1.4.1_01

Hi,

I get the following build failures when I try to compile the source, by 
executing the "test" target (as suggested in the installation docs). I 
also, noticed that the source distribution does not contain any jars in 
the libs directory and I had to extract them separately from the binary 
distribution and copy them over. (As an aside, trying to run the "test" 
target on the binary distribution does not work, because build.xml 
assumes a source distribution). I am using JDK 1.4.1_01 to compile.

    [javac] 
H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
forms\implementations\FuncHereContext.java:137: m_dtmManager has private 
access
in org.apache.xpath.XPathContext
    [javac]          this.m_dtmManager = xpathContext.getDTMManager();
    [javac]          ^
    [javac] 
H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
forms\implementations\FuncHereContext.java:156: m_dtmManager has private 
access
in org.apache.xpath.XPathContext
    [javac]          this.m_dtmManager = 
previouslyUsed.getXPathContext().getDTM
Manager();
    [javac]          ^
    [javac] 
H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
forms\implementations\FuncHereContext.java:175: m_dtmManager has private 
access
in org.apache.xpath.XPathContext
    [javac]          this.m_dtmManager = dtmManager;
    [javac]          ^
    [javac] 3 errors

Looks like I am missing something here. Could anyone please help?

Thanks much,
nandu


Re: Building xml-security fails for the 1.0.5D2 src bundle, using JDK 1.4.1_01

Posted by Nandkumar Kesavan <na...@sun.com>.
Hi,

Yeah.. But I was running into problems since I did not have write 
permissions to the java installation directories. I tried specifying the 
endorsed directory using the -J-Djava.endorsed.dirs option for the 
compiler, but for some reason, this fails for the ant javac task , 
unless one forks an external compiler(I used the compilerarg element in 
this task). The option works on the command line.

In any case, I ended up over-riding the default JDK jars, by specifying 
the bootclasspath. This appears to work.

Thanks,
nandu

Christian Geuer-Pollmann wrote:

> Please see the FAQ (<http://xml.apache.org/security/faqs.html#faq-15>) 
> on how to use Xalan under JDK1.4.x... It's explained in detail
>
> --On Mittwoch, 26. März 2003 11:02 -0800 Nandkumar Kesavan 
> <na...@sun.com> wrote:
>
>> Hi,
>>
>> I get the following build failures when I try to compile the source, by
>> executing the "test" target (as suggested in the installation docs). I
>> also, noticed that the source distribution does not contain any jars in
>> the libs directory and I had to extract them separately from the binary
>> distribution and copy them over. (As an aside, trying to run the "test"
>> target on the binary distribution does not work, because build.xml
>> assumes a source distribution). I am using JDK 1.4.1_01 to compile.
>>
>>     [javac]
>> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
>> forms\implementations\FuncHereContext.java:137: m_dtmManager has private
>> access in org.apache.xpath.XPathContext
>>     [javac]          this.m_dtmManager = xpathContext.getDTMManager();
>>     [javac]          ^
>>     [javac]
>> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
>> forms\implementations\FuncHereContext.java:156: m_dtmManager has private
>> access in org.apache.xpath.XPathContext
>>     [javac]          this.m_dtmManager =
>> previouslyUsed.getXPathContext().getDTM Manager();
>>     [javac]          ^
>>     [javac]
>> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
>> forms\implementations\FuncHereContext.java:175: m_dtmManager has private
>> access in org.apache.xpath.XPathContext
>>     [javac]          this.m_dtmManager = dtmManager;
>>     [javac]          ^
>>     [javac] 3 errors
>>
>> Looks like I am missing something here. Could anyone please help?
>>
>> Thanks much,
>> nandu
>>
>
>
>
>
>


Re: Building xml-security fails for the 1.0.5D2 src bundle, using JDK 1.4.1_01

Posted by Christian Geuer-Pollmann <ge...@nue.et-inf.uni-siegen.de>.
Please see the FAQ (<http://xml.apache.org/security/faqs.html#faq-15>) on 
how to use Xalan under JDK1.4.x... It's explained in detail

--On Mittwoch, 26. März 2003 11:02 -0800 Nandkumar Kesavan 
<na...@sun.com> wrote:

> Hi,
>
> I get the following build failures when I try to compile the source, by
> executing the "test" target (as suggested in the installation docs). I
> also, noticed that the source distribution does not contain any jars in
> the libs directory and I had to extract them separately from the binary
> distribution and copy them over. (As an aside, trying to run the "test"
> target on the binary distribution does not work, because build.xml
> assumes a source distribution). I am using JDK 1.4.1_01 to compile.
>
>     [javac]
> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
> forms\implementations\FuncHereContext.java:137: m_dtmManager has private
> access in org.apache.xpath.XPathContext
>     [javac]          this.m_dtmManager = xpathContext.getDTMManager();
>     [javac]          ^
>     [javac]
> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
> forms\implementations\FuncHereContext.java:156: m_dtmManager has private
> access in org.apache.xpath.XPathContext
>     [javac]          this.m_dtmManager =
> previouslyUsed.getXPathContext().getDTM Manager();
>     [javac]          ^
>     [javac]
> H:\workspaces\apache-dsig\ws\build\src\org\apache\xml\security\trans
> forms\implementations\FuncHereContext.java:175: m_dtmManager has private
> access in org.apache.xpath.XPathContext
>     [javac]          this.m_dtmManager = dtmManager;
>     [javac]          ^
>     [javac] 3 errors
>
> Looks like I am missing something here. Could anyone please help?
>
> Thanks much,
> nandu
>