On 11/12/10 5:21 PM, Stephane Nicoll wrote:
Hi Dan,

Thanks for the tip. There is indeed a difference between CXF 2.2.11 and CXF
2.3.0 with the exact same configuration (I just flip the cxf version in my
pom and rerun my simple unit test with embedded Jetty).

The destinationFactory is not the same (see
org.apache.cxf.endpoint.AbstractEndpointFactory):

* CXF 2.2.11: org.apache.cxf.transport.http_jetty.JettyHTTPTransportFactory
* CXF 2.3: org.apache.cxf.binding.soap.SoapTransportFactory

The SoapTransportFactory will try to locat the real TransportFactory by checking the address.
You can find the code from SoapTransportFactory.getDestination() method.

Can you just set the break point on the JettyHTTPTransportFactory?


I have tried to debug when the destination factory gets injected but found
nothing. The setter is not called (according to my debugger) and the
protected field does not seem to be set anywhere. It feels like it's set by
reflection or something like that.

Anyway, since the destination factory is not the proper one, CXF deploys my
web service as if I was in a running servlet container. The next step for me
would be to understand why the JettyHTTPTransportFactory is not set anymore.

Any thoughts?

Thanks,
S.

On Thu, Nov 4, 2010 at 4:02 AM, Daniel Kulp<[email protected]>  wrote:

On Monday 01 November 2010 1:13:41 pm Stephane Nicoll wrote:
Any idea where I should look ?


Well, it really shouldn't startup until an endpoint is actually published
on
the given port.   As parrt of the publish step, a listener/callback is set
onto the Destination at which point the JettyDestination creates a Jetty
handler thing for it and creates the Jetty server for the port and starts
it
up.   Thus, trace through from the Jetty Destination subclass.

Dan


On Wed, Oct 27, 2010 at 10:33 AM, Stephane Nicoll
<[email protected]

wrote:

A plain old maven2 module with Spring 2.5. No OSGI.

The thing I really don't understand is what does trigger the actual
startup of Jetty. Looking at the samples, it should be located in the
processing of the namespace somehow but if I copy/paste the
CherrServer.xml in my project, jetty does not start.

Thanks,
S.

On Wed, Oct 27, 2010 at 9:48 AM, Willem Jiang
<[email protected]>wrote:
Are you deploying the example into an OSGi platform?
If so there may be some issue, I will have a look at it if I get some
time tomorrow.

Willem

On 10/27/10, Stephane Nicoll<[email protected]>  wrote:
Hi there,

I started from the base and thought the samples would answer my
original issue. I downloaded the official apache-cxf 2.3.0
distribution from apache.org, had a look and found all kinds of
reference to
"org.mortbay.jetty". If I try to run these samples, I am getting an

obvious

ClassNotFoundException since Jett7 is used.

However, jax_rs\basic_https is working fine and I copy/pasted the
cherryServer.xml in my project but jetty does not seem to start.

What am I missing? Especially since the same config works just fine
with 2.2.11 (and Jetty 6)

S.

On Wed, Oct 20, 2010 at 10:41 AM, Willem Jiang

<[email protected]>wrote:
There is no other different configuration on the jetty7 to start
the
embedded server.
Can you take a look at the CXF 2.3.0 system tests, we didn't face
that kind
of issue before?

BTW, what's address that your service was published?

On 10/20/10 4:14 PM, Stephane Nicoll wrote:
Hi,

We are trying to upgrade our application from 2.2.10 to 2.3.0 and

we're

facing an issue with embedded Jetty7

We have a set of unit tests starting CXF with an embedded jetty.
First

we

had to rename some classes since the move to eclipse but the real

issue

is
that while CXF states it has deployed our Web Service, all the
unit

tests

are failing with a ConnectionException now.

Do you have a working setup somewhere of embedded jetty with unit

tests

and
cxf 2.3? I had a look to the doc but it does not seem up to date
in

that

area.

Thanks,
S.

--
Willem
----------------------------------
Open Source Integration: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)

         http://jnn.javaeye.com (Chinese)

Twitter: http://twitter.com/willemjiang

--
Daniel Kulp
[email protected]
http://dankulp.com/blog




--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Reply via email to