cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From serg...@apache.org
Subject git commit: Fixing the jaxrs minimal_osgi demo compliation failure
Date Wed, 08 Oct 2014 08:49:21 GMT
Repository: cxf
Updated Branches:
  refs/heads/3.0.x-fixes 00d6e397e -> 11578d047


Fixing the jaxrs minimal_osgi demo compliation failure


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/11578d04
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/11578d04
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/11578d04

Branch: refs/heads/3.0.x-fixes
Commit: 11578d047c3e29cf89c4a69ff01beeecb45ce27d
Parents: 00d6e39
Author: Sergey Beryozkin <sberyozkin@talend.com>
Authored: Wed Oct 8 09:44:32 2014 +0100
Committer: Sergey Beryozkin <sberyozkin@talend.com>
Committed: Wed Oct 8 09:48:54 2014 +0100

----------------------------------------------------------------------
 .../minimal_osgi/src/main/java/minimalosgi/SampleServlet.java   | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/11578d04/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/SampleServlet.java
----------------------------------------------------------------------
diff --git a/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/SampleServlet.java
b/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/SampleServlet.java
index a75274c..1d8b946 100644
--- a/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/SampleServlet.java
+++ b/distribution/src/main/release/samples/jax_rs/minimal_osgi/src/main/java/minimalosgi/SampleServlet.java
@@ -23,15 +23,16 @@ import javax.servlet.ServletConfig;
 import javax.servlet.ServletException;
 import javax.ws.rs.core.Application;
 import org.apache.cxf.jaxrs.servlet.CXFNonSpringJaxrsServlet;
+import org.apache.cxf.jaxrs.model.ApplicationInfo;
 
 public class SampleServlet extends CXFNonSpringJaxrsServlet {
 
     private static final long serialVersionUID = -1531317723099896635L;
 
     @Override
-    protected Application createApplicationInstance(String appClassName, ServletConfig servletConfig)

+    protected ApplicationInfo createApplicationInstance(String appClassName, ServletConfig
servletConfig) 
         throws ServletException {
-        return new SampleApplication();
+        return new ApplicationInfo(new SampleApplication(), super.getBus());
     }
 
 }


Mime
View raw message