ok i removed the mail.jar from IBM and now the build is successful.
I did get an out-of-memory exception but the build continued so I guess all is OK. Note that the JDK 1.4 build is still failing.


IBM jre output:
==================================
Constructing Javadoc information...
javadoc: warning - Cannot find class org.apache.cocoon.webapps.authentication.components.AuthenticationResult
javadoc: warning - Cannot find class org.apache.cocoon.woody.datatype.convertor.FormatCache
javadoc: warning - Cannot find class javax.transaction.TransactionManager
javadoc: warning - Cannot find class com.sun.jdori.TranscriberFactory
javadoc: warning - Cannot find class com.sun.jdori.StoreManager
1 error
5 warnings
javadoc: java.lang.OutOfMemoryError: Please increase memory. For example, on the Sun Classic or HotSpot VMs, add the option -J-Xmx
such as -J-Xmx32m.
==================================


I clicked through the samples a bit, all seemed ok.
Executing "build test" fails on both JDK and IBM jre:


Could not execute test: org.apache.cocoon.ProcessingException: baToHex: length error; b.length=3415, strt=48, end=16304, l=16257
junit.framework.AssertionFailedError: Could not execute test: org.apache.cocoon.ProcessingException: baToHex: length error; b.length=3415, strt=48, end=16304, l=16257
at org.apache.cocoon.SitemapComponentTestCase.generate(SitemapCompo
nentTestCase.java:245)
at org.apache.cocoon.generation.XMidiGeneratorTestCase.testMIDIGene
rator(XMidiGeneratorTestCase.java:76)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessor
Impl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethod
AccessorImpl.java:25)
at org.apache.avalon.excalibur.testcase.ExcaliburTestCase.run(Excal
iburTestCase.java:446)


BUILD FAILED
D:\src\cocoon-2.1\tools\targets\test-build.xml:56: Following error occured while executing this line
D:\src\cocoon-2.1\build\cocoon-2.1.4-dev\temp\blocks-build.xml:7425: Following error occured while executing this line
D:\src\cocoon-2.1\build\cocoon-2.1.4-dev\temp\blocks-build.xml:7440: Test org.apache.cocoon.generation.XMidiGeneratorTestCase failed




bernhard huber wrote:

hi,
<snip/>
D:\src\cocoon-2.1\src\blocks\mail\java\org\apache\cocoon\mail\MailContentHandlerDelegate.java:384:

cannot resolve symbol

symbol : method getDeletedMessageCount ()

location: class javax.mail.Folder
            addAttribute("deleted-messages",
String.valueOf(folder.getDelet
edMessageCount()));
                                                                  ^

<snip>/


As far as i know for compiling the cocoon-2.1\src\blocks\mail\mocks\javax\mail\Folder.java implements the
getDeletedMessageCount(),
so probably during compilation some other mail.jar is used.


Note the method getDeletedMessageCount is added to mail jar since version
1.3

regards bernhard

Reply via email to