Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Airline Sample Maven Build Error [SWS-757] #844

Closed
gregturn opened this issue Feb 28, 2012 · 7 comments
Closed

Airline Sample Maven Build Error [SWS-757] #844

gregturn opened this issue Feb 28, 2012 · 7 comments
Assignees
Milestone

Comments

@gregturn
Copy link
Member

@gregturn gregturn commented Feb 28, 2012

Nishimorit opened SWS-757 and commented

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.


Affects: 2.0.4

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

Referenced from: commits 8df20ea

@gregturn
Copy link
Member Author

@gregturn gregturn commented Mar 2, 2012

Arjen Poutsma commented

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>

@gregturn
Copy link
Member Author

@gregturn gregturn commented Mar 8, 2012

Nishimorit commented

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.

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 4, 2012

Arjen Poutsma commented

Closing old issues

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 6, 2012

kumar gaurav commented

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\
</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>
.

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 7, 2012

Arjen Poutsma commented

I'll take another look at this for 2.1 RC1

@gregturn
Copy link
Member Author

@gregturn gregturn commented May 8, 2012

Arjen Poutsma commented

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.

@gregturn
Copy link
Member Author

@gregturn gregturn commented Jun 20, 2012

Jim Vogel commented

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]

@gregturn gregturn added this to the 2.1 RC1 milestone Sep 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants