You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ga...@apache.org on 2009/06/04 21:45:27 UTC
svn commit: r781842 - in
/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests: ./
jaxws-war-sec/ jaxws-war-sec/src/ jaxws-war-sec/src/main/
jaxws-war-sec/src/main/java/ jaxws-war-sec/src/main/java/org/
jaxws-war-sec/src/main/java/org/apac...
Author: gawor
Date: Thu Jun 4 19:45:26 2009
New Revision: 781842
URL: http://svn.apache.org/viewvc?rev=781842&view=rev
Log:
jax-ws servlet-based security tests - some fail on trunk not sure why
Added:
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java (with props)
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml (with props)
Modified:
geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/pom.xml
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml Thu Jun 4 19:45:26 2009
@@ -0,0 +1,108 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+
+<!-- $Rev$ $Date$ -->
+
+<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">
+
+ <modelVersion>4.0.0</modelVersion>
+
+ <parent>
+ <groupId>org.apache.geronimo.testsuite</groupId>
+ <artifactId>jaxws-tests</artifactId>
+ <version>2.2-SNAPSHOT</version>
+ </parent>
+
+ <artifactId>jaxws-war-sec</artifactId>
+ <name>Geronimo TestSuite :: WebServices TestSuite :: Secure JAX-WS WAR</name>
+ <packaging>war</packaging>
+
+ <description>This project executes testcases for your testsuite</description>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.geronimo.framework</groupId>
+ <artifactId>geronimo-kernel</artifactId>
+ <version>${version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.framework</groupId>
+ <artifactId>geronimo-security</artifactId>
+ <version>${version}</version>
+ <scope>provided</scope>
+ </dependency>
+
+ <dependency>
+ <groupId>org.apache.geronimo.buildsupport</groupId>
+ <artifactId>geronimo-maven-plugin</artifactId>
+ <version>${version}</version>
+ <scope>provided</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <systemProperties>
+ <property>
+ <name>webAppName</name>
+ <value>${artifactId}</value>
+ </property>
+ </systemProperties>
+ </configuration>
+ </plugin>
+
+ <plugin>
+ <groupId>org.apache.geronimo.buildsupport</groupId>
+ <artifactId>geronimo-maven-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>deploy-ejb</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>deploy-module</goal>
+ </goals>
+ <configuration>
+ <moduleArchive>${project.build.directory}/${artifactId}-${version}.war</moduleArchive>
+ </configuration>
+ </execution>
+
+ <execution>
+ <id>undeploy-ejb-as-moduleId</id>
+ <phase>post-integration-test</phase>
+ <goals>
+ <goal>undeploy-module</goal>
+ </goals>
+ <configuration>
+ <moduleId>${groupId}/${artifactId}/${version}/war</moduleId>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+</project>
+
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/pom.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java Thu Jun 4 19:45:26 2009
@@ -0,0 +1,54 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.test;
+
+import java.util.logging.Logger;
+
+import javax.annotation.Resource;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+import javax.xml.ws.WebServiceContext;
+
+@WebService(wsdlLocation="WEB-INF/wsdl/greeter.wsdl")
+@SOAPBinding(style=SOAPBinding.Style.RPC,
+ use=SOAPBinding.Use.LITERAL,
+ parameterStyle=SOAPBinding.ParameterStyle.WRAPPED
+)
+public class JAXWSBean {
+
+ private static final Logger LOG =
+ Logger.getLogger(JAXWSBean.class.getName());
+
+ @Resource
+ private WebServiceContext context;
+
+ public String greetMe(String me) {
+ if (context == null) {
+ throw new RuntimeException("WebServiceContext is null");
+ }
+ LOG.info("WebServiceContext: " + context);
+ LOG.info("Principal: " + context.getUserPrincipal());
+ LOG.info("Context: " + context.getMessageContext());
+
+ System.out.println("i'm a ws: " + me);
+
+ return "Hello " + me;
+ }
+
+}
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/java/org/apache/geronimo/test/JAXWSBean.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml Thu Jun 4 19:45:26 2009
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/j2ee/web-1.1" xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1" xmlns:naming="http://geronimo.apache.org/xml/ns/naming-1.1">
+
+ <dep:environment>
+ <dep:moduleId>
+ <dep:groupId>${pom.groupId}</dep:groupId>
+ <dep:artifactId>${pom.artifactId}</dep:artifactId>
+ <dep:version>${version}</dep:version>
+ <dep:type>war</dep:type>
+ </dep:moduleId>
+ </dep:environment>
+
+ <context-root>/${pom.artifactId}</context-root>
+
+ <security-realm-name>geronimo-admin</security-realm-name>
+
+ <security>
+ <role-mappings>
+ <role role-name="test">
+ <principal name="admin"
+ class="org.apache.geronimo.security.realm.providers.GeronimoGroupPrincipal" />
+ </role>
+ </role-mappings>
+ </security>
+
+</web-app>
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml Thu Jun 4 19:45:26 2009
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<web-app xmlns="http://java.sun.com/xml/ns/javaee"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_5.xsd"
+ version="2.5"
+ >
+
+ <display-name>Security War</display-name>
+
+ <servlet>
+ <display-name>Servlet1</display-name>
+ <servlet-name>Servlet1</servlet-name>
+ <servlet-class>org.apache.geronimo.test.JAXWSBean</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Servlet1</servlet-name>
+ <url-pattern>/basic</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <display-name>Servlet2</display-name>
+ <servlet-name>Servlet2</servlet-name>
+ <servlet-class>org.apache.geronimo.test.JAXWSBean</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Servlet2</servlet-name>
+ <url-pattern>/basicAllowGet</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <display-name>Servlet3</display-name>
+ <servlet-name>Servlet3</servlet-name>
+ <servlet-class>org.apache.geronimo.test.JAXWSBean</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Servlet3</servlet-name>
+ <url-pattern>/https</url-pattern>
+ </servlet-mapping>
+
+ <servlet>
+ <display-name>Servlet4</display-name>
+ <servlet-name>Servlet4</servlet-name>
+ <servlet-class>org.apache.geronimo.test.JAXWSBean</servlet-class>
+ <load-on-startup>0</load-on-startup>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Servlet4</servlet-name>
+ <url-pattern>/httpsAllowGet</url-pattern>
+ </servlet-mapping>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>basic</web-resource-name>
+ <url-pattern>/basic/*</url-pattern>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>test</role-name>
+ </auth-constraint>
+ <user-data-constraint>
+ <transport-guarantee>NONE</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>basicAllowGet</web-resource-name>
+ <url-pattern>/basicAllowGet/*</url-pattern>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <auth-constraint>
+ <role-name>test</role-name>
+ </auth-constraint>
+ <user-data-constraint>
+ <transport-guarantee>NONE</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>https</web-resource-name>
+ <url-pattern>/https</url-pattern>
+ </web-resource-collection>
+ <user-data-constraint>
+ <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+ <security-constraint>
+ <web-resource-collection>
+ <web-resource-name>httpsAllowGet</web-resource-name>
+ <url-pattern>/httpsAllowGet</url-pattern>
+ <http-method>POST</http-method>
+ </web-resource-collection>
+ <user-data-constraint>
+ <transport-guarantee>CONFIDENTIAL</transport-guarantee>
+ </user-data-constraint>
+ </security-constraint>
+
+ <login-config>
+ <auth-method>BASIC</auth-method>
+ <realm-name>geronimo-admin</realm-name>
+ </login-config>
+
+ <security-role>
+ <role-name>test</role-name>
+ </security-role>
+
+</web-app>
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl Thu Jun 4 19:45:26 2009
@@ -0,0 +1,60 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://test.geronimo.apache.org/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" name="JAXWSBeanService" targetNamespace="http://test.geronimo.apache.org/">
+ <types>
+ <schema targetNamespace="http://test.geronimo.apache.org/"
+ xmlns="http://www.w3.org/2001/XMLSchema"
+ elementFormDefault="qualified">
+ </schema>
+ </types>
+ <message name="greetMeResponse">
+ <part name="return" type="xsd:string">
+ </part>
+ </message>
+ <message name="greetMe">
+ <part name="arg0" type="xsd:string">
+ </part>
+ </message>
+ <portType name="JAXWSBean">
+ <operation name="greetMe">
+ <input message="tns:greetMe">
+ </input>
+ <output message="tns:greetMeResponse">
+ </output>
+ </operation>
+ </portType>
+ <binding name="JAXWSBeanPortBinding" type="tns:JAXWSBean">
+ <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
+ <operation name="greetMe">
+ <soap:operation soapAction=""/>
+ <input>
+ <soap:body namespace="http://test.geronimo.apache.org/" use="literal"/>
+ </input>
+ <output>
+ <soap:body namespace="http://test.geronimo.apache.org/" use="literal"/>
+ </output>
+ </operation>
+ </binding>
+ <service name="JAXWSBeanService">
+ <port binding="tns:JAXWSBeanPortBinding" name="JAXWSBeanPort">
+ <soap:address location="http://localhost:8080/JAXWSBean1/ejb"/>
+ </port>
+ </service>
+</definitions>
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/main/webapp/WEB-INF/wsdl/greeter.wsdl
------------------------------------------------------------------------------
svn:mime-type = text/xml
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java Thu Jun 4 19:45:26 2009
@@ -0,0 +1,293 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.testsuite.testset;
+
+import java.io.File;
+import java.io.InputStream;
+import java.io.StringReader;
+import java.net.HttpURLConnection;
+import java.net.URL;
+import java.util.Iterator;
+import java.util.Map;
+
+import javax.net.ssl.HttpsURLConnection;
+import javax.wsdl.Definition;
+import javax.wsdl.PortType;
+import javax.wsdl.factory.WSDLFactory;
+import javax.wsdl.xml.WSDLReader;
+
+import org.apache.geronimo.testsupport.TestSupport;
+import org.testng.annotations.Test;
+import org.w3c.dom.Document;
+import org.w3c.dom.Text;
+import org.xml.sax.InputSource;
+
+public class JaxWSTest extends TestSupport {
+
+ private String getBaseURL(boolean https) {
+ String baseUrl;
+ if (https) {
+ baseUrl = "https://localhost:8443/";
+ } else {
+ baseUrl = "http://localhost:8080/";
+ }
+
+ String warName = System.getProperty("webAppName");
+ assertNotNull("Web application name not specified", warName);
+
+ return baseUrl + warName + "/";
+ }
+
+ @Test
+ public void testInvokeBasic() throws Exception {
+ invokeBasic("basic");
+ }
+
+ @Test
+ public void testInvokeBasicAllowGet() throws Exception {
+ invokeBasic("basicAllowGet");
+ }
+
+ private void invokeBasic(String address) throws Exception {
+ URL url = new URL(getBaseURL(false) + address);
+
+ InputStream requestInput;
+ HttpURLConnection conn;
+
+ // send request WITHOUT basic authentication info
+ requestInput = JaxWSTest.class.getResourceAsStream("/request1.xml");
+ assertNotNull("SOAP request not specified", requestInput);
+
+ conn = (HttpURLConnection) url.openConnection();
+ try {
+ String reply = TestUtils.call(requestInput, conn);
+ assertEquals("responseCode", 401, conn.getResponseCode());
+ } finally {
+ conn.disconnect();
+ }
+
+ // send request WITH basic authentication info
+ requestInput = JaxWSTest.class.getResourceAsStream("/request1.xml");
+ assertNotNull("SOAP request not specified", requestInput);
+
+ conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestProperty("Authorization", TestUtils.getAuthorizationValue());
+ try {
+ checkResponse(requestInput, conn);
+ } finally {
+ conn.disconnect();
+ }
+ }
+
+ @Test
+ public void testInvokeHttps() throws Exception {
+ invokeHttps("https", false);
+ }
+
+ @Test
+ public void testInvokeHttpsWithBasic() throws Exception {
+ invokeHttps("https", true);
+ }
+
+ @Test
+ public void testInvokeHttpsAllowGet() throws Exception {
+ invokeHttps("httpsAllowGet", false);
+ }
+
+ private void invokeHttps(String address, boolean basicAuth) throws Exception {
+ URL url;
+ InputStream requestInput;
+
+ // send request over http
+ url = new URL(getBaseURL(false) + address);
+
+ requestInput = JaxWSTest.class.getResourceAsStream("/request1.xml");
+ assertNotNull("SOAP request not specified", requestInput);
+
+ HttpURLConnection conn1 = (HttpURLConnection) url.openConnection();
+ try {
+ String reply = TestUtils.call(requestInput, conn1);
+ assertTrue("Unexpected response code: " + conn1.getResponseCode(), conn1.getResponseCode() >= 300);
+ } finally {
+ conn1.disconnect();
+ }
+
+ // send requests over https
+ String oldTrustStore = System.getProperty("javax.net.ssl.trustStore");
+ String oldTrustStorePassword = System.getProperty("javax.net.ssl.trustStorePassword");
+
+ File keyStore = new File(TestUtils.getGeronimoHome(), "var/security/keystores/geronimo-default");
+ System.setProperty("javax.net.ssl.trustStore", keyStore.getAbsolutePath());
+ System.setProperty("javax.net.ssl.trustStorePassword", "secret");
+
+ url = new URL(getBaseURL(true) + address);
+
+ requestInput = JaxWSTest.class.getResourceAsStream("/request1.xml");
+ assertNotNull("SOAP request not specified", requestInput);
+
+ HttpsURLConnection conn2 = (HttpsURLConnection) url.openConnection();
+ if (basicAuth) {
+ conn2.setRequestProperty("Authorization", TestUtils.getAuthorizationValue());
+ }
+ conn2.setHostnameVerifier(new TestUtils.TestHostnameVerifier());
+ try {
+ checkResponse(requestInput, conn2);
+ } finally {
+ TestUtils.unset("javax.net.ssl.trustStore", oldTrustStore);
+ TestUtils.unset("javax.net.ssl.trustStorePassword", oldTrustStorePassword);
+
+ conn2.disconnect();
+ }
+ }
+
+ private void checkResponse(InputStream requestInput, HttpURLConnection conn) throws Exception {
+ String reply = TestUtils.call(requestInput, conn);
+
+ assertEquals("responseCode", 200, conn.getResponseCode());
+ String contentType = conn.getHeaderField("Content-Type");
+ assertTrue("contentType", contentType.indexOf("text/xml") != -1);
+
+ InputSource is = new InputSource(new StringReader(reply));
+ Document doc = TestUtils.parseMessage(is);
+
+ Text replyMsg = TestUtils.findText(doc.getDocumentElement(), "Hello foo bar");
+ assertTrue("reply message", replyMsg != null);
+ }
+
+ @Test
+ public void testWSDLBasic() throws Exception {
+ URL url = new URL(getBaseURL(false) + "basic?wsdl");
+
+ HttpURLConnection conn;
+
+ // get wsdl WITHOUT basic authentication info
+ conn = (HttpURLConnection) url.openConnection();
+ try {
+ String reply = TestUtils.call(conn);
+ assertEquals("responseCode", 401, conn.getResponseCode());
+ } finally {
+ conn.disconnect();
+ }
+
+ // get wsdl WITH basic authentication info
+ conn = (HttpURLConnection) url.openConnection();
+ conn.setRequestProperty("Authorization", TestUtils.getAuthorizationValue());
+ try {
+ checkWSDL(conn);
+ } finally {
+ conn.disconnect();
+ }
+ }
+
+ @Test
+ public void testWSDLBasicAllowGet() throws Exception {
+ URL url = new URL(getBaseURL(false) + "basicAllowGet?wsdl");
+
+ HttpURLConnection conn;
+
+ // get wsdl WITHOUT basic authentication info
+ conn = (HttpURLConnection) url.openConnection();
+ try {
+ checkWSDL(conn);
+ } finally {
+ conn.disconnect();
+ }
+ }
+
+ @Test
+ public void testWSDLHttps() throws Exception {
+ URL url;
+
+ // get wsdl over http
+ url = new URL(getBaseURL(false) + "https?wsdl");
+
+ HttpURLConnection conn1 = (HttpURLConnection) url.openConnection();
+ try {
+ String reply = TestUtils.call(conn1);
+ assertTrue("Unexpected response code: " + conn1.getResponseCode(), conn1.getResponseCode() >= 300);
+ } finally {
+ conn1.disconnect();
+ }
+
+ // get wsdl over https
+ String oldTrustStore = System.getProperty("javax.net.ssl.trustStore");
+ String oldTrustStorePassword = System.getProperty("javax.net.ssl.trustStorePassword");
+
+ File keyStore = new File(TestUtils.getGeronimoHome(), "var/security/keystores/geronimo-default");
+ System.setProperty("javax.net.ssl.trustStore", keyStore.getAbsolutePath());
+ System.setProperty("javax.net.ssl.trustStorePassword", "secret");
+
+ url = new URL(getBaseURL(true) + "https?wsdl");
+
+ HttpsURLConnection conn2 = (HttpsURLConnection) url.openConnection();
+ conn2.setHostnameVerifier(new TestUtils.TestHostnameVerifier());
+ try {
+ checkWSDL(conn2);
+ } finally {
+ TestUtils.unset("javax.net.ssl.trustStore", oldTrustStore);
+ TestUtils.unset("javax.net.ssl.trustStorePassword", oldTrustStorePassword);
+
+ conn2.disconnect();
+ }
+ }
+
+ @Test
+ public void testWSDLHttpsAllowGet() throws Exception {
+ URL url;
+
+ // get wsdl over http
+ url = new URL(getBaseURL(false) + "httpsAllowGet?wsdl");
+
+ HttpURLConnection conn1 = (HttpURLConnection) url.openConnection();
+ try {
+ checkWSDL(conn1);
+ } finally {
+ conn1.disconnect();
+ }
+ }
+
+ private void checkWSDL(HttpURLConnection conn) throws Exception {
+ conn.setConnectTimeout(30 * 1000);
+ conn.setReadTimeout(30 * 1000);
+ conn.setUseCaches(false);
+
+ WSDLReader wsdlReader = WSDLFactory.newInstance().newWSDLReader();
+ wsdlReader.setFeature("javax.wsdl.importDocuments", false);
+ Definition def = wsdlReader.readWSDL(null, new InputSource(conn.getInputStream()));
+
+ System.out.println("WSDL: " + def);
+
+ assertTrue(def.getPortTypes().size() > 0);
+
+ boolean found = false;
+
+ Iterator iter = def.getPortTypes().entrySet().iterator();
+ while (iter.hasNext()) {
+ PortType portType =
+ (PortType)((Map.Entry)iter.next()).getValue();
+
+ if (found == false &&
+ portType.getOperation("greetMe", null, null) != null) {
+ found = true;
+ }
+ }
+
+ assertTrue("Operation not found", found);
+ }
+}
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/JaxWSTest.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java Thu Jun 4 19:45:26 2009
@@ -0,0 +1,196 @@
+/**
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package org.apache.geronimo.testsuite.testset;
+
+import java.io.BufferedReader;
+import java.io.IOException;
+import java.io.InputStream;
+import java.io.InputStreamReader;
+import java.io.OutputStream;
+import java.net.HttpURLConnection;
+
+import javax.net.ssl.HostnameVerifier;
+import javax.net.ssl.SSLSession;
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.geronimo.crypto.encoders.Base64;
+import org.apache.geronimo.mavenplugins.geronimo.ServerProxy;
+import org.w3c.dom.Document;
+import org.w3c.dom.Element;
+import org.w3c.dom.Node;
+import org.w3c.dom.NodeList;
+import org.w3c.dom.Text;
+import org.xml.sax.InputSource;
+
+public class TestUtils {
+
+ private static final String geronimoHome;
+
+ static {
+ geronimoHome = initGeronimoHome();
+ }
+
+ private static String initGeronimoHome() {
+ ServerProxy server = null;
+ try {
+ server = new ServerProxy("localhost", 1099, "system", "manager");
+ } catch (Exception e) {
+ throw new RuntimeException("Unable to setup ServerProxy", e);
+ }
+
+ String home = server.getGeronimoHome();
+ Throwable exception = server.getLastError();
+
+ server.closeConnection();
+
+ if (exception != null) {
+ throw new RuntimeException("Failed to get Geronimo home", exception);
+ } else {
+ return home;
+ }
+ }
+
+ public static String getGeronimoHome() {
+ return geronimoHome;
+ }
+
+ public static void unset(String property, String value) {
+ if (value == null) {
+ System.clearProperty(property);
+ } else {
+ System.setProperty(property, value);
+ }
+ }
+
+ public static Document parseMessage(InputSource is) throws Exception {
+ DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
+ dbf.setNamespaceAware(true);
+ DocumentBuilder db = dbf.newDocumentBuilder();
+
+ Document doc = db.parse(is);
+ return doc;
+ }
+
+ public static Element findElement(Element element, String name) {
+ NodeList list = element.getChildNodes();
+ for (int i = 0; i < list.getLength(); i++) {
+ Node child = (Node)list.item(i);
+ if (child instanceof Element) {
+ Element childEl = (Element)child;
+ if (name.equals(childEl.getLocalName())) {
+ return childEl;
+ } else {
+ childEl = findElement(childEl, name);
+ if (childEl != null) {
+ return childEl;
+ }
+ }
+ }
+ }
+ return null;
+ }
+
+ public static Text findText(Element element, String value) {
+ NodeList list = element.getChildNodes();
+ for (int i = 0; i < list.getLength(); i++) {
+ Node child = (Node)list.item(i);
+ if (child instanceof Text) {
+ Text text = (Text)child;
+ if (text.getData().indexOf(value) != -1) {
+ return text;
+ }
+ } else if (child instanceof Element) {
+ Element childEl = (Element)child;
+ Text text = findText(childEl, value);
+ if (text != null) {
+ return text;
+ }
+ }
+ }
+ return null;
+ }
+
+ public static String getAuthorizationValue() {
+ return getAuthorizationValue("system", "manager");
+ }
+
+ public static String getAuthorizationValue(String user, String password) {
+ String userPassword = user + ":" + password;
+ byte[] encodedUserPassword = Base64.encode(userPassword.getBytes());
+ String encodedUserPasswordStr = new String(encodedUserPassword, 0, encodedUserPassword.length);
+ return "Basic " + encodedUserPasswordStr;
+ }
+
+ public static String call(HttpURLConnection conn) throws IOException {
+ return call(null, conn);
+ }
+
+ public static String call(InputStream requestInput, HttpURLConnection conn) throws IOException {
+ conn.setConnectTimeout(30 * 1000);
+ conn.setReadTimeout(30 * 1000);
+ conn.setUseCaches(false);
+
+ if (requestInput != null) {
+ conn.setDoOutput(true);
+ conn.setDoInput(true);
+ conn.setRequestMethod("POST");
+ conn.setRequestProperty("Content-Type", "text/xml");
+
+ OutputStream out = conn.getOutputStream();
+
+ byte[] data = new byte[1024];
+ int read = 0;
+ while ((read = requestInput.read(data, 0, data.length)) != -1) {
+ out.write(data, 0, read);
+ }
+
+ requestInput.close();
+
+ out.flush();
+ out.close();
+ }
+
+ InputStream is = null;
+
+ try {
+ is = conn.getInputStream();
+ } catch (IOException e) {
+ is = conn.getErrorStream();
+ }
+
+ StringBuffer buf = new StringBuffer();
+ BufferedReader in = new BufferedReader(new InputStreamReader(is));
+ String inputLine;
+ while ((inputLine = in.readLine()) != null) {
+ System.out.println(inputLine);
+ buf.append(inputLine);
+ }
+ in.close();
+
+ return buf.toString();
+ }
+
+ public static class TestHostnameVerifier implements HostnameVerifier {
+ public boolean verify(String hostname, SSLSession session) {
+ return true;
+ }
+ }
+
+}
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/java/org/apache/geronimo/testsuite/testset/TestUtils.java
------------------------------------------------------------------------------
svn:mime-type = text/plain
Added: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml?rev=781842&view=auto
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml (added)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml Thu Jun 4 19:45:26 2009
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one
+ or more contributor license agreements. See the NOTICE file
+ distributed with this work for additional information
+ regarding copyright ownership. The ASF licenses this file
+ to you under the Apache License, Version 2.0 (the
+ "License"); you may not use this file except in compliance
+ with the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing,
+ software distributed under the License is distributed on an
+ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ KIND, either express or implied. See the License for the
+ specific language governing permissions and limitations
+ under the License.
+-->
+<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
+ <soap:Body>
+ <x:greetMe xmlns:x="http://test.geronimo.apache.org/">
+ <arg0>foo bar</arg0>
+ </x:greetMe>
+ </soap:Body>
+</soap:Envelope>
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml
------------------------------------------------------------------------------
svn:keywords = Date Revision
Propchange: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/jaxws-war-sec/src/test/resources/request1.xml
------------------------------------------------------------------------------
svn:mime-type = text/xml
Modified: geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/pom.xml
URL: http://svn.apache.org/viewvc/geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/pom.xml?rev=781842&r1=781841&r2=781842&view=diff
==============================================================================
--- geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/pom.xml (original)
+++ geronimo/server/trunk/testsuite/webservices-testsuite/jaxws-tests/pom.xml Thu Jun 4 19:45:26 2009
@@ -81,6 +81,7 @@
<module>jaxws-ejb-sec</module>
<module>jaxws-rest-war</module>
<module>jaxws-partial</module>
+ <module>jaxws-war-sec</module>
</modules>
</project>