You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Tcharl <tc...@hotmail.fr> on 2011/12/26 14:58:16 UTC

CXF, Jetty, OSGI and multiple web contexts

Hi,
I'm trying to make a full webapp stack on osgi.
So, I have two wars archive deployed on a single jetty server (published via
spring dm and a custom deployer).
When I start the interface war alone (the war wich does not contain cxf) and
go to http://localhost:8080/, I have the list of the available contexts.
But when I start the ws war (cxfied), I don't have this list, and only one
web context (the cxf one) is available.

How can I do to support multiple web contexts in a single jetty server
instance with cxf?

Best regards, you've made a very nice framework,

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5101559.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF, Jetty, OSGI and multiple web contexts

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi,
On 27/12/11 13:12, Tcharl wrote:
>
>
> Hi,
>
> Yes, I am.
> But this absolute adress use a different context as the webapp one. Is that change something?
>

What webapp are you talking about ? Is it the one which loads the 
jaxrs:endpoint ? If yes then why do you get an absolute address, may be 
you can try a relative one ?

I'm not sure what exactly is happening in your case; CXF, in its HTTP 
transport module, has a Blueprint application context which creates a 
default '/cxf' context by getting a handler registered with HttpService. 
But that should not prevent HttpService listening on multiple contexts, 
right ?

Cheers, Sergey

>
>
> Date: Mon, 26 Dec 2011 07:22:20 -0800
> From: ml-node+s547215n5101645h1@n5.nabble.com
> To: tcharl69@hotmail.fr
> Subject: Re: CXF, Jetty, OSGI and multiple web contexts
>
>
>
> 	Hi
>
> On 26/12/11 13:58, Tcharl wrote:
>
>> Hi,
>
>> I'm trying to make a full webapp stack on osgi.
>
>> So, I have two wars archive deployed on a single jetty server (published via
>
>> spring dm and a custom deployer).
>
>> When I start the interface war alone (the war wich does not contain cxf) and
>
>> go to http://localhost:8080/, I have the list of the available contexts.
>
>> But when I start the ws war (cxfied), I don't have this list, and only one
>
>> web context (the cxf one) is available.
>
>>
>
>> How can I do to support multiple web contexts in a single jetty server
>
>> instance with cxf?
>
>>
>
> I'm wondering is it because you may be using an absolute address as you
>
> did show in the other email ?
>
>
> Cheers, Sergey
>
>
>> Best regards, you've made a very nice framework,
>
>>
>
>> --
>
>> View this message in context: http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5101559.html
>> Sent from the cxf-user mailing list archive at Nabble.com.
>
>
>

RE: CXF, Jetty, OSGI and multiple web contexts

Posted by Tcharl <tc...@hotmail.fr>.

Hi,

Yes, I am.
But this absolute adress use a different context as the webapp one. Is that change something?



Date: Mon, 26 Dec 2011 07:22:20 -0800
From: ml-node+s547215n5101645h1@n5.nabble.com
To: tcharl69@hotmail.fr
Subject: Re: CXF, Jetty, OSGI and multiple web contexts



	Hi

On 26/12/11 13:58, Tcharl wrote:

> Hi,

> I'm trying to make a full webapp stack on osgi.

> So, I have two wars archive deployed on a single jetty server (published via

> spring dm and a custom deployer).

> When I start the interface war alone (the war wich does not contain cxf) and

> go to http://localhost:8080/, I have the list of the available contexts.

> But when I start the ws war (cxfied), I don't have this list, and only one

> web context (the cxf one) is available.

>

> How can I do to support multiple web contexts in a single jetty server

> instance with cxf?

>

I'm wondering is it because you may be using an absolute address as you 

did show in the other email ?


Cheers, Sergey


> Best regards, you've made a very nice framework,

>

> --

> View this message in context: http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5101559.html
> Sent from the cxf-user mailing list archive at Nabble.com.



-- 

Sergey Beryozkin


Talend Community Coders

http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com

	
	

	

	
	
		If you reply to this email, your message will be added to the discussion below:
		http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5101645.html
	
	
		
		To unsubscribe from CXF, Jetty, OSGI and multiple web contexts, click here.

		NAML
	 		 	   		  

--
View this message in context: http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5103090.html
Sent from the cxf-user mailing list archive at Nabble.com.

Re: CXF, Jetty, OSGI and multiple web contexts

Posted by Sergey Beryozkin <sb...@gmail.com>.
Hi
On 26/12/11 13:58, Tcharl wrote:
> Hi,
> I'm trying to make a full webapp stack on osgi.
> So, I have two wars archive deployed on a single jetty server (published via
> spring dm and a custom deployer).
> When I start the interface war alone (the war wich does not contain cxf) and
> go to http://localhost:8080/, I have the list of the available contexts.
> But when I start the ws war (cxfied), I don't have this list, and only one
> web context (the cxf one) is available.
>
> How can I do to support multiple web contexts in a single jetty server
> instance with cxf?
>

I'm wondering is it because you may be using an absolute address as you 
did show in the other email ?

Cheers, Sergey

> Best regards, you've made a very nice framework,
>
> --
> View this message in context: http://cxf.547215.n5.nabble.com/CXF-Jetty-OSGI-and-multiple-web-contexts-tp5101559p5101559.html
> Sent from the cxf-user mailing list archive at Nabble.com.


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Blog: http://sberyozkin.blogspot.com