I've not been able to recreate either of these problems yet. Could you give
a bit more info about what you're doing - how you run the samples, what
maven commands you use, and from what directory etc?

  ...ant

On 1/23/07, Jean-Sebastien Delfino <[EMAIL PROTECTED]> wrote:

Adding mirrors to settings.xml helps Maven download all the dependencies
(thanks Rick) but I'm running into build errors with the head of the
trunk.

Building with the published snapshots of the SCA and SDO specs and the
kernel gives me the following error:

[INFO]

----------------------------------------------------------------------------
[INFO] Building Tuscany Inner Composite Sample
[INFO]    task-segment: [install]
[INFO]

----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 0 resource to META-INF
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Resource directory does not exist:

/home/delfinoj/Tuscany/apache-repos/java/samples/sca/inner.composite/src/test/resources
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:

/home/delfinoj/Tuscany/apache-repos/java/samples/sca/inner.composite/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running innercomposite.InnerCompositeTestCase
Jan 22, 2007 6:54:37 PM
org.apache.tuscany.spi.deployer.DeploymentMonitor deploymentError
SEVERE: Error preparing composite [application]
org.apache.tuscany.spi.component.PrepareException
        at
org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare(
CompositeComponentExtension.java:369)
        at
org.apache.tuscany.core.deployer.DeployerImpl.deploy(DeployerImpl.java
:108)
        at
org.apache.tuscany.core.launcher.LauncherImpl.bootApplication(
LauncherImpl.java:215)
        at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:90)
        at
innercomposite.InnerCompositeTestCase.setUp(InnerCompositeTestCase.java
:31)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java
:210)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:288)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
:816)
Caused by: org.apache.tuscany.core.builder.IllegalCallbackException
Operation cannot be marked one-way and have a callback [someMethod]
Source : TargetComponentRef
Target : TargetComponent/innercomposite.Target
Context stack trace: [application][SourceComponent]
        at
org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java
:156)
        at
org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java
:431)
        at
org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java
:338)
        at
org.apache.tuscany.core.builder.ConnectorImpl.handleComponent(
ConnectorImpl.java:606)
        at
org.apache.tuscany.core.builder.ConnectorImpl.connect(ConnectorImpl.java
:88)
        at
org.apache.tuscany.spi.extension.CompositeComponentExtension.prepare(
CompositeComponentExtension.java:363)
        ... 25 more

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.836
sec <<< FAILURE!

Results :

Tests in error:
  test(innercomposite.InnerCompositeTestCase)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0


Rebuilding the head of everything under java/ gives me a different error:

[INFO]

----------------------------------------------------------------------------
[INFO] Building Echo Binding
[INFO]    task-segment: [install]
[INFO]

----------------------------------------------------------------------------
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] Copying 1 resource to META-INF
[INFO] [compiler:compile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO] [compiler:testCompile]
[INFO] Nothing to compile - all classes are up to date
[INFO] [surefire:test]
[INFO] Surefire report directory:

/home/delfinoj/Tuscany/apache-repos/java/samples/sca/echo.binding/target/surefire-reports

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running echo.BootstrapTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.546
sec <<< FAILURE!

Results :

Tests in error:
  testDemoBoot(echo.BootstrapTestCase)

Tests run: 1, Failures: 0, Errors: 1, Skipped: 0

Surefire shows the following exception:


-------------------------------------------------------------------------------
Test set: echo.BootstrapTestCase

-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 1.544
sec <<< FAILURE!
testDemoBoot(echo.BootstrapTestCase)  Time elapsed: 1.472 sec  <<< ERROR!
org.apache.tuscany.core.injection.ObjectCallbackException: Null object
factory for constructor parameter [0]
        at
org.apache.tuscany.core.injection.PojoObjectFactory.getInstance(
PojoObjectFactory.java:98)
        at
org.apache.tuscany.core.implementation.PojoAtomicComponent.createInstance(
PojoAtomicComponent.java:137)
        at

org.apache.tuscany.core.component.scope.CompositeScopeContainer.eagerInitComponents
(CompositeScopeContainer.java:154)
        at
org.apache.tuscany.core.component.scope.CompositeScopeContainer.onEvent(
CompositeScopeContainer.java:68)
        at
org.apache.tuscany.core.deployer.DeployerImpl$1.onEvent(DeployerImpl.java
:101)
        at
org.apache.tuscany.spi.component.AbstractSCAObject.publish(
AbstractSCAObject.java:106)
        at

org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.publish
(AbstractCompositeComponent.java:124)
        at

org.apache.tuscany.core.implementation.composite.AbstractCompositeComponent.start
(AbstractCompositeComponent.java:95)
        at
org.apache.tuscany.test.SCATestCase.deployExtension(SCATestCase.java:155)
        at org.apache.tuscany.test.SCATestCase.setUp(SCATestCase.java:77)
        at echo.BootstrapTestCase.setUp(BootstrapTestCase.java:42)
        at junit.framework.TestCase.runBare(TestCase.java:125)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:118)
        at junit.framework.TestSuite.runTest(TestSuite.java:208)
        at junit.framework.TestSuite.run(TestSuite.java:203)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.junit.JUnitTestSet.execute(JUnitTestSet.java
:210)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.executeTestSet(
AbstractDirectoryTestSuite.java:135)
        at
org.apache.maven.surefire.suite.AbstractDirectoryTestSuite.execute(
AbstractDirectoryTestSuite.java:122)
        at org.apache.maven.surefire.Surefire.run(Surefire.java:129)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(
SurefireBooter.java:288)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
:816)
        at
org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java
:816)


--
Jean-Sebastien


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Reply via email to