On 25.07.2005 13:56, Gump wrote:

    [javac] 
/x1/gump/public/workspace/cocoon/src/blocks/jcr/trunk/test/org/apache/cocoon/jcr/source/JCRSourceTestCase.java:94:
 cannot resolve symbol
[javac] symbol : class JCRNodeSource [javac] location: class org.apache.cocoon.jcr.source.JCRSourceTestCase
    [javac]         JCRNodeSource source = 
(JCRNodeSource)resolver.resolveURI("jcr://");
    [javac]                                 ^
...
BUILD FAILED

Does anybody know what's going on here - or with our build in general?

What I see from the above is that the jcr block classes themselves are missing. Hmm, but there is no difference to the asciiart block (or others) and obviously this one seems to be built correctly.

I tried to reproduce it on my machine with more or less the same build call: build -Dblock-name=jcr gump-block. And get a different error:

cocoon-block-jcr-tests:
Created dir: D:\Cocoon\trunk\build\cocoon\blocks\jcr\test
Copying 2 files to D:\Cocoon\trunk\build\cocoon\blocks\jcr\test
Compiling 1 source file to D:\Cocoon\trunk\build\cocoon\blocks\jcr\test
Running org.apache.cocoon.jcr.source.JCRSourceTestCase
java.io.FileNotFoundException: D:\Cocoon\trunk\build\cocoon\test\output\TEST-org.apache.cocoon.jcr.source.JCRSourceTestCase.xml (Das System kann den angegebenen Pfad nicht finden) at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:236) at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:192) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.transferFormatters(JUnitTestRunner.java:586) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567) Caused by: java.io.FileNotFoundException: D:\Cocoon\trunk\build\cocoon\test\output\TEST-org.apache.cocoon.jcr.source.JCRSourceTestCase.xml (Das System kann den angegebenen Pfad nicht finden)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:234)
        ... 4 more
--- Nested Exception ---
java.io.FileNotFoundException: D:\Cocoon\trunk\build\cocoon\test\output\TEST-org .apache.cocoon.jcr.source.JCRSourceTestCase.xml (Das System kann den angegebenen Pfad nicht finden)
        at java.io.FileOutputStream.open(Native Method)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:179)
        at java.io.FileOutputStream.<init>(FileOutputStream.java:131)
at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:234) at org.apache.tools.ant.taskdefs.optional.junit.FormatterElement.createFormatter(FormatterElement.java:192) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.transferFormatters(JUnitTestRunner.java:586) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:670) at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:567)
Exception in thread "main"
Test org.apache.cocoon.jcr.source.JCRSourceTestCase FAILED

==========================================================

I think the output dir in test dir is missing - and this one is at least reproducable with the asciiart block.

Next try: build junit-tests
Result:
Could not add component defined at null:27:23
org.apache.avalon.framework.configuration.ConfigurationException: Could not add component defined at null:27:23 at org.apache.cocoon.core.container.CoreServiceManager.addComponent(CoreServiceManager.java:513) at org.apache.cocoon.core.container.CoreServiceManager.parseConfiguration(CoreServiceManager.java:674) at org.apache.cocoon.core.container.CoreServiceManager.configure(CoreServiceManager.java:202) at org.apache.cocoon.core.container.ContainerTestCase.setupManagers(ContainerTestCase.java:311) at org.apache.cocoon.core.container.ContainerTestCase.prepare(ContainerTestCase.java:222) at org.apache.cocoon.core.container.ContainerTestCase.prepare(ContainerTestCase.java:200) at org.apache.cocoon.core.container.ContainerTestCase.prepare(ContainerTestCase.java:168) at org.apache.cocoon.core.container.ContainerTestCase.setUp(ContainerTestCase.java:152) at org.apache.cocoon.jcr.source.JCRSourceTestCase.setUp(JCRSourceTestCase.java:51) Caused by: java.lang.Exception: Cannot find class org.apache.avalon.excalibur.component.ExcaliburComponentSelector for component at null:27:23 at org.apache.cocoon.core.container.handler.AbstractComponentHandler.getComponentHandler(AbstractComponentHandler.java:76) at org.apache.cocoon.core.container.CoreServiceManager.getComponentHandler(CoreServiceManager.java:622) at org.apache.cocoon.core.container.CoreServiceManager.addComponent(CoreServiceManager.java:503)
        ... 18 more
Caused by: java.lang.ClassNotFoundException: org.apache.avalon.excalibur.compone
nt.ExcaliburComponentSelector
        at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.apache.cocoon.core.container.ComponentEnvironment.loadClass(ComponentEnvironment.java:76) at org.apache.cocoon.core.container.handler.AbstractComponentHandler.getComponentHandler(AbstractComponentHandler.java:74)
        ... 20 more
Test org.apache.cocoon.jcr.source.JCRSourceTestCase FAILED

==========================================================

Hmm, could it be that our build system is not really reliable?

Joerg

Reply via email to