[osgi-dev] Couple of doubts

2016-11-10 Thread manoj.vrajamani
Hi All,

I am on Enroute/Eclipse/Bndtools.


* I have a .provider and .api in my project (along with other bundles). 
I do not want to install this provider bundle during run. It should not be 
installed/active. By default this is going into installed/active mode. Note 
that this bundle is not present in my Run Requirements (of bndrun) but it gets 
added magically into the Run Bundles (is it because it is part of the project) ?



* I INSTALL this provider bundle and then go on to UNINSTALL (from the 
prompt g!). But still, the bundle seem to exist (may be in the cache) as I am 
able to execute functions in this uninstalled bundle.  How do I eliminate this 
bundle's presence completely?

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Hi

2016-11-10 Thread manoj.vrajamani
Hi All,

I am on Enroute/Eclipse/Bndtools. I INSTALL a certain bundle and then go on to 
UNINSTALL. But still, the bundle seem to exist (may be in the cache) as I am 
able to execute functions in this uninstalled bundle.  How do I eliminate this 
bundle's presence completely?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Enroute Rest

2016-11-10 Thread manoj.vrajamani
Hi All,

I am getting the following error when I run my App which is based on getUpper() 
QS tutorial (REST API)

No 'Access-Control-Allow-Origin' header is present on the requested resource.  
Can we get this enabled from the REST HTTP Server side or is there any other  
better solution to get rid of this CORS (Cross Origin Resource Sharing) issue ?

Please advise.. Thanks..

-Manoj
From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 10 November 2016 10:48
To: OSGi Developer Mail List 
Subject: RE: [osgi-dev] Enroute Rest


* Do we have option to set HTTP Header set Access-Control-Allow-Origin 
"*"  on the Jetty side of Enroute (by any chance?) !!!

* Can we ignore CORS altogether. I tried many options from the 
Firefox/Ubuntu side (both setting/ignoring) and still it fails...

* I have a feeling that this needs some tweak on the server-side 
(Enroute rest) ? Please correct/advise me..

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 09 November 2016 17:24
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Enroute Rest


** This mail has been sent from an external source **
You can read about CORS here: 
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

Regards,
Neil



On 9 Nov 2016, at 11:51, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

I am trying to retrieve an http response (json string) from an osgi app 
implementing enroute rest api.

When i write a client html app and invoke the osgi app, it gets invoked and 
returns the string. But I get a warning as below and I am unable to see the 
text in my browser page.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the 
remote resource at http://127.0.0.1:8080/rest/execute/app/foo (Reason: CORS 
header 'Access-Control-Allow-Origin' missing).

Does this have anything to do with the http response header in the enroute rest 
? Would appreciate any quick solution/pointers..

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Enroute Rest

2016-11-09 Thread manoj.vrajamani
* Do we have option to set HTTP Header set Access-Control-Allow-Origin 
"*"  on the Jetty side of Enroute (by any chance?) !!!

* Can we ignore CORS altogether. I tried many options from the 
Firefox/Ubuntu side (both setting/ignoring) and still it fails...

* I have a feeling that this needs some tweak on the server-side 
(Enroute rest) ? Please correct/advise me..

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 09 November 2016 17:24
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Enroute Rest


** This mail has been sent from an external source **
You can read about CORS here: 
https://en.wikipedia.org/wiki/Cross-origin_resource_sharing

Regards,
Neil



On 9 Nov 2016, at 11:51, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

I am trying to retrieve an http response (json string) from an osgi app 
implementing enroute rest api.

When i write a client html app and invoke the osgi app, it gets invoked and 
returns the string. But I get a warning as below and I am unable to see the 
text in my browser page.

Cross-Origin Request Blocked: The Same Origin Policy disallows reading the 
remote resource at http://127.0.0.1:8080/rest/execute/app/foo (Reason: CORS 
header 'Access-Control-Allow-Origin' missing).

Does this have anything to do with the http response header in the enroute rest 
? Would appreciate any quick solution/pointers..

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Enroute Rest

2016-11-09 Thread manoj.vrajamani
Hi All,


I am trying to retrieve an http response (json string) from an osgi app 
implementing enroute rest api.


When i write a client html app and invoke the osgi app, it gets invoked and 
returns the string. But I get a warning as below and I am unable to see the 
text in my browser page.


Cross-Origin Request Blocked: The Same Origin Policy disallows reading the 
remote resource at http://127.0.0.1:8080/rest/execute/app/foo (Reason: CORS 
header 'Access-Control-Allow-Origin' missing).


Does this have anything to do with the http response header in the enroute rest 
? Would appreciate any quick solution/pointers..


Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] RS/RSA for exposing JAX-RS resources

2016-11-06 Thread manoj.vrajamani
Do we hava a complete step by step tutorial on how to implement a full fledged 
REST (whether JAX RS or CFX-DoSGi)  in OSGi/Enroute? If so, the link would be 
really helpful..Thanks..

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Christian Schneider
Sent: 06 November 2016 23:13
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] RS/RSA for exposing JAX-RS resources


** This mail has been sent from an external source **
CXF-DOSGi + Aries RSA is not really more complicated than any other alternative.
For example the JAXRS connector from Holger Staudacher works in a very similar 
way and is similarly complex.

If you only use DOSGi on the server side then it simply listens for OSGi 
services with the magic properties and calls CXF to instantiate the endpoint.
There is not much more to what Aries RSA does if you do not use discovery and 
the client side and you do not have to. The two additional properties will not 
really make it more complex.

In both cases DS does the full lifecycle management of the service.
The main difference is that with the JAX-RS connector you are stuck with an 
implementation created by someone and no real community and commercial support.
Remote Services is a standard and Aries RSA, CXF-DOSGi as well as ECF have good 
communities behind them.

About the complexity of CXF-DOSGi...
Look into that code and tell me it is complicated:
https://github.com/apache/cxf-dosgi/blob/master/provider-rs/src/main/java/org/apache/cxf/dosgi/dsw/handlers/rest/RsProvider.java
https://github.com/apache/cxf-dosgi/blob/master/common/src/main/java/org/apache/cxf/dosgi/common/intent/impl/IntentManagerImpl.java

These 400 lines are almost the complete code of CXF-DOSGi on the JAXRS side.

The Aries RSA code of course is also involved but it is also not complex and 
very well tested.

CXF-DOSGi is able to support almost all advanced features you need like 
exception handlers, message body writers and readers, ssl, ...
The performance of CXF is amond the best in any JAXRS implementations.

So I think for beginners the jaxrs connector might provide a little faster 
start but you soon hit a dead end while RSA allows you to start with REST but 
then grow with your needs.

In the end it is your own choice but I could not leave all these assumptions 
and conclusions you did uncommented as I think many are not true (anymore). 
CXF-DOSGi has come a long way in the recent years and I think it is worth 
another look. If you want to try it I will try to do my best to help.

Christian



2016-11-06 15:05 GMT+01:00 Ancoron Luciferis 
mailto:ancoron.lucife...@googlemail.com>>:
On 05/11/16 16:49, Scott Lewis wrote:
> On 11/4/2016 9:38 AM, Ancoron Luciferis wrote:
>> 
>> Simply looking at the DOSGi architecture [1] (which just follows what
>> the specs demand) is an absolute overkill for the use case of simply
>> having a DS-annotated JAX-RS resource being exposed via HTTP service.
>
> I assert that a full understanding of the RS/RSA architecture is largely
> irrelevant to using RS/RSA for your and many other use cases.   As an
> alternative approach to understanding what's necessary, consider the
> tutorial at [1].

From an operational perspective that's simply not true. As a developer
you might simply take the tutorial and you might be good to go -
functionality-wise.

But:

How do you ensure that what you have developed will also work in all
stages/production?

How do you ensure that you can guarantee that the ReST endpoint will be
available?

How do you ensure that troubleshooting doesn't reveal that you don't
know much about the technology you're using?


Without (at least) knowing about the full concept (specs) and at least
some of the internals of the actual implementation you cannot be serious
about the service you're about to develop/publish. At least I wouldn't.
One of the key concerns in a software life cycle is risk management.
Each library/tool that is used at runtime which I don't know much about
is a risk factor and represents a point of failure.


>
> I think that the approach taken by RS/RSA provides the necessary balance
> between having a general and flexible architecture able to handle more
> than a few use cases, but also providing a simple, well-integrated
> api...(i.e. a Remote Service is just an OSGi service with some standard
> service properties, and so can be used seemlessly with DS, any/all code
> written for local services, etc).

That's completely true.

However, the word you've used describes it pretty well: 'balance'. What
this essentially means is: trade-offs.

In the end, what I have seen so far (only having used CXF DOSGi and
Karaf Cellar DOSGi) was not enough for my use-cases:
* (de-)serialization (JSON/XML/... - MBR/MBW)
* performance
* integration with standard JAX-RS aspects (interceptors/filters/...)


If you already have picked an implementation (Jersey) and the use-case
doesn't demand a node-restricted service within a cluster (which f

[osgi-dev] Query

2016-11-03 Thread manoj.vrajamani
Hi all,

Can I invoke an external CPP/Linux application (lying in the same machine) from 
with a provider service in Enroute? If so, how?
I tried the regular Runtime.getRuntime().exec() and also the ProcessBuilder but 
failed to invoke the app.

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Query

2016-11-03 Thread manoj.vrajamani
Resolved !!  I set the reference policyOption to GREEDY and I am able to get 
the desired results… Thanks a lot, Chris... ☺


From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Christian Schneider
Sent: 03 November 2016 12:38
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Query


** This mail has been sent from an external source **
References in DS can be reluctant or greedy regarding updates. The default is 
reluctant which means that once your component is active it will ignore new 
services coming up.
See 
https://osgi.org/javadoc/r5/cmpn/org/osgi/service/component/annotations/Reference.html

So you need to switch the policy to greedy to see the new service.

Christian

2016-11-03 5:23 GMT+01:00 
mailto:manoj.vrajam...@wipro.com>>:
Hi All,


• I have written a Service API  ( with method getType() which simply 
returns a “serviceString”  in this Interface)

• I have written FOUR Service Providers (all implementing the above 
interface)

• I am able to get the list these FOUR services with the following 
function:

public List getServices(){
return services.stream().map(s -> 
s.getType()).collect(Collectors.toList());
}



• Now,

• I create a FIFTH Provider (which implements the same Service API). 
Thus I implement  a getType() returning this fifth service string (say service5)

• I install and run this bundle dynamically from the shell using 
install / start commands. This FIFTH service is now in active state. (as seen 
via ‘lb’ command)



• But,

• I am *UNABLE* to list the FIFTH service by invoking the same 
function. It still lists earlier FOUR services only (which are present in the 
RunBundle of th e project).

public List getServices(){
return services.stream().map(s -> 
s.getType()).collect(Collectors.toList());
}

I want the fifth service to be installed at run time. The function should list 
the fifth service as well when called/invoked post installation of the bundle 
at run time.

Where am I going wrong?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev



--
--
Christian Schneider
http://www.liquid-reality.de

Open Source Architect
http://www.talend.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Query

2016-11-02 Thread manoj.vrajamani
Hi All,


· I have written a Service API  ( with method getType() which simply 
returns a “serviceString”  in this Interface)

· I have written FOUR Service Providers (all implementing the above 
interface)

· I am able to get the list these FOUR services with the following 
function:

public List getServices(){
return services.stream().map(s -> 
s.getType()).collect(Collectors.toList());
}



· Now,

· I create a FIFTH Provider (which implements the same Service API). 
Thus I implement  a getType() returning this fifth service string (say service5)

· I install and run this bundle dynamically from the shell using 
install / start commands. This FIFTH service is now in active state. (as seen 
via ‘lb’ command)



· But,

· I am *UNABLE* to list the FIFTH service by invoking the same 
function. It still lists earlier FOUR services only (which are present in the 
RunBundle of th e project).

public List getServices(){
return services.stream().map(s -> 
s.getType()).collect(Collectors.toList());
}

I want the fifth service to be installed at run time. The function should list 
the fifth service as well when called/invoked post installation of the bundle 
at run time.

Where am I going wrong?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Query

2016-11-02 Thread manoj.vrajamani
Hi All,


* I perform a  bundleContext.installBundle("x.jar");

* I am able to install the bundle but this is in state 'Installed'

* How do I move it to state 'Active' ?  programmatically?  ( I don't 
want to do it manually using the shell start  )

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
Resolved 

There was an existing System.loadLibrary()  call  in the CLASS right on top…  
Commenting this call solved the issue.. Now, I am able to see the print 
“starting…”

Thanks all….  Learnt a lot while interacting with experts like you..  ☺

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Daghan ACAY
Sent: 26 October 2016 16:09
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

I stand corrected [😊]



I hope you find the problem. Just another suggestion, can you provide the code 
so we can look into it in more detail?



Cheers

-Daghan


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of manoj.vrajam...@wipro.com 
mailto:manoj.vrajam...@wipro.com>>
Sent: Wednesday, October 26, 2016 10:34 AM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate

Just tried @Component(immediate = true, service=SampleImpl.class  This did  
*not* work either.. ☹

But, you are right… I have *not* implemented any interface ..though I have 
created a dummy one (simply lying there – created just in case I need it later)

public interface Alljoyn{
}

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Daghan ACAY
Sent: 26 October 2016 15:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

I guess I know the problem.



Your component does not implement an interface. That is, Osgi is build on the 
idea of abstraction. You define an interface (java interface) and your 
component implements it. If you follow that pattern then @Component can figure 
out properly how to register your component. In your case you have an 
implementation without an interface, hence you are breaking the convention. 
there is nothing wrong with that, but you net to say OSGi DS that you are doing 
this. Here is how you can do it:



try


@Component(immediate = true, service=SampleImpl.class)
public class SampleImpl {


I hope this works



Cheers

Daghan




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of manoj.vrajam...@wipro.com 
mailto:manoj.vrajam...@wipro.com>>
Sent: Wednesday, October 26, 2016 9:47 AM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


I did this..Put a breakpoint at the print..anad ran it usin debug osgi ...I did 
not get any different result...


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 26 October 2016 15:00:17
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

Another thing i do is put a break point at the line, e.g. activate method in 
your case, and run it in debug mode. It is more reliable than logs on console.

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: Wednesday, October 26, 2016 08:27 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate

I will just get a wild guess at it.

DS component start time is not deterministic. That is your component can start 
first in all components, in the middle or the last.

I see you are using debug run which starts a lot components and prints out to 
log. I say your "starting..." can be printed earlier in console. Please run 
again with debug and scroll up.  I have a feeling you will find "starting..."

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Timothy Ward mailto:tim.w...@paremus.com>>
Sent: Wednesday, October 26, 2016 08:22 PM
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

Also, your component should definitely not have a waiting thread which 
discovers devices. The devices should register services which are injected into 
the component. The injection can be used to trigger an action at that time. 
This is known as the whiteboard pattern - bundles register a service so that 
they can be discovered and used by another component.

Regards,

Tim


On 26 Oct 2016, at 11:20, Neil Bartlett 
mailto:njbartl...@gmail.com>> wrote:

You

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
Just tried @Component(immediate = true, service=SampleImpl.class  This did  
*not* work either.. :(

But, you are right... I have *not* implemented any interface ..though I have 
created a dummy one (simply lying there - created just in case I need it later)

public interface Alljoyn{
}

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Daghan ACAY
Sent: 26 October 2016 15:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

I guess I know the problem.



Your component does not implement an interface. That is, Osgi is build on the 
idea of abstraction. You define an interface (java interface) and your 
component implements it. If you follow that pattern then @Component can figure 
out properly how to register your component. In your case you have an 
implementation without an interface, hence you are breaking the convention. 
there is nothing wrong with that, but you net to say OSGi DS that you are doing 
this. Here is how you can do it:



try


@Component(immediate = true, service=SampleImpl.class)
public class SampleImpl {


I hope this works



Cheers

Daghan




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of manoj.vrajam...@wipro.com 
mailto:manoj.vrajam...@wipro.com>>
Sent: Wednesday, October 26, 2016 9:47 AM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


I did this..Put a breakpoint at the print..anad ran it usin debug osgi ...I did 
not get any different result...


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 26 October 2016 15:00:17
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

Another thing i do is put a break point at the line, e.g. activate method in 
your case, and run it in debug mode. It is more reliable than logs on console.

Sent by MailWise - See your emails as 
clean, short chats.


 Original Message 
From: Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: Wednesday, October 26, 2016 08:27 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate

I will just get a wild guess at it.

DS component start time is not deterministic. That is your component can start 
first in all components, in the middle or the last.

I see you are using debug run which starts a lot components and prints out to 
log. I say your "starting..." can be printed earlier in console. Please run 
again with debug and scroll up.  I have a feeling you will find "starting..."

Cheers
Daghan

Sent by MailWise - See your emails as 
clean, short chats.


 Original Message 
From: Timothy Ward mailto:tim.w...@paremus.com>>
Sent: Wednesday, October 26, 2016 08:22 PM
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

Also, your component should definitely not have a waiting thread which 
discovers devices. The devices should register services which are injected into 
the component. The injection can be used to trigger an action at that time. 
This is known as the whiteboard pattern - bundles register a service so that 
they can be discovered and used by another component.

Regards,

Tim


On 26 Oct 2016, at 11:20, Neil Bartlett 
mailto:njbartl...@gmail.com>> wrote:

You don't invoke the activate/deactivate methods yourself. They are invoked by 
the SCR at the appropriate time, assuming they have been correctly declared.

On 26 Oct 2016, at 09:20, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Please find reply inline...

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action"? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
Tried this too..disabled and enabled... still no good result...


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Timothy Ward 
Sent: 26 October 2016 15:03:30
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

Note that you can also bounce the component by disabling and then enabling it.

scr:disable com.wipro.iot.Alljoyn
scr:enable com.wipro.iot.Alljoyn


This will deactivate and then re-activate the component.

Regards,

Tim

On 26 Oct 2016, at 11:30, Daghan ACAY 
mailto:daghana...@hotmail.com>> wrote:


Another thing i do is put a break point at the line, e.g. activate method in 
your case, and run it in debug mode. It is more reliable than logs on console.

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: Wednesday, October 26, 2016 08:27 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


I will just get a wild guess at it.

DS component start time is not deterministic. That is your component can start 
first in all components, in the middle or the last.

I see you are using debug run which starts a lot components and prints out to 
log. I say your "starting..." can be printed earlier in console. Please run 
again with debug and scroll up.  I have a feeling you will find "starting..."

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Timothy Ward mailto:tim.w...@paremus.com>>
Sent: Wednesday, October 26, 2016 08:22 PM
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

Also, your component should definitely not have a waiting thread which 
discovers devices. The devices should register services which are injected into 
the component. The injection can be used to trigger an action at that time. 
This is known as the whiteboard pattern - bundles register a service so that 
they can be discovered and used by another component.

Regards,

Tim


On 26 Oct 2016, at 11:20, Neil Bartlett 
mailto:njbartl...@gmail.com>> wrote:

You don’t invoke the activate/deactivate methods yourself. They are invoked by 
the SCR at the appropriate time, assuming they have been correctly declared.

On 26 Oct 2016, at 09:20, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Please find reply inline…

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action”? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the network. That part is written (not 
tested).]

As for your current problem - is that code snippet really the component? The 
output indicates that you have a deactivate method defined as well.
Me: I have written a dummy deactivate method as well. It does nothing. My 
intention is to somehow invoke this function in this bundle and see what 
happens going forward when my java code executes. To start with I have just 
written a dummy print statement “starting….”

Regards,

Tim


On 26 Oct 2016, at 09:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external sour

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
I did this..Put a breakpoint at the print..anad ran it usin debug osgi ...I did 
not get any different result...


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Daghan ACAY 
Sent: 26 October 2016 15:00:17
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

Another thing i do is put a break point at the line, e.g. activate method in 
your case, and run it in debug mode. It is more reliable than logs on console.

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Daghan ACAY 
Sent: Wednesday, October 26, 2016 08:27 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


I will just get a wild guess at it.

DS component start time is not deterministic. That is your component can start 
first in all components, in the middle or the last.

I see you are using debug run which starts a lot components and prints out to 
log. I say your "starting..." can be printed earlier in console. Please run 
again with debug and scroll up.  I have a feeling you will find "starting..."

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Timothy Ward 
Sent: Wednesday, October 26, 2016 08:22 PM
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate

Also, your component should definitely not have a waiting thread which 
discovers devices. The devices should register services which are injected into 
the component. The injection can be used to trigger an action at that time. 
This is known as the whiteboard pattern - bundles register a service so that 
they can be discovered and used by another component.

Regards,

Tim


On 26 Oct 2016, at 11:20, Neil Bartlett 
mailto:njbartl...@gmail.com>> wrote:

You don’t invoke the activate/deactivate methods yourself. They are invoked by 
the SCR at the appropriate time, assuming they have been correctly declared.

On 26 Oct 2016, at 09:20, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Please find reply inline…

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action”? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the network. That part is written (not 
tested).]

As for your current problem - is that code snippet really the component? The 
output indicates that you have a deactivate method defined as well.
Me: I have written a dummy deactivate method as well. It does nothing. My 
intention is to somehow invoke this function in this bundle and see what 
happens going forward when my java code executes. To start with I have just 
written a dummy print statement “starting….”

Regards,

Tim


On 26 Oct 2016, at 09:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
I note that there are a number of other DS components present - are any of the 
others showing the same issue?

I’m making a guess here, but do any of the other components have Activate 
methods which can block the activation Thread?

Felix SCR owns a background worker thread which is used for a number of 
different tasks. In components like this one the thread will be u

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
I did guess this too But, unfortunately.. I did not find it anywhere in my 
console...even after clearing my console...



Please see console input...below...




2016-10-26 15:11:08.939:INFO::main: Logging initialized @1153ms
2016-10-26 15:11:08.975:INFO:oejs.Server:main: jetty-9.2.12.v20150709

Welcome to Apache Felix Gogo

g! 2016-10-26 15:11:09.051:INFO:oejsh.ContextHandler:main: Started 
o.e.j.s.ServletContextHandler@b06251{/,null,AVAILABLE}
2016-10-26 15:11:09.052:INFO:oejs.Server:main: Started @1266ms
2016-10-26 15:11:09.070:INFO:oejs.ServerConnector:main: Started 
ServerConnector@149bf93{HTTP/1.1}{0.0.0.0:8080}
[INFO] Started Jetty 9.2.12.v20150709 at port(s) HTTP:8080 on context path /





From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Daghan ACAY 
Sent: 26 October 2016 14:57:36
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

I will just get a wild guess at it.

DS component start time is not deterministic. That is your component can start 
first in all components, in the middle or the last.

I see you are using debug run which starts a lot components and prints out to 
log. I say your "starting..." can be printed earlier in console. Please run 
again with debug and scroll up.  I have a feeling you will find "starting..."

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: Timothy Ward 
Sent: Wednesday, October 26, 2016 08:22 PM
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate

Also, your component should definitely not have a waiting thread which 
discovers devices. The devices should register services which are injected into 
the component. The injection can be used to trigger an action at that time. 
This is known as the whiteboard pattern - bundles register a service so that 
they can be discovered and used by another component.

Regards,

Tim


On 26 Oct 2016, at 11:20, Neil Bartlett 
mailto:njbartl...@gmail.com>> wrote:

You don’t invoke the activate/deactivate methods yourself. They are invoked by 
the SCR at the appropriate time, assuming they have been correctly declared.

On 26 Oct 2016, at 09:20, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Please find reply inline…

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action”? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the network. That part is written (not 
tested).]

As for your current problem - is that code snippet really the component? The 
output indicates that you have a deactivate method defined as well.
Me: I have written a dummy deactivate method as well. It does nothing. My 
intention is to somehow invoke this function in this bundle and see what 
happens going forward when my java code executes. To start with I have just 
written a dummy print statement “starting….”

Regards,

Tim


On 26 Oct 2016, at 09:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
I note that there are a number of other DS components present - are any of the 
others showing the same issue?

I’m making a guess here, but do any of the other com

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
True..But the problem is that it is not getting invoked..for some reason...may 
be some issue in the way it is declared..the DS is used..


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Neil Bartlett 
Sent: 26 October 2016 14:50:22
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

You don’t invoke the activate/deactivate methods yourself. They are invoked by 
the SCR at the appropriate time, assuming they have been correctly declared.

On 26 Oct 2016, at 09:20, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Please find reply inline…

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action”? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the network. That part is written (not 
tested).]

As for your current problem - is that code snippet really the component? The 
output indicates that you have a deactivate method defined as well.
Me: I have written a dummy deactivate method as well. It does nothing. My 
intention is to somehow invoke this function in this bundle and see what 
happens going forward when my java code executes. To start with I have just 
written a dummy print statement “starting….”

Regards,

Tim


On 26 Oct 2016, at 09:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
I note that there are a number of other DS components present - are any of the 
others showing the same issue?

I’m making a guess here, but do any of the other components have Activate 
methods which can block the activation Thread?

Felix SCR owns a background worker thread which is used for a number of 
different tasks. In components like this one the thread will be used to invoke 
the activate method. If a component is blocks that thread then it may cause 
your whole SCR to get “stuck”. This is one of several reasons why activate 
methods should not block for long periods.

Your problem may be totally unrelated to this, but it is worth checking.

Regards,

Tim


On 26 Oct 2016, at 09:11, 
manoj.vrajam...@wipro.com wrote:

Please find my code snippet + the scr diagnostics ..below:


@Component(name = "com.wipro.iot.Alljoyn", immediate = true)
public class AlljoynImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}




g!
g! scr:list
 Name  BundleId DefaultEnabled
[com.wipro.iot.Alljoyn] [   6] [true]
[com.wipro.iot.DeviceManager] [   1] [true]
[com.wipro.iot.GatewayDevice] [   2] [true]
[com.wipro.iot.HueLight] [   3] [true]
[com.wipro.iot.LampDevice] [   4] [true]
[com.wipro.iot.MobilePhone] [   5] [true]
[com.wipro.iot.poc] [   7] [true]
[org.eclipse.equinox.event] [  18] [true]
[osgi.enroute.configurer.simple.provider.Configurer] [  22] [true]
[osgi.enroute.dto.bndlib.provider.DTOsProvider] [  23] [true]
[osgi.enroute.logger.simple.provider.LoggerAdminImpl] [  26] [true]
[osgi.enroute.logger.simple.provider.LoggerComponentImpl] [  26] [true]
[osgi.enroute.rest.simple] [  27] [true]
[osgi.enroute.simple.server] [  29] [true]
[osgi.executor.provider] [  24] [true]
g!
g!
g!
g! scr:info com.wipro.iot.Alljoyn
*** Bundle: com.wipro.iot.alljoyn.adapter (6)
Component Description:
  Name: com

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
Please find reply inline…

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Timothy Ward
Sent: 26 October 2016 13:20
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **
An activate method is able to start its own threads, but it sounds like this 
may not be the right approach for you.
Me: Oh..okay..

What do you mean when you say "which would sleep and wait for others to join 
before proceeding for next action”? This sounds a lot like you should be using 
the OSGi service registry and referencing services rather than sleeping. That 
way your activate method will not need to wait.
Me: Actually my plan is to wait on sleep to discover devices.  [ I get a 
callback when I other devices join the network. That part is written (not 
tested).]

As for your current problem - is that code snippet really the component? The 
output indicates that you have a deactivate method defined as well.
Me: I have written a dummy deactivate method as well. It does nothing. My 
intention is to somehow invoke this function in this bundle and see what 
happens going forward when my java code executes. To start with I have just 
written a dummy print statement “starting….”

Regards,

Tim


On 26 Oct 2016, at 09:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
I note that there are a number of other DS components present - are any of the 
others showing the same issue?

I’m making a guess here, but do any of the other components have Activate 
methods which can block the activation Thread?

Felix SCR owns a background worker thread which is used for a number of 
different tasks. In components like this one the thread will be used to invoke 
the activate method. If a component is blocks that thread then it may cause 
your whole SCR to get “stuck”. This is one of several reasons why activate 
methods should not block for long periods.

Your problem may be totally unrelated to this, but it is worth checking.

Regards,

Tim


On 26 Oct 2016, at 09:11, 
manoj.vrajam...@wipro.com wrote:

Please find my code snippet + the scr diagnostics ..below:


@Component(name = "com.wipro.iot.Alljoyn", immediate = true)
public class AlljoynImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}




g!
g! scr:list
 Name  BundleId DefaultEnabled
[com.wipro.iot.Alljoyn] [   6] [true]
[com.wipro.iot.DeviceManager] [   1] [true]
[com.wipro.iot.GatewayDevice] [   2] [true]
[com.wipro.iot.HueLight] [   3] [true]
[com.wipro.iot.LampDevice] [   4] [true]
[com.wipro.iot.MobilePhone] [   5] [true]
[com.wipro.iot.poc] [   7] [true]
[org.eclipse.equinox.event] [  18] [true]
[osgi.enroute.configurer.simple.provider.Configurer] [  22] [true]
[osgi.enroute.dto.bndlib.provider.DTOsProvider] [  23] [true]
[osgi.enroute.logger.simple.provider.LoggerAdminImpl] [  26] [true]
[osgi.enroute.logger.simple.provider.LoggerComponentImpl] [  26] [true]
[osgi.enroute.rest.simple] [  27] [true]
[osgi.enroute.simple.server] [  29] [true]
[osgi.executor.provider] [  24] [true]
g!
g!
g!
g! scr:info com.wipro.iot.Alljoyn
*** Bundle: com.wipro.iot.alljoyn.adapter (6)
Component Description:
  Name: com.wipro.iot.Alljoyn
  Default State: enabled
  Activation: immediate
  Configuration Policy: optional
  Activate Method: activate
  Deactivate Method: deactivate
  Modified Method: -
  Configuration Pid: [com.wipro.iot.Alljoyn]
  Services:   Service Scope: null
  Properties:
  Component Configuration:
ComponentId: 5
State: satisfied
  Properties:
component.id = 5
component.name = com.wipro.iot.Alljoyn
g!
g!
g!


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Tim Ward mailto:tim.w...@paremus.com>>
Sent: 26 October 2016 12:04:44
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Understand

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
No…none of the others have activate() in them.. This is the first time I am 
writing an activate() method…

Plaese note: I just want a method in this bundle to be invoked on running the 
framework. I thought activate() would be the right one. But I understand from 
your comments that activate should not have a thread sleeping (which I 
eventually planned). So, then activate() would not help me, right ?

Could you propose as to what I should do alternatively to invoke a function 
(which would sleep and wait for others to join before proceeding for next 
action) on start up?


From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Timothy Ward
Sent: 26 October 2016 13:03
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **
I note that there are a number of other DS components present - are any of the 
others showing the same issue?

I’m making a guess here, but do any of the other components have Activate 
methods which can block the activation Thread?

Felix SCR owns a background worker thread which is used for a number of 
different tasks. In components like this one the thread will be used to invoke 
the activate method. If a component is blocks that thread then it may cause 
your whole SCR to get “stuck”. This is one of several reasons why activate 
methods should not block for long periods.

Your problem may be totally unrelated to this, but it is worth checking.

Regards,

Tim


On 26 Oct 2016, at 09:11, 
manoj.vrajam...@wipro.com wrote:

Please find my code snippet + the scr diagnostics ..below:


@Component(name = "com.wipro.iot.Alljoyn", immediate = true)
public class AlljoynImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}




g!
g! scr:list
 Name  BundleId DefaultEnabled
[com.wipro.iot.Alljoyn] [   6] [true]
[com.wipro.iot.DeviceManager] [   1] [true]
[com.wipro.iot.GatewayDevice] [   2] [true]
[com.wipro.iot.HueLight] [   3] [true]
[com.wipro.iot.LampDevice] [   4] [true]
[com.wipro.iot.MobilePhone] [   5] [true]
[com.wipro.iot.poc] [   7] [true]
[org.eclipse.equinox.event] [  18] [true]
[osgi.enroute.configurer.simple.provider.Configurer] [  22] [true]
[osgi.enroute.dto.bndlib.provider.DTOsProvider] [  23] [true]
[osgi.enroute.logger.simple.provider.LoggerAdminImpl] [  26] [true]
[osgi.enroute.logger.simple.provider.LoggerComponentImpl] [  26] [true]
[osgi.enroute.rest.simple] [  27] [true]
[osgi.enroute.simple.server] [  29] [true]
[osgi.executor.provider] [  24] [true]
g!
g!
g!
g! scr:info com.wipro.iot.Alljoyn
*** Bundle: com.wipro.iot.alljoyn.adapter (6)
Component Description:
  Name: com.wipro.iot.Alljoyn
  Default State: enabled
  Activation: immediate
  Configuration Policy: optional
  Activate Method: activate
  Deactivate Method: deactivate
  Modified Method: -
  Configuration Pid: [com.wipro.iot.Alljoyn]
  Services:   Service Scope: null
  Properties:
  Component Configuration:
ComponentId: 5
State: satisfied
  Properties:
component.id = 5
component.name = com.wipro.iot.Alljoyn
g!
g!
g!


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Tim Ward mailto:tim.w...@paremus.com>>
Sent: 26 October 2016 12:04:44
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
Manoj,

As Bernd suggested, it would be a good idea to run the Felix SCR diagnostic 
commands.

scr:list will list the DS components in the runtime. If you don't see your 
component in the output then you need to check the bundle you're building to 
see if you've forgotten to include the DS component.

scr:info  will give detailed information about the component, 
including what state it is in.

Regards,

Tim

Sent from my iPhone

On 26 Oct 2016, at 07:31, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:
Bernd…I am on Enroute Eclipse/Bndtools and clicking on “Debug OSGi” to run the 
application.

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Bernd Eckenfels
Sent: 26 October 2016 10:55
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate

** This mail has been sent from an external source **
How do you build and install your bundle? Make sure the resulting JAR actually 
contains the SCR descriptor for the component and also ensure the DS service is 
actually available in the runtime. Other than that, the actual code can be 
correct (depending on your actual imports which was not shown).

If this contains Felix Services and gogo Shell you can use scr:list command to 
verify.
Gruss
Bernd
--
http://bernd.eckenfels.net

Re: [osgi-dev] Understanding activate

2016-10-26 Thread manoj.vrajamani
Please find my code snippet + the scr diagnostics ..below:


@Component(name = "com.wipro.iot.Alljoyn", immediate = true)
public class AlljoynImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}




g!
g! scr:list
 Name  BundleId DefaultEnabled
[com.wipro.iot.Alljoyn] [   6] [true]
[com.wipro.iot.DeviceManager] [   1] [true]
[com.wipro.iot.GatewayDevice] [   2] [true]
[com.wipro.iot.HueLight] [   3] [true]
[com.wipro.iot.LampDevice] [   4] [true]
[com.wipro.iot.MobilePhone] [   5] [true]
[com.wipro.iot.poc] [   7] [true]
[org.eclipse.equinox.event] [  18] [true]
[osgi.enroute.configurer.simple.provider.Configurer] [  22] [true]
[osgi.enroute.dto.bndlib.provider.DTOsProvider] [  23] [true]
[osgi.enroute.logger.simple.provider.LoggerAdminImpl] [  26] [true]
[osgi.enroute.logger.simple.provider.LoggerComponentImpl] [  26] [true]
[osgi.enroute.rest.simple] [  27] [true]
[osgi.enroute.simple.server] [  29] [true]
[osgi.executor.provider] [  24] [true]
g!
g!
g!
g! scr:info com.wipro.iot.Alljoyn
*** Bundle: com.wipro.iot.alljoyn.adapter (6)
Component Description:
  Name: com.wipro.iot.Alljoyn
  Default State: enabled
  Activation: immediate
  Configuration Policy: optional
  Activate Method: activate
  Deactivate Method: deactivate
  Modified Method: -
  Configuration Pid: [com.wipro.iot.Alljoyn]
  Services:   Service Scope: null
  Properties:
  Component Configuration:
ComponentId: 5
State: satisfied
  Properties:
component.id = 5
component.name = com.wipro.iot.Alljoyn
g!
g!
g!



From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Tim Ward 
Sent: 26 October 2016 12:04:44
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **

Manoj,

As Bernd suggested, it would be a good idea to run the Felix SCR diagnostic 
commands.

scr:list will list the DS components in the runtime. If you don't see your 
component in the output then you need to check the bundle you're building to 
see if you've forgotten to include the DS component.

scr:info  will give detailed information about the component, 
including what state it is in.

Regards,

Tim

Sent from my iPhone

On 26 Oct 2016, at 07:31, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Bernd…I am on Enroute Eclipse/Bndtools and clicking on “Debug OSGi” to run the 
application.

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Bernd Eckenfels
Sent: 26 October 2016 10:55
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **
How do you build and install your bundle? Make sure the resulting JAR actually 
contains the SCR descriptor for the component and also ensure the DS service is 
actually available in the runtime. Other than that, the actual code can be 
correct (depending on your actual imports which was not shown).

If this contains Felix Services and gogo Shell you can use scr:list command to 
verify.
Gruss
Bernd
--
http://bernd.eckenfels.net



On Wed, Oct 26, 2016 at 7:07 AM +0200, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Hi All,

@Component(immediate = true)
public class SampleImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}


How to invoke this ? activate() is not getting invoked when I run this simple 
application.



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

Re: [osgi-dev] Understanding activate

2016-10-25 Thread manoj.vrajamani
Bernd…I am on Enroute Eclipse/Bndtools and clicking on “Debug OSGi” to run the 
application.

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Bernd Eckenfels
Sent: 26 October 2016 10:55
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **
How do you build and install your bundle? Make sure the resulting JAR actually 
contains the SCR descriptor for the component and also ensure the DS service is 
actually available in the runtime. Other than that, the actual code can be 
correct (depending on your actual imports which was not shown).

If this contains Felix Services and gogo Shell you can use scr:list command to 
verify.
Gruss
Bernd
--
http://bernd.eckenfels.net



On Wed, Oct 26, 2016 at 7:07 AM +0200, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Hi All,

@Component(immediate = true)
public class SampleImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}


How to invoke this ? activate() is not getting invoked when I run this simple 
application.



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Understanding activate

2016-10-25 Thread manoj.vrajamani
The application and DS are very much present and in active state (checked in 
the gogo shell (lb command) )

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Bernd Eckenfels
Sent: 26 October 2016 10:55
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Understanding activate


** This mail has been sent from an external source **
How do you build and install your bundle? Make sure the resulting JAR actually 
contains the SCR descriptor for the component and also ensure the DS service is 
actually available in the runtime. Other than that, the actual code can be 
correct (depending on your actual imports which was not shown).

If this contains Felix Services and gogo Shell you can use scr:list command to 
verify.
Gruss
Bernd
--
http://bernd.eckenfels.net



On Wed, Oct 26, 2016 at 7:07 AM +0200, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Hi All,

@Component(immediate = true)
public class SampleImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}


How to invoke this ? activate() is not getting invoked when I run this simple 
application.



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Understanding activate

2016-10-25 Thread manoj.vrajamani
Hi All,

@Component(immediate = true)
public class SampleImpl {

@Activate
public void activate()
{
System.out.println("starting.");
}
}


How to invoke this ? activate() is not getting invoked when I run this simple 
application.


Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] provider and adapter

2016-10-24 Thread manoj.vrajamani
Hi,

.provider project provides a service. It gives an impl for the interface.

But, what if .adapter project is written for an interface ? this also gives an 
impl. But it doesn't provide the service.. (I can't create an @reference 
interface object - cannot resolve)

What's the difference here when we do .provider project and a .adapter project?

Thanks,
Manoj



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Inter bundle call ?

2016-10-23 Thread manoj.vrajamani
Hi,

Using Enroute/Bndtools/Eclipse/Linux:


* I have created an .adapter Bnd OSGi Project which has some java 
source code in it (that includes a java main method).

* Wrapped in some plain java jars as libraries (support libraries for 
this source code)

* This bundle is ready and running in the Run Bundles list.


* Now, how do I invoke the main method from any other Bundle in the 
project?


Please provide some pointers...

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-21 Thread manoj.vrajamani
No..it was saying invalid property key from the beginning..

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 21 October 2016 14:28
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
How come you did not see this in the editor? Didn’t it give a warning/error?

Kind regards,

Peter Kriens

On 21 okt. 2016, at 10:17, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Cool..that resolved the error..now I can proceed with the tutorial.. Thanks a 
lot Toni ☺

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Toni Menzel
Sent: 21 October 2016 13:42
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

** This mail has been sent from an external source **
You are missing a \ at the line before. Correct:
-buildpath:  \
osgi.enroute.base.api;version=1.0 \
libs/alljoyn.jar;version=file

Toni Menzel
[Image removed by sender.]
Developer Advocates - The Rebaze Way
www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:55 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Still no good results ☺

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Toni Menzel
Sent: 21 October 2016 13:21
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>

Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

** This mail has been sent from an external source **
ah and remove the slash. so:
libs/alljoyn.jar;version=FILE


Toni Menzel
[Image removed by sender.]
Developer Advocates - The Rebaze Way
www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:50 AM, Toni Menzel 
mailto:toni.men...@rebaze.com>> wrote:
Is there a dot in front of the path? "./libs/alljoyn.jar;version=file " ? Try 
removing that.
Also i remember using version=FILE (all caps). Maybe you try this too. Don't 
know if this is case sensitive.

Toni Menzel
[Image removed by sender.]
Developer Advocates - The Rebaze Way
www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:46 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:
I did try this But it still did not take...saying invalid property key..   
(Put libs folder..just like in the same level as generated folder in the 
package.
Please take a look at my source file of bnd.bnd



#
#  BUNDLE
#


Bundle-Version:1.0.0.${tstamp}
Bundle-Description: \
A bundle with a provider. Notice that this provider exports the API 
package. \
It also provides a JUnit test and it can be run standalone. \
\
${warning;Please update this Bundle-Description in 
com.wipro.iot.alljoyn.adapter/bnd.bnd}

Private-Package:  \
com.wipro.iot.alljoyn.adapter

-classpath:libs/alljoyn.jar;version=file

Export-Package: com.wipro.iot.alljoyn.*;version=1.0

Import-Package:

-buildpath:  \
osgi.enroute.base.api;version=1.0
./libs/alljoyn.jar;version=file  --> 
error line

-testpath: \
osgi.enroute.junit.wrapper;version=4.12

-includeresource: {readme.md}


-runrequires:  \
osgi.identity;filter:='(osgi.identity=com.wipro.iot.alljoyn.adapter)'

-runbundles: \
${error;Resolve first}


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Timothy Ward mailto:tim.w...@paremus.com>>
Sent: 21 October 2016 12:26:05
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

** This mail has been sent from an external source **
Manoj,

You can add the jar file into a folder in your project and point at it using a 
relative path and setting the version to be “file”, e.g.

lib/toWrap.jar;version=file

Regards,

Tim

On 21 Oct 2016, at 
07:46,manoj.vrajam...@wipro.com wrote:

Hi all,

I was trying the http://enroute.osgi.org/tutorial_wrap/200-project.html 
tutorial (for Plain Jar to OSGi Bundle conversion)

The step is to add a local jar into the Build Path of bnd.bnd file.

In fact, I was trying to add a local jar into the "Repository Local"  (so that 
it can be added later to the above Build Path of bnd.bnd ) but failed because 
it does not accept plain jars and errors saying *Not a Bundle jar*

How do I proceed from here ? What do I do ?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
th

Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-21 Thread manoj.vrajamani
Cool..that resolved the error..now I can proceed with the tutorial.. Thanks a 
lot Toni ☺

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Toni Menzel
Sent: 21 October 2016 13:42
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
You are missing a \ at the line before. Correct:
-buildpath:  \
osgi.enroute.base.api;version=1.0 \
libs/alljoyn.jar;version=file


Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:55 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Still no good results ☺

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Toni Menzel
Sent: 21 October 2016 13:21
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>

Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
ah and remove the slash. so:
libs/alljoyn.jar;version=FILE



Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:50 AM, Toni Menzel 
mailto:toni.men...@rebaze.com>> wrote:
Is there a dot in front of the path? "./libs/alljoyn.jar;version=file " ? Try 
removing that.
Also i remember using version=FILE (all caps). Maybe you try this too. Don't 
know if this is case sensitive.


Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:46 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:

I did try this But it still did not take...saying invalid property key..   
(Put libs folder..just like in the same level as generated folder in the 
package.

Please take a look at my source file of bnd.bnd






#
#  BUNDLE
#


Bundle-Version:1.0.0.${tstamp}
Bundle-Description: \
A bundle with a provider. Notice that this provider exports the API 
package. \
It also provides a JUnit test and it can be run standalone. \
\
${warning;Please update this Bundle-Description in 
com.wipro.iot.alljoyn.adapter/bnd.bnd}

Private-Package:  \
com.wipro.iot.alljoyn.adapter

-classpath:libs/alljoyn.jar;version=file

Export-Package: com.wipro.iot.alljoyn.*;version=1.0

Import-Package:

-buildpath:  \
osgi.enroute.base.api;version=1.0
./libs/alljoyn.jar;version=file  --> 
error line

-testpath: \
osgi.enroute.junit.wrapper;version=4.12

-includeresource: {readme.md}


-runrequires:  \
osgi.identity;filter:='(osgi.identity=com.wipro.iot.alljoyn.adapter)'

-runbundles: \
${error;Resolve first}


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Timothy Ward mailto:tim.w...@paremus.com>>
Sent: 21 October 2016 12:26:05
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
Manoj,

You can add the jar file into a folder in your project and point at it using a 
relative path and setting the version to be “file”, e.g.

lib/toWrap.jar;version=file

Regards,

Tim

On 21 Oct 2016, at 07:46, 
manoj.vrajam...@wipro.com wrote:

Hi all,

I was trying the http://enroute.osgi.org/tutorial_wrap/200-project.html 
tutorial (for Plain Jar to OSGi Bundle conversion)

The step is to add a local jar into the Build Path of bnd.bnd file.

In fact, I was trying to add a local jar into the "Repository Local"  (so that 
it can be added later to the above Build Path of bnd.bnd ) but failed because 
it does not accept plain jars and errors saying *Not a Bundle jar*

How do I proceed from here ? What do I do ?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and de

Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-21 Thread manoj.vrajamani
Still no good results ☺

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Toni Menzel
Sent: 21 October 2016 13:21
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
ah and remove the slash. so:
libs/alljoyn.jar;version=FILE



Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:50 AM, Toni Menzel 
mailto:toni.men...@rebaze.com>> wrote:
Is there a dot in front of the path? "./libs/alljoyn.jar;version=file " ? Try 
removing that.
Also i remember using version=FILE (all caps). Maybe you try this too. Don't 
know if this is case sensitive.


Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Fri, Oct 21, 2016 at 9:46 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:

I did try this But it still did not take...saying invalid property key..   
(Put libs folder..just like in the same level as generated folder in the 
package.

Please take a look at my source file of bnd.bnd






#
#  BUNDLE
#


Bundle-Version:1.0.0.${tstamp}
Bundle-Description: \
A bundle with a provider. Notice that this provider exports the API 
package. \
It also provides a JUnit test and it can be run standalone. \
\
${warning;Please update this Bundle-Description in 
com.wipro.iot.alljoyn.adapter/bnd.bnd}

Private-Package:  \
com.wipro.iot.alljoyn.adapter

-classpath:libs/alljoyn.jar;version=file

Export-Package: com.wipro.iot.alljoyn.*;version=1.0

Import-Package:

-buildpath:  \
osgi.enroute.base.api;version=1.0
./libs/alljoyn.jar;version=file  --> 
error line

-testpath: \
osgi.enroute.junit.wrapper;version=4.12

-includeresource: {readme.md}


-runrequires:  \
osgi.identity;filter:='(osgi.identity=com.wipro.iot.alljoyn.adapter)'

-runbundles: \
${error;Resolve first}


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Timothy Ward mailto:tim.w...@paremus.com>>
Sent: 21 October 2016 12:26:05
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **
Manoj,

You can add the jar file into a folder in your project and point at it using a 
relative path and setting the version to be “file”, e.g.

lib/toWrap.jar;version=file

Regards,

Tim

On 21 Oct 2016, at 07:46, 
manoj.vrajam...@wipro.com wrote:

Hi all,

I was trying the http://enroute.osgi.org/tutorial_wrap/200-project.html 
tutorial (for Plain Jar to OSGi Bundle conversion)

The step is to add a local jar into the Build Path of bnd.bnd file.

In fact, I was trying to add a local jar into the "Repository Local"  (so that 
it can be added later to the above Build Path of bnd.bnd ) but failed because 
it does not accept plain jars and errors saying *Not a Bundle jar*

How do I proceed from here ? What do I do ?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. 
www.wipro.com___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should chec

Re: [osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-21 Thread manoj.vrajamani
I did try this But it still did not take...saying invalid property key..   
(Put libs folder..just like in the same level as generated folder in the 
package.

Please take a look at my source file of bnd.bnd




#
#  BUNDLE
#


Bundle-Version:1.0.0.${tstamp}
Bundle-Description: \
A bundle with a provider. Notice that this provider exports the API 
package. \
It also provides a JUnit test and it can be run standalone. \
\
${warning;Please update this Bundle-Description in 
com.wipro.iot.alljoyn.adapter/bnd.bnd}

Private-Package:  \
com.wipro.iot.alljoyn.adapter

-classpath:libs/alljoyn.jar;version=file

Export-Package: com.wipro.iot.alljoyn.*;version=1.0

Import-Package:

-buildpath:  \
osgi.enroute.base.api;version=1.0
./libs/alljoyn.jar;version=file  --> 
error line

-testpath: \
osgi.enroute.junit.wrapper;version=4.12

-includeresource: {readme.md}


-runrequires:  \
osgi.identity;filter:='(osgi.identity=com.wipro.iot.alljoyn.adapter)'

-runbundles: \
${error;Resolve first}



From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Timothy Ward 
Sent: 21 October 2016 12:26:05
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Plain Jar to OSGi Bundle conversion


** This mail has been sent from an external source **

Manoj,

You can add the jar file into a folder in your project and point at it using a 
relative path and setting the version to be "file", e.g.

lib/toWrap.jar;version=file

Regards,

Tim

On 21 Oct 2016, at 07:46, 
manoj.vrajam...@wipro.com wrote:

Hi all,

I was trying the http://enroute.osgi.org/tutorial_wrap/200-project.html 
tutorial (for Plain Jar to OSGi Bundle conversion)

The step is to add a local jar into the Build Path of bnd.bnd file.

In fact, I was trying to add a local jar into the "Repository Local"  (so that 
it can be added later to the above Build Path of bnd.bnd ) but failed because 
it does not accept plain jars and errors saying *Not a Bundle jar*

How do I proceed from here ? What do I do ?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. 
www.wipro.com___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-20 Thread manoj.vrajamani
Hi All,


I was trying the https://github.com/stempler/bnd-platform-minimal  for Plain 
Jar to OSGi Bundle conversion.  I am on Ubuntu/Java 8/Gradle 3.1

As I run ./gradlew in a Linux terminal, it goes on to fetch and gradle and 
aborts. Please help. PFA of my modified build.gradle


manoj@manoj-Latitude-E5420:~/IoT 
Framework/Utilities/bnd-platform-minimal-master$ ./gradlew
Downloading https://services.gradle.org/distributions/gradle-2.10-bin.zip

Exception in thread "main" java.net.ConnectException: Connection timed out
at java.net.PlainSocketImpl.socketConnect(Native Method)
at 
java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:350)
at 
java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:206)
at 
java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:188)
at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
at java.net.Socket.connect(Socket.java:589)
at sun.security.ssl.SSLSocketImpl.connect(SSLSocketImpl.java:668)
at sun.security.ssl.BaseSSLSocketImpl.connect(BaseSSLSocketImpl.java:173)
at sun.net.NetworkClient.doConnect(NetworkClient.java:180)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:432)
at sun.net.www.http.HttpClient.openServer(HttpClient.java:527)
at sun.net.www.protocol.https.HttpsClient.(HttpsClient.java:264)
at sun.net.www.protocol.https.HttpsClient.New(HttpsClient.java:367)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.getNewHttpClient(AbstractDelegateHttpsURLConnection.java:191)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1105)
at 
sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:999)
at 
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:177)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1513)
at 
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
at 
sun.net.www.protocol.https.HttpsURLConnectionImpl.getInputStream(HttpsURLConnectionImpl.java:254)
at org.gradle.wrapper.Download.downloadInternal(Download.java:56)
at org.gradle.wrapper.Download.download(Download.java:42)
at org.gradle.wrapper.Install$1.call(Install.java:57)
at org.gradle.wrapper.Install$1.call(Install.java:44)
at 
org.gradle.wrapper.ExclusiveFileAccessManager.access(ExclusiveFileAccessManager.java:65)
at org.gradle.wrapper.Install.createDist(Install.java:44)
at org.gradle.wrapper.WrapperExecutor.execute(WrapperExecutor.java:126)
at org.gradle.wrapper.GradleWrapperMain.main(GradleWrapperMain.java:56)
manoj@manoj-Latitude-E5420:~/IoT 
Framework/Utilities/bnd-platform-minimal-master$


Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com


build.gradle
Description: build.gradle
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Plain Jar to OSGi Bundle conversion

2016-10-20 Thread manoj.vrajamani
Hi all,


I was trying the http://enroute.osgi.org/tutorial_wrap/200-project.html 
tutorial (for Plain Jar to OSGi Bundle conversion)


The step is to add a local jar into the Build Path of bnd.bnd file.


In fact, I was trying to add a local jar into the "Repository Local"  (so that 
it can be added later to the above Build Path of bnd.bnd ) but failed because 
it does not accept plain jars and errors saying *Not a Bundle jar*


How do I proceed from here ? What do I do ?


Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Bndtools/Eclipse Help

2016-10-20 Thread manoj.vrajamani
Humble Request:

http://enroute.osgi.org/tutorial_wrap/050-start  &  
http://enroute.osgi.org/appnotes/native-libraries.html   documentation itself 
is *not clear*/*so messy*. It should rather take a simple example of one .jar 
file and one .so native lib and show a simple step by step procedure to include 
this using BndTools. That would be very handy.

Thanks,
Manoj
From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 18 October 2016 13:09
To: OSGi Developer Mail List 
Subject: RE: [osgi-dev] Bndtools/Eclipse Help

Thanks Toni… Shall take a look ☺

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Toni Menzel
Sent: 18 October 2016 13:06
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Bndtools/Eclipse Help


** This mail has been sent from an external source **
Hi Manoj,

there are no dumb questions. Just lazy mailing lists. ;)
We've got all your mails. No need to resend them just after 24 hours. Be 
patient.

To be honest, i have problems to understand your problem.
Do you want to integrate non-bundle java libraries (jars) in your OSGi 
application? Then all you want is "wrapping" java libraries. Best follow this 
way: http://enroute.osgi.org/tutorial_wrap/050-start.html

You mention ".so" which refers to Native Libraries (not Java lib!!). You may 
want to follow this page: http://enroute.osgi.org/appnotes/native-libraries.html

Let us know if you need anything.

Toni


Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Tue, Oct 18, 2016 at 9:29 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Experts..please reply.. even if it is a dumb question ☺ We are in the learning 
stages.. ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 18 October 2016 10:59
To: 'OSGi Developer Mail List' 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: Bndtools/Eclipse Help

Did not get any reply. Resending… ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 17 October 2016 10:17
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Bndtools/Eclipse Help

Hi All,


1.   I have some plain Java jar files and some java lib files (.so) 

2.   I want to make use these jar/libs in a certain Java app source file 
and form an OSGi bundle out of it.

3.   Further I want to insert this bundle into an existing Enroute/BndTools 
app (I am on eclipse ide) for inter bundle (Enroute app bundle and Java app 
bundle) interaction.

How do I do this (2 second part and 3)?  Please provide some pointers… I am 
using Enroute/Bndtools on Eclipse IDE

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Help

2016-10-20 Thread manoj.vrajamani
Hi all,

I am on Enroute/Bndtools...

I have a java native library (xxx_java.so) which I am plan to load using code 
as below in my .java file.

static {
System.loadlibrary(xxx_java);
}

Now, where, which directory and how do I place/put my xxx_java.so file?

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Query

2016-10-20 Thread manoj.vrajamani
Hi Tim,

I am looking for a proof of concept. So any protocol would suffice.. Do you 
suggest any ready protocols? How about UPnP ?
How do I achieve the same in UPnP?  (or any other – for that matter) ☺

Thanks,
Manoj
From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Tim Ward
Sent: 20 October 2016 13:09
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Query


** This mail has been sent from an external source **
Hi Manoj,

The ZigBee specification is very new (hence it is only available in draft) and 
due to the ZigBee licensing model I don't imagine there are many Open Source 
ZigBee drivers.

It's possible that one of the domain experts from REG will have some options 
for you, but I wouldn't expect a step-by-step guide. It's also possible that 
you'll need to implement at least some part of the stack yourself.

Regards,

Tim

Sent from my iPhone

On 20 Oct 2016, at 08:26, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:
Hi,

I plan to discover and interact with Zigbee devices.
Please help me with a step by step procedure to have/include a Zigbee 
stack/bundle(base driver) in a simple getUpper QST Eclipse app (supposing I 
have a Zigbee dongle to my laptop). I am on a Linux Laptop trying 
Enroute/Bndtools.

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Timothy Ward
Sent: 19 October 2016 16:35
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Query


** This mail has been sent from an external source **
Hi Manoj,

If you’re looking for information about ZigBee then I suggest that you look at 
the recent OSGi specification draft for the Residential R6 Supplement 
(https://osgi.org/download/osgi.residential-supplement-6.0.0-earlydraft1.pdf). 
UPnP is covered in chapter 111 of the existing OSGi Compendium/Residential 
specifications. I’m sure that you’ll be able to use those as a basis for 
finding further information about public implementations

Regards,

Tim

On 19 Oct 2016, at 09:33, 
manoj.vrajam...@wipro.com wrote:

Hi All,

Do we have an OSGi Bundle for AllJoyn Framework? Do we have an OSGi Bundle for 
any other IoT Framework?
Do we have an OSGi Bundle for any of the protocol stacks like Zigbee/Wi-Fi/UPnP?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. 
www.wipro.com___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Query

2016-10-20 Thread manoj.vrajamani
Hi,

I plan to discover and interact with Zigbee devices.
Please help me with a step by step procedure to have/include a Zigbee 
stack/bundle(base driver) in a simple getUpper QST Eclipse app (supposing I 
have a Zigbee dongle to my laptop). I am on a Linux Laptop trying 
Enroute/Bndtools.

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Timothy Ward
Sent: 19 October 2016 16:35
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Query


** This mail has been sent from an external source **
Hi Manoj,

If you’re looking for information about ZigBee then I suggest that you look at 
the recent OSGi specification draft for the Residential R6 Supplement 
(https://osgi.org/download/osgi.residential-supplement-6.0.0-earlydraft1.pdf). 
UPnP is covered in chapter 111 of the existing OSGi Compendium/Residential 
specifications. I’m sure that you’ll be able to use those as a basis for 
finding further information about public implementations

Regards,

Tim

On 19 Oct 2016, at 09:33, 
manoj.vrajam...@wipro.com wrote:

Hi All,

Do we have an OSGi Bundle for AllJoyn Framework? Do we have an OSGi Bundle for 
any other IoT Framework?
Do we have an OSGi Bundle for any of the protocol stacks like Zigbee/Wi-Fi/UPnP?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. 
www.wipro.com___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Query

2016-10-19 Thread manoj.vrajamani
Hi All,

Do we have an OSGi Bundle for AllJoyn Framework? Do we have an OSGi Bundle for 
any other IoT Framework?
Do we have an OSGi Bundle for any of the protocol stacks like Zigbee/Wi-Fi/UPnP?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Bndtools/Eclipse Help

2016-10-18 Thread manoj.vrajamani
Thanks Toni… Shall take a look ☺

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Toni Menzel
Sent: 18 October 2016 13:06
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Bndtools/Eclipse Help


** This mail has been sent from an external source **
Hi Manoj,

there are no dumb questions. Just lazy mailing lists. ;)
We've got all your mails. No need to resend them just after 24 hours. Be 
patient.

To be honest, i have problems to understand your problem.
Do you want to integrate non-bundle java libraries (jars) in your OSGi 
application? Then all you want is "wrapping" java libraries. Best follow this 
way: http://enroute.osgi.org/tutorial_wrap/050-start.html

You mention ".so" which refers to Native Libraries (not Java lib!!). You may 
want to follow this page: http://enroute.osgi.org/appnotes/native-libraries.html

Let us know if you need anything.

Toni


Toni Menzel

[https://docs.google.com/uc?export=download&id=0BxdYipU72utcQ3l6aGJVNF84cWM&revid=0BxdYipU72utcVzF1K1lDOUlxd3A2YjA4VWtPN1VOZVpMWjZvPQ]

Developer Advocates - The Rebaze Way

www.rebaze.de | www.rebaze.com | 
@rebazeio

On Tue, Oct 18, 2016 at 9:29 AM, 
mailto:manoj.vrajam...@wipro.com>> wrote:
Experts..please reply.. even if it is a dumb question ☺ We are in the learning 
stages.. ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 18 October 2016 10:59
To: 'OSGi Developer Mail List' 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: Bndtools/Eclipse Help

Did not get any reply. Resending… ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 17 October 2016 10:17
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Bndtools/Eclipse Help

Hi All,


1.   I have some plain Java jar files and some java lib files (.so) 

2.   I want to make use these jar/libs in a certain Java app source file 
and form an OSGi bundle out of it.

3.   Further I want to insert this bundle into an existing Enroute/BndTools 
app (I am on eclipse ide) for inter bundle (Enroute app bundle and Java app 
bundle) interaction.

How do I do this (2 second part and 3)?  Please provide some pointers… I am 
using Enroute/Bndtools on Eclipse IDE

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Bndtools/Eclipse Help

2016-10-18 Thread manoj.vrajamani
Experts..please reply.. even if it is a dumb question :) We are in the learning 
stages.. :)

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 18 October 2016 10:59
To: 'OSGi Developer Mail List' 
Subject: RE: Bndtools/Eclipse Help

Did not get any reply. Resending... :)

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 17 October 2016 10:17
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Bndtools/Eclipse Help

Hi All,


1.   I have some plain Java jar files and some java lib files (.so) 

2.   I want to make use these jar/libs in a certain Java app source file 
and form an OSGi bundle out of it.

3.   Further I want to insert this bundle into an existing Enroute/BndTools 
app (I am on eclipse ide) for inter bundle (Enroute app bundle and Java app 
bundle) interaction.

How do I do this (2 second part and 3)?  Please provide some pointers... I am 
using Enroute/Bndtools on Eclipse IDE

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Bndtools/Eclipse Help

2016-10-17 Thread manoj.vrajamani
Did not get any reply. Resending... :)

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 17 October 2016 10:17
To: OSGi Developer Mail List 
Subject: Bndtools/Eclipse Help

Hi All,


1.   I have some plain Java jar files and some java lib files (.so) 

2.   I want to make use these jar/libs in a certain Java app source file 
and form an OSGi bundle out of it.

3.   Further I want to insert this bundle into an existing Enroute/BndTools 
app (I am on eclipse ide) for inter bundle (Enroute app bundle and Java app 
bundle) interaction.

How do I do this (2 second part and 3)?  Please provide some pointers... I am 
using Enroute/Bndtools on Eclipse IDE

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Bndtools/Eclipse Help

2016-10-16 Thread manoj.vrajamani
Hi All,


1.   I have some plain Java jar files and some java lib files (.so) 

2.   I want to make use these jar/libs in a certain Java app source file 
and form an OSGi bundle out of it.

3.   Further  I want to insert this bundle into an existing 
Enroute/Bndtools app for inter bundle (Enroute app bundle and Java app bundle) 
interaction.

How do I do this?  Please provide some pointers... I am using Enroute/Bndtools 
on Eclipse IDE

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-10-12 Thread manoj.vrajamani
Thanks.. Shall do that :)

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 12 October 2016 17:04
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
Hi Manoj,

This list is for general OSGi development, and many of the people here do not 
use Bndtools.

For questions that are purely about how to use Bndtools, it is much better to 
send to the Bndtools mailing list. See http://bndtools.org/community.html

Regards
Neil


On 12 Oct 2016, at 12:29, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

Working on Bndtools/Eclipse in Ubuntu Linux.

I have downloaded cxf-bundle-jaxrs-2.7.18.jar and it is now available on my 
Linux machine Downloads directory.

How do I add it into my Respository ? The Distro 'ADD' button seems to be 
disabled *not* allowimg me to add !!! ( See attachment)

Please suggest..

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Christian Schneider 
mailto:ch...@die-schneider.net>>
Sent: 12 October 2016 16:41:29
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
The jaxrs spec bundle is only a part of the solution. I could tell you how to 
download it and add it to bndtools but that would not give a a running system 
later.
You also need an impl of the spec to provide a full runtime that can later 
execute your service.

Manoj also asked me personally so I will paste my reply for other to pick up 
from there.

Regarding the problem with javax.ws.rs.* imports. This is 
the REST API it is not available by default in java. You need a bundle with the 
REST API to compile your code.
You seem to use the bndtools build. So the first step is to add the jar/bundles 
you need as an index. Your best bet should be the new pom based index that 
Peter explained recently.
The index described by this pom 
https://github.com/apache/cxf-dosgi/tree/master/samples/repository (Use the 
2.0.0 version) should contain all you need.
If you do not know how to add the index to bndtools check the tutorials or ask 
on the bndtools user list. (I guess maybe this can also be answered here as all 
the experts are here).

The next step is to add the jar as a build time dependency. You open the 
bnd.bnd file with the bndtools editor and add the jar in the build tab. This 
should fix the error you see in eclipse.

Christian

On 12.10.2016 11:30, 
manoj.vrajam...@wipro.com wrote:
Yeah..but where do I get this bundle? Download ? Can you tell me the exact 
bundle that I have to download ?
Supposing I download and it is available in the Downloads directory. Should it 
(and similar bundles) be placed in some special directory?
Further, How do I add it into my build path ?

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 12 October 2016 14:56
To: OSGi Developer Mail List 

Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
You need to have the JAX-RS API on your build path.




--

Christian Schneider

http://www.liquid-reality.de



Open Source Architect

http://www.talend.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability fo

Re: [osgi-dev] Help

2016-10-12 Thread manoj.vrajamani
Yeah..but where do I get this bundle? Download ? Can you tell me the exact 
bundle that I have to download ?
Supposing I download and it is available in the Downloads directory. Should it 
(and similar bundles) be placed in some special directory?
Further, How do I add it into my build path ?

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 12 October 2016 14:56
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
You need to have the JAX-RS API on your build path.


On 12 Oct 2016, at 10:24, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Nope !

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 12 October 2016 14:54
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
Do you have the JAX-RS API on your build path?



On 12 Oct 2016, at 08:26, 
manoj.vrajam...@wipro.com wrote:

Hi All,

Please see attachment.. When I import javax.ws.* , I get unresolved errors.. 
How do I correct this ? Any pre-requisites for this?

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-10-12 Thread manoj.vrajamani
Nope !

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 12 October 2016 14:54
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
Do you have the JAX-RS API on your build path?



On 12 Oct 2016, at 08:26, 
manoj.vrajam...@wipro.com wrote:

Hi All,

Please see attachment.. When I import javax.ws.* , I get unresolved errors.. 
How do I correct this ? Any pre-requisites for this?

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-09-30 Thread manoj.vrajamani
Hi All,

I am able to resolve 2nd part . Please help me with the first part…


· How do I set the default root in the Using the enRoute OSGi REST 
provider ? (Basic doubt I have)



· How do I take it to class level and method level !! Basically, If I 
want to use the same method-name for  methods of different classes, then how I 
be able to achieve this. There will be ambiguity as to which method has to be 
called?

E.g. getStatusGet() is present in 4 different classes. (say) . If make a HTTP 
GET to http://localhost:8080/rest/StatusGet , this will give rise to ambiguity.

How do I get over this problem?

Please provide some pointers…

Thanks,
Manoj

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 13:58
To: 'OSGi Developer Mail List' 
Subject: RE: [osgi-dev] Help

Please reply..  Gentle Reminder ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 12:49
To: 'OSGi Developer Mail List' 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Hi All,

Please help. This is urgent..

Using the enRoute OSGi REST provider


1.   How do I set the @Path annotation for my classes and methods?  
Basically, I want to differentiate *HTTP GET* catered by getFoo() methods 
present in different classes. I thought,I can do this based on URI (@Path) 
differentiation.



2.   Secondly, please let me now, how do write a postFoo()function  to 
decipher the JSON data sent via HTTP POST.


Thanks,
Manoj

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 12:05
To: 'OSGi Developer Mail List' 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Also can someone tell me how to specify the @Path annotation. Should we create 
one in the Java package?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 09:27
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Hi All,

In the upper application (QS tutorial) code:

I want to perform a simple HTTP POST http://localhost:8080/rest/

I send the POST request using curl using –d ‘ { Json based structure}‘ for some 
functionality.

Now, How do I write a function in the Upper App so that I can read this json 
data (sent vial curl http post) ?

Need urgent help.

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-09-30 Thread manoj.vrajamani
Please reply..  Gentle Reminder ☺

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 12:49
To: 'OSGi Developer Mail List' 
Subject: RE: [osgi-dev] Help

Hi All,

Please help. This is urgent..

Using the enRoute OSGi REST provider


1.   How do I set the @Path annotation for my classes and methods?  
Basically, I want to differentiate *HTTP GET* catered by getFoo() methods 
present in different classes. I thought,I can do this based on URI (@Path) 
differentiation.



2.   Secondly, please let me now, how do write a postFoo()function  to 
decipher the JSON data sent via HTTP POST.


Thanks,
Manoj

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 12:05
To: 'OSGi Developer Mail List' 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Also can someone tell me how to specify the @Path annotation. Should we create 
one in the Java package?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 09:27
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Hi All,

In the upper application (QS tutorial) code:

I want to perform a simple HTTP POST http://localhost:8080/rest/

I send the POST request using curl using –d ‘ { Json based structure}‘ for some 
functionality.

Now, How do I write a function in the Upper App so that I can read this json 
data (sent vial curl http post) ?

Need urgent help.

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-09-30 Thread manoj.vrajamani
Hi All,

Please help. This is urgent..

Using the enRoute OSGi REST provider


1.   How do I set the @Path annotation for my classes and methods?  
Basically, I want to differentiate *HTTP GET* catered by getFoo() methods 
present in different classes. I thought,I can do this based on URI (@Path) 
differentiation.



2.   Secondly, please let me now, how do write a postFoo()function  to 
decipher the JSON data sent via HTTP POST.


Thanks,
Manoj

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 12:05
To: 'OSGi Developer Mail List' 
Subject: RE: [osgi-dev] Help

Also can someone tell me how to specify the @Path annotation. Should we create 
one in the Java package?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 09:27
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Hi All,

In the upper application (QS tutorial) code:

I want to perform a simple HTTP POST http://localhost:8080/rest/

I send the POST request using curl using –d ‘ { Json based structure}‘ for some 
functionality.

Now, How do I write a function in the Upper App so that I can read this json 
data (sent vial curl http post) ?

Need urgent help.

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-09-29 Thread manoj.vrajamani
Also can someone tell me how to specify the @Path annotation. Should we create 
one in the Java package?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 30 September 2016 09:27
To: OSGi Developer Mail List 
Subject: RE: [osgi-dev] Help

Hi All,

In the upper application (QS tutorial) code:

I want to perform a simple HTTP POST http://localhost:8080/rest/

I send the POST request using curl using –d ‘ { Json based structure}‘ for some 
functionality.

Now, How do I write a function in the Upper App so that I can read this json 
data (sent vial curl http post) ?

Need urgent help.

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-09-29 Thread manoj.vrajamani
Hi All,

In the upper application (QS tutorial) code:

I want to perform a simple HTTP POST http://localhost:8080/rest/

I send the POST request using curl using –d ‘ { Json based structure}‘ for some 
functionality.

Now, How do I write a function in the Upper App so that I can read this json 
data (sent vial curl http post) ?

Need urgent help.

Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Query: Adding a provider/jar to the run bundle

2016-09-26 Thread manoj.vrajamani
Hi All,

I have four providers (.provider) all of them exporting the same API (.api)  
ina certain osgi/enroute/bndtools project.  Correspondingly I have an 
application that attempts to access this service.

NB: I am following the http://enroute.osgi.org/qs/410-exercise-service.html 
style, trying to have a REST API access to the providers/services

Now, when I resolve the application bndrun file, only one provider gets added 
to the RunBundles list. The others are not added.

I have two questions here:


1.   How do I add all the four providers into the RunBundles list ?

2.   If I have an external bundle (say a normal java jar file), then how do 
I add this bundle to interact with this application?


Thanks,
Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Please Help

2016-09-06 Thread manoj.vrajamani
Hi Tim,

It works now... :)
I am able to access the page 
http://localhost:8080/be.iminds.iot.firefly.dashboard/index.html

I would appreciate if you could brief me about this application? That would 
really help.. Thanks.. :)

Thanks,
Manoj
From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Tim Verbelen
Sent: 06 September 2016 13:20
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **
Hi Manoj,

You should not create a Bndtools workspace upfront. The repository itself is a 
self-containing bnd workspace.

So steps to do:
- clone the git repository or extract the downloaded .zip
- open a new clean eclipse workspace
- import projects directly from the directory where you cloned/extracted your 
.zip

You now should have a working workspace.

Another option is to build this project is using command line with gradle. Just 
go into the root directory of the project and execute

./gradlew build

Anyway, I also noticed that the enroute-distro was still pointing at master. It 
only works with enroute v1.0.0. I just fixed it in the git repo, so you might 
want to pull or redownload.

Best regards,

Tim

On 09/06/2016 08:16 AM, 
manoj.vrajam...@wipro.com wrote:

Hi Tim,



*   I have the /home/manoj/Downloads/firefly-master.zip in my local 
Downloads directory (linux)

*   I have created a BndTools Workspace containing a cnf directory and I am 
in the BndTools perspective.

*   Now, how do I import this firefly-master.zip project into this Bndtools 
Workspace for compilation and run ?



Thanks,

Manoj


From: osgi-dev-boun...@mail.osgi.org 
 on 
behalf of Tim Verbelen 

Sent: 06 September 2016 00:27:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **
Hi Manoj,

This repository is a basic example I once created. Although this example was 
built on top of enRoute 1.0, this is not part of / supported by OSGi enRoute in 
any way.

Looking at your first screenshot, it looks like you have checked out the 
repository inside a cnf directory. This is not a correct bnd workspace. You 
should checkout the firefly repository in a separate directory, and then import 
this one directly as your bnd workspace.

Best regards,

Tim



On 09/05/2016 01:47 PM, 
manoj.vrajam...@wipro.com wrote:

I just want to see

https://github.com/ibcn-cloudlet/firefly
running on a Linux/Eclipse/Enroute environment... Need not work 100% per 
se. But it should compile and run at a basic level right?

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 05 September 2016 17:10
To: OSGi Developer Mail List 

Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Does the bundle exist in a repository?

Run Bundles is just a list of bundles. It doesn't say anything about whether 
any of the listed bundles exist.

On 5 Sep 2016 12:15, 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,



Please see attachement.. The Run Bundles shows/lists the org.dyamand.osgi 
bundle..It is very much present in there



Then why the error ?  Please help..Thanks..



-Manoj


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 05 September 2016 13:40:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi All,



I was trying to get the following sample application working in OSGi Enroute.



https://github.com/ibcn-cloudlet/firefly



But I landed up in the problem as attached..



Please help.. Thanks..



-Manoj


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 01 September 2016 13:01:57
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Thanks monaj,

It is good that it is working for you. I noted your feedback and will try to 
put in to the doco.

Cheers
Daghan

Sent by MailWise - See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Thursday, September 1, 2016 02:33 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt 

Re: [osgi-dev] Please Help

2016-09-06 Thread manoj.vrajamani
Hi Tim,


I am able to import the firefly project into BndTools workspace...


I get the following error when I launch the debug.bnd as said in the Readme.md 
of Firefly.


What is this project sample supposedly doing ?  Any pre-requisites? Please 
help.. Thanks..


Thanks,

Manoj





From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 06 September 2016 11:46:29
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi Tim,


*   I have the /home/manoj/Downloads/firefly-master.zip in my local 
Downloads directory (linux)

*   I have created a BndTools Workspace containing a cnf directory and I am 
in the BndTools perspective.

*   Now, how do I import this firefly-master.zip project into this Bndtools 
Workspace for compilation and run ?


Thanks,

Manoj


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Tim Verbelen 
Sent: 06 September 2016 00:27:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi Manoj,

This repository is a basic example I once created. Although this example was 
built on top of enRoute 1.0, this is not part of / supported by OSGi enRoute in 
any way.

Looking at your first screenshot, it looks like you have checked out the 
repository inside a cnf directory. This is not a correct bnd workspace. You 
should checkout the firefly repository in a separate directory, and then import 
this one directly as your bnd workspace.

Best regards,

Tim



On 09/05/2016 01:47 PM, 
manoj.vrajam...@wipro.com wrote:

I just want to see

https://github.com/ibcn-cloudlet/firefly
running on a Linux/Eclipse/Enroute environment... Need not work 100% per se….. 
But it should compile and run at a basic level right?

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 05 September 2016 17:10
To: OSGi Developer Mail List 

Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Does the bundle exist in a repository?

Run Bundles is just a list of bundles. It doesn't say anything about whether 
any of the listed bundles exist.

On 5 Sep 2016 12:15, 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,



Please see attachement.. The Run Bundles shows/lists the org.dyamand.osgi 
bundle..It is very much present in there



Then why the error ?  Please help..Thanks..



-Manoj


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 05 September 2016 13:40:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi All,



I was trying to get the following sample application working in OSGi Enroute.



https://github.com/ibcn-cloudlet/firefly



But I landed up in the problem as attached..



Please help.. Thanks..



-Manoj


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 01 September 2016 13:01:57
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Thanks monaj,

It is good that it is working for you. I noted your feedback and will try to 
put in to the doco.

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Thursday, September 1, 2016 02:33 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt that was missing is:

• Impl class is autogenerated . We have to specify in the tutorial that 
this provider/impl class has to implement the interface/api class that we 
intend to export



I did this and it is working..  :)


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Daghan ACAY
Sent: 01 September 2016 04:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi manoj,

Please do base tutorial. Pay special attention to 
http://enroute.osgi.org/tutorial_base/320-provider.html section "imports". It 
basically says that your provider should export api bundles.

To solve your problem you should drag api bundles from calculated imports to 
exported bundles in your provider project's bnd.bnd file.

Please provide feedback on "quick start tutor

Re: [osgi-dev] Please Help

2016-09-05 Thread manoj.vrajamani
Hi Tim,


*   I have the /home/manoj/Downloads/firefly-master.zip in my local 
Downloads directory (linux)

*   I have created a BndTools Workspace containing a cnf directory and I am 
in the BndTools perspective.

*   Now, how do I import this firefly-master.zip project into this Bndtools 
Workspace for compilation and run ?


Thanks,

Manoj


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Tim Verbelen 
Sent: 06 September 2016 00:27:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi Manoj,

This repository is a basic example I once created. Although this example was 
built on top of enRoute 1.0, this is not part of / supported by OSGi enRoute in 
any way.

Looking at your first screenshot, it looks like you have checked out the 
repository inside a cnf directory. This is not a correct bnd workspace. You 
should checkout the firefly repository in a separate directory, and then import 
this one directly as your bnd workspace.

Best regards,

Tim



On 09/05/2016 01:47 PM, 
manoj.vrajam...@wipro.com wrote:

I just want to see

https://github.com/ibcn-cloudlet/firefly
running on a Linux/Eclipse/Enroute environment... Need not work 100% per se….. 
But it should compile and run at a basic level right?

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 05 September 2016 17:10
To: OSGi Developer Mail List 

Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Does the bundle exist in a repository?

Run Bundles is just a list of bundles. It doesn't say anything about whether 
any of the listed bundles exist.

On 5 Sep 2016 12:15, 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,



Please see attachement.. The Run Bundles shows/lists the org.dyamand.osgi 
bundle..It is very much present in there



Then why the error ?  Please help..Thanks..



-Manoj


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 05 September 2016 13:40:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi All,



I was trying to get the following sample application working in OSGi Enroute.



https://github.com/ibcn-cloudlet/firefly



But I landed up in the problem as attached..



Please help.. Thanks..



-Manoj


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 01 September 2016 13:01:57
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Thanks monaj,

It is good that it is working for you. I noted your feedback and will try to 
put in to the doco.

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Thursday, September 1, 2016 02:33 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt that was missing is:

• Impl class is autogenerated . We have to specify in the tutorial that 
this provider/impl class has to implement the interface/api class that we 
intend to export



I did this and it is working..  :)


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Daghan ACAY
Sent: 01 September 2016 04:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi manoj,

Please do base tutorial. Pay special attention to 
http://enroute.osgi.org/tutorial_base/320-provider.html section "imports". It 
basically says that your provider should export api bundles.

To solve your problem you should drag api bundles from calculated imports to 
exported bundles in your provider project's bnd.bnd file.

Please provide feedback on "quick start tutorial" if this is not clear so we 
can improve it.

Regards
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Wednesday, August 31, 2016 09:34 PM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] Please Help

Hi All,



I am trying to do the "Excercise Services" Section in the Quick S

Re: [osgi-dev] Please Help

2016-09-05 Thread manoj.vrajamani
I just want to see

https://github.com/ibcn-cloudlet/firefly
running on a Linux/Eclipse/Enroute environment... Need not work 100% per se….. 
But it should compile and run at a basic level right?

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 05 September 2016 17:10
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Does the bundle exist in a repository?

Run Bundles is just a list of bundles. It doesn't say anything about whether 
any of the listed bundles exist.

On 5 Sep 2016 12:15, 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,



Please see attachement.. The Run Bundles shows/lists the org.dyamand.osgi 
bundle..It is very much present in there



Then why the error ?  Please help..Thanks..



-Manoj


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 05 September 2016 13:40:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi All,



I was trying to get the following sample application working in OSGi Enroute.



https://github.com/ibcn-cloudlet/firefly



But I landed up in the problem as attached..



Please help.. Thanks..



-Manoj


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 01 September 2016 13:01:57
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Thanks monaj,

It is good that it is working for you. I noted your feedback and will try to 
put in to the doco.

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Thursday, September 1, 2016 02:33 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt that was missing is:

• Impl class is autogenerated . We have to specify in the tutorial that 
this provider/impl class has to implement the interface/api class that we 
intend to export



I did this and it is working..  :)


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Daghan ACAY
Sent: 01 September 2016 04:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi manoj,

Please do base tutorial. Pay special attention to 
http://enroute.osgi.org/tutorial_base/320-provider.html section "imports". It 
basically says that your provider should export api bundles.

To solve your problem you should drag api bundles from calculated imports to 
exported bundles in your provider project's bnd.bnd file.

Please provide feedback on "quick start tutorial" if this is not clear so we 
can improve it.

Regards
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Wednesday, August 31, 2016 09:34 PM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] Please Help

Hi All,



I am trying to do the "Excercise Services" Section in the Quick Start Tutorial. 
I have followed exactly the same steps as said in the Section. But, on 
resolution, I get the following Resolve Error. (please see attachment)



Please help



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destro

Re: [osgi-dev] Please Help

2016-09-05 Thread manoj.vrajamani
Please find the repository from where I took a dump… Basically downloaded as a 
Zip file from this GIT repository.

https://github.com/ibcn-cloudlet/firefly


From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Neil Bartlett
Sent: 05 September 2016 17:10
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Does the bundle exist in a repository?

Run Bundles is just a list of bundles. It doesn't say anything about whether 
any of the listed bundles exist.

On 5 Sep 2016 12:15, 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,



Please see attachement.. The Run Bundles shows/lists the org.dyamand.osgi 
bundle..It is very much present in there



Then why the error ?  Please help..Thanks..



-Manoj


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 05 September 2016 13:40:55
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


Hi All,



I was trying to get the following sample application working in OSGi Enroute.



https://github.com/ibcn-cloudlet/firefly



But I landed up in the problem as attached..



Please help.. Thanks..



-Manoj


From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Daghan ACAY mailto:daghana...@hotmail.com>>
Sent: 01 September 2016 13:01:57
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Thanks monaj,

It is good that it is working for you. I noted your feedback and will try to 
put in to the doco.

Cheers
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Thursday, September 1, 2016 02:33 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt that was missing is:

• Impl class is autogenerated . We have to specify in the tutorial that 
this provider/impl class has to implement the interface/api class that we 
intend to export



I did this and it is working..  :)


From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] 
On Behalf Of Daghan ACAY
Sent: 01 September 2016 04:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi manoj,

Please do base tutorial. Pay special attention to 
http://enroute.osgi.org/tutorial_base/320-provider.html section "imports". It 
basically says that your provider should export api bundles.

To solve your problem you should drag api bundles from calculated imports to 
exported bundles in your provider project's bnd.bnd file.

Please provide feedback on "quick start tutorial" if this is not clear so we 
can improve it.

Regards
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Wednesday, August 31, 2016 09:34 PM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] Please Help

Hi All,



I am trying to do the "Excercise Services" Section in the Quick Start Tutorial. 
I have followed exactly the same steps as said in the Section. But, on 
resolution, I get the following Resolve Error. (please see attachment)



Please help



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any

Re: [osgi-dev] Please Help

2016-09-02 Thread manoj.vrajamani
I did not quite understand this.. Can you please be a little elaborateThat 
would really help...Thanks.. :)

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: Thursday, September 01, 2016 2:59 PM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **
Anywhere where you can specify a bundle you can set the version=file. The bsn 
is then interpreted as a relative file path.

Kind regards,

Peter Kriens

On 1 sep. 2016, at 06:36, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi,

Can we import an external JAR as one of the run-bundles into our project 
workspace ? How do we further interact with that new bundle? Any pointers on 
this? What are the prerequisites for the external JAR? What are the steps to 
include and interact?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Please Help

2016-08-31 Thread manoj.vrajamani
Hi,

Can we import an external JAR as one of the run-bundles into our project 
workspace ? How do we further interact with that new bundle? Any pointers on 
this? What are the prerequisites for the external JAR? What are the steps to 
include and interact?

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Please Help

2016-08-31 Thread manoj.vrajamani
The tutorial is fair enough. It does convey that the Provider has to export the 
API in the bnd.bnd !!  One thing that I felt that was missing is:

· Impl class is autogenerated . We have to specify in the tutorial that 
this provider/impl class has to implement the interface/api class that we 
intend to export



I did this and it is working..  :)


From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Daghan ACAY
Sent: 01 September 2016 04:02
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Please Help


** This mail has been sent from an external source **

Hi manoj,

Please do base tutorial. Pay special attention to 
http://enroute.osgi.org/tutorial_base/320-provider.html section "imports". It 
basically says that your provider should export api bundles.

To solve your problem you should drag api bundles from calculated imports to 
exported bundles in your provider project's bnd.bnd file.

Please provide feedback on "quick start tutorial" if this is not clear so we 
can improve it.

Regards
Daghan

Sent by MailWise – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Wednesday, August 31, 2016 09:34 PM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] Please Help

Hi All,



I am trying to do the "Excercise Services" Section in the Quick Start Tutorial. 
I have followed exactly the same steps as said in the Section. But, on 
resolution, I get the following Resolve Error. (please see attachment)



Please help



Thanks,

Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-08-24 Thread manoj.vrajamani
These links are quite useful.. Thanks a lot :)

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Daghan ACAY
Sent: 24 August 2016 17:27
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **

Monaj,



Run curl with debug, this might help 
http://stackoverflow.com/questions/866946/how-can-i-see-the-request-headers-made-by-curl-when-sending-a-request-to-the-ser



Or use a more user friendly rest client such as Postman 
(https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en).
 You can also start Enroute appliation in debug mode and see of the call is 
routed to your post method.

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-08-24 Thread manoj.vrajamani
Ooops..my bad.. I got the quotes wrong...  (new to Json ☺)  Its working now.. ☺ 
Thanks all ☺

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 24 August 2016 22:16
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
Can you share a workspace where it does not work? It does work when I just 
tried it.

Kind regards,

Peter Kriens

On 24 aug. 2016, at 13:44, 
manoj.vrajam...@wipro.com wrote:

Please help me out..I am stuck at this…  ☹

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 15:37
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: RE: [osgi-dev] Help

Why is POST not returning the Uppercase String? What am I missing here?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 12:33
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help


public String getUpper(String string) {
return string.toUpperCase();
}

public String postUpper(String string) {
return string.toUpperCase();
}

//GET works..See below

manoj@manoj-Latitude-E5420:~$ curl http://localhost:8080/rest/upper/Hello
"HELLO"manoj@manoj-Latitude-E5420:~$

//POST fails...See below ( no error seen)

manoj@manoj-Latitude-E5420:~$ curl -X POST -H 

 "Content-Type:application/json" -d "'Hello'" http://localhost:8080/rest/upper
manoj@manoj-Latitude-E5420:~$


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 10:44:27
To: OSGi Developer Mail List
Subject: RE: [osgi-dev] Help

postValue() did not work either !!

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
You are doing a POST but you declared a PUT.

Kind regards,

Peter Kriens

On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:

I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:
manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **

Hi Manoj,

It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.

The test cases in this project should help:

  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test


Cheers,
=David



On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest…

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachmen

Re: [osgi-dev] Help

2016-08-24 Thread manoj.vrajamani
Please help me out..I am stuck at this...  :(

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 15:37
To: OSGi Developer Mail List 
Subject: RE: [osgi-dev] Help

Why is POST not returning the Uppercase String? What am I missing here?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 12:33
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help



public String getUpper(String string) {
return string.toUpperCase();
}

public String postUpper(String string) {
return string.toUpperCase();
}



//GET works..See below


manoj@manoj-Latitude-E5420:~$ curl http://localhost:8080/rest/upper/Hello
"HELLO"manoj@manoj-Latitude-E5420:~$

//POST fails...See below ( no error seen)

manoj@manoj-Latitude-E5420:~$ curl -X POST -H 

 "Content-Type:application/json" -d "'Hello'" http://localhost:8080/rest/upper
manoj@manoj-Latitude-E5420:~$


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 10:44:27
To: OSGi Developer Mail List
Subject: RE: [osgi-dev] Help


postValue() did not work either !!



From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **

You are doing a POST but you declared a PUT.



Kind regards,



Peter Kriens



On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:



I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:

manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://







From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **



Hi Manoj,



It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.



The test cases in this project should help:



  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test





Cheers,

=David







On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:



Hi All,



The Enroute Quick Start Tutorial sample application helps to invoke the "GET" 
HTTP method by adding methods preceding with "get" like getUpper(), getStatus() 
and so on. to the Application class.



I am trying to test using curl on a Linux terminal. GET works fine.



Now,



I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.



What should I do?  Please suggest...



Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, conf

Re: [osgi-dev] Help

2016-08-24 Thread manoj.vrajamani
Why is POST not returning the Uppercase String? What am I missing here?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 12:33
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help



public String getUpper(String string) {
return string.toUpperCase();
}

public String postUpper(String string) {
return string.toUpperCase();
}



//GET works..See below


manoj@manoj-Latitude-E5420:~$ curl http://localhost:8080/rest/upper/Hello
"HELLO"manoj@manoj-Latitude-E5420:~$

//POST fails...See below ( no error seen)

manoj@manoj-Latitude-E5420:~$ curl -X POST -H 

 "Content-Type:application/json" -d "'Hello'" http://localhost:8080/rest/upper
manoj@manoj-Latitude-E5420:~$


From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 10:44:27
To: OSGi Developer Mail List
Subject: RE: [osgi-dev] Help


postValue() did not work either !!



From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **

You are doing a POST but you declared a PUT.



Kind regards,



Peter Kriens



On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:



I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:

manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://







From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **



Hi Manoj,



It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.



The test cases in this project should help:



  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test





Cheers,

=David







On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:



Hi All,



The Enroute Quick Start Tutorial sample application helps to invoke the "GET" 
HTTP method by adding methods preceding with "get" like getUpper(), getStatus() 
and so on. to the Application class.



I am trying to test using curl on a Linux terminal. GET works fine.



Now,



I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.



What should I do?  Please suggest...



Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attac

Re: [osgi-dev] Help

2016-08-24 Thread manoj.vrajamani

public String getUpper(String string) {
return string.toUpperCase();
}

public String postUpper(String string) {
return string.toUpperCase();
}


//GET works..See below



manoj@manoj-Latitude-E5420:~$ curl http://localhost:8080/rest/upper/Hello
"HELLO"manoj@manoj-Latitude-E5420:~$

//POST fails...See below ( no error seen)

manoj@manoj-Latitude-E5420:~$ curl -X POST -H "Content-Type:application/json" 
-d "'Hello'" http://localhost:8080/rest/upper
manoj@manoj-Latitude-E5420:~$



From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 10:44:27
To: OSGi Developer Mail List
Subject: RE: [osgi-dev] Help


postValue() did not work either !!



From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **

You are doing a POST but you declared a PUT.



Kind regards,



Peter Kriens



On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:



I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:

manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://







From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help



** This mail has been sent from an external source **



Hi Manoj,



It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.



The test cases in this project should help:



  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test





Cheers,

=David







On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:



Hi All,



The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.



I am trying to test using curl on a Linux terminal. GET works fine.



Now,



I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.



What should I do?  Please suggest…



Thanks,

Manoj

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev



The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-

Re: [osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
I have the same code as below... But I am *NOT* able to get back the return 
string (in the method)
It just directly goes to the prompt without any error...
Is there a way to debug the POST request?


-Original Message-
From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 24 August 2016 11:57
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **

You must give it a JSON value:


public String postUpper(String s) {
return s.toUpperCase();
}

curl -X POST -H “Content-Type: application/json" -d '"hello"' 
http://localhost:8080/rest/upper
HELLO$

There is a new version in progress that will be able to help a bit more with 
this.

Then again, this REST API is a simple support for your Javascript code to call 
Java. If you need more control over your REST then a JAX-RS solution might be 
better.

Kind regards,

Peter Kriens


> On 24 aug. 2016, at 05:36, manoj.vrajam...@wipro.com wrote:
>
> I inserted the following method in the existing class:
>
> public String putValue(String string) {
> String status = string;
> return (status + " World");
> }
>
> 2. Tried calling curl --data "param1=Hello"
> http://localhost:8080/rest/value
>
>
> But got the following error:
>
> manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello"
> http://localhost:8080/rest/valuehttp-equiv="Content-Type" content="text/html;charset=ISO-8859-1"/>
> Error 500 
> 
> 
> HTTP ERROR: 500
> Problem accessing /rest/value. Reason:
> java.io.FileNotFoundException: No such method postvalue/0. 
> Available: {getservletname/0=[getservletname/0], 
> getinitparameternames/0=[getinitparameternames/0], 
> getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
> getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
> getservletcontext/0=[getservletcontext/0], 
> getservletinfo/0=[getservletinfo/0], getservletconfig/0=[getservletconfig/0], 
> putvalue/0=[putvalue/0]}
> Powered by Jetty://  
>
> From: osgi-dev-boun...@mail.osgi.org 
> on behalf of David Leangen 
> Sent: 23 August 2016 17:56:18
> To: OSGi Developer Mail List
> Subject: Re: [osgi-dev] Help
>
> ** This mail has been sent from an external source **
>
> Hi Manoj,
>
> It is similar to get. The java method name starts with the http method name, 
> so for instance putUpper() etc.
>
> The test cases in this project should help:
>
>
> https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.
> rest.simple.test
>
>
> Cheers,
> =David
>
>
>
>> On Aug 23, 2016, at 8:36 PM,  
>>  wrote:
>>
>> Hi All,
>>
>> The Enroute Quick Start Tutorial sample application helps to invoke the 
>> “GET” HTTP method by adding methods preceding with “get” like getUpper(), 
>> getStatus() and so on. to the Application class.
>>
>> I am trying to test using curl on a Linux terminal. GET works fine.
>>
>> Now,
>>
>> I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST 
>> API application.
>>
>> What should I do?  Please suggest…
>>
>> Thanks,
>> Manoj
>> The information contained in this electronic message and any
>> attachments to this message are intended for the exclusive use of the
>> addressee(s) and may contain proprietary, confidential or privileged
>> information. If you are not the intended recipient, you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately and destroy all copies of this message and any
>> attachments. WARNING: Computer viruses can be transmitted via email.
>> The recipient should check this email and any attachments for the
>> presence of viruses. The company accepts no liability for any damage
>> caused by any virus transmitted by this email. www.wipro.com
>> ___
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
> The information contained in this electronic message and any
> attachments to this message are intended for the exclusive use of the
> addressee(s) and may contain proprietary, confidential or privileged
> information. If you are not the intended recipient, you should not
> disseminate, distribute or copy this e-mail. Please notify the sender
> immediately and destroy all copies of this message and any
> attachments. WARNING: Computer viruses can be transmitted via email.
> The recipient should check this email and any attachments for the
> presence of viruses. The company accepts no liability for any damage
> caused by any virus transmitted by this email. www.wipro.com
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev
The information contained

Re: [osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
Basically, how do I confirm that the server received the POST data as expected?

From: Manoj Venkatesh Rajamani (Product Engineering Service)
Sent: 24 August 2016 11:22
To: OSGi Developer Mail List 
Subject: RE: [osgi-dev] Help


· Now, I am *NOT* getting the function to return the string…  The post 
or put request is, as if, it does nothing…just comes back to the prompt again….

· Can I enable any prints in the function like System.out.println ?

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
You are doing a POST but you declared a PUT.

Kind regards,

Peter Kriens

On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:

I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:
manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **

Hi Manoj,

It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.

The test cases in this project should help:

  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test


Cheers,
=David



On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest…

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intend

Re: [osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
· Now, I am *NOT* getting the function to return the string…  The post 
or put request is, as if, it does nothing…just comes back to the prompt again….

· Can I enable any prints in the function like System.out.println ?

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
You are doing a POST but you declared a PUT.

Kind regards,

Peter Kriens

On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:

I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:
manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **

Hi Manoj,

It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.

The test cases in this project should help:

  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test


Cheers,
=David



On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest…

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the prese

Re: [osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
postValue() did not work either !!

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
You are doing a POST but you declared a PUT.

Kind regards,

Peter Kriens

On 24 aug. 2016, at 05:36, 
manoj.vrajam...@wipro.com wrote:

I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:
manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://




From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **

Hi Manoj,

It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.

The test cases in this project should help:

  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test


Cheers,
=David



On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest…

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
os

Re: [osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
I inserted the following method in the existing class:

public String putValue(String string) {
String status = string;
return (status + " World");
}

2. Tried calling curl --data "param1=Hello" http://localhost:8080/rest/value


But got the following error:

manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
http://localhost:8080/rest/value



Error 500 


HTTP ERROR: 500
Problem accessing /rest/value. Reason:
java.io.FileNotFoundException: No such method postvalue/0. Available: 
{getservletname/0=[getservletname/0], 
getinitparameternames/0=[getinitparameternames/0], 
getinitparameter/1=[getinitparameter/1], getstatus/1=[getstatus/1], 
getsetvalue/1=[getsetvalue/1], getupper/1=[getupper/1], 
getservletcontext/0=[getservletcontext/0], getservletinfo/0=[getservletinfo/0], 
getservletconfig/0=[getservletconfig/0], putvalue/0=[putvalue/0]}
Powered by Jetty://





From: osgi-dev-boun...@mail.osgi.org  on behalf 
of David Leangen 
Sent: 23 August 2016 17:56:18
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **

Hi Manoj,

It is similar to get. The java method name starts with the http method name, so 
for instance putUpper() etc.

The test cases in this project should help:

  
https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test


Cheers,
=David



On Aug 23, 2016, at 8:36 PM, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the "GET" 
HTTP method by adding methods preceding with "get" like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest...

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Help

2016-08-23 Thread manoj.vrajamani
Hi All,

The Enroute Quick Start Tutorial sample application helps to invoke the “GET” 
HTTP method by adding methods preceding with “get” like getUpper(), getStatus() 
and so on. to the Application class.

I am trying to test using curl on a Linux terminal. GET works fine.

Now,

I would like to try other HTTP methods (like PUT,POST, DELETE) on this REST API 
application.

What should I do?  Please suggest…

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-08-16 Thread manoj.vrajamani
Hi Neil,


Yes, I am connected to the Internet


I am able to browser GitHub with my browser


Please find the relevant error message from error log




Message : Failed to load from template loader: Load workspace templates from 
GitHub repositories



Exception Stack trace:


org.osgi.util.promise.FailedPromisesException: java.io.IOException: 
java.lang.NullPointerException

at org.osgi.util.promise.Promises$All.run(Promises.java:176)
at org.osgi.util.promise.PromiseImpl.notifyCallbacks(PromiseImpl.java:137)
at org.osgi.util.promise.PromiseImpl.resolve(PromiseImpl.java:119)
at org.osgi.util.promise.PromiseImpl$Then.run(PromiseImpl.java:234)
at org.osgi.util.promise.PromiseImpl.notifyCallbacks(PromiseImpl.java:137)
at org.osgi.util.promise.PromiseImpl.resolve(PromiseImpl.java:119)
at org.osgi.util.promise.Deferred.fail(Deferred.java:104)
at org.bndtools.templating.jgit.GitHub$1.run(GitHub.java:34)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)
Caused by: java.io.IOException: java.lang.NullPointerException
at org.bndtools.templating.jgit.Cache.download(Cache.java:54)
at org.bndtools.templating.jgit.GitHub$1.run(GitHub.java:30)
... 5 more
Caused by: java.lang.NullPointerException
at aQute.lib.io.IO.copy(IO.java:159)
at aQute.lib.io.IO.copy(IO.java:146)
at aQute.lib.io.IO.read(IO.java:281)
at org.bndtools.templating.jgit.Cache.download(Cache.java:27)
... 6 more



Session data:


eclipse.buildId=4.5.2.M20160212-1500
java.version=1.7.0_79
java.vendor=Oracle Corporation
BootLoader constants: OS=linux, ARCH=x86, WS=gtk, NL=en_IN
Framework arguments:  -product org.eclipse.epp.package.rcp.product
Command-line arguments:  -os linux -ws gtk -arch x86 -product 
org.eclipse.epp.package.rcp.product











From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Neil Bartlett 
Sent: 16 August 2016 14:05:57
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **

Since you have those entries in the Eclipse Preferences -> Bndtools -> 
Workspace Templates panel, it’s possible that an error is occurring while 
reading from them.

Are you connected to the internet? Can you browse GitHub with your Web Browser? 
Are there any relevant error messages in the Eclipse Error Log view? (You can 
open this with Window menu -> Show View -> Other -> General -> Error Log).

Thanks,
Neil

On 16 Aug 2016, at 09:17, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

I did not quite understand that...Can you please help me to cross this barrier 
please...

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 16 August 2016 13:29:54
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
This is about Workspace Templates …

On 16 aug. 2016, at 09:58, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi Peter,

Please find my preferences screen shots attached..

The URL https://github.com/osgi    in the 
"Repositories" was added by me. Still *NO* good result  :(

Where does the system look for while loading templates ? May be, we need to add 
the right URL there ? Please suggest..

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 16 August 2016 12:59:12
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
Not sure what is going on but you’re missing the templates from the 
Preferences/Bndtools/Workspace Template. Did you edit that list?

You should ensure that the `workspace` repository from https://github.com/osgi 
is included.

Kind regards,

Peter Kriens


On 16 aug. 2016, at 06:49, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi,

I am unable to select the workspace template as specified in the QST (Quick 
Start Tutorial) as I am not getting the options as shown in QST. Please help

Please see the options I am getting in the attachment..

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 

Re: [osgi-dev] Help

2016-08-16 Thread manoj.vrajamani
I did not quite understand that...Can you please help me to cross this barrier 
please...


From: osgi-dev-boun...@mail.osgi.org  on behalf 
of Peter Kriens 
Sent: 16 August 2016 13:29:54
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **

This is about Workspace Templates …

On 16 aug. 2016, at 09:58, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi Peter,

Please find my preferences screen shots attached..

The URL https://github.com/osgi    in the 
"Repositories" was added by me. Still *NO* good result  :(

Where does the system look for while loading templates ? May be, we need to add 
the right URL there ? Please suggest..

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 16 August 2016 12:59:12
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
Not sure what is going on but you’re missing the templates from the 
Preferences/Bndtools/Workspace Template. Did you edit that list?

You should ensure that the `workspace` repository from https://github.com/osgi 
is included.

Kind regards,

Peter Kriens


On 16 aug. 2016, at 06:49, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi,

I am unable to select the workspace template as specified in the QST (Quick 
Start Tutorial) as I am not getting the options as shown in QST. Please help

Please see the options I am getting in the attachment..

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 12 August 2016 20:07:33
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
You should try to follow the Quick Start tutorial in detail. Looking at your 
workspace you’re clearly NOT using an enRoute workspace since the ext and other 
directories is missing. So I assume you’ve created a workspace out of nothing?

The QS defines quite explicitly how to start from a workspace. If you have 
problems creating the OSGi enRoute workspace you have to show us the steps of 
what you did.

Kind regards,

Peter Kriens


On 12 aug. 2016, at 15:59, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Neil,

Check this attachment..Let me know if you need more info

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Neil Bartlett mailto:njbartl...@gmail.com>>
Sent: 12 August 2016 19:23:55
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
Manoj,

You don’t have any libraries on your build path.

What does the content of bnd.bnd look like for this project?

Regards,
Neil


On 12 Aug 2016, at 14:45, 
manoj.vrajam...@wipro.com wrote:

Hi Peter,

I am new to OSGi.. Following the Quick Start tutorial that you suggested...

How do I resolve these errors shown in the attachment?

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens mailto:peter.kri...@aqute.biz>>
Sent: 01 August 2016 16:50:44
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
As I said on SO, you should follow the OSGi enRoute Quick Start tutorial and 
then the Base tutorial. This should give you sufficient background to debug 
your problem yourself.

Kind regards,

Peter Kriens

On 1 aug. 2016, at 12:43, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi Peter,

I am failing to install jetty http service somehow.
Can you point me to the right bundle (dependencies included) to install jetty 
http service in my equinox.

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 01 August 2016 12:06
To: OSGi Developer Mail List 
mailto:osgi-dev@mail.osgi.org>>
Subject: Re: [osgi-dev] Help

** This mail has been sent from an external source **
There are many potential problems so it is hard to diagnose with this 
information.

There are extensive tutorials available on [OSGi enRoute][1] that will give you 
enough understanding to debug your problem. The default template is actually a 
REST interface from a Javascript GUI.

Kind regards,

Peter Kriens

[1]: http://enroute.osgi.org

Re: [osgi-dev] Help

2016-08-01 Thread manoj.vrajamani
Hi Peter,

I am failing to install jetty http service somehow.
Can you point me to the right bundle (dependencies included) to install jetty 
http service in my equinox.

Thanks,
Manoj

From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] On 
Behalf Of Peter Kriens
Sent: 01 August 2016 12:06
To: OSGi Developer Mail List 
Subject: Re: [osgi-dev] Help


** This mail has been sent from an external source **
There are many potential problems so it is hard to diagnose with this 
information.

There are extensive tutorials available on [OSGi enRoute][1] that will give you 
enough understanding to debug your problem. The default template is actually a 
REST interface from a Javascript GUI.

Kind regards,

Peter Kriens

[1]: http://enroute.osgi.org

On 1 aug. 2016, at 06:49, 
mailto:manoj.vrajam...@wipro.com>> 
mailto:manoj.vrajam...@wipro.com>> wrote:

Hi All,

I am new to OSGi. I am trying to write a sample interface hello (consisting of 
a method helloWorld() that returns a simple "Hello" string) accessible via  
REST API.

* I am on Eclipse (mars) running Equinox 4.2 OSGi
* I have installed Jersey.all ( implementation of JAX-RS- API)
* I have installed the OSGI-JAX-RS connector ( to publish the interface as a 
REST API)
* I also have the Jetty HTTP Service running

But I am unable to get the desired results when I say:
"http://localhost:9090/services/hello";  (9090 has been configured in the run 
configuration, Arguments Tab) from a browser

It gives the following error... Where am I going wrong?


HTTP ERROR 404

Problem accessing /services/hello Reason:

Proxy servlet  /services/hello

Powered by Jetty://

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

[osgi-dev] Help

2016-07-31 Thread manoj.vrajamani
Hi All,

I am new to OSGi. I am trying to write a sample interface hello (consisting of 
a method helloWorld() that returns a simple "Hello" string) accessible via  
REST API.

* I am on Eclipse (mars) running Equinox 4.2 OSGi
* I have installed Jersey.all ( implementation of JAX-RS- API)
* I have installed the OSGI-JAX-RS connector ( to publish the interface as a 
REST API)
* I also have the Jetty HTTP Service running

But I am unable to get the desired results when I say:
"http://localhost:9090/services/hello";  (9090 has been configured in the run 
configuration, Arguments Tab) from a browser

It gives the following error... Where am I going wrong?


HTTP ERROR 404

Problem accessing /services/hello Reason:

Proxy servlet  /services/hello

Powered by Jetty://

Thanks,
Manoj
The information contained in this electronic message and any attachments to 
this message are intended for the exclusive use of the addressee(s) and may 
contain proprietary, confidential or privileged information. If you are not the 
intended recipient, you should not disseminate, distribute or copy this e-mail. 
Please notify the sender immediately and destroy all copies of this message and 
any attachments. WARNING: Computer viruses can be transmitted via email. The 
recipient should check this email and any attachments for the presence of 
viruses. The company accepts no liability for any damage caused by any virus 
transmitted by this email. www.wipro.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev