[SWS-757] Airline Sample Maven Build Error Created: 28/Feb/12  Updated: 20/Jun/12  Resolved: 08/May/12

Status: Resolved
Project: Spring Web Services
Component/s: Samples
Affects Version/s: 2.0.4
Fix Version/s: 2.1 RC1

Type: Bug Priority: Major
Reporter: Nishimorit Assignee: Arjen Poutsma
Resolution: Cannot Reproduce Votes: 0
Labels: maven
Remaining Estimate: Not Specified
Time Spent: 17m
Original Estimate: Not Specified
Environment:

Tomcat 7, STS 2.8.1, Maven 3.0.3


Reference URL: http://forum.springsource.org/showthread.php?119544-Spring-WS-2-0-3-Ariline-Sample-Maven-Build-Error

 Description   

When Maven builds the airline sample project, there occur the following errors;

com.sun.xml.wsit:xws-security:jar:1.3.1 is missing.
com.sun.xml.wsit:wsit-rt:jar:1.1 is missing.

I cannot find a repository which has them.



 Comments   
Comment by Arjen Poutsma [ 02/Mar/12 ]

These are in:

<repository>
    <id>jboss.repository.releases.public</id>
    <name>JBoss Repo Public</name>
    <url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
</repository>

Comment by Nishimorit [ 08/Mar/12 ]

This description is in spring-ws-2.0.4.RELEASE/samples/airline/client/saaj/pom.xml[Client Project].
I build spring-ws-2.0.4.RELEASE/samples/airline/server/pom.xml[Server Project], so build errors occur.

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Comment by kumar gaurav [ 06/May/12 ]

I have the same issue and I am using the sample file which has same location as you mentioned
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>airline-client</artifactId>
<groupId>org.springframework.ws</groupId>
<version>2.0.4.RELEASE</version>
<relativePath>../pom.xml</relativePath>
</parent>
<modelVersion>4.0.0</modelVersion>
<artifactId>airline-saaj-client</artifactId>
<packaging>jar</packaging>
<name>Spring WS Airline Sample - SAAJ Client</name>
<profiles>
<profile>
<id>jdk15</id>
<activation>
<jdk>!1.6</jdk>
</activation>
<dependencies>
<dependency>
<groupId>javax.xml.soap</groupId>
<artifactId>saaj-api</artifactId>
<scope>compile</scope>
</dependency>
<dependency>
<groupId>com.sun.xml.messaging.saaj</groupId>
<artifactId>saaj-impl</artifactId>
</dependency>
<dependency>
<groupId>javax.activation</groupId>
<artifactId>activation</artifactId>
</dependency>
<dependency>
<groupId>com.sun.org.apache.xml.security</groupId>
<artifactId>xmlsec</artifactId>
</dependency>
</dependencies>
</profile>
</profiles>
<repositories>
<repository>
<id>jboss.repository.releases.public</id>
<name>JBoss Repo Public</name>
<url>http://repository.jboss.org/nexus/content/groups/public-jboss</url>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>java</goal>
</goals>
</execution>
</executions>
<configuration>
<mainClass>org.springframework.ws.samples.airline.client.saaj.Driver</mainClass>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>com.sun.xml.wsit</groupId>
<artifactId>xws-security</artifactId>
</dependency>
<dependency>
<groupId>com.sun.xml.wsit</groupId>
<artifactId>wsit-rt</artifactId>
</dependency>
</dependencies>
</project>
.

Comment by Arjen Poutsma [ 07/May/12 ]

I'll take another look at this for 2.1 RC1

Comment by Arjen Poutsma [ 08/May/12 ]

I just did a build with an empty repository, and all the samples build fine for me:

> pwd
/Users/arjen/Projects/spring-ws/samples
> mvn clean install -Dmaven.repo.local=./repo
...
[INFO] Reactor Summary:
[INFO] 
[INFO] Spring WS Samples ................................. SUCCESS [0.216s]
[INFO] Spring WS Echo Sample ............................. SUCCESS [0.007s]
[INFO] Spring WS Echo Sample - Server .................... SUCCESS [2.406s]
[INFO] Spring WS Echo Sample - Clients ................... SUCCESS [0.021s]
[INFO] Spring WS Echo Sample - SAAJ Client ............... SUCCESS [0.563s]
[INFO] Spring WS Echo Sample - Spring-WS Client .......... SUCCESS [0.404s]
[INFO] Spring WS Holiday Service Tutorial ................ SUCCESS [1.493s]
[INFO] Spring WS MTOM Sample ............................. SUCCESS [0.006s]
[INFO] Spring WS MTOM Sample - Server .................... SUCCESS [1.571s]
[INFO] Spring WS MTOM Sample - Clients ................... SUCCESS [0.005s]
[INFO] Spring WS MTOM Sample - JAX-WS Client ............. SUCCESS [1.749s]
[INFO] Spring WS MTOM Sample - Spring-WS Client .......... SUCCESS [0.607s]
[INFO] Spring WS POX Sample .............................. SUCCESS [0.006s]
[INFO] Spring WS POX Sample - Server ..................... SUCCESS [1.332s]
[INFO] Spring WS POX Sample - Clients .................... SUCCESS [0.014s]
[INFO] Spring WS POX Sample - Spring-WS Client ........... SUCCESS [0.314s]
[INFO] Spring WS Stock Quote Sample ...................... SUCCESS [0.005s]
[INFO] Spring WS Stock Quote Sample - Server ............. SUCCESS [0.760s]
[INFO] Spring WS Stock Quote Sample - Clients ............ SUCCESS [0.005s]
[INFO] Spring WS Stock Quote Sample - JAX-WS Client ...... SUCCESS [1.519s]
[INFO] Spring WS Stock Quote Sample - Spring-WS Client ... SUCCESS [0.419s]
[INFO] Spring WS Airline Sample .......................... SUCCESS [0.007s]
[INFO] Spring WS Airline Sample - Server ................. SUCCESS [6.498s]
[INFO] Spring WS Airline Sample - Clients ................ SUCCESS [0.005s]
[INFO] Spring WS Airline Sample - SAAJ Client ............ SUCCESS [0.361s]
[INFO] Spring WS Airline Sample - Axis 1 Client .......... SUCCESS [1.020s]
[INFO] Spring WS Airline Sample - Spring-WS Client ....... SUCCESS [4.410s]
[INFO] Spring WS Airline Sample - JMS Client ............. SUCCESS [0.297s]
[INFO] Spring WS Airline Sample - JAX-WS Client .......... SUCCESS [1.463s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 28.211s
[INFO] Finished at: Tue May 08 10:56:04 CEST 2012
[INFO] Final Memory: 29M/81M
[INFO] ------------------------------------------------------------------------

Make sure you build from the 'samples' directory, not a subdirectory.

Comment by Jim Vogel [ 20/Jun/12 ]

Arjen,
I also started with a blank repository, and built from the samples dir, but I get errors:
xxx$ pwd
/Users/xxx/Downloads/spring-ws-2.1.0.RELEASE
xxx$ cd samples
xxx$ mvn clean install -Dmaven.repo.local=./repo
[INFO] Scanning for projects...

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Spring WS Samples ................................. SUCCESS [18.744s]
[INFO] Spring WS Echo Sample ............................. SUCCESS [0.006s]
[INFO] Spring WS Echo Sample - Server .................... SUCCESS [1:26.472s]
[INFO] Spring WS Echo Sample - Clients ................... SUCCESS [0.004s]
[INFO] Spring WS Echo Sample - SAAJ Client ............... SUCCESS [19.522s]
[INFO] Spring WS Echo Sample - Spring-WS Client .......... SUCCESS [0.297s]
[INFO] Spring WS Holiday Service Tutorial ................ SUCCESS [3.531s]
[INFO] Spring WS MTOM Sample ............................. SUCCESS [0.005s]
[INFO] Spring WS MTOM Sample - Server .................... SUCCESS [18.549s]
[INFO] Spring WS MTOM Sample - Clients ................... SUCCESS [0.006s]
[INFO] Spring WS MTOM Sample - JAX-WS Client ............. FAILURE [26.047s]
[INFO] Spring WS MTOM Sample - Spring-WS Client .......... SKIPPED

[ERROR] Failed to execute goal org.codehaus.mojo:jaxws-maven-plugin:1.10:wsimport (default) on project mtom-jax-ws-client: Error executing: wsimport [-s, /Users/xxx/Downloads/spring-ws-2.1.0.RELEASE/samples/mtom/client/jax-ws/target/jaxws/wsimport/java, -d, /Users/xxx/Downloads/spring-ws-2.1.0.RELEASE/samples/mtom/client/jax-ws/target/classes, -p, org.springframework.ws.samples.mtom.client.jaxws, file:///Users/xxx/Downloads/spring-ws-2.1.0.RELEASE/samples/mtom/client/jax-ws/mtom.wsdl] -> [Help 1]

Since I am currently most interested in the airline project, I tried running mvn clean install from airline dir, but get the following error:
[ERROR] Failed to execute goal on project airline-server: Could not resolve dependencies for project org.springframework.ws:airline-server:war:2.1.0.RELEASE: The following artifacts could not be resolved: com.sun.xml.wsit:xws-security:jar:1.3.1, com.sun.xml.wsit:wsit-rt:jar:1.1: Could not find artifact com.sun.xml.wsit:xws-security:jar:1.3.1 in spring-ext (https://springframework.svn.sourceforge.net/svnroot/springframework/repos/repo-ext/) -> [Help 1]

Generated at Mon Dec 11 05:40:02 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.