Author: alessio.soldano(a)jboss.com
Date: 2010-12-20 09:07:41 -0500 (Mon, 20 Dec 2010)
New Revision: 406
Added:
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/jbosswscxf/
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/jbosswscxf/CXFEnablerDelegate.java
core/trunk/core-cxf/src/main/resources/META-INF/services/org.jboss.wise.core.wsextensions.EnablerDelegate
core/trunk/integration-testsuite/cxf/
core/trunk/integration-testsuite/cxf/pom.xml
core/trunk/integration-testsuite/cxf/src/
core/trunk/integration-testsuite/cxf/src/main/
core/trunk/integration-testsuite/cxf/src/main/java/
core/trunk/integration-testsuite/cxf/src/main/resources/
core/trunk/integration-testsuite/cxf/src/test/
core/trunk/integration-testsuite/cxf/src/test/java/
core/trunk/integration-testsuite/cxf/src/test/java/org/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/Hello.java
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/HelloImpl.java
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/WSAddressingIntegrationTest.java
core/trunk/integration-testsuite/cxf/src/test/resources/
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/Hello.wsdl
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/test.wsdl
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/web.xml
core/trunk/integration-testsuite/cxf/src/test/resources/integration-test-log4j.xml
core/trunk/integration-testsuite/cxf/src/test/resources/jndi.properties
Modified:
core/trunk/integration-testsuite/pom.xml
Log:
[WISE-169] Adding WS-Addressing support with CXF stack; adding new integration testsuite
module for integration tests with cxf stack
Added:
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/jbosswscxf/CXFEnablerDelegate.java
===================================================================
---
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/jbosswscxf/CXFEnablerDelegate.java
(rev 0)
+++
core/trunk/core-cxf/src/main/java/org/jboss/wise/core/wsextensions/impl/jbosswscxf/CXFEnablerDelegate.java 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,70 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2006, JBoss Inc., and
+ * individual contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of individual
+ * contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site:
http://www.fsf.org.
+ */
+package org.jboss.wise.core.wsextensions.impl.jbosswscxf;
+
+import net.jcip.annotations.Immutable;
+
+import org.apache.cxf.Bus;
+import org.apache.cxf.BusFactory;
+import org.apache.cxf.endpoint.Client;
+import org.apache.cxf.frontend.ClientProxy;
+import org.apache.cxf.ws.addressing.WSAddressingFeature;
+import org.jboss.wise.core.wsextensions.DefaultEnablerDelegate;
+
+/**
+ * CXF version of EnablerDelegate
+ *
+ * @author alessio.soldano(a)jboss.com
+ */
+@Immutable
+public class CXFEnablerDelegate extends DefaultEnablerDelegate {
+
+ public CXFEnablerDelegate() {
+ super();
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.jboss.wise.core.wsextensions.EnablerDelegate#visitWSAddressing(Object)
+ */
+ public void visitWSAddressing(Object endpointInstance) throws
UnsupportedOperationException {
+ Bus bus = BusFactory.getThreadDefaultBus();
+ Client client = ClientProxy.getClient(endpointInstance);
+ WSAddressingFeature feature = new WSAddressingFeature();
+ feature.initialize(client, bus);
+ }
+
+ /**
+ * {@inheritDoc}
+ *
+ * @see org.jboss.wise.core.wsextensions.EnablerDelegate#visitWSRM(Object)
+ */
+ public void visitWSRM(Object endpointInstance) throws UnsupportedOperationException
{
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
+ public void visitWSSecurity(Object endpointInstance) throws
UnsupportedOperationException, IllegalStateException {
+ throw new UnsupportedOperationException("Not yet implemented");
+ }
+
+}
Added:
core/trunk/core-cxf/src/main/resources/META-INF/services/org.jboss.wise.core.wsextensions.EnablerDelegate
===================================================================
---
core/trunk/core-cxf/src/main/resources/META-INF/services/org.jboss.wise.core.wsextensions.EnablerDelegate
(rev 0)
+++
core/trunk/core-cxf/src/main/resources/META-INF/services/org.jboss.wise.core.wsextensions.EnablerDelegate 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1 @@
+org.jboss.wise.core.wsextensions.impl.jbosswscxf.CXFEnablerDelegate
\ No newline at end of file
Added: core/trunk/integration-testsuite/cxf/pom.xml
===================================================================
--- core/trunk/integration-testsuite/cxf/pom.xml (rev 0)
+++ core/trunk/integration-testsuite/cxf/pom.xml 2010-12-20 14:07:41 UTC (rev 406)
@@ -0,0 +1,92 @@
+<!--
+ 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.
+-->
+<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>
+
+ <name>Wise Integration CXF test</name>
+ <artifactId>wise-integration-cxf</artifactId>
+
+ <packaging>jar</packaging>
+
+ <parent>
+ <groupId>org.jboss.wise</groupId>
+ <artifactId>wise-integration-testsuite</artifactId>
+ <version>1.2.0-SNAPSHOT</version>
+ <relativePath>../pom.xml</relativePath>
+ </parent>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.jboss.wise</groupId>
+ <artifactId>wise-core-cxf</artifactId>
+ <version>${project.version}</version>
+ <scope>test</scope>
+ </dependency>
+ <dependency>
+ <groupId>org.jboss.ws.cxf</groupId>
+ <artifactId>jbossws-cxf-client</artifactId>
+ <scope>test</scope>
+ </dependency>
+ </dependencies>
+
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-war-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>war-wsaddress</id>
+ <phase>pre-integration-test</phase>
+ <goals>
+ <goal>war</goal>
+ </goals>
+ <configuration>
+ <webXml>${basedir}/src/test/resources/WEB-INF/wsa/web.xml</webXml>
+ <warName>wsa</warName>
+ <outputDirectory>${project.build.testOutputDirectory}</outputDirectory>
+ <webappDirectory>${project.build.directory}/wsa</webappDirectory>
+ <warSourceExcludes>**/lib/**</warSourceExcludes>
+ <webResources>
+ <webResource>
+ <targetPath>WEB-INF/classes</targetPath>
+ <directory>${basedir}/target/test-classes/</directory>
+ <includes>
+ <include>**/wsaddressing/*.class</include>
+ <include>**/test.wsdl</include>
+ </includes>
+ <excludes>
+ <exclude>**/*Test.class</exclude>
+ </excludes>
+ </webResource>
+ <webResource>
+ <targetPath>WEB-INF</targetPath>
+ <directory>${basedir}/src/test/resources/WEB-INF/wsa/</directory>
+ <includes>
+ <include>**/*.wsdl</include>
+ </includes>
+ </webResource>
+ </webResources>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ </plugins>
+ </build>
+
+ <profiles/>
+
+</project>
Added:
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/Hello.java
===================================================================
---
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/Hello.java
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/Hello.java 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,46 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2006, JBoss Inc., and
+ * individual contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of individual
+ * contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site:
http://www.fsf.org.
+ */
+package org.jboss.wise.test.integration.wsaddressing;
+
+import javax.jws.WebMethod;
+import javax.jws.WebParam;
+import javax.jws.WebResult;
+import javax.jws.WebService;
+import javax.jws.soap.SOAPBinding;
+
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 23-Dic-2008
+ *
+ */
+@WebService( name = "Hello", targetNamespace =
"http://org.jboss/wise/wsaddressing" )
+@SOAPBinding( style = SOAPBinding.Style.RPC )
+public interface Hello {
+
+ @WebMethod
+ @WebResult( partName = "return" )
+ public String echoUserType( @WebParam( name = "user", partName =
"user" )
+ String user );
+
+}
Added:
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/HelloImpl.java
===================================================================
---
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/HelloImpl.java
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/HelloImpl.java 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,47 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2006, JBoss Inc., and
+ * individual contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of individual
+ * contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site:
http://www.fsf.org.
+ */
+package org.jboss.wise.test.integration.wsaddressing;
+
+import javax.ejb.Stateless;
+import javax.jws.WebService;
+import javax.xml.ws.soap.Addressing;
+
+/**
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 20-Dic-2010
+ *
+ */
+
+@WebService( endpointInterface =
"org.jboss.wise.test.integration.wsaddressing.Hello",
+ targetNamespace = "http://org.jboss/wise/wsa",
+ serviceName = "HelloService",
+ wsdlLocation = "WEB-INF/test.wsdl" ) //this is added to force the
server on publishing a WSDL without policies; this way we're sure WS-Addressing
+ //on client side is controlled by features only, not by WS-Policy
engine.
+@Stateless
+@Addressing(enabled = true, required = false)
+public class HelloImpl implements Hello {
+
+ public String echoUserType( String user ) {
+ return "Hello WSAddressing";
+ }
+}
Added:
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/WSAddressingIntegrationTest.java
===================================================================
---
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/WSAddressingIntegrationTest.java
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/java/org/jboss/wise/test/integration/wsaddressing/WSAddressingIntegrationTest.java 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,87 @@
+/*
+ * JBoss, Home of Professional Open Source Copyright 2006, JBoss Inc., and
+ * individual contributors as indicated by the @authors tag. See the
+ * copyright.txt in the distribution for a full listing of individual
+ * contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it under the
+ * terms of the GNU Lesser General Public License as published by the Free
+ * Software Foundation; either version 2.1 of the License, or (at your option)
+ * any later version.
+ *
+ * This software is distributed in the hope that it will be useful, but WITHOUT
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
+ * details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this software; if not, write to the Free Software Foundation,
+ * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA, or see the FSF
+ * site:
http://www.fsf.org.
+ */
+package org.jboss.wise.test.integration.wsaddressing;
+
+import java.io.ByteArrayOutputStream;
+import java.io.PrintStream;
+import java.net.URL;
+import java.util.Map;
+
+import junit.framework.Assert;
+
+import org.jboss.wise.core.client.InvocationResult;
+import org.jboss.wise.core.client.WSDynamicClient;
+import org.jboss.wise.core.client.WSEndpoint;
+import org.jboss.wise.core.client.WSMethod;
+import org.jboss.wise.core.client.builder.WSDynamicClientBuilder;
+import org.jboss.wise.core.client.factories.WSDynamicClientFactory;
+import org.jboss.wise.core.handlers.LoggingHandler;
+import org.jboss.wise.core.test.WiseTest;
+import org.jboss.wise.core.wsextensions.impl.WSAddressingEnabler;
+import org.junit.After;
+import org.junit.Before;
+import org.junit.Test;
+
+/**
+ * Tests WS-Addressing extension in Wise
+ *
+ * @author alessio.soldano(a)jboss.com
+ * @since 23-Dic-2008
+ */
+public class WSAddressingIntegrationTest extends WiseTest {
+ private URL warUrl = null;
+
+ @Before
+ public void setUp() throws Exception {
+ warUrl = this.getClass().getClassLoader().getResource("wsa.war");
+ deployWS(warUrl);
+ }
+
+ @Test
+ @SuppressWarnings("unchecked")
+ public void shouldRunWithoutMK() throws Exception {
+ URL wsdlURL = new URL(getServerHostAndPort() + "/wsa/Hello?wsdl");
+
+ WSDynamicClientBuilder clientBuilder = WSDynamicClientFactory.getJAXWSClientBuilder();
+ WSDynamicClient client =
clientBuilder.tmpDir("target/temp/wise").verbose(true).keepSource(true).wsdlURL(wsdlURL
+ .toString()).build();
+ WSMethod method = client.getWSMethod("HelloService",
"HelloImplPort", "echoUserType");
+ WSEndpoint wsEndpoint = method.getEndpoint();
+
+ wsEndpoint.addWSExtension(new WSAddressingEnabler(client));
+ ByteArrayOutputStream baos = new ByteArrayOutputStream();
+ wsEndpoint.addHandler(new LoggingHandler(new PrintStream(baos)));
+
+ Map<String, Object> args = new java.util.HashMap<String, Object>();
+ args.put("user", "test");
+ InvocationResult result = method.invoke(args, null);
+ Map<String, Object> results = (Map<String, Object>)
result.getMapRequestAndResult(null, null).get("results");
+ client.close();
+ Assert.assertEquals("Hello WSAddressing", results.get("result"));
+ Assert.assertTrue("Could not find WS-A headers in exchanged messages!",
baos.toString().contains("http://www.w3.org/2005/08/addressing"));
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ undeployWS(warUrl);
+ }
+}
Added: core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/Hello.wsdl
===================================================================
--- core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/Hello.wsdl
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/Hello.wsdl 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,30 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<definitions name='HelloService'
targetNamespace='http://org.jboss/wise/wsaddressing'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:ns1='http://org.jboss/wise/wsaddressing'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://org.jboss/wise/wsa'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'>
+ <types></types>
+ <message name='Hello_echoUserType'>
+ <part name='user' type='xsd:string'></part>
+ </message>
+ <message name='Hello_echoUserTypeResponse'>
+ <part name='return' type='xsd:string'></part>
+ </message>
+ <portType name='Hello'>
+
+ <operation name='echoUserType' parameterOrder='user'>
+ <input message='ns1:Hello_echoUserType'></input>
+ <output message='ns1:Hello_echoUserTypeResponse'></output>
+ </operation>
+ </portType>
+ <binding name='HelloBinding' type='ns1:Hello'>
+ <soap:binding style='rpc'
transport='http://schemas.xmlsoap.org/soap/http'/>
+ <operation name='echoUserType'>
+ <soap:operation soapAction=''/>
+
+ <input>
+ <soap:body namespace='http://org.jboss/wise/wsa'
use='literal'/>
+ </input>
+ <output>
+ <soap:body namespace='http://org.jboss/wise/wsa'
use='literal'/>
+ </output>
+ </operation>
+ </binding>
+</definitions>
\ No newline at end of file
Added: core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/test.wsdl
===================================================================
--- core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/test.wsdl
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/test.wsdl 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,9 @@
+<?xml version='1.0' encoding='UTF-8'?><wsdl:definitions
name="HelloService" targetNamespace="http://org.jboss/wise/wsa"
xmlns:ns1="http://org.jboss/wise/wsaddressing"
xmlns:ns2="http://schemas.xmlsoap.org/soap/http"
xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/"
xmlns:tns="http://org.jboss/wise/wsa"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
+ <wsdl:import location="Hello.wsdl"
namespace="http://org.jboss/wise/wsaddressing"/>
+ <wsdl:service name="HelloService">
+
+ <wsdl:port binding="ns1:HelloBinding"
name="HelloImplPort">
+ <soap:address location="http://localhost:8080/wsa/Hello" />
+ </wsdl:port>
+ </wsdl:service>
+</wsdl:definitions>
Added: core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/web.xml
===================================================================
--- core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/web.xml
(rev 0)
+++ core/trunk/integration-testsuite/cxf/src/test/resources/WEB-INF/wsa/web.xml 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+
+<web-app
xmlns="http://java.sun.com/xml/ns/j2ee"
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_4.xsd"
+ version="2.4">
+
+ <servlet>
+ <servlet-name>Hello</servlet-name>
+
<servlet-class>org.jboss.wise.test.integration.wsaddressing.HelloImpl</servlet-class>
+ </servlet>
+
+ <servlet-mapping>
+ <servlet-name>Hello</servlet-name>
+ <url-pattern>/Hello</url-pattern>
+ </servlet-mapping>
+
+</web-app>
+
Added: core/trunk/integration-testsuite/cxf/src/test/resources/integration-test-log4j.xml
===================================================================
--- core/trunk/integration-testsuite/cxf/src/test/resources/integration-test-log4j.xml
(rev 0)
+++
core/trunk/integration-testsuite/cxf/src/test/resources/integration-test-log4j.xml 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
+
+<log4j:configuration
xmlns:log4j="http://jakarta.apache.org/log4j/"
+debug="false">
+
+ <appender name="FILE" class="org.apache.log4j.FileAppender">
+ <errorHandler
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
+ <param name="File" value="target/integration-test.log"/>
+ <param name="Append" value="false"/>
+
+ <layout class="org.apache.log4j.PatternLayout">
+ <!-- The default pattern: Date Priority [Category] Message\n -->
+ <param name="ConversionPattern" value="%d %-5p [%c]
%m%n"/>
+
+ <!-- The full pattern: Date MS Priority [Category] (Thread:NDC) Message\n
+ <param name="ConversionPattern" value="%d %-5r %-5p [%c]
(%t:%x) %m%n"/>
+ -->
+ </layout>
+ </appender>
+ <category name="org.jboss.wise">
+ <priority value="DEBUG"/>
+ </category>
+ <root>
+ <priority value="INFO"/>
+ <appender-ref ref="FILE"/>
+ </root>
+
+</log4j:configuration>
Added: core/trunk/integration-testsuite/cxf/src/test/resources/jndi.properties
===================================================================
--- core/trunk/integration-testsuite/cxf/src/test/resources/jndi.properties
(rev 0)
+++ core/trunk/integration-testsuite/cxf/src/test/resources/jndi.properties 2010-12-20
14:07:41 UTC (rev 406)
@@ -0,0 +1,5 @@
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.provider.url=jnp://localhost:1099
+java.naming.factory.url.pkgs=org.jboss.naming
+java.naming.factory.url.pkgs=org.jnp.interfaces
+
Modified: core/trunk/integration-testsuite/pom.xml
===================================================================
--- core/trunk/integration-testsuite/pom.xml 2010-12-20 10:09:10 UTC (rev 405)
+++ core/trunk/integration-testsuite/pom.xml 2010-12-20 14:07:41 UTC (rev 406)
@@ -182,6 +182,9 @@
<name>cxf.stack</name>
</property>
</activation>
+ <modules>
+ <module>cxf</module>
+ </modules>
<dependencies>
<dependency>
<groupId>org.jboss.ws.cxf</groupId>