I'm trying to run CXF on a server platform based on Equinox 4.2.2, Spring
3.0.7 and Jetty 8.1.14. However, I struggle a long time to make CXF working,
I hope somebody can shed some light on it. 

You can download the complete research project from my google drive (about
45mb).
https://drive.google.com/file/d/0BwQeEkWPle9cYUZjbkpuVXJEQ00/edit?usp=sharing

To setup the enviornment in Eclipse, 
a) you need to unzip the file, then import those projects into your Eclipse
workspace (use File | Import | Existing projects into workspace). 
b) Then use 'jetty-config8b/targetRuntime/target8bReduced.target' to setup
your Eclipse runtime target
c) Then launch 'jetty-config8b/launcher/jettyLauncher8bReduced.launch' to
fire up the server

I used the following components in my research. 

Eclipse runtime(based on 4.2.2)
Jetty (based on 8.1.14, working fine)
Slf4j (based on 1.7.6, working fine)
Spring (based on 3.0.7, working fine)
Apache CXF (based on 2.6.13, not working)

The Spring and Jetty works fine. The standalone war gets deployed (see
http://localhost:48080/hello). The bundlized war gets deployed too (See
http://localhost:48080/test/helloServlet, or
http://localhost:48080/test/hello/index.html). the Spring is also
instantantiated (EchoService published).
 
However, I couldn't get the CXF to be published to the default endpoint
http://localhost:48080/cxf (I used port 48080). It seems the CXF servlet is
never instantiated and mapped to the context path '/cxf'. If however, I
changed the 'address' attribute to use absolute address, for example,
'http://localhost:38080/myservice/HelloWorld', the web services endpoint
gets published. See file hello.spring.xml (in the web service demo bunlde:
com.demo.frameworks.interop.webservices.hello) for the configuration. I
cannot force to use port 48080 for the absolute address, it will blow off
the Jetty startup. It seems CXF fire up a complete different Jetty instance. 

Folder structures:
==================
com.demo.frameworks.interop.webservices.hello (partially working, CXF web
service)
  +META-INF
    +spring
          +hello.spring.xml
com.demo.frameworks.spring.test (working, spring service, EchoService)
com.demo.frameworks.web.example.hello (working, bundlized war, context path:
/test/helloServlet, /test/hello/index.html)
jetty-config8b
  +jetty.home
    +etc (jetty configuration xmls and logback xml)
        +logs (store the logs)
        +webapps (Jetty watch folder)
          +hello.war (a hello world war to be deployed to Jetty)
  +launcher (Eclipse launcher to launch the demo)
  +targetRuntime (Use this .target to setup Eclipse target runtime)
MyTargetRuntime (Target runtime plugins)

Thanks a lot.
Sam



--
View this message in context: 
http://cxf.547215.n5.nabble.com/CXF-failed-to-publish-endpoints-in-Eclipse-4-2-2-OSGi-Jetty-8-1-14-and-Spring-3-0-7-environment-tp5742547.html
Sent from the cxf-dev mailing list archive at Nabble.com.

Reply via email to