Thank you all for quick response. I resolved some issues after our
discussion. As of now i have only 2 issues now.

1. Multiple connectors - run bundle with specific connector.
2. And serving static files as i mentioned in previous mail.





On Tue, Sep 23, 2014 at 1:20 PM, Charlie Mordant <[email protected]>
wrote:

> Hi Srikanth,
>
> You've not made the wrong choice but the best one :)!
> As Achim said, you just have to forget all about the 'all in a war' J2EE
> way of thinking.
> Put all your services in different Web-ContextPath Manifest entry filled
> plain old Jars.
> Learn to fragment all your monolitic applications into reusable bundles,
> then you'll see the incredible power of the choice you've made.
> Unfortunately, I can't answer for your problem due to lack of informations
> and knowledge on Pax-Web, Achim is the man! :).
>
> Regards, Charlie
>
>
> 2014-09-23 8:44 GMT+02:00 Achim Nierbeck <[email protected]>:
>
>> HI Srikanth,
>>
>> I fear we are missing your use-case to beginn with, to understand what
>> you are trying to achieve.
>> Only with some breadcrumbs of information we just can help you on certain
>> topics.
>> In general I don't think using Karaf 3.x with cxf and Pax Web is a wrong
>> decision. You just have to get rid of the "old" war thinking.
>>
>> First of all make sure you configure the Webcontainer right. I think this
>> is the first Time you talk of that you only want to have SSL, this is a
>> real easy task and if you look at the samples in combination with the
>> integration tests of Pax Web, you'll see how easy it actually is. Btw. the
>> Apache Karaf Cookbook [1] also does contain enough explanation and examples
>> on how to work with Apache Karaf in general and it does cover Pax Web with
>> a big chapter explaining simple use-cases to get going with CXF, so at this
>> point there are resources available.
>>
>> For working with SSL, you might want to also look at [2] the integration
>> test fulfilling this task. Or if you want a blog post [3][4]. And actually
>> there is also documentation available on how to configure SSL at Pax Web
>> [5]. Besides that you just need to make sure you turn off the std. http
>> port.
>>
>> Regarding CXF as I already stated there is a book available also covering
>> this [1]
>> and as JB already noted if you want to bind a certain CXF servlet to a
>> special connector you'll need to configure this to CXF itself, the
>> mechanism for WARs doesn't work there. This is due to the fact that CXF
>> itself just uses the HttpService.
>>
>> Regarding PAXWEB-738, looks like you found a bug, cause afaik it used to
>> work. I'll work on this as soon as possible but not within the next two
>> weeks. What you can do to work around that issue is to actually use what is
>> done in the sample at [6]. It uses the HttpService to achieve the task.
>>
>> regards, Achim
>>
>>
>> [1] - http://bit.ly/1ps9rkS
>> [2] -
>> https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/WarBasicAuthSecuredIntegrationTest.java
>> [3] -
>> http://blog.nanthrax.net/2013/02/multiple-http-connectors-in-apache-karaf/
>> [4] -
>> http://blog.nanthrax.net/2012/12/how-to-enable-https-certificate-client-auth-with-karaf/
>> [5] - https://ops4j1.jira.com/wiki/display/paxweb/SSL+Configuration
>> [6] -
>> https://github.com/ops4j/org.ops4j.pax.web/blob/master/pax-web-itest/pax-web-itest-container/pax-web-itest-container-jetty/src/test/java/org/ops4j/pax/web/itest/jetty/WhiteboardAliasIntegrationTest.java
>>
>> 2014-09-23 8:23 GMT+02:00 Srikanth Hugar <[email protected]>:
>>
>>> Hello All,
>>>
>>>      I am not sure whether i have made wrong choice by karaf 3.0.0, pax
>>> web 3.0.5, cxf 2.7.7.
>>> I have been facing multiple problems from beginning and some problems
>>> which are very important/critical for my product, i don't have the answers.
>>>
>>> Did anybody tried with above libraries? Were you successful?
>>>
>>> 1. https://ops4j1.jira.com/browse/PAXWEB-738
>>> 2.
>>> http://mail-archives.apache.org/mod_mbox/karaf-user/201409.mbox/%3CCAOUabB0dRPd==d+6sxigzfgfe4a4hz8reacheeqd6_h8y0+...@mail.gmail.com%3E
>>> 3. No i have another problem, i wanted to run always with https, bit by
>>> configurin jetty.xml, service is also listening at 8080.
>>>
>>> ....... list goes on.
>>>
>>>
>>> --
>>>  Srikanth
>>> w <http://www.srikanthugar.in>ww.gharki.com
>>>
>>>
>>
>>
>> --
>>
>> Apache Member
>> Apache Karaf <http://karaf.apache.org/> Committer & PMC
>> OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer
>> & Project Lead
>> blog <http://notizblog.nierbeck.de/>
>>
>> Software Architect / Project Manager / Scrum Master
>>
>>
>
>
> --
> Charlie Mordant
>
> Full OSGI/EE stack made with Karaf:
> https://github.com/OsgiliathEnterprise/net.osgiliath.parent
>



-- 
 Srikanth
www.srikanthugar.in

Reply via email to