This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new aedb062 Fixed the groovy example
aedb062 is described below
commit aedb0622e2ff2404d6c32970ef318ed81a133885
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Mon Apr 23 11:00:23 2018 +0100
Fixed the groovy example
---
.../src/main/release/samples/groovy_spring_support/pom.xml | 2 +-
.../src/main/webapp/WEB-INF/cxf-servlet.xml | 13 +++++++++----
.../jaxws_async/src/main/java/demo/hw/server/Server.java | 4 +++-
3 files changed, 13 insertions(+), 6 deletions(-)
diff --git
a/distribution/src/main/release/samples/groovy_spring_support/pom.xml
b/distribution/src/main/release/samples/groovy_spring_support/pom.xml
index 3a3ae12..41f8d2d 100644
--- a/distribution/src/main/release/samples/groovy_spring_support/pom.xml
+++ b/distribution/src/main/release/samples/groovy_spring_support/pom.xml
@@ -115,7 +115,7 @@
<dependency>
<groupId>org.codehaus.groovy</groupId>
<artifactId>groovy</artifactId>
- <version>1.7.5</version>
+ <version>2.4.9</version>
</dependency>
<dependency>
<groupId>antlr</groupId>
diff --git
a/distribution/src/main/release/samples/groovy_spring_support/src/main/webapp/WEB-INF/cxf-servlet.xml
b/distribution/src/main/release/samples/groovy_spring_support/src/main/webapp/WEB-INF/cxf-servlet.xml
index 92a67c4..aa43926 100644
---
a/distribution/src/main/release/samples/groovy_spring_support/src/main/webapp/WEB-INF/cxf-servlet.xml
+++
b/distribution/src/main/release/samples/groovy_spring_support/src/main/webapp/WEB-INF/cxf-servlet.xml
@@ -21,14 +21,19 @@
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:simple="http://cxf.apache.org/simple"
xmlns:lang="http://www.springframework.org/schema/lang" xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/lang
http://www.springframework.org/schema/lang/spring-lang.xsd
http://cxf.apache.org/simple http://cxf.apache. [...]
<import resource="classpath:META-INF/cxf/cxf.xml"/>
<import resource="classpath:META-INF/cxf/cxf-servlet.xml"/>
- <lang:groovy id="helloworld" script-source="classpath:HelloWorld.groovy"
scope="prototype">
-</lang:groovy>
- <lang:groovy id="helloworldImpl"
script-source="classpath:HelloWorldImpl.groovy" scope="prototype">
-</lang:groovy>
+
+ <lang:groovy id="helloworld" script-source="classpath:HelloWorld.groovy"
scope="prototype" />
+
+ <lang:groovy id="helloworldImpl"
script-source="classpath:HelloWorldImpl.groovy" scope="prototype" />
+
<simple:server serviceClass="demo.spring.HelloWorld" address="/HelloWorld">
<simple:serviceBean>
<ref bean="helloworldImpl"/>
</simple:serviceBean>
+ <simple:features>
+ <bean class="org.apache.cxf.ext.logging.LoggingFeature" />
+ </simple:features>
</simple:server>
+
</beans>
<!-- END SNIPPET: beans -->
diff --git
a/distribution/src/main/release/samples/jaxws_async/src/main/java/demo/hw/server/Server.java
b/distribution/src/main/release/samples/jaxws_async/src/main/java/demo/hw/server/Server.java
index ffb7f8b..554d035 100644
---
a/distribution/src/main/release/samples/jaxws_async/src/main/java/demo/hw/server/Server.java
+++
b/distribution/src/main/release/samples/jaxws_async/src/main/java/demo/hw/server/Server.java
@@ -23,6 +23,8 @@ package demo.hw.server;
import javax.xml.ws.Endpoint;
+import org.apache.cxf.ext.logging.LoggingFeature;
+
public class Server {
protected Server() throws Exception {
@@ -30,7 +32,7 @@ public class Server {
Object implementor = new GreeterImpl();
String address = "http://localhost:9000/SoapContext/SoapPort";
- Endpoint.publish(address, implementor);
+ Endpoint.publish(address, implementor, new LoggingFeature());
}
public static void main(String args[]) throws Exception {
--
To stop receiving notification emails like this one, please contact
[email protected].