I'm going to send out a separate mail dealing with how to solve the issues you are seeing long term as I think we are witnessing the results of not having the correct level of modularity in the build. In the meantime, comments below on how to solve this.

On Aug 25, 2006, at 10:30 AM, Ignacio Silva-Lepe wrote:

Ok, trying to build the sca tree I get:

Running org.apache.tuscany.binding.axis2.Axis2ServiceTestCase
Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
Running org.apache.tuscany.binding.axis2.Axis2ReferenceTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.782 sec <<< FA
ILURE!
testInvokeService (org.apache.tuscany.binding.axis2.Axis2ReferenceTestCase) Time
elapsed: 0.772 sec  <<< ERROR!
java.lang.NoClassDefFoundError: org/apache/axiom/om/util/StAXUtils
at org.apache.axis2.deployment.DescriptionBuilder.buildOM (DescriptionBui
lder.java:81)
at org.apache.axis2.deployment.AxisConfigBuilder.populateConfig(AxisConf
igBuilder.java:63)
at org.apache.axis2.deployment.DeploymentEngine.populateAxisConfiguratio
n(DeploymentEngine.java:667)
at org.apache.axis2.deployment.URLBasedAxisConfigurator.getAxisConfigura
tion(URLBasedAxisConfigurator.java:52)
at org.apache.axis2.context.ConfigurationContextFactory.createConfigurat
ionContext(ConfigurationContextFactory.java:61)
at org.apache.tuscany.binding.axis2.util.TuscanyAxisConfigurator.getConf
igurationContext(TuscanyAxisConfigurator.java:40)
at org.apache.tuscany.binding.axis2.Axis2Reference.createServiceClient(A
xis2Reference.java:98)
at org.apache.tuscany.binding.axis2.Axis2Reference.<init> (Axis2Reference
.java:71)
at org.apache.tuscany.binding.axis2.Axis2ReferenceTestCase.createAxis2Re
ference(Axis2ReferenceTestCase.java:74)
at org.apache.tuscany.binding.axis2.Axis2ReferenceTestCase.testInvokeSer
vice(Axis2ReferenceTestCase.java:45)


I have that issue as well. It appears to be a problem with the snapshot versions of Axis and Axiom being out of sync. Apparently we had to move to snapshot due to issues with Axis/Axiom loading artifacts using the current context classloader.



when trying to build the binding for Axis2. After that, tryng to build the launcher I get:

[INFO] Scanning for projects...
[INFO] ---------------------------------------------------------------------- ---
---
[INFO] Building Apache Tuscany SCA Application Launcher
[INFO]    task-segment: [install]
[INFO] ---------------------------------------------------------------------- ---
---
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ hostutil/1.0-SNAPS
HOT/hostutil-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ hostutil/1.0-SNAPS
HOT/hostutil-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
[INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- --
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.tuscany:hostutil:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tuscany - DartifactId=hostuti
l \
         -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
       1) org.apache.tuscany:launcher:jar:1.0-SNAPSHOT
       2) org.apache.tuscany:hostutil:jar:1.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
 org.apache.tuscany:launcher:jar:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 ibiblio (http://www.ibiblio.org/maven2)


[INFO] ---------------------------------------------------------------------- --
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Missing:
----------
1) org.apache.tuscany:hostutil:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tuscany - DartifactId=hostuti
l \
         -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
       1) org.apache.tuscany:launcher:jar:1.0-SNAPSHOT
       2) org.apache.tuscany:hostutil:jar:1.0-SNAPSHOT

----------
1 required artifact is missing.

for artifact:
 org.apache.tuscany:launcher:jar:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 ibiblio (http://www.ibiblio.org/maven2)


Notice I try this several times but it makes no difference.

You need to build hostutil which is in /java first.

After that, trying to build samples/sca, I do get past local.wire, but then I get:

[INFO] ---------------------------------------------------------------------- ---
---
[INFO] Building Tuscany HelloWorld Web Service Sample
[INFO]    task-segment: [install]
[INFO] ---------------------------------------------------------------------- ---
---
[INFO] artifact org.apache.maven.plugins:maven-war-plugin: checking for updates
from apache-snapshot-repository
[INFO] snapshot org.apache.maven.plugins:maven-war-plugin:2.0.1- SNAPSHOT: checki
ng for updates from apache-snapshot-repository
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] snapshot org.apache.tuscany.runtime:webapp:1.0-SNAPSHOT: checking for upd
ates from ibiblio
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ runtime/webapp/1.0
-SNAPSHOT/webapp-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
[INFO] snapshot org.apache.tuscany.runtime:webapp-host:1.0- SNAPSHOT: checking fo
r updates from ibiblio
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ runtime/webapp-hos
t/1.0-SNAPSHOT/webapp-host-1.0-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
[WARNING]
Artifact junit:junit:jar:3.8.1:test retains local scope 'test' overridin
g broader scope 'runtime'
given by a dependency. If this is not intended, modify or remove the loc
al scope.

Downloading: http://www.ibiblio.org/maven2/ws-commons/axiom-api/ SNAPSHOT/axiom-a
pi-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
Downloading: http://www.ibiblio.org/maven2/ws-commons/axiom-impl/ SNAPSHOT/axiom-
impl-SNAPSHOT.pom
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
[INFO] [compiler:compile]
Compiling 2 source files to C:\Devt\eclipse-311\eclipse\workspace \tuscany\sample
s\sca\helloworldws\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ runtime/webapp-hos
t/1.0-SNAPSHOT/webapp-host-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
Downloading: http://www.ibiblio.org/maven2/org/apache/tuscany/ runtime/webapp/1.0
-SNAPSHOT/webapp-1.0-SNAPSHOT.jar
[WARNING] Unable to get resource from repository ibiblio (http:// www.ibiblio.org
/maven2)
[INFO] ---------------------------------------------------------------------- --
[ERROR] BUILD ERROR
[INFO] ---------------------------------------------------------------------- --
[INFO] Failed to resolve artifact.

Missing:
----------
1) org.apache.tuscany.runtime:webapp-host:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tuscany.runtime - DartifactId
=webapp-host \
         -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
1) org.apache.tuscany.samples.sca:sample-helloworldws:war: 1.0-SNAPSHOT
       2) org.apache.tuscany.runtime:webapp-host:jar:1.0-SNAPSHOT

2) org.apache.tuscany.runtime:webapp:jar:1.0-SNAPSHOT

 Try downloading the file manually from the project website.

 Then, install it using the command:
mvn install:install-file -DgroupId=org.apache.tuscany.runtime - DartifactId
=webapp \
         -Dversion=1.0-SNAPSHOT -Dpackaging=jar -Dfile=/path/to/file

 Path to dependency:
1) org.apache.tuscany.samples.sca:sample-helloworldws:war: 1.0-SNAPSHOT
       2) org.apache.tuscany.runtime:webapp:jar:1.0-SNAPSHOT

----------
2 required artifacts are missing.

for artifact:
 org.apache.tuscany.samples.sca:sample-helloworldws:war:1.0-SNAPSHOT

from the specified remote repositories:
 central (http://repo1.maven.org/maven2),
 ibiblio (http://www.ibiblio.org/maven2)

You also need to build in sca/runtime webapp and web-apphost

----- Original Message ----- From: "Jim Marino" <[EMAIL PROTECTED]>
To: <tuscany-dev@ws.apache.org>
Sent: Friday, August 25, 2006 1:05 PM
Subject: Re: New build break



On Aug 25, 2006, at 9:39 AM, Ignacio Silva-Lepe wrote:

Ok, first, after mvn clean from the top and trying mvn -e from the top, I get:



Then I do mvn -e from sca/core and from sca/spi and that works. Then I do mvn -e from samples/sca and I get:

-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running localwire.LocalWireTestCase
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.702 sec <<< FA
ILURE!

Did you also build launcher? The issue seems to be one of the system scdls was updated with a new service which the test case is using. The NPE is from not finding the system service. I plan on fixing autowire to throw an exception instead of just returning null if aautowires cannot be resolved.

Can let me know if you are building the enitre /sca sub-tree?

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




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



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

Reply via email to