karaf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: How to make a bundle's Web-ContextPath configurable at runtime??
Date Wed, 29 May 2013 16:13:59 GMT
Hi Grazvydas

Would your solution work if my packing is a jar?

Thanks

-D



On Wed, May 29, 2013 at 7:52 AM, GraÅžvydas Valeika <gvaleika@gmail.com>wrote:

> Hi,
>
>
>
> On Wed, May 29, 2013 at 10:24 AM, Dan Tran <dantran@gmail.com> wrote:
>
>> ouch!! :-)
>>
>> if I dont put it in the manifest, is it possible to configure context at
>> runtime? :-)
>>
>> -D
>>
>>
>> On Tue, May 28, 2013 at 11:45 PM, Achim Nierbeck <bcanhome@googlemail.com
>> > wrote:
>>
>>> Hi Dan,
>>>
>>> quick answer: No!
>>>
>>
>
> Recently I also was trying to do the same thing. I even wanted to try to
> patch stuff but when I found workaround my motivation lowered.
>
> Workaround would be to use not osgified war file. And install it using :
>
> install  warref:file:///pathTo/Test.bnd
>
> and in bnd file you can put necessary manifest fields, sample bnd file
> (similar to file I used):
>
> Bundle-SymbolicName:\
>  TestBnd
>
> Bundle-Version:\
>  1.3.0
>
> Export-Package:\
>  !*
>
> Import-Package:
> javax.servlet,javax.servlet.http,com.my.test;version="0.0.0",*
>
> Bundle-ClassPath: .,WEB-INF/classes,/WEB-INF/lib/gwt-servlet-2.5.1.jar
>
> -removeheaders:\
>  Private-Package,\
>  Ignore-Package
>
> WAR-URL:\
>   file:///pathTot/Test.war
>
> Webapp-Context: TestContext
>
>
>
> I tried and this works with karaf-3.0.0.RC1.
>
>
> Best regards,
>
> Grazvydas
>

Mime
View raw message