Building Metro 2.1 from source

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Building Metro 2.1 from source

Hicks, Brian
I am trying to build metro 2.1 from source and my build is not completing successfully. Hopefully this is the right list for these kind of questions. If it isn't, any help to which list would be useful or other resources that may be helpful would be appreciated.

I did a clean bring over of the code and did not change any configurations. I've cleared out my maven repository directory ($HOME/.m2) so that I can start from scratch. Here is the final part of the error log followed by my system setup. I have also attached the logs with the "-e" flag set, as well as the "-X" flag set.

brian@linux-6h7g[metro-2.1-src]$ tail -76 build2.out
[INFO] ------------------------------------------------------------------------
[INFO] Building WS-TX Implementation 2.1
[INFO] ------------------------------------------------------------------------
Downloading: http://download.java.net/maven/glassfish/javax/ejb/ejb-api/3.0/ejb-api-3.0.pom
Downloading: http://download.java.net/maven/2/javax/ejb/ejb-api/3.0/ejb-api-3.0.pom
Downloading: http://repo1.maven.org/maven2/javax/ejb/ejb-api/3.0/ejb-api-3.0.pom
Downloading: http://download.java.net/maven/glassfish/javax/transaction/transaction-api/1.1/transaction-api-1.1.pom
Downloading: http://download.java.net/maven/2/javax/transaction/transaction-api/1.1/transaction-api-1.1.pom
Downloading: http://repo1.maven.org/maven2/javax/transaction/transaction-api/1.1/transaction-api-1.1.pom
Downloaded: http://repo1.maven.org/maven2/javax/transaction/transaction-api/1.1/transaction-api-1.1.pom (165 B at 0.2 KB/sec)
Downloading: http://download.java.net/maven/glassfish/javax/resource/connector-api/1.5/connector-api-1.5.pom
Downloading: http://download.java.net/maven/2/javax/resource/connector-api/1.5/connector-api-1.5.pom
Downloading: http://repo1.maven.org/maven2/javax/resource/connector-api/1.5/connector-api-1.5.pom
Downloaded: http://repo1.maven.org/maven2/javax/resource/connector-api/1.5/connector-api-1.5.pom (159 B at 0.2 KB/sec)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Metro Web Services Stack Project .................. SUCCESS [3:10.800s]
[INFO] Metro Configuration Management Project ............ SUCCESS [0.007s]
[INFO] Metro Configuration Management API ................ SUCCESS [3:36.932s]
[INFO] Metro Common Utilities and Classes ................ SUCCESS [3.939s]
[INFO] Metro Configuration Project ....................... SUCCESS [0.006s]
[INFO] Metro Configuration API ........................... SUCCESS [2.043s]
[INFO] SOAP over TCP Transport Project ................... SUCCESS [0.013s]
[INFO] SOAP over TCP Transport API ....................... SUCCESS [2.018s]
[INFO] Metro Configuration Implementation ................ SUCCESS [6.962s]
[INFO] Metro Configuration Management Implementation ..... SUCCESS [5.620s]
[INFO] WS-Security Project ............................... SUCCESS [0.005s]
[INFO] WS-SX API ......................................... SUCCESS [4.898s]
[INFO] Metro Runtime Project ............................. SUCCESS [0.005s]
[INFO] Metro Runtime API ................................. SUCCESS [1.919s]
[INFO] WSIT XML Document Filtering Project ............... SUCCESS [5.090s]
[INFO] SOAP over TCP Transport Implementation ............ SUCCESS [28.362s]
[INFO] Metro Runtime Implementation ...................... SUCCESS [6.244s]
[INFO] WS-MetadataExchange Service Implementation ........ SUCCESS [7.853s]
[INFO] WS-RX Project ..................................... SUCCESS [0.005s]
[INFO] WS-MakeConnection API ............................. SUCCESS [1.722s]
[INFO] WS-ReliableMessaging API .......................... SUCCESS [1.766s]
[INFO] WS-RX Common Utilities and Classes ................ SUCCESS [3.664s]
[INFO] WS-MakeConnection Implementation .................. SUCCESS [2.696s]
[INFO] WS-ReliableMessaging Implementation ............... SUCCESS [38.313s]
[INFO] WS-RX Testing Support ............................. SUCCESS [1.829s]
[INFO] WS-SX Implementation .............................. SUCCESS [1:27.509s]
[INFO] WS-TX Project ..................................... SUCCESS [0.005s]
[INFO] WS-TX API ......................................... SUCCESS [1.673s]
[INFO] WS-TX Implementation .............................. FAILURE [2.616s]
[INFO] WS-TX Protocol Web Services ....................... SKIPPED
[INFO] Metro Bundles ..................................... SKIPPED
[INFO] Metro Web Services API non-OSGi Bundle ............ SKIPPED
[INFO] Metro Web Services Interoperability Technology API Bundle  SKIPPED
[INFO] Metro Web Services Interoperability Technology Implementation Bundle  SKIPPED
[INFO] Metro Web Services Runtime non-OSGi Bundle ........ SKIPPED
[INFO] Metro Web Services Tools non-OSGi Bundle .......... SKIPPED
[INFO] Metro Web Services Extra Runtime non-OSGi Bundle .. SKIPPED
[INFO] Metro Web Services Extra API non-OSGi Bundle ...... SKIPPED
[INFO] Metro Web Services API OSGi Bundle ................ SKIPPED
[INFO] Extra JDK 6 packages required by Metro Web Services OSGi bundle  SKIPPED
[INFO] Metro Web Services Runtime OSGi Bundle ............ SKIPPED
[INFO] Metro Web Services Standalone Zipped Bundle ....... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 12:32.060s
[INFO] Finished at: Wed May 04 16:58:56 EDT 2011
[INFO] Final Memory: 44M/209M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project wstx-impl: Could not resolve dependencies for project org.glassfish.metro:wstx-impl:jar:2.1: Failed to collect dependencies for [javax.ejb:ejb-api:jar:3.0 (provided), javax.transaction:transaction-api:jar:1.1 (provided), javax.resource:connector-api:jar:1.5 (provided), org.glassfish.metro:wstx-api:jar:2.1 (compile), org.glassfish.metro:metro-runtime-api:jar:2.1 (compile), com.sun.istack:istack-commons-runtime:jar:2.2.1 (compile), javax.xml.bind:jaxb-api:jar:2.2.2 (compile), com.sun.xml.bind:jaxb-impl:jar:2.2.3-1 (compile), javax.xml.ws:jaxws-api:jar:2.2.3 (compile), com.sun.xml.ws:jaxws-rt:jar:2.2.3 (compile), javax.jws:jsr181-api:jar:1.0-MR1 (compile), javax.annotation:jsr250-api:jar:1.0 (compile), com.sun.xml.ws:policy:jar:2.2.2 (compile), javax.xml.soap:saaj-api:jar:1.3.2 (compile), javax.xml.stream:stax-api:jar:1.0-2 (compile)]: Failed to read artifact descriptor for javax.ejb:ejb-api:jar:3.0: Could not transfer artifact javax.ejb:ejb-api:pom:3.0 from/to m1.dev.java.net (http://download.java.net/maven/1): No connector available to access repository m1.dev.java.net (http://download.java.net/maven/1) of type legacy using the available factories WagonRepositoryConnectorFactory -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <goals> -rf :wstx-impl



My environment is:


brian@linux-6h7g[metro-2.1-src]$ uname -a
Linux linux-6h7g 2.6.34.7-0.7-desktop #1 SMP PREEMPT 2010-12-13 11:13:53 +0100 x86_64 x86_64 x86_64 GNU/Linux
brian@linux-6h7g[metro-2.1-src]$ mvn --version
Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
Maven home: /home/brian/share/work/apache-maven-3.0.3
Java version: 1.6.0_25, vendor: Sun Microsystems Inc.
Java home: /home/brian/share/work/jdk1.6.0_25/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.34.7-0.7-desktop", arch: "amd64", family: "unix"

Source was retrieved using:
svn checkout https://svn.java.net/svn/wsit~svn/tags/2.1 metro-2.1-src

build_e.out (52K) Download Attachment
build_x.out (125K) Download Attachment
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Building Metro 2.1 from source

Fabian Ritzmann
On Thursday 05 May 2011 04:07:31 Hicks, Brian wrote:
> $ mvn --version
> Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: /home/brian/share/work/apache-maven-3.0.3

That might well be the issue. Please use Maven 2.2.1. That's what we use. Also
make sure you run "mvn install". I got some odd errors when artifacts were not
installed in the local repository.

Just out of curiosity, why do you want to build from scratch instead of using
the binary distribution?

Fabian
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: Building Metro 2.1 from source

Hicks, Brian
We have a system requirement to interface with an external contractor's web service. They have implemented their own custom security for this service that does not appear to work with Metro 2.1 (or 1.5).

The contractor's system requires that a secured soap message be received, and they respond to this synchronous call with an unsecured soap message. I need to be able to specify different policies using WSIT for outbound/inbound messages. Is this possible using Metro 2.1? I've posted to the [hidden email] and have not received a reply to this question.

Several files are causing issues (the exact files are @ the office), but could be fixed so that it is possible to use XWSS to specify different policies for outbound/inbound messages.

I appreciate your help so far.

Thanks.

Brian
________________________________________
From: Fabian Ritzmann [[hidden email]]
Sent: Thursday, May 05, 2011 4:36 AM
To: [hidden email]
Cc: Hicks, Brian
Subject: Re: Building Metro 2.1 from source

On Thursday 05 May 2011 04:07:31 Hicks, Brian wrote:
> $ mvn --version
> Apache Maven 3.0.3 (r1075438; 2011-02-28 12:31:09-0500)
> Maven home: /home/brian/share/work/apache-maven-3.0.3

That might well be the issue. Please use Maven 2.2.1. That's what we use. Also
make sure you run "mvn install". I got some odd errors when artifacts were not
installed in the local repository.

Just out of curiosity, why do you want to build from scratch instead of using
the binary distribution?

Fabian
Loading...