Re: [osgi-dev] Help with the OSGi Converter

2019-05-17 Thread Clément Delgrange via osgi-dev
Thanks Ray,

Indeed, it works now and the method I pointed out was changed. Maybe an EnRoute 
index poms should be added to include the current best quality bundles?! It 
could help new newcomers to get bundles with less bugs.

Clément.

‐‐‐ Original Message ‐‐‐
On Friday 17 May 2019 19:52, Raymond Auge  wrote:

> I don't have a concrete answer since I'd have to also debug. However, I can 
> make a suggestion to perhaps try:
>
> 
>   org.apache.felix
>   org.apache.felix.converter
>   1.0.8
> 
> which is Apache Felix implementation of the osgi converter spec. What you'll 
> find is that it's moving along a little faster with bug fixes. It's a drop in 
> replacement.
>
> It also means that Apache Felix mail list may have a few more bodies 
> monitoring it that have deep knowledge of the implementation details.
>
> Also note that Apache Felix converter implementation was the seed code for 
> the official OSGi artifact.
>
> - Ray
>
> On Fri, May 17, 2019 at 12:43 PM Clément Delgrange via osgi-dev 
>  wrote:
>
>> Hi,
>>
>> I use the OSGi Converter to convert a proxy of an Interface to a Map and I 
>> get an exception:
>>
>> org.osgi.util.converter.ConversionException: Cannot convert null to 
>> interface java.util.Map
>> at 
>> org.osgi.util.converter.ConvertingImpl.convertToMapType(ConvertingImpl.java:650)
>> at org.osgi.util.converter.ConvertingImpl.to(ConvertingImpl.java:187)
>> at 
>> org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:176)
>> at 
>> org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:144)
>> ...
>>
>> I don't know if it is a bug or not? Here is what I am doing:
>>
>> 1- I have two interfaces:
>> public interface ParentType
>> {
>>   String test();
>> }
>>
>> public interface ChildType extends ParentType
>> {
>>   // Marker interface
>> }
>>
>> 2- I instantiate my proxy:
>> ChildType proxy = createProxy(); // My proxy return a constant "test" when 
>> test() is invoked.
>>
>> 3- I try to convert and get the exception: 
>> converter.convert(proxy).sourceAs(ChildType.class).to(new 
>> TypeReference>() {/**/}));
>>
>> If I add a method to ChildType ('String qq();') the conversion works.
>>
>> Here is what I have found while debugging:
>> 1- The converter tries to determine if my source is a map type 
>> (ConvertingImpl.isMapType)
>> 2- For this, it calls the method ConvertingImpl.getInterfaces0(Class< ? > 
>> cls) with cls=ChildType.class. For ChildType be considered as a map type, 
>> this method should return a set of interfaces that contains ParentType.class 
>> (which has public method) but it doesn't. Indeed, implemented/extended 
>> interfaces are added to the result only if `cls` is not an interface, I 
>> don't really understand why?
>>
>> Sorry if this mail is a bit obscure and specific, I didn't find an other 
>> place to ask...
>>
>> You can find a repository demonstrating the issue here: 
>> https://github.com/cdelg/demo-converter-bug-or-not
>>
>> Thanks for help.
>>
>> Clément.
>>
>> ___
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org
>> https://mail.osgi.org/mailman/listinfo/osgi-dev
>
> --
> [Raymond Augé](http://www.liferay.com/web/raymond.auge/profile) (@rotty3000)
> Senior Software Architect [Liferay, Inc.](http://www.liferay.com) (@Liferay)
> Board Member & EEG Co-Chair, [OSGi Alliance](http://osgi.org) (@OSGiAlliance)___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help with the OSGi Converter

2019-05-17 Thread Raymond Auge via osgi-dev
I don't have a concrete answer since I'd have to also debug. However, I can
make a suggestion to perhaps try:


  org.apache.felix
  org.apache.felix.converter
  1.0.8


which is Apache Felix implementation of the osgi converter spec. What
you'll find is that it's moving along a little faster with bug fixes. It's
a drop in replacement.

It also means that Apache Felix mail list may have a few more bodies
monitoring it that have deep knowledge of the implementation details.

Also note that Apache Felix converter implementation was the seed code for
the official OSGi artifact.

- Ray

On Fri, May 17, 2019 at 12:43 PM Clément Delgrange via osgi-dev <
osgi-dev@mail.osgi.org> wrote:

> Hi,
>
> I use the OSGi Converter to convert a proxy of an Interface to a Map and I
> get an exception:
>
>
>
> org.osgi.util.converter.ConversionException: Cannot convert null to
> interface java.util.Map
> at
> org.osgi.util.converter.ConvertingImpl.convertToMapType(ConvertingImpl.java:650)
> at org.osgi.util.converter.ConvertingImpl.to(ConvertingImpl.java:187)
> at
> org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:176)
> at
> org.osgi.util.converter.CustomConverterImpl$ConvertingWrapper.to(CustomConverterImpl.java:144)
> ...
>
> I don't know if it is a bug or not? Here is what I am doing:
>
> 1- I have two interfaces:
> public interface ParentType
> {
>   String test();
> }
>
> public interface ChildType extends ParentType
> {
>   // Marker interface
> }
>
> 2- I instantiate my proxy:
> ChildType proxy = createProxy(); // My proxy return a constant "test" when
> test() is invoked.
>
> 3- I try to convert and get the exception:
> converter.convert(proxy).sourceAs(ChildType.class).to(new
> TypeReference>() {/**/}));
>
> If I add a method to ChildType ('String qq();') the conversion works.
>
> Here is what I have found while debugging:
> 1- The converter tries to determine if my source is a map type
> (ConvertingImpl.isMapType)
> 2- For this, it calls the method ConvertingImpl.getInterfaces0(Class< ? >
> cls) with cls=ChildType.class. For ChildType be considered as a map type,
> this method should return a set of interfaces that contains
> ParentType.class (which has public method) but it doesn't. Indeed,
> implemented/extended interfaces are added to the result only if `cls` is
> not an interface, I don't really understand why?
>
> Sorry if this mail is a bit obscure and specific, I didn't find an other
> place to ask...
>
> You can find a repository demonstrating the issue here:
> https://github.com/cdelg/demo-converter-bug-or-not
>
> Thanks for help.
>
> Clément.
>
>
>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help validating pattern

2018-08-13 Thread Alain Picard via osgi-dev
David,

I have experimented with factory configuration and used it in one case. But
what I have not done is used the Extender Pattern with the BundleTracker to
initialize services or here configurations. That is a very good point that
I wasn't aware of. I can see how this could probably replace those "main'
MapData components. Still not sure how well it plays with generics which
are heavily used here.

In this case, I probably won't go any further, since this is a refactoring
to get us moved over from Eclipse extension points and not a redesign or
new services and we need to get done this year and avoid breaking to many
things in the process :)

I can already see uses for the Extender pattern in another part of the
application, great insight.

Cheers,
Alain


On Sun, Aug 12, 2018 at 7:16 PM David Leangen  wrote:

>
> Hi Alain,
>
> >> Since you are annotating classes that are generated, does the generator
> has some configurability?
> > Yes, it is our own.
>
> Ok, great! That will make things easier.
>
>
> >> Is it possible for you to instead generate configurations? The config
> could be a properties file, a JSON, or even a class if necessary.
> > IMHO I am generating the configuration as part of the "main" component
> that I showed. What would be the advantage to put those in a file (we do
> have those for standard config).
>
> I am making a few assumptions here about how your system works, but I
> recommend that you read up on the “Extender Pattern”. Essentially, it
> allows you to automate the creation of a service. The services need to have
> a known structure (which it seems yours do), and have to be configurable
> (which again, it seems yours are).
>
> What you would do using this pattern is output the necessary configuration
> to a file, probably one file per configuration. You could put them all in a
> “known” folder, and include the folder in a bundle. You would use a
> BundleTracker to test for the presence of these configuration files. If a
> folder is detected that contains these files, you would load the
> configuration, one config for each file.
>
> Your component would require a configuration and have a known
> configurationPid. I think the scope should be PROTOTYPE, but you’ll have to
> try it out to be sure, I can’t remember off hand.
>
> Using the ConfigurationAdmin, you would create a factory configuration,
> which would create a new component instance.
>
> I think this approach would be much nicer than handcrafting a new
> component for each generated class, even if you are only doing it once.
>
>
> >> If this is possible, you could for instance use the extender pattern to
> instantiate the services for you, rather than trying to manually build a
> single component for each generated file. Generate the configurations,
> export them to a known folder in a bundle, and when the bundle is deployed,
> read the configs and instantiate the services.
> >>
> >> Right now, it sounds like you are making yourself an extension to the
> generator. If you can reduce the manual work by capturing only what varies
> and automating the repetition, perhaps that would be a more elegant
> solution.
> > At which level. The generator generates the "main" mapData class, the
> table, record and readers/writers. Some of those might have methods marked
> as @notGenerated when manual changes are required. The classes leveraging
> this (like the exporter that I showed), are not generated.
>
> To make this approach work, the configured components should contain only
> the parts that change. I guess you’d have to carefully pull apart what
> changes from what doesn’t.
>
>
> >> One service per generated “class” sounds right to me, but IMO there
> seems to be a bit of a smell to the manual additions to each generated
> file. Think of it from the perspective of your builds. Every time you build
> a new system, you’ll have to do manual work to construct your components.
> Would be better to have an end-to-end build that does not require manual
> intervention. Don’t you think?
> > I don't, there is a fair amount of manual boilerplate involved in the
> non-generated classes, but no further manual intervention.
>
> Well, if it’s one of these things where you invest 2 hours of work, and it
> almost never changes, then maybe you’re doing the right thing. If, however,
> you need to consistently intervene manually, that can be boring and error
> prone. Also, it puts the knowledge into a person, who can forgot or leave
> the company. If the knowledge is instead embedded in the build system, then
> you can concentrate your energies on other things. But like anything, it’s
> always a trade off. YMMV.
>
>
> >> In case you did not now (it was not obvious to me before I first
> discovered it) you can also configure the @References with a “xxx.target”
> configuration property. DS should give you all you need to configure your
> services.
> > Is that different than what I showed with:
> > 

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev

Hi Alain,

>> Since you are annotating classes that are generated, does the generator has 
>> some configurability?
> Yes, it is our own.

Ok, great! That will make things easier.


>> Is it possible for you to instead generate configurations? The config could 
>> be a properties file, a JSON, or even a class if necessary.
> IMHO I am generating the configuration as part of the "main" component that I 
> showed. What would be the advantage to put those in a file (we do have those 
> for standard config).  

I am making a few assumptions here about how your system works, but I recommend 
that you read up on the “Extender Pattern”. Essentially, it allows you to 
automate the creation of a service. The services need to have a known structure 
(which it seems yours do), and have to be configurable (which again, it seems 
yours are).

What you would do using this pattern is output the necessary configuration to a 
file, probably one file per configuration. You could put them all in a “known” 
folder, and include the folder in a bundle. You would use a BundleTracker to 
test for the presence of these configuration files. If a folder is detected 
that contains these files, you would load the configuration, one config for 
each file.

Your component would require a configuration and have a known configurationPid. 
I think the scope should be PROTOTYPE, but you’ll have to try it out to be 
sure, I can’t remember off hand.

Using the ConfigurationAdmin, you would create a factory configuration, which 
would create a new component instance.

I think this approach would be much nicer than handcrafting a new component for 
each generated class, even if you are only doing it once.


>> If this is possible, you could for instance use the extender pattern to 
>> instantiate the services for you, rather than trying to manually build a 
>> single component for each generated file. Generate the configurations, 
>> export them to a known folder in a bundle, and when the bundle is deployed, 
>> read the configs and instantiate the services.
>> 
>> Right now, it sounds like you are making yourself an extension to the 
>> generator. If you can reduce the manual work by capturing only what varies 
>> and automating the repetition, perhaps that would be a more elegant solution.
> At which level. The generator generates the "main" mapData class, the table, 
> record and readers/writers. Some of those might have methods marked as 
> @notGenerated when manual changes are required. The classes leveraging this 
> (like the exporter that I showed), are not generated.

To make this approach work, the configured components should contain only the 
parts that change. I guess you’d have to carefully pull apart what changes from 
what doesn’t.


>> One service per generated “class” sounds right to me, but IMO there seems to 
>> be a bit of a smell to the manual additions to each generated file. Think of 
>> it from the perspective of your builds. Every time you build a new system, 
>> you’ll have to do manual work to construct your components. Would be better 
>> to have an end-to-end build that does not require manual intervention. Don’t 
>> you think?
> I don't, there is a fair amount of manual boilerplate involved in the 
> non-generated classes, but no further manual intervention.

Well, if it’s one of these things where you invest 2 hours of work, and it 
almost never changes, then maybe you’re doing the right thing. If, however, you 
need to consistently intervene manually, that can be boring and error prone. 
Also, it puts the knowledge into a person, who can forgot or leave the company. 
If the knowledge is instead embedded in the build system, then you can 
concentrate your energies on other things. But like anything, it’s always a 
trade off. YMMV.


>> In case you did not now (it was not obvious to me before I first discovered 
>> it) you can also configure the @References with a “xxx.target” configuration 
>> property. DS should give you all you need to configure your services.
> Is that different than what I showed with:
> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
> private ExportTable exportTable;

That is the effect, but it is done via configuration, not annotation.

Example:

ConfigurationAdmin cm = ...;
Configuration config = cm.createFactoryConfiguration( "some.pid", "?" );

Dictionary properties = new Hashtable<>();
properties.put( "XXX.target", "(some.prop=foo)" );

config.update( properties );


The call to config.update(properties) will create a new component with PID 
“some.pid” using the provided configuration.

Cheers,
=David


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

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread Alain Picard via osgi-dev
David,
You have me lost a bit, See inline for comments/questions

Thanks for your insight

Alain

On Sun, Aug 12, 2018 at 5:26 PM David Leangen  wrote:

>
> Hi Alain,
>
> Since you are annotating classes that are generated, does the generator
> has some configurability?
>
Yes, it is our own.

Is it possible for you to instead generate configurations? The config could
> be a properties file, a JSON, or even a class if necessary.
>
IMHO I am generating the configuration as part of the "main" component that
I showed. What would be the advantage to put those in a file (we do have
those for standard config).

>
> If this is possible, you could for instance use the extender pattern to
> instantiate the services for you, rather than trying to manually build a
> single component for each generated file. Generate the configurations,
> export them to a known folder in a bundle, and when the bundle is deployed,
> read the configs and instantiate the services.
>
> Right now, it sounds like you are making yourself an extension to the
> generator. If you can reduce the manual work by capturing only what varies
> and automating the repetition, perhaps that would be a more elegant
> solution.
>
At which level. The generator generates the "main" mapData class, the
table, record and readers/writers. Some of those might have methods marked
as @notGenerated when manual changes are required. The classes leveraging
this (like the exporter that I showed), are not generated.

>
> One service per generated “class” sounds right to me, but IMO there seems
> to be a bit of a smell to the manual additions to each generated file.
> Think of it from the perspective of your builds. Every time you build a new
> system, you’ll have to do manual work to construct your components. Would
> be better to have an end-to-end build that does not require manual
> intervention. Don’t you think?
>
I don't, there is a fair amount of manual boilerplate involved in the
non-generated classes, but no further manual intervention.

>
> In case you did not now (it was not obvious to me before I first
> discovered it) you can also configure the @References with a “xxx.target”
> configuration property. DS should give you all you need to configure your
> services.
>
Is that different than what I showed with:
@Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
private ExportTable exportTable;

>
> Now I’m very curious, so please let me know how you end up solving this.
> :-)
>
>
> Cheers,
> =David
>
>
>
>
> On Aug 12, 2018, at 22:00, Alain Picard  wrote:
>
> Just realized that I could have applied the same pattern to the
> BaseMapData and not use the implementation class there either.
>
> Alain
>
> On Sun, Aug 12, 2018 at 8:58 AM Alain Picard 
> wrote:
>
>> To David,
>>
>> Your comment got me thinking some more about this. And given that I have
>> about 25 different variations and each has 3 variants, that would mean
>> introducing somewhere like 75 "marker" interfaces.
>>
>> Here's what I did:
>>
>> A number of key classes are generated and sometimes partly modified by
>> hand. So in the "main" such class I have:
>> /**
>>  * This class is generated by Iris-Mapping.
>>  *
>>  * @generated
>>  */
>> @Component(
>> property = {
>> IBaseMapData.CONFIG_MAPPING_ID + "=" +
>> "com.castortech.iris.mapping.project.baModel.asset",
>> IBaseMapData.CONFIG_MAPPING_NAME + "=" +
>> BaModelAssetMapData.TABLE_NAME,
>> IBaseMapData.CONFIG_MAPPING_XL_READER + "=" +
>> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlReader",
>> IBaseMapData.CONFIG_MAPPING_XL_WRITER + "=" +
>> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlWriter"
>> },
>> service=BaModelAssetMapData.class
>> )
>> public final class BaModelAssetMapData extends
>> BaseMapData {
>>   public static final String TABLE_NAME = "Asset"; //$NON-NLS-1$
>>   public static final String PROP_TABLE_NAME =
>> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME; //$NON-NLS-1$
>>   public static final String TARGET_TABLE_NAME = "(" +
>> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME + ")"; //$NON-NLS-1$
>> //$NON-NLS-2$ //$NON-NLS-3$
>> ...
>>
>> and then I will have:
>> @Component(property=BaModelAssetMapData.PROP_TABLE_NAME)
>> public final class AssetXlExporter implements BaXlExportContent {
>> @Reference
>> private BaXlExportUtils> BaModelAssetMapRecord> exporter;
>>
>> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
>> private ExportTable exportTable;
>>
>> and in another location where the exporter is used as a reference:
>> 
>> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
>> private AssetXlExporter assetXlExporter;
>> ...
>>
>> To me this avoids the previous issue of exposing the implementation class
>> and using generated constants, allows to have readable code where
>> annotations don't become unreadable.
>>
>> Does it make sense?
>>
>> Alain
>>
>> On Sun, 

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev

Hi Alain,

Since you are annotating classes that are generated, does the generator has 
some configurability? Is it possible for you to instead generate 
configurations? The config could be a properties file, a JSON, or even a class 
if necessary.

If this is possible, you could for instance use the extender pattern to 
instantiate the services for you, rather than trying to manually build a single 
component for each generated file. Generate the configurations, export them to 
a known folder in a bundle, and when the bundle is deployed, read the configs 
and instantiate the services.

Right now, it sounds like you are making yourself an extension to the 
generator. If you can reduce the manual work by capturing only what varies and 
automating the repetition, perhaps that would be a more elegant solution.

One service per generated “class” sounds right to me, but IMO there seems to be 
a bit of a smell to the manual additions to each generated file. Think of it 
from the perspective of your builds. Every time you build a new system, you’ll 
have to do manual work to construct your components. Would be better to have an 
end-to-end build that does not require manual intervention. Don’t you think?

In case you did not now (it was not obvious to me before I first discovered it) 
you can also configure the @References with a “xxx.target” configuration 
property. DS should give you all you need to configure your services.

Now I’m very curious, so please let me know how you end up solving this. :-)


Cheers,
=David




> On Aug 12, 2018, at 22:00, Alain Picard  wrote:
> 
> Just realized that I could have applied the same pattern to the BaseMapData 
> and not use the implementation class there either.
> 
> Alain
> 
> On Sun, Aug 12, 2018 at 8:58 AM Alain Picard  > wrote:
> To David,
> 
> Your comment got me thinking some more about this. And given that I have 
> about 25 different variations and each has 3 variants, that would mean 
> introducing somewhere like 75 "marker" interfaces.
> 
> Here's what I did:
> 
> A number of key classes are generated and sometimes partly modified by hand. 
> So in the "main" such class I have:
> /**
>  * This class is generated by Iris-Mapping.
>  * 
>  * @generated
>  */
> @Component(
> property = {
> IBaseMapData.CONFIG_MAPPING_ID + "=" + 
> "com.castortech.iris.mapping.project.baModel.asset",
> IBaseMapData.CONFIG_MAPPING_NAME + "=" + 
> BaModelAssetMapData.TABLE_NAME,
> IBaseMapData.CONFIG_MAPPING_XL_READER + "=" + 
> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlReader",
> IBaseMapData.CONFIG_MAPPING_XL_WRITER + "=" + 
> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlWriter"
> },
> service=BaModelAssetMapData.class
> )
> public final class BaModelAssetMapData extends 
> BaseMapData {
>   public static final String TABLE_NAME = "Asset"; //$NON-NLS-1$
>   public static final String PROP_TABLE_NAME = 
> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME; //$NON-NLS-1$
>   public static final String TARGET_TABLE_NAME = "(" + 
> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME + ")"; //$NON-NLS-1$ 
> //$NON-NLS-2$ //$NON-NLS-3$
> ...
> 
> and then I will have:
> @Component(property=BaModelAssetMapData.PROP_TABLE_NAME)
> public final class AssetXlExporter implements BaXlExportContent {
> @Reference 
> private BaXlExportUtils BaModelAssetMapRecord> exporter;
> 
> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
> private ExportTable exportTable;
> 
> and in another location where the exporter is used as a reference:
> 
> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
> private AssetXlExporter assetXlExporter;
> ...
> 
> To me this avoids the previous issue of exposing the implementation class and 
> using generated constants, allows to have readable code where annotations 
> don't become unreadable.
> 
> Does it make sense?
> 
> Alain
> 
> On Sun, Aug 12, 2018 at 8:22 AM David Leangen  > wrote:
> 
> Hi Alain,
> 
> Maybe there is a way of having 25 different interfaces in your API instead?
> 
> Or, if they are private, maybe you don’t even need to use services?
> 
> Are you able to share your code? Would be helpful to have a little more 
> information.
> 
> 
> Cheers,
> =David
> 
> 
> 
>> On Aug 12, 2018, at 6:58, Alain Picard > > wrote:
>> 
>> On Sat, Aug 11, 2018 at 4:10 PM David Leangen > > wrote:
>> 
>> Hi Alain,
>> 
>> What is it you are trying to accomplish? Is there a reason you are exposing 
>> the implementation class?
>> 
>> Maybe you know this already, but the “usual” practice is to expose an 
>> interface in your API (and export the containing package), and to keep the 
>> implementation private.
>> Yes, absolutely, and that's why I'm asking. I have about 25 different 
>> implementation of the interfaces 

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread Alain Picard via osgi-dev
Just realized that I could have applied the same pattern to the BaseMapData
and not use the implementation class there either.

Alain

On Sun, Aug 12, 2018 at 8:58 AM Alain Picard  wrote:

> To David,
>
> Your comment got me thinking some more about this. And given that I have
> about 25 different variations and each has 3 variants, that would mean
> introducing somewhere like 75 "marker" interfaces.
>
> Here's what I did:
>
> A number of key classes are generated and sometimes partly modified by
> hand. So in the "main" such class I have:
> /**
>  * This class is generated by Iris-Mapping.
>  *
>  * @generated
>  */
> @Component(
> property = {
> IBaseMapData.CONFIG_MAPPING_ID + "=" +
> "com.castortech.iris.mapping.project.baModel.asset",
> IBaseMapData.CONFIG_MAPPING_NAME + "=" +
> BaModelAssetMapData.TABLE_NAME,
> IBaseMapData.CONFIG_MAPPING_XL_READER + "=" +
> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlReader",
> IBaseMapData.CONFIG_MAPPING_XL_WRITER + "=" +
> "com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlWriter"
> },
> service=BaModelAssetMapData.class
> )
> public final class BaModelAssetMapData extends
> BaseMapData {
>   public static final String TABLE_NAME = "Asset"; //$NON-NLS-1$
>   public static final String PROP_TABLE_NAME =
> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME; //$NON-NLS-1$
>   public static final String TARGET_TABLE_NAME = "(" +
> MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME + ")"; //$NON-NLS-1$
> //$NON-NLS-2$ //$NON-NLS-3$
> ...
>
> and then I will have:
> @Component(property=BaModelAssetMapData.PROP_TABLE_NAME)
> public final class AssetXlExporter implements BaXlExportContent {
> @Reference
> private BaXlExportUtils BaModelAssetMapRecord> exporter;
>
> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
> private ExportTable exportTable;
>
> and in another location where the exporter is used as a reference:
> 
> @Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
> private AssetXlExporter assetXlExporter;
> ...
>
> To me this avoids the previous issue of exposing the implementation class
> and using generated constants, allows to have readable code where
> annotations don't become unreadable.
>
> Does it make sense?
>
> Alain
>
> On Sun, Aug 12, 2018 at 8:22 AM David Leangen  wrote:
>
>>
>> Hi Alain,
>>
>> Maybe there is a way of having 25 different interfaces in your API
>> instead?
>>
>> Or, if they are private, maybe you don’t even need to use services?
>>
>> Are you able to share your code? Would be helpful to have a little more
>> information.
>>
>>
>> Cheers,
>> =David
>>
>>
>>
>> On Aug 12, 2018, at 6:58, Alain Picard  wrote:
>>
>> On Sat, Aug 11, 2018 at 4:10 PM David Leangen  wrote:
>>
>>>
>>> Hi Alain,
>>>
>>> What is it you are trying to accomplish? Is there a reason you are
>>> exposing the implementation class?
>>>
>>> Maybe you know this already, but the “usual” practice is to expose an
>>> interface in your API (and export the containing package), and to keep the
>>> implementation private.
>>>
>> Yes, absolutely, and that's why I'm asking. I have about 25 different
>> implementation of the interfaces that are most often referenced directly
>> from a matching component (i.e. for the same table) and a few cases where
>> they are invoked generically. Here all of those are in a single bundle so
>> this is more like a "private" API and the use of a class is not a real
>> problem. But I didn't feel like using @Reference(target=(tableName=x) for
>> each case. Hence my question.
>>
>> Alain
>>
>>>
>>> Also:
>>>
>>> >Collection> servRefs =
>>> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be
>>> like: "(target
>>> > servRef = servRefs.isEmpty() ? null :
>>> servRefs.iterator().next();
>>>
>>> Did some text get cut out of your post?
>>>
>>> If you can explain a little more what you are trying to do I think that
>>> would be helpful.
>>>
>>>
>>> Cheers,
>>> =David
>>>
>>>
>>> > On Aug 12, 2018, at 1:27, Alain Picard via osgi-dev <
>>> osgi-dev@mail.osgi.org> wrote:
>>> >
>>> > Looking for confirmation or insight in how best to specify components
>>> and references, so that the same component can be invoked directly or more
>>> generically through its interface.
>>> >
>>> > Let's say that I have some components, 1 per table to do some export
>>> function:
>>> >
>>> > @Component(
>>> > property= MappingConstants.CONFIG_TABLE_NAME + "=BigTable",
>>> > service= { BigTableXlExporter.class, XlExportContent.class }
>>> > )
>>> > public final class BigTableXlExporter implements XlExportContent {...}
>>> >
>>> > and in another component I can get a specific reference with:
>>> > @Component(service=SomeComp.class)
>>> > public final class SomeComp
>>> > @Reference
>>> > private BigTableXlExporter exporter;
>>> > ...
>>> > }
>>> >
>>> > and in 

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread Alain Picard via osgi-dev
To David,

Your comment got me thinking some more about this. And given that I have
about 25 different variations and each has 3 variants, that would mean
introducing somewhere like 75 "marker" interfaces.

Here's what I did:

A number of key classes are generated and sometimes partly modified by
hand. So in the "main" such class I have:
/**
 * This class is generated by Iris-Mapping.
 *
 * @generated
 */
@Component(
property = {
IBaseMapData.CONFIG_MAPPING_ID + "=" +
"com.castortech.iris.mapping.project.baModel.asset",
IBaseMapData.CONFIG_MAPPING_NAME + "=" +
BaModelAssetMapData.TABLE_NAME,
IBaseMapData.CONFIG_MAPPING_XL_READER + "=" +
"com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlReader",
IBaseMapData.CONFIG_MAPPING_XL_WRITER + "=" +
"com.castortech.iris.mapping.maps.project.baModel.asset.BaModelAssetXlWriter"
},
service=BaModelAssetMapData.class
)
public final class BaModelAssetMapData extends
BaseMapData {
  public static final String TABLE_NAME = "Asset"; //$NON-NLS-1$
  public static final String PROP_TABLE_NAME =
MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME; //$NON-NLS-1$
  public static final String TARGET_TABLE_NAME = "(" +
MappingConstants.CONFIG_TABLE_NAME + "=" + TABLE_NAME + ")"; //$NON-NLS-1$
//$NON-NLS-2$ //$NON-NLS-3$
...

and then I will have:
@Component(property=BaModelAssetMapData.PROP_TABLE_NAME)
public final class AssetXlExporter implements BaXlExportContent {
@Reference
private BaXlExportUtils exporter;

@Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
private ExportTable exportTable;

and in another location where the exporter is used as a reference:

@Reference(target=BaModelAssetMapData.TARGET_TABLE_NAME)
private AssetXlExporter assetXlExporter;
...

To me this avoids the previous issue of exposing the implementation class
and using generated constants, allows to have readable code where
annotations don't become unreadable.

Does it make sense?

Alain

On Sun, Aug 12, 2018 at 8:22 AM David Leangen  wrote:

>
> Hi Alain,
>
> Maybe there is a way of having 25 different interfaces in your API instead?
>
> Or, if they are private, maybe you don’t even need to use services?
>
> Are you able to share your code? Would be helpful to have a little more
> information.
>
>
> Cheers,
> =David
>
>
>
> On Aug 12, 2018, at 6:58, Alain Picard  wrote:
>
> On Sat, Aug 11, 2018 at 4:10 PM David Leangen  wrote:
>
>>
>> Hi Alain,
>>
>> What is it you are trying to accomplish? Is there a reason you are
>> exposing the implementation class?
>>
>> Maybe you know this already, but the “usual” practice is to expose an
>> interface in your API (and export the containing package), and to keep the
>> implementation private.
>>
> Yes, absolutely, and that's why I'm asking. I have about 25 different
> implementation of the interfaces that are most often referenced directly
> from a matching component (i.e. for the same table) and a few cases where
> they are invoked generically. Here all of those are in a single bundle so
> this is more like a "private" API and the use of a class is not a real
> problem. But I didn't feel like using @Reference(target=(tableName=x) for
> each case. Hence my question.
>
> Alain
>
>>
>> Also:
>>
>> >Collection> servRefs =
>> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be
>> like: "(target
>> > servRef = servRefs.isEmpty() ? null :
>> servRefs.iterator().next();
>>
>> Did some text get cut out of your post?
>>
>> If you can explain a little more what you are trying to do I think that
>> would be helpful.
>>
>>
>> Cheers,
>> =David
>>
>>
>> > On Aug 12, 2018, at 1:27, Alain Picard via osgi-dev <
>> osgi-dev@mail.osgi.org> wrote:
>> >
>> > Looking for confirmation or insight in how best to specify components
>> and references, so that the same component can be invoked directly or more
>> generically through its interface.
>> >
>> > Let's say that I have some components, 1 per table to do some export
>> function:
>> >
>> > @Component(
>> > property= MappingConstants.CONFIG_TABLE_NAME + "=BigTable",
>> > service= { BigTableXlExporter.class, XlExportContent.class }
>> > )
>> > public final class BigTableXlExporter implements XlExportContent {...}
>> >
>> > and in another component I can get a specific reference with:
>> > @Component(service=SomeComp.class)
>> > public final class SomeComp
>> > @Reference
>> > private BigTableXlExporter exporter;
>> > ...
>> > }
>> >
>> > and in another case i could get a more generic invocation (as part of
>> config or through a factory:
>> > @Component(service=GenericComp.class)
>> > public final class GenericComp
>> >@Activate
>> >private void init(Map props, BundleContext bcontext) {
>> >  ServiceReference servRef;
>> >   try {
>> >  Collection> servRefs =
>> bcontext.getServiceReferences(target, props.get("filter"));  //filter 

Re: [osgi-dev] Help validating pattern

2018-08-12 Thread David Leangen via osgi-dev

Hi Alain,

Maybe there is a way of having 25 different interfaces in your API instead?

Or, if they are private, maybe you don’t even need to use services?

Are you able to share your code? Would be helpful to have a little more 
information.


Cheers,
=David



> On Aug 12, 2018, at 6:58, Alain Picard  wrote:
> 
> On Sat, Aug 11, 2018 at 4:10 PM David Leangen  > wrote:
> 
> Hi Alain,
> 
> What is it you are trying to accomplish? Is there a reason you are exposing 
> the implementation class?
> 
> Maybe you know this already, but the “usual” practice is to expose an 
> interface in your API (and export the containing package), and to keep the 
> implementation private.
> Yes, absolutely, and that's why I'm asking. I have about 25 different 
> implementation of the interfaces that are most often referenced directly from 
> a matching component (i.e. for the same table) and a few cases where they are 
> invoked generically. Here all of those are in a single bundle so this is more 
> like a "private" API and the use of a class is not a real problem. But I 
> didn't feel like using @Reference(target=(tableName=x) for each case. Hence 
> my question.
> 
> Alain
> 
> Also:
> 
> >Collection> servRefs = 
> > bcontext.getServiceReferences(target, props.get("filter"));  //filter to be 
> > like: "(target
> > servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();
> 
> Did some text get cut out of your post?
> 
> If you can explain a little more what you are trying to do I think that would 
> be helpful.
> 
> 
> Cheers,
> =David
> 
> 
> > On Aug 12, 2018, at 1:27, Alain Picard via osgi-dev  > > wrote:
> > 
> > Looking for confirmation or insight in how best to specify components and 
> > references, so that the same component can be invoked directly or more 
> > generically through its interface.
> > 
> > Let's say that I have some components, 1 per table to do some export 
> > function:
> > 
> > @Component(
> > property= MappingConstants.CONFIG_TABLE_NAME + "=BigTable",
> > service= { BigTableXlExporter.class, XlExportContent.class }
> > )
> > public final class BigTableXlExporter implements XlExportContent {...}
> > 
> > and in another component I can get a specific reference with:
> > @Component(service=SomeComp.class)
> > public final class SomeComp
> > @Reference
> > private BigTableXlExporter exporter;
> > ...
> > }
> > 
> > and in another case i could get a more generic invocation (as part of 
> > config or through a factory:
> > @Component(service=GenericComp.class)
> > public final class GenericComp
> >@Activate
> >private void init(Map props, BundleContext bcontext) {
> >  ServiceReference servRef;
> >   try {
> >  Collection> servRefs = 
> > bcontext.getServiceReferences(target, props.get("filter"));  //filter to be 
> > like: "(target
> > servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();
> > }
> > catch (InvalidSyntaxException e) {
> > throw new IllegalArgumentException("Invalid Filter Syntax 
> > Exception", e);
> > }
> > 
> > //do something with ref
> >}
> > }
> > 
> > Does this make sense or are there better ways to do this.
> > 
> > Alain
> > 
> > ___
> > 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

Re: [osgi-dev] Help validating pattern

2018-08-11 Thread Alain Picard via osgi-dev
On Sat, Aug 11, 2018 at 4:10 PM David Leangen  wrote:

>
> Hi Alain,
>
> What is it you are trying to accomplish? Is there a reason you are
> exposing the implementation class?
>
> Maybe you know this already, but the “usual” practice is to expose an
> interface in your API (and export the containing package), and to keep the
> implementation private.
>
Yes, absolutely, and that's why I'm asking. I have about 25 different
implementation of the interfaces that are most often referenced directly
from a matching component (i.e. for the same table) and a few cases where
they are invoked generically. Here all of those are in a single bundle so
this is more like a "private" API and the use of a class is not a real
problem. But I didn't feel like using @Reference(target=(tableName=x) for
each case. Hence my question.

Alain

>
> Also:
>
> >Collection> servRefs =
> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be
> like: "(target
> > servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();
>
> Did some text get cut out of your post?
>
> If you can explain a little more what you are trying to do I think that
> would be helpful.
>
>
> Cheers,
> =David
>
>
> > On Aug 12, 2018, at 1:27, Alain Picard via osgi-dev <
> osgi-dev@mail.osgi.org> wrote:
> >
> > Looking for confirmation or insight in how best to specify components
> and references, so that the same component can be invoked directly or more
> generically through its interface.
> >
> > Let's say that I have some components, 1 per table to do some export
> function:
> >
> > @Component(
> > property= MappingConstants.CONFIG_TABLE_NAME + "=BigTable",
> > service= { BigTableXlExporter.class, XlExportContent.class }
> > )
> > public final class BigTableXlExporter implements XlExportContent {...}
> >
> > and in another component I can get a specific reference with:
> > @Component(service=SomeComp.class)
> > public final class SomeComp
> > @Reference
> > private BigTableXlExporter exporter;
> > ...
> > }
> >
> > and in another case i could get a more generic invocation (as part of
> config or through a factory:
> > @Component(service=GenericComp.class)
> > public final class GenericComp
> >@Activate
> >private void init(Map props, BundleContext bcontext) {
> >  ServiceReference servRef;
> >   try {
> >  Collection> servRefs =
> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be
> like: "(target
> > servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();
> > }
> > catch (InvalidSyntaxException e) {
> > throw new IllegalArgumentException("Invalid Filter Syntax
> Exception", e);
> > }
> >
> > //do something with ref
> >}
> > }
> >
> > Does this make sense or are there better ways to do this.
> >
> > Alain
> >
> > ___
> > 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

Re: [osgi-dev] Help validating pattern

2018-08-11 Thread David Leangen via osgi-dev

Hi Alain,

What is it you are trying to accomplish? Is there a reason you are exposing the 
implementation class?

Maybe you know this already, but the “usual” practice is to expose an interface 
in your API (and export the containing package), and to keep the implementation 
private.

Also:

>Collection> servRefs = 
> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be 
> like: "(target
> servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();

Did some text get cut out of your post?

If you can explain a little more what you are trying to do I think that would 
be helpful.


Cheers,
=David


> On Aug 12, 2018, at 1:27, Alain Picard via osgi-dev  
> wrote:
> 
> Looking for confirmation or insight in how best to specify components and 
> references, so that the same component can be invoked directly or more 
> generically through its interface.
> 
> Let's say that I have some components, 1 per table to do some export function:
> 
> @Component(
> property= MappingConstants.CONFIG_TABLE_NAME + "=BigTable",
> service= { BigTableXlExporter.class, XlExportContent.class }
> )
> public final class BigTableXlExporter implements XlExportContent {...}
> 
> and in another component I can get a specific reference with:
> @Component(service=SomeComp.class)
> public final class SomeComp
> @Reference
> private BigTableXlExporter exporter;
> ...
> }
> 
> and in another case i could get a more generic invocation (as part of config 
> or through a factory:
> @Component(service=GenericComp.class)
> public final class GenericComp
>@Activate
>private void init(Map props, BundleContext bcontext) {
>  ServiceReference servRef;
>   try {
>  Collection> servRefs = 
> bcontext.getServiceReferences(target, props.get("filter"));  //filter to be 
> like: "(target
> servRef = servRefs.isEmpty() ? null : servRefs.iterator().next();
> }
> catch (InvalidSyntaxException e) {
> throw new IllegalArgumentException("Invalid Filter Syntax 
> Exception", e);
> }
> 
> //do something with ref
>}
> }
> 
> Does this make sense or are there better ways to do this.
> 
> Alain
> 
> ___
> 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

Re: [osgi-dev] Help With OBR

2017-06-22 Thread Timothy Ward
Hi Eran

> On 22 Jun 2017, at 10:01, Eran Twili <eran.tw...@niceactimize.com> wrote:
> 
> Thank you very much Peter and Tim, I’m sincerely grateful.
>  
> I know that automatic bundle generation from non-modular third party 
> libraries isn’t recommended and I assume I’ll find bundles of my 3rd parties 
> in public repositories. For any exceptional, I know my options (embed, 
> delegate, wrap). That isn’t my concern.
>  
> Indeed, we do want to keep working with maven, and prefer not to use 
> additional tools, if possible.
> If I understood you correctly, the entire OBR process can be manipulated with 
> just bnd maven plugins and a bndrun file.
>  
> To make sure I got the point:
> · I can use the indexer plugin to create indexes for my own 
> repositories, so that they will be OBR compatible.

Yes

> · I can then configure to use them, plus public repositories, in my 
> OBR process. (You mentioned maven central. Is it managing an index and can be 
> used by OBR?)

A qualified yes. There is no index of Maven Central (it would be so big and 
duplicative as to make it unusable). You can configure bnd to create a “view” 
of bundles from maven central, but this isn’t likely to give you the behaviour 
that you want (it’s usually used at build time in non-maven workspaces). More 
useful to you would probably be bnd’s ability to use a POM directly as input to 
the resolver, but at this point I would still recommend making an index as per 
the previous step.

> · I can then use the resolver plugin with a bndrun file that will 
> trigger the process of retrieving missing bundles (plus transitive 
> dependencies) from the repositories and will resolve my environment.

Yes

> · It will use the Equinox resolver, so the org.eclipse:osgi jar 
> should be in the classpath.

No. The resolver used will be the resolver included in the bnd plugin, so 
updating the version of the plugin may change the version of the resolver that 
is used. The embedded resolver is actually the Apache Felix resolver, which is 
the resolver used by Equinox, which may be the source of your confusion.

> · Does the fact that we embed OSGi inside wider (parent) application, 
> and so we lunch the OSGi FW programmatically (via EclipseStarter.startup), 
> change anything regarding the correctness of this approach (since here we’re 
> launching the FW differently, via bndrun)?

You will want to ensure that you configure the export plugin to gather your 
bundles (rather than creating a fat jar), and then put them wherever makes 
sense for your runtime. You will also want to create a platform definition 
describing your runtime’s base capabilities (i.e. the packages provided by your 
Equinox system bundle). There is a tool in bnd for generating this for you, 
although I haven’t used it. This platform definition will ensure that your 
bundles are resolved against the real embedded runtime, including any 
additional packages that you expose.

> · Finally, can I use the maven-bundle-plugin to do part (or all) of 
> the above, instead of the bnd maven plugins?

The maven bundle plugin allows you to create bundles (i.e. it is an alternative 
for the bnd-maven-plugin). It also offers some of the features of the 
bnd-baseline-maven-plugin. To my knowledge it does not support any of the 
indexer/resolver/export plugin features. If you choose to use the 
maven-bundle-plugin to generate your bundles then you can still use the other 
plugins to assemble your runtime (i.e. they’re all just OSGi bundles in the 
end).

Regards,

Tim

>  
>  
> Thanks a lot!
> Eran
>  
> From: osgi-dev-boun...@mail.osgi.org [mailto:osgi-dev-boun...@mail.osgi.org] 
> On Behalf Of Timothy Ward
> Sent: Wednesday, June 21, 2017 5:22 PM
> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org>
> Subject: Re: [osgi-dev] Help With OBR
>  
> For reference, the maven plugins to help with this are:
>  
>  
> The bnd-indexer-maven-plugin - used to create standard, portable XML 
> repository indexes for a set of POM dependencies
> The bnd-resolver-maven-plugin - used to convert a set of run requirements 
> into a list of bundles to use at runtime, uses one or more repository indexes 
> The bnd-export-maven-plugin - used to create a runnable jar containing an 
> OSGi framework and a list of bundles to install and start.
>  
> Documentation about these plugins is available at 
> https://github.com/bndtools/bnd/tree/master/maven 
> <https://github.com/bndtools/bnd/tree/master/maven>
>  
> Regards,
>  
> Tim
>  
> On 21 Jun 2017, at 14:43, Peter Kriens <peter.kri...@aqute.biz 
> <mailto:peter.kri...@aqute.biz>> wrote:
>  
> One of the things that make modularity provides its benefits is that your 
> modules are, eh, modules. Sa

Re: [osgi-dev] Help With OBR

2017-06-21 Thread Niels Schröter

FWIW,

we have set up a private company OBR, to which we deploy our artifacts - 
read: our product, consisting of 250+
OSGi bundles and their dependencies (including their transitive 
dependencies).


We can then update our customer's products via this OBR, we don't use it 
for building our product. As we use
gradle for building, I cannot answer any maven questions, but I know a 
friend did this and said it worked:


https://groups.google.com/forum/#!topic/bndtools-users/LNSBNL4hCtY

On 21.06.2017 14:18, Eran Twili wrote:


Hi,

I approach you after spending days of research, resulted in only vague 
high level understating of a solution to our problem.


In my organization, we’re intending to *embed OSGi* into our application.

We’re currently exploring the change that will result from moving to 
OSGi, in aspect of provisioning / building our application.


Till today, we’re using Maven as our build tool.

So every developer in the team, in his day-to-day work, can make some 
changes in the code, run maven install, and Maven will take care of 
pulling in the transitive dependencies, compiling and building the 
target jars.


Now, moving to OSGi.

Working the same way won’t be sufficient, as Maven may pull in 
transitive dependencies which aren’t bundles.


In addition, Maven can successfully compile our project, although some 
Manifest requirements are missing, which means the OSGi FW will not 
resolve.


But we do want as much automation of the process as possible, so what 
do we do?


We want that:

1.When building our project, we’ll *automatically* get bundle versions 
of our 3^rd parties, *including* bundle versions of their *transitive 
dependencies*, without the need to specify transitive dependencies.


2.After build we want to verify that our OSGi FW can be *resolved*. 
I.e. all bundles can be in ACTIVE state.


I read a lot about it and managed to conclude that what we need is *OBR*.

However, although I read a lot about OBR, I can’t get the puzzle fixed.

I couldn’t find any hands-on tutorial of working with OBR end to end.

I do understand that the main players in the game are: bundles 
repositories and a resolver.


I understand that I need to start with my own modules as the initial 
set of bundles and that OBR should then *automatically* pull my 
missing dependencies from the repositories and resolve the OSGi FW.


But how exactly to do that?

1.Do we need to implement anything, or there’re implementations that 
we can use?


2.What is the trigger for this process to start during/instead Maven 
build?


3.*We use Equinox*. Does the resolver is the Equinox resolver? How can 
I activate it in the OBR process?


4.What are my options for public repositories that contains known 3^rd 
parties?


5.What happens if the 3^rd party I need doesn’t exist in my bundles 
repositories? Does the process fail?


6.There’s, for example, the Apache Felix OBR. Is it an implementation 
of the repository or the resolver or both?


7.Does OBR work fluently, or it has many issues?

Any help will be much appreciated

Regards,

Eran


Confidentiality: This communication and any attachments are intended 
for the above-named persons only and may be confidential and/or 
legally privileged. Any opinions expressed in this communication are 
not necessarily those of NICE Actimize. If this communication has come 
to you in error you must take no action based on it, nor must you copy 
or show it to anyone; please delete/destroy and inform the sender by 
e-mail immediately.

Monitoring: NICE Actimize may monitor incoming and outgoing e-mails.
Viruses: Although we have taken steps toward ensuring that this e-mail 
and attachments are free from any virus, we advise that in keeping 
with good computing practice the recipient should ensure they are 
actually virus free.




___
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

Re: [osgi-dev] Help With OBR

2017-06-21 Thread Timothy Ward
For reference, the maven plugins to help with this are:


The bnd-indexer-maven-plugin - used to create standard, portable XML repository 
indexes for a set of POM dependencies
The bnd-resolver-maven-plugin - used to convert a set of run requirements into 
a list of bundles to use at runtime, uses one or more repository indexes 
The bnd-export-maven-plugin - used to create a runnable jar containing an OSGi 
framework and a list of bundles to install and start.

Documentation about these plugins is available at 
https://github.com/bndtools/bnd/tree/master/maven 


Regards,

Tim

> On 21 Jun 2017, at 14:43, Peter Kriens  wrote:
> 
> One of the things that make modularity provides its benefits is that your 
> modules are, eh, modules. Sadly, many third party libraries are not modules 
> because they do not manage their dependencies nor do they provide a clean 
> minimal API. So I would not get too excited about automatic bundle generation 
> from non-modular third party libraries. Fortunately, for most problems there 
> are good solutions available. (Karaf is driving a lot of good work here but 
> there are also many others pushing good modules.) However, this will require 
> some manual work if you’re unlucky. If this could be automated we’d all be 
> out of work … :-)
> 
> The Felix resolver is nowadays also used in Equinox. In the bnd project, we 
> provide a maven plugin that uses bndrun files to steer a resolution. This 
> resolution checks if a set of bundles is compatible and can drag extra 
> bundles from a repository. These repositories can be a Maven POM, a P2 
> (Eclipse) repo, or an OBR index. There is also a maven plugin that can 
> generate an OBR index based on maven dependencies.
> 
> So the parts are there and just verifying if a set of preselected bundles 
> will work on a framework is quite straightforward. If you want a more 
> automatic selection process it will require curating the repositories. 
> 
> Though maybe the news that there is no magic is a bit disappointing, it does 
> provide you with a system that catches most problems much earlier than 
> traditional approaches.
> 
>> 1.   Do we need to implement anything, or there’re implementations that 
>> we can use?
> For this setup there are bnd plugins that generate the index and that can do 
> the resloving.
> 
>> 2.   What is the trigger for this process to start during/instead Maven 
>> build?
> They are plugins part of the maven life cycle
> 
>> 3.   We use Equinox. Does the resolver is the Equinox resolver? How can 
>> I activate it in the OBR process?
> Equinox uses the Felix resolver nowadays. The bndrun will contain your 
> specification of the runtime and a plugin will resolve it.
> 
>> 4.   What are my options for public repositories that contains known 3rd 
>> parties?
> Today most code ends up quickly in maven central. Actually, the maven bnd 
> plugin is one of the most popular plugins. Most modern code has the OSGi 
> metadata. However, remember that real models are more than just metadata.
> 
>> 5.   What happens if the 3rd party I need doesn’t exist in my bundles 
>> repositories? Does the process fail?
> Yes.
> 
>> 6.   There’s, for example, the Apache Felix OBR. Is it an implementation 
>> of the repository or the resolver or both?
>> 7.   Does OBR work fluently, or it has many issues?
> I think you find that the most advanced workflow are with the bnd maven 
> plugins. As I stated, properly setup this can make your product a lot more 
> reliable and stable. However, there is no magic. You will still be required 
> to understand the parts. 
> 
> Kind regards,
> 
>   Peter Kriens
> 
>> On 21 Jun 2017, at 14:18, Eran Twili > > wrote:
>> 
>> Hi,
>>  
>> I approach you after spending days of research, resulted in only vague high 
>> level understating of a solution to our problem.
>> In my organization, we’re intending to embed OSGi into our application.
>> We’re currently exploring the change that will result from moving to OSGi, 
>> in aspect of provisioning / building our application.
>> Till today, we’re using Maven as our build tool.
>> So every developer in the team, in his day-to-day work, can make some 
>> changes in the code, run maven install, and Maven will take care of pulling 
>> in the transitive dependencies, compiling and building the target jars.
>> Now, moving to OSGi.
>> Working the same way won’t be sufficient, as Maven may pull in transitive 
>> dependencies which aren’t bundles.
>> In addition, Maven can successfully compile our project, although some 
>> Manifest requirements are missing, which means the OSGi FW will not resolve.
>> But we do want as much automation of the process as possible, so what do we 
>> do?
>> We want that:
>> 1.   When building our project, we’ll automatically get bundle versions 
>> of our 3rd 

Re: [osgi-dev] Help With OBR

2017-06-21 Thread Peter Kriens
One of the things that make modularity provides its benefits is that your 
modules are, eh, modules. Sadly, many third party libraries are not modules 
because they do not manage their dependencies nor do they provide a clean 
minimal API. So I would not get too excited about automatic bundle generation 
from non-modular third party libraries. Fortunately, for most problems there 
are good solutions available. (Karaf is driving a lot of good work here but 
there are also many others pushing good modules.) However, this will require 
some manual work if you’re unlucky. If this could be automated we’d all be out 
of work … :-)

The Felix resolver is nowadays also used in Equinox. In the bnd project, we 
provide a maven plugin that uses bndrun files to steer a resolution. This 
resolution checks if a set of bundles is compatible and can drag extra bundles 
from a repository. These repositories can be a Maven POM, a P2 (Eclipse) repo, 
or an OBR index. There is also a maven plugin that can generate an OBR index 
based on maven dependencies.

So the parts are there and just verifying if a set of preselected bundles will 
work on a framework is quite straightforward. If you want a more automatic 
selection process it will require curating the repositories. 

Though maybe the news that there is no magic is a bit disappointing, it does 
provide you with a system that catches most problems much earlier than 
traditional approaches.

> 1.   Do we need to implement anything, or there’re implementations that 
> we can use?
For this setup there are bnd plugins that generate the index and that can do 
the resloving.

> 2.   What is the trigger for this process to start during/instead Maven 
> build?
They are plugins part of the maven life cycle

> 3.   We use Equinox. Does the resolver is the Equinox resolver? How can I 
> activate it in the OBR process?
Equinox uses the Felix resolver nowadays. The bndrun will contain your 
specification of the runtime and a plugin will resolve it.

> 4.   What are my options for public repositories that contains known 3rd 
> parties?
Today most code ends up quickly in maven central. Actually, the maven bnd 
plugin is one of the most popular plugins. Most modern code has the OSGi 
metadata. However, remember that real models are more than just metadata.

> 5.   What happens if the 3rd party I need doesn’t exist in my bundles 
> repositories? Does the process fail?
Yes.

> 6.   There’s, for example, the Apache Felix OBR. Is it an implementation 
> of the repository or the resolver or both?
> 7.   Does OBR work fluently, or it has many issues?
I think you find that the most advanced workflow are with the bnd maven 
plugins. As I stated, properly setup this can make your product a lot more 
reliable and stable. However, there is no magic. You will still be required to 
understand the parts. 

Kind regards,

Peter Kriens

> On 21 Jun 2017, at 14:18, Eran Twili  wrote:
> 
> Hi,
>  
> I approach you after spending days of research, resulted in only vague high 
> level understating of a solution to our problem.
> In my organization, we’re intending to embed OSGi into our application.
> We’re currently exploring the change that will result from moving to OSGi, in 
> aspect of provisioning / building our application.
> Till today, we’re using Maven as our build tool.
> So every developer in the team, in his day-to-day work, can make some changes 
> in the code, run maven install, and Maven will take care of pulling in the 
> transitive dependencies, compiling and building the target jars.
> Now, moving to OSGi.
> Working the same way won’t be sufficient, as Maven may pull in transitive 
> dependencies which aren’t bundles.
> In addition, Maven can successfully compile our project, although some 
> Manifest requirements are missing, which means the OSGi FW will not resolve.
> But we do want as much automation of the process as possible, so what do we 
> do?
> We want that:
> 1.   When building our project, we’ll automatically get bundle versions 
> of our 3rd parties, including bundle versions of their transitive 
> dependencies, without the need to specify transitive dependencies.
> 2.   After build we want to verify that our OSGi FW can be resolved. I.e. 
> all bundles can be in ACTIVE state.
>  
> I read a lot about it and managed to conclude that what we need is OBR.
> However, although I read a lot about OBR, I can’t get the puzzle fixed.
> I couldn’t find any hands-on tutorial of working with OBR end to end.
> I do understand that the main players in the game are: bundles repositories 
> and a resolver.
> I understand that I need to start with my own modules as the initial set of 
> bundles and that OBR should then automatically pull my missing dependencies 
> from the repositories and resolve the OSGi FW.
> But how exactly to do that?
> 1.   Do we need to implement anything, or there’re implementations that 
> 

Re: [osgi-dev] help needed

2016-11-28 Thread Daghan ACAY
Thanks a lot gwendal.

Sent by MailWise<http://www.mail-wise.com/installation/2> – See your emails as 
clean, short chats.


 Original Message 
From: gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Tuesday, November 29, 2016 11:03 AM
To: OSGi Developer Mail List <osgi-dev@mail.osgi.org>
Subject: Re: [osgi-dev] help needed


Done but only for osgi.enroute.iot.pi.provider and not for pi4j because 
osgi.enroute.iot.pi.provider  is really needed for the second part of the tuto 
with scheduler.


Gwendal.



De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : lundi 28 novembre 2016 08:18
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


You welcome,


It would be great help if you can find time and do a pull request on the 
tutorial source at least for raspberry pi 2.

You can find the page content here https://github.com/osgi/osgi.enroute.site.


good luck

-Daghan




From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Monday, November 28, 2016 7:18 AM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] help needed


Thank you very much Daghan, it works fine []


Unfortunately this library isn't up to date for raspberry 3 so I had py4j 
dependency in the central.xml as you explain for osgi.enroute.iot.pi.provider 
and all is right now.


Thanks again.


Regards,

Gwendal.


De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : dimanche 27 novembre 2016 03:38
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


Hi Gwendal,


I believe "osgi.enroute.iot.pi.provider" is no longer a part of enroute distro. 
Please remove the manually downloaded pi4j from your project and do the 
following:


1- open cnf>central.xml

2- Add the following



org.osgi
osgi.enroute.iot.pi.provider
2.0.0



This should solve your problem.


PS: if cannot find cnf>central.xml then let me know (possibly you will see 
cnf>central.json), I will provide another solution.


Cheers

-Daghan



From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Sunday, November 27, 2016 12:20 AM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] help needed


Hi all, I am trying to do this tutorial


http://enroute.osgi.org/tutorial_iot/120-exploring.html


but I have got a problem with:

osgi.enroute.iot.pi.provider

package is not find so I can resolve bndrun dependencies:


Unable to resolve <> version=null:
   missing requirement osgi.enroute.iot.pi.provider



and when I try with

osgi.enroute.iot.pi.command

dependencies not found:


Unable to resolve <> version=null:
   missing requirement enroute.iot.raspberry.application
->  Unable to resolve enroute.iot.raspberry.application 
version=1.0.0.201611270001:
   missing requirement com.pi4j.system]


I manually dowload and add pi4j in my project build path so I haven't no more 
eclipse problem but I fell that it is not a good solution for osgi and it not 
run on my remote raspberry ssh console...


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

Re: [osgi-dev] help needed

2016-11-28 Thread gwendal toullec
Done but only for osgi.enroute.iot.pi.provider and not for pi4j because 
osgi.enroute.iot.pi.provider  is really needed for the second part of the tuto 
with scheduler.


Gwendal.



De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : lundi 28 novembre 2016 08:18
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


You welcome,


It would be great help if you can find time and do a pull request on the 
tutorial source at least for raspberry pi 2.

You can find the page content here https://github.com/osgi/osgi.enroute.site.


good luck

-Daghan




From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Monday, November 28, 2016 7:18 AM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] help needed


Thank you very much Daghan, it works fine []


Unfortunately this library isn't up to date for raspberry 3 so I had py4j 
dependency in the central.xml as you explain for osgi.enroute.iot.pi.provider 
and all is right now.


Thanks again.


Regards,

Gwendal.


De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : dimanche 27 novembre 2016 03:38
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


Hi Gwendal,


I believe "osgi.enroute.iot.pi.provider" is no longer a part of enroute distro. 
Please remove the manually downloaded pi4j from your project and do the 
following:


1- open cnf>central.xml

2- Add the following



org.osgi
osgi.enroute.iot.pi.provider
2.0.0



This should solve your problem.


PS: if cannot find cnf>central.xml then let me know (possibly you will see 
cnf>central.json), I will provide another solution.


Cheers

-Daghan



From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Sunday, November 27, 2016 12:20 AM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] help needed


Hi all, I am trying to do this tutorial


http://enroute.osgi.org/tutorial_iot/120-exploring.html


but I have got a problem with:

osgi.enroute.iot.pi.provider

package is not find so I can resolve bndrun dependencies:


Unable to resolve <> version=null:
   missing requirement osgi.enroute.iot.pi.provider



and when I try with

osgi.enroute.iot.pi.command

dependencies not found:


Unable to resolve <> version=null:
   missing requirement enroute.iot.raspberry.application
->  Unable to resolve enroute.iot.raspberry.application 
version=1.0.0.201611270001:
   missing requirement com.pi4j.system]


I manually dowload and add pi4j in my project build path so I haven't no more 
eclipse problem but I fell that it is not a good solution for osgi and it not 
run on my remote raspberry ssh console...


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

Re: [osgi-dev] help needed

2016-11-28 Thread Daghan ACAY
You welcome,


It would be great help if you can find time and do a pull request on the 
tutorial source at least for raspberry pi 2.

You can find the page content here https://github.com/osgi/osgi.enroute.site.


good luck

-Daghan




From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Monday, November 28, 2016 7:18 AM
To: OSGi Developer Mail List
Subject: Re: [osgi-dev] help needed


Thank you very much Daghan, it works fine []


Unfortunately this library isn't up to date for raspberry 3 so I had py4j 
dependency in the central.xml as you explain for osgi.enroute.iot.pi.provider 
and all is right now.


Thanks again.


Regards,

Gwendal.


De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : dimanche 27 novembre 2016 03:38
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


Hi Gwendal,


I believe "osgi.enroute.iot.pi.provider" is no longer a part of enroute distro. 
Please remove the manually downloaded pi4j from your project and do the 
following:


1- open cnf>central.xml

2- Add the following



org.osgi
osgi.enroute.iot.pi.provider
2.0.0



This should solve your problem.


PS: if cannot find cnf>central.xml then let me know (possibly you will see 
cnf>central.json), I will provide another solution.


Cheers

-Daghan



From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Sunday, November 27, 2016 12:20 AM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] help needed


Hi all, I am trying to do this tutorial


http://enroute.osgi.org/tutorial_iot/120-exploring.html


but I have got a problem with:

osgi.enroute.iot.pi.provider

package is not find so I can resolve bndrun dependencies:


Unable to resolve <> version=null:
   missing requirement osgi.enroute.iot.pi.provider



and when I try with

osgi.enroute.iot.pi.command

dependencies not found:


Unable to resolve <> version=null:
   missing requirement enroute.iot.raspberry.application
->  Unable to resolve enroute.iot.raspberry.application 
version=1.0.0.201611270001:
   missing requirement com.pi4j.system]


I manually dowload and add pi4j in my project build path so I haven't no more 
eclipse problem but I fell that it is not a good solution for osgi and it not 
run on my remote raspberry ssh console...


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

Re: [osgi-dev] help needed

2016-11-27 Thread gwendal toullec
Thank you very much Daghan, it works fine []


Unfortunately this library isn't up to date for raspberry 3 so I had py4j 
dependency in the central.xml as you explain for osgi.enroute.iot.pi.provider 
and all is right now.


Thanks again.


Regards,

Gwendal.


De : osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> de la part 
de Daghan ACAY <daghana...@hotmail.com>
Envoyé : dimanche 27 novembre 2016 03:38
À : OSGi Developer Mail List
Objet : Re: [osgi-dev] help needed


Hi Gwendal,


I believe "osgi.enroute.iot.pi.provider" is no longer a part of enroute distro. 
Please remove the manually downloaded pi4j from your project and do the 
following:


1- open cnf>central.xml

2- Add the following



org.osgi
osgi.enroute.iot.pi.provider
2.0.0



This should solve your problem.


PS: if cannot find cnf>central.xml then let me know (possibly you will see 
cnf>central.json), I will provide another solution.


Cheers

-Daghan



From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of gwendal toullec <gwendaltoul...@hotmail.com>
Sent: Sunday, November 27, 2016 12:20 AM
To: osgi-dev@mail.osgi.org
Subject: [osgi-dev] help needed


Hi all, I am trying to do this tutorial


http://enroute.osgi.org/tutorial_iot/120-exploring.html


but I have got a problem with:

osgi.enroute.iot.pi.provider

package is not find so I can resolve bndrun dependencies:


Unable to resolve <> version=null:
   missing requirement osgi.enroute.iot.pi.provider



and when I try with

osgi.enroute.iot.pi.command

dependencies not found:


Unable to resolve <> version=null:
   missing requirement enroute.iot.raspberry.application
->  Unable to resolve enroute.iot.raspberry.application 
version=1.0.0.201611270001:
   missing requirement com.pi4j.system]


I manually dowload and add pi4j in my project build path so I haven't no more 
eclipse problem but I fell that it is not a good solution for osgi and it not 
run on my remote raspberry ssh console...


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

Re: [osgi-dev] Help

2016-10-21 Thread Loic de MONTAIGNAC
Although I have only registered very recently and posted only once to 
this list, I also support an osgi-users list as, as an osgi | enRoute 
beginner, it always definitively feels awkward to disrupt a list/forum 
(and therefore more advanced subscribers) with likely trivial and basic 
questions - so yes please... I would be very happy to be also subscribed 
to this new list - thanks in advance!!


On 20/10/2016 15:59, Peter Kriens wrote:
I support a an osgi-users list but I think a specific OSGi enRoute 
list is wrong since the far majority of questions is from developers 
that want have problems developing with OSGi.


Kind regards,

Peter Kriens

On 20 okt. 2016, at 15:56, BJ Hargrave <hargr...@us.ibm.com 
<mailto:hargr...@us.ibm.com>> wrote:


Maybe we need an osgi-users list for more general help type questions 
and osgi-dev can stay more focussed on spec related discussions?
I could create the osgi-users list and intially subscribe everyone on 
osgi-dev to it. Then people can unsubscribe from either (or both) 
lists as they see fit.
But, in general, there is a tension between being too fine and too 
coarse. Much like designing the modularity of your bundles... :-)

--

BJ Hargrave
Senior Technical Staff Member, IBM // office: +1 386 848 1781
OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788
hargr...@us.ibm.com <mailto:hargr...@us.ibm.com>

- Original message -
From: Raymond Auge <raymond.a...@liferay.com
<mailto:raymond.a...@liferay.com>>
Sent by: osgi-dev-boun...@mail.osgi.org
<mailto:osgi-dev-boun...@mail.osgi.org>
To: OSGi Developer Mail List <osgi-dev@mail.osgi.org
<mailto:osgi-dev@mail.osgi.org>>
Cc:
Subject: Re: [osgi-dev] Help
Date: Thu, Oct 20, 2016 8:46 AM
Since I pushed at the OSGi board level to move enRoute discussion
here, let me take this back (meeting this coming week) and see
what we can do. It's not intended to alienate anyone who were
enjoying the list as it was. The idea was simply to coalesce two
already low volume channels into one... but perhaps that wasn't a
good idea after all.
Sincerely,
- Ray
On Thu, Oct 20, 2016 at 8:39 AM, erwindl0 <erwin...@gmail.com
<mailto:erwin...@gmail.com>> wrote:

+1

Op 10/20/2016 om 2:35 PM schreef Simon Chemouil:

Hi Peter,


Peter Kriens a écrit le 20/10/2016 13:52 :

I did a quick check on the last messages on this list:

[snip]

So out of more than 60 messages, there were only 5
messages related
to OSGi enRoute. Are these your problem? Since I will
spend much less
time on OSGi enRoute a new release is unlikely.

Maybe I am wrong to characterize it as enRoute. I don't know.

I do count those Zigbee messages, the native library
loading, and so on, as enRoute support. Mostly because
the authors come
with a "Help me solve my whole problem" mindset, and I
believe they came
to post here because they are trying enRoute (because
they said so).

Karaf's ML has a lot of similar "general questions about
Java/shell
help/OSGi" threads, because many Karaf users consider the
whole of it as
a stack and often don't know where to ask (or don't care
since they get
help wherever they ask anyway!). I believe Karaf has
split their lists
between karaf-users@ for general purpose and karaf-devs@
and for more
specific spec/higher-level discussion.


By my count since it moved here more than 30% of all mail
count has been
posted here because osgi-dev is the enRoute support list.
(~180 mails
since ~20th of september, 60+ very basic "Help me" requests).

My problem is with the quality of the discussed content.
I stayed 2 days
on Karaf's users@ ML before unregistering because of the
amount of
StackOverflow/IRC kind of questions. My problem is seing
the content
quality of osgi-dev@ decreasing, and because the quality
was satisfying
before: mostly spec discussion on specific points, not
"Help me I'm
lost" questions.

If no one else has that feeling, fine. I'm asking if
others do. Łukasz
Dywicki seemed to say so quite early on I suppose he and
maybe other
share the sentiment.


Best regards,

___
OSGi Developer Mail List
osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org&g

Re: [osgi-dev] Help

2016-10-20 Thread Simon Chemouil
BJ Hargrave a écrit le 20/10/2016 15:56 :
> Maybe we need an osgi-users list for more general help type questions
> and osgi-dev can stay more focussed on spec related discussions?
>  
> I could create the osgi-users list and intially subscribe everyone on
> osgi-dev to it. Then people can unsubscribe from either (or both) lists
> as they see fit.

+1 for the osgi-users@ solution.

> But, in general, there is a tension between being too fine and too
> coarse. Much like designing the modularity of your bundles... :-)

In my experience it is easier to subscribe to 5 finely grained lists
than ignore 2/5th of a coarsed-grained one ... but I understand it
places more burden on the user, who wants Require-ML-Bundles and not
Require-ML-Packages ;)

Simon


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


Re: [osgi-dev] Help

2016-10-20 Thread BJ Hargrave
You need to put the native lib in the bundle and put a Bundle-NativeCode header in the bundle's manifest with the necessary information. See the OSGi Core spec for details.
 
--BJ HargraveSenior Technical Staff Member, IBM // office: +1 386 848 1781OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788hargr...@us.ibm.com
 
 
- Original message -From: Sent by: osgi-dev-boun...@mail.osgi.orgTo: Cc:Subject: [osgi-dev] HelpDate: Thu, Oct 20, 2016 6:24 AM  
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 Listosgi-dev@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev
 

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

Re: [osgi-dev] Help

2016-10-20 Thread BJ Hargrave
Maybe we need an osgi-users list for more general help type questions and osgi-dev can stay more focussed on spec related discussions?
 
I could create the osgi-users list and intially subscribe everyone on osgi-dev to it. Then people can unsubscribe from either (or both) lists as they see fit.
 
But, in general, there is a tension between being too fine and too coarse. Much like designing the modularity of your bundles... :-)
 
--BJ HargraveSenior Technical Staff Member, IBM // office: +1 386 848 1781OSGi Fellow and CTO of the OSGi Alliance // mobile: +1 386 848 3788hargr...@us.ibm.com
 
 
- Original message -From: Raymond Auge Sent by: osgi-dev-boun...@mail.osgi.orgTo: OSGi Developer Mail List Cc:Subject: Re: [osgi-dev] HelpDate: Thu, Oct 20, 2016 8:46 AM 
Since I pushed at the OSGi board level to move enRoute discussion here, let me take this back (meeting this coming week) and see what we can do. It's not intended to alienate anyone who were enjoying the list as it was. The idea was simply to coalesce two already low volume channels into one... but perhaps that wasn't a good idea after all. Sincerely,- Ray
 
On Thu, Oct 20, 2016 at 8:39 AM, erwindl0  wrote:

+1Op 10/20/2016 om 2:35 PM schreef Simon Chemouil:
 
Hi Peter,Peter Kriens a écrit le 20/10/2016 13:52 :
I did a quick check on the last messages on this list:[snip]

So out of more than 60 messages, there were only 5 messages relatedto OSGi enRoute. Are these your problem? Since I will spend much lesstime on OSGi enRoute a new release is unlikely.Maybe I am wrong to characterize it as enRoute. I don't know.I do count those Zigbee messages, the native libraryloading, and so on, as enRoute support. Mostly because the authors comewith a "Help me solve my whole problem" mindset, and I believe they cameto post here because they are trying enRoute (because they said so).Karaf's ML has a lot of similar "general questions about Java/shellhelp/OSGi" threads, because many Karaf users consider the whole of it asa stack and often don't know where to ask (or don't care since they gethelp wherever they ask anyway!). I believe Karaf has split their listsbetween karaf-users@ for general purpose and karaf-devs@ and for morespecific spec/higher-level discussion.By my count since it moved here more than 30% of all mail count has beenposted here because osgi-dev is the enRoute support list. (~180 mailssince ~20th of september, 60+ very basic "Help me" requests).My problem is with the quality of the discussed content. I stayed 2 dayson Karaf's users@ ML before unregistering because of the amount ofStackOverflow/IRC kind of questions. My problem is seing the contentquality of osgi-dev@ decreasing, and because the quality was satisfyingbefore: mostly spec discussion on specific points, not "Help me I'mlost" questions.If no one else has that feeling, fine. I'm asking if others do. ŁukaszDywicki seemed to say so quite early on I suppose he and maybe othershare the sentiment.Best regards, 
___OSGi Developer Mail Listosgi-dev@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev--
Raymond Augé (@rotty3000)
Senior Software Architect Liferay, Inc. (@Liferay)Board Member & EEG Co-Chair, OSGi Alliance (@OSGiAlliance)
___OSGi Developer Mail Listosgi-dev@mail.osgi.orghttps://mail.osgi.org/mailman/listinfo/osgi-dev
 

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

Re: [osgi-dev] Help

2016-10-20 Thread Raymond Auge
Since I pushed at the OSGi board level to move enRoute discussion here, let
me take this back (meeting this coming week) and see what we can do. It's
not intended to alienate anyone who were enjoying the list as it was. The
idea was simply to coalesce two already low volume channels into one... but
perhaps that wasn't a good idea after all.

Sincerely,
- Ray

On Thu, Oct 20, 2016 at 8:39 AM, erwindl0  wrote:

> +1
>
> Op 10/20/2016 om 2:35 PM schreef Simon Chemouil:
>
> Hi Peter,
>>
>>
>> Peter Kriens a écrit le 20/10/2016 13:52 :
>>
>>> I did a quick check on the last messages on this list:
>>>
>> [snip]
>>
>>> So out of more than 60 messages, there were only 5 messages related
>>> to OSGi enRoute. Are these your problem? Since I will spend much less
>>> time on OSGi enRoute a new release is unlikely.
>>>
>> Maybe I am wrong to characterize it as enRoute. I don't know.
>>
>> I do count those Zigbee messages, the native library
>> loading, and so on, as enRoute support. Mostly because the authors come
>> with a "Help me solve my whole problem" mindset, and I believe they came
>> to post here because they are trying enRoute (because they said so).
>>
>> Karaf's ML has a lot of similar "general questions about Java/shell
>> help/OSGi" threads, because many Karaf users consider the whole of it as
>> a stack and often don't know where to ask (or don't care since they get
>> help wherever they ask anyway!). I believe Karaf has split their lists
>> between karaf-users@ for general purpose and karaf-devs@ and for more
>> specific spec/higher-level discussion.
>>
>>
>> By my count since it moved here more than 30% of all mail count has been
>> posted here because osgi-dev is the enRoute support list. (~180 mails
>> since ~20th of september, 60+ very basic "Help me" requests).
>>
>> My problem is with the quality of the discussed content. I stayed 2 days
>> on Karaf's users@ ML before unregistering because of the amount of
>> StackOverflow/IRC kind of questions. My problem is seing the content
>> quality of osgi-dev@ decreasing, and because the quality was satisfying
>> before: mostly spec discussion on specific points, not "Help me I'm
>> lost" questions.
>>
>> If no one else has that feeling, fine. I'm asking if others do. Łukasz
>> Dywicki seemed to say so quite early on I suppose he and maybe other
>> share the sentiment.
>>
>>
>> Best regards,
>>
>>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
*Raymond Augé* 
 (@rotty3000)
Senior Software Architect *Liferay, Inc.* 
 (@Liferay)
Board Member & EEG Co-Chair, OSGi Alliance  (@OSGiAlliance)
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-10-20 Thread erwindl0

+1

Op 10/20/2016 om 2:35 PM schreef Simon Chemouil:

Hi Peter,


Peter Kriens a écrit le 20/10/2016 13:52 :

I did a quick check on the last messages on this list:

[snip]

So out of more than 60 messages, there were only 5 messages related
to OSGi enRoute. Are these your problem? Since I will spend much less
time on OSGi enRoute a new release is unlikely.

Maybe I am wrong to characterize it as enRoute. I don't know.

I do count those Zigbee messages, the native library
loading, and so on, as enRoute support. Mostly because the authors come
with a "Help me solve my whole problem" mindset, and I believe they came
to post here because they are trying enRoute (because they said so).

Karaf's ML has a lot of similar "general questions about Java/shell
help/OSGi" threads, because many Karaf users consider the whole of it as
a stack and often don't know where to ask (or don't care since they get
help wherever they ask anyway!). I believe Karaf has split their lists
between karaf-users@ for general purpose and karaf-devs@ and for more
specific spec/higher-level discussion.


By my count since it moved here more than 30% of all mail count has been
posted here because osgi-dev is the enRoute support list. (~180 mails
since ~20th of september, 60+ very basic "Help me" requests).

My problem is with the quality of the discussed content. I stayed 2 days
on Karaf's users@ ML before unregistering because of the amount of
StackOverflow/IRC kind of questions. My problem is seing the content
quality of osgi-dev@ decreasing, and because the quality was satisfying
before: mostly spec discussion on specific points, not "Help me I'm
lost" questions.

If no one else has that feeling, fine. I'm asking if others do. Łukasz
Dywicki seemed to say so quite early on I suppose he and maybe other
share the sentiment.


Best regards,



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

Re: [osgi-dev] Help

2016-10-20 Thread Simon Chemouil
Hi Peter,


Peter Kriens a écrit le 20/10/2016 13:52 :
> I did a quick check on the last messages on this list:
[snip]
>
> So out of more than 60 messages, there were only 5 messages related
> to OSGi enRoute. Are these your problem? Since I will spend much less
> time on OSGi enRoute a new release is unlikely.

Maybe I am wrong to characterize it as enRoute. I don't know.

I do count those Zigbee messages, the native library
loading, and so on, as enRoute support. Mostly because the authors come
with a "Help me solve my whole problem" mindset, and I believe they came
to post here because they are trying enRoute (because they said so).

Karaf's ML has a lot of similar "general questions about Java/shell
help/OSGi" threads, because many Karaf users consider the whole of it as
a stack and often don't know where to ask (or don't care since they get
help wherever they ask anyway!). I believe Karaf has split their lists
between karaf-users@ for general purpose and karaf-devs@ and for more
specific spec/higher-level discussion.


By my count since it moved here more than 30% of all mail count has been
posted here because osgi-dev is the enRoute support list. (~180 mails
since ~20th of september, 60+ very basic "Help me" requests).

My problem is with the quality of the discussed content. I stayed 2 days
on Karaf's users@ ML before unregistering because of the amount of
StackOverflow/IRC kind of questions. My problem is seing the content
quality of osgi-dev@ decreasing, and because the quality was satisfying
before: mostly spec discussion on specific points, not "Help me I'm
lost" questions.

If no one else has that feeling, fine. I'm asking if others do. Łukasz
Dywicki seemed to say so quite early on I suppose he and maybe other
share the sentiment.


Best regards,

-- 
Simon


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

Re: [osgi-dev] Help

2016-10-20 Thread Peter Kriens
I did a quick check on the last messages on this list:

2x Meta list discussion
4x Request native code documentation (enroute is mentioned because app note 
does not suffice)
5x Zigbee
4x Sysout Logging because of configuration problems
8x DS unsatisfied references
3x DS lazy activation
5x How to build an OSGi applications with native code and non-osgi jars
25x DS life cycle through factories/whiteboard 
5x OSGi enRoute release

So out of more than 60 messages, there were only 5 messages related to OSGi 
enRoute. Are these your problem? Since I will spend much less time on OSGi 
enRoute a new release is unlikely. 

Kind regards,

Peter Kriens





> On 20 okt. 2016, at 13:03, Simon Chemouil  wrote:
> 
> Resurrecting this old topic.
> 
> It has been decided in the OSGi Alliance to move enRoute support here,
> but maybe it could be decided to move it elsewhere now?
> 
> I'm interested in the osgi discussion / spec content, but the interest /
> noise ratio is decreasing rapidly, and it's only a few users of enRoute
> posting so far. This has always been a quiet list but most messages were
> relevant.
> 
> A more modular approach would be to split those lists, as they seem to
> attract different profiles and interests :).
> 
> What do you think?
> 
> Regards,
> Simon
> 
> 
> Peter Kriens a écrit le 16/08/2016 13:57 :
>> Eh, we’ve decided in the OSGi to move OSGi enRoute support to this list
>> … So this is a valid topic.
>> 
>> Kind regards,
>> 
>> Peter Kriens
>> 
>>> On 16 aug. 2016, at 11:53, Łukasz Dywicki >> > wrote:
>>> 
>>> Gentlemen,
>>> Could you please move enroute support to separate mailing list?
>>> 
>>> Best regards,
>>> Lukasz
> 
> 
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev



smime.p7s
Description: S/MIME cryptographic signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help

2016-10-20 Thread Simon Chemouil
Resurrecting this old topic.

It has been decided in the OSGi Alliance to move enRoute support here,
but maybe it could be decided to move it elsewhere now?

I'm interested in the osgi discussion / spec content, but the interest /
noise ratio is decreasing rapidly, and it's only a few users of enRoute
posting so far. This has always been a quiet list but most messages were
relevant.

A more modular approach would be to split those lists, as they seem to
attract different profiles and interests :).

What do you think?

Regards,
Simon


Peter Kriens a écrit le 16/08/2016 13:57 :
> Eh, we’ve decided in the OSGi to move OSGi enRoute support to this list
> … So this is a valid topic.
> 
> Kind regards,
> 
> Peter Kriens
> 
>> On 16 aug. 2016, at 11:53, Łukasz Dywicki > > wrote:
>>
>> Gentlemen,
>> Could you please move enroute support to separate mailing list?
>>
>> Best regards,
>> Lukasz


___
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 <osgi-dev@mail.osgi.org>
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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Christian Schneider 
<ch...@die-schneider.net<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<http://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<mailto: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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 12 October 2016 14:56
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org><mailto:osgi-dev@mail.osgi.org>
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<http://www.liquid-reality.de/>



Open Source Architect

http://www.talend.com<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<http://www.wipro.com/> ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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. 
P

Re: [osgi-dev] Help

2016-10-12 Thread Neil Bartlett
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, <manoj.vrajam...@wipro.com> 
> <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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of Christian Schneider <ch...@die-schneider.net 
> <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 
> <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 
> <mailto: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> 
>> [mailto: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 <osgi-dev@mail.osgi.org> 
>> <mailto:osgi-dev@mail.osgi.org>
>> 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 <http://www.liquid-reality.de/>
> 
> Open Source Architect
> http://www.talend.com <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 <http://www.wipro.com/> 
>  16:58:50.png>___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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

Re: [osgi-dev] Help

2016-10-12 Thread Christian Schneider
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 <osgi-dev@mail.osgi.org>
*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

___
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 Neil Bartlett

> On 12 Oct 2016, at 10:30, <manoj.vrajam...@wipro.com> 
> <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 ?

I can’t tell you the exact bundle because I don’t know what version of the 
specification you want to use. I would prefer to show you how to find this kind 
of information for yourself.

You are using JAX-RS which is a specification defined by the Java Community 
Process. JSR 311 
(https://jcp.org/aboutJava/communityprocess/final/jsr311/index.html) defines 
version 1.0 and JSR 339 
(http://download.oracle.com/otndocs/jcp/jaxrs-2_0-fr-spec/index.html) defines 
version 2.0. You can get hold of API-only JARs from either of those pages.

Also if you search Maven Central you can find various re-packagings of the API. 
I can’t tell you which one to use any more than I can tell you what colour 
socks to wear.

Note that it is not necessary for the JAR to be a bundle in order for you to 
compile against it.


> 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 ?


This is a tool usage question, so the answer depends on what tool you are using 
and how it is set up. I see from your screenshot you are using Bndtools, but 
not everybody on this mailing list is using Bndtools so what follows will not 
be useful for everybody.

You have a “Distro” repository in your Repositories View. Type “jaxrs” into the 
search field and under Distro you will see a link “continue search on JPM4J”. 
Click that link and it will open the JPM4J view in Bndtools, which is simply a 
view into the jpm4j.org website (alternatively you can just do this search on 
jpm4j.org in your normal web browser).

Once you have found a library that you want to use, you can drag-drop it (by 
picking up the green rectangle) onto the “Distro” repository in Bndtools. This 
will add it to your repository. Now it will be available to add to the Build 
Path of any project.

Regards,
Neil


>  
> From: osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org> 
> [mailto: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 <osgi-dev@mail.osgi.org 
> <mailto:osgi-dev@mail.osgi.org>>
> 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, <manoj.vrajam...@wipro.com 
> <mailto:manoj.vrajam...@wipro.com>> <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> 
> [mailto: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 <osgi-dev@mail.osgi.org 
> <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 
> <mailto: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 <http://www.wipro.com/> 
>  12:35:20.png>___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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, confident

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 <osgi-dev@mail.osgi.org>
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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Neil Bartlett
Sent: 12 October 2016 14:54
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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<http://www.wipro.com/> ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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 Neil Bartlett
You need to have the JAX-RS API on your build path.


> On 12 Oct 2016, at 10:24, <manoj.vrajam...@wipro.com> 
> <manoj.vrajam...@wipro.com> wrote:
> 
> Nope !
>  
> From: osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org> 
> [mailto: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 <osgi-dev@mail.osgi.org 
> <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 
> <mailto: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 <http://www.wipro.com/> 
>  12:35:20.png>___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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 <http://www.wipro.com/> 
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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

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 <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<mailto: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<http://www.wipro.com/> ___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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 Neil Bartlett
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  
>  12:35:20.png>___
> 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

Re: [osgi-dev] Help

2016-09-30 Thread Christian Schneider
Yes .. CXF should provide good jaxrs support.

See the DS REST example of CXF DOSGi
https://github.com/apache/cxf-dosgi/tree/master/samples/rest

The SOAP example also has a bndrun file that you can easily adapt to the
rest example.

Christian


2016-09-30 17:11 GMT+02:00 Peter Kriens <peter.kri...@aqute.biz>:

> If you have complex REST API needs then you better check out JAX-RS
> implementations. The purpose of the OSGi enRoute REST API is to make it as
> simple as posible to call methods from Javascript into an OSGi service. It
> was not designed to be a general purpose REST API with full mapping.
>
> The OSGi is developing a JAX-RS specification https://github.
> com/osgi/design/blob/master/rfcs/rfc0217/rfc-217-JAX-RS-Services.pdf
>
> I think CXF already has an implementation of JAX-RS.
>
> Kind regards,
>
> Peter Kriens
>
>
> On 30 sep. 2016, at 13:31, manoj.vrajam...@wipro.com wrote:
>
> 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' <osgi-dev@mail.osgi.org>
> *Subject:* RE: [osgi-dev] Help
>
> Please reply..  Gentle Reminder J
>
> *From:* Manoj Venkatesh Rajamani (Product Engineering Service)
> *Sent:* 30 September 2016 12:49
> *To:* 'OSGi Developer Mail List' <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' <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 <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
>
>
>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org
> https://mail.osgi.org/mailman/listinfo/osgi-dev
>



-- 
-- 
Christian Schneider
http://www.liquid-reality.de
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46=http%3a%2f%2fwww.liquid-reality.de>

Open Source Architect
http://www.talend.com
<https://owa.talend.com/owa/redir.aspx?C=3aa4083e0c744ae1ba52bd062c5a7e46=http%3a%2f%2fwww.talend.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 Peter Kriens
If you have complex REST API needs then you better check out JAX-RS 
implementations. The purpose of the OSGi enRoute REST API is to make it as 
simple as posible to call methods from Javascript into an OSGi service. It was 
not designed to be a general purpose REST API with full mapping.

The OSGi is developing a JAX-RS specification 
https://github.com/osgi/design/blob/master/rfcs/rfc0217/rfc-217-JAX-RS-Services.pdf
 
<https://github.com/osgi/design/blob/master/rfcs/rfc0217/rfc-217-JAX-RS-Services.pdf>

I think CXF already has an implementation of JAX-RS.

Kind regards,

Peter Kriens


> On 30 sep. 2016, at 13:31, manoj.vrajam...@wipro.com wrote:
> 
> 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 
> <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' <osgi-dev@mail.osgi.org 
> <mailto:osgi-dev@mail.osgi.org>>
> Subject: RE: [osgi-dev] Help
>  
> Please reply..  Gentle Reminder J
>  
> From: Manoj Venkatesh Rajamani (Product Engineering Service) 
> Sent: 30 September 2016 12:49
> To: 'OSGi Developer Mail List' <osgi-dev@mail.osgi.org 
> <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' <osgi-dev@mail.osgi.org 
> <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 <osgi-dev@mail.osgi.org 
> <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/ 
> <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



smime.p7s
Description: S/MIME cryptographic signature
___
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' <osgi-dev@mail.osgi.org>
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' 
<osgi-dev@mail.osgi.org<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' 
<osgi-dev@mail.osgi.org<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 
<osgi-dev@mail.osgi.org<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' <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' 
<osgi-dev@mail.osgi.org<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 
<osgi-dev@mail.osgi.org<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' <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 
<osgi-dev@mail.osgi.org<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
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 <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
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-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 <osgi-dev@mail.osgi.org>
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 <osgi-dev@mail.osgi.org>
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<mailto: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 
<osgi-dev@mail.osgi.org<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 
<osgi-dev@mail.osgi.org<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 
<mailto:manoj@manoj-Latitude-E5420:~$%20%0b%0b//POST%20fails...See%20below%20(%20no%20error%20seen)%0b%0bmanoj@manoj-Latitude-E5420:~$%20curl%20-X%20POST%20-H%20>
 "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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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(

Re: [osgi-dev] Help

2016-08-24 Thread Peter Kriens
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…  L
>  
> From: Manoj Venkatesh Rajamani (Product Engineering Service) 
> Sent: 24 August 2016 15:37
> To: OSGi Developer Mail List <osgi-dev@mail.osgi.org 
> <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 <osgi-dev@mail.osgi.org 
> <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 
> <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  
> <mailto:manoj@manoj-Latitude-E5420:~$%20%0b%0b//POST%20fails...See%20below%20(%20no%20error%20seen)%0b%0bmanoj@manoj-Latitude-E5420:~$%20curl%20-X%20POST%20-H%20>"Content-Type:application/json"
>  -d "'Hello'" http://localhost:8080/rest/upper 
> <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> 
> [mailto: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 <osgi-dev@mail.osgi.org 
> <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 
> <mailto: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 
> <http://localhost:8080/rest/value>
> 
> 
> But got the following error:
> manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
> http://localhost:8080/rest/value <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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of David Leangen <o...@leangen.net <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
>  
> <https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test>
>  
>  
> Cheers,
> =David
>  
>  
>  
> On Aug 23, 2016, at 8:36 PM, <manoj.vrajam...@wipro.com 
> <mailto:manoj.vrajam...@wipro.com>> <manoj.vrajam...@wipro.com 
> <mailto:manoj.vrajam...@wipro.com>> wrote:
>  
> Hi All,
> 

Re: [osgi-dev] Help

2016-08-24 Thread Daghan ACAY
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.

[https://lh4.googleusercontent.com/Dfqo9J42K7-xRvHW3GVpTU7YCa_zpy3kEDSIlKjpd2RAvVlNfZe5pn8Swaa4TgCWNTuOJOAfwWY=s128-h128-e365]<https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en>

Postman<https://chrome.google.com/webstore/detail/postman/fhbjgbiflinjbdggehcddcbncdddomop?hl=en>
chrome.google.com
Supercharge your API workflow with Postman! Build, test, and document your APIs 
faster. More than a million developers already do.…


[http://cdn.sstatic.net/Sites/stackoverflow/img/apple-touch-i...@2.png?v=73d79a89bded]<http://stackoverflow.com/questions/866946/how-can-i-see-the-request-headers-made-by-curl-when-sending-a-request-to-the-ser>

How can I see the request headers made by curl when 
...<http://stackoverflow.com/questions/866946/how-can-i-see-the-request-headers-made-by-curl-when-sending-a-request-to-the-ser>
stackoverflow.com
I want to see the request headers made by curl when I am sending a request to 
the server. How can I check that?





From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of manoj.vrajam...@wipro.com <manoj.vrajam...@wipro.com>
Sent: Wednesday, August 24, 2016 11:44 AM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Help


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 <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 
<osgi-dev@mail.osgi.org<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 
<mailto:manoj@manoj-Latitude-E5420:~$%20%0b%0b//POST%20fails...See%20below%20(%20no%20error%20seen)%0b%0bmanoj@manoj-Latitude-E5420:~$%20curl%20-X%20POST%20-H%20>
 "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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<mailto:o...@leangen.net>>
Sent: 23 August 2016 17:56:18
To: OS

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 <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 
<osgi-dev@mail.osgi.org<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 
<mailto:manoj@manoj-Latitude-E5420:~$%20%0b%0b//POST%20fails...See%20below%20(%20no%20error%20seen)%0b%0bmanoj@manoj-Latitude-E5420:~$%20curl%20-X%20POST%20-H%20>
 "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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wi

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 <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 
<mailto:manoj@manoj-Latitude-E5420:~$%20%0b%0b//POST%20fails...See%20below%20(%20no%20error%20seen)%0b%0bmanoj@manoj-Latitude-E5420:~$%20curl%20-X%20POST%20-H%20>
 "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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@mail.osgi.org>
https://mail.osgi.org/mailman/listinfo/osgi-dev



The information contained in this electronic message and any attachment

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 <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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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 
v

Re: [osgi-dev] Help

2016-08-24 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 <osgi-dev@mail.osgi.org>
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 <osgi-dev-boun...@mail.osgi.org>
> on behalf of David Leangen <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, <manoj.vrajam...@wipro.com> 
>> <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 s

Re: [osgi-dev] Help

2016-08-24 Thread Peter Kriens
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/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 <osgi-dev-boun...@mail.osgi.org> on 
> behalf of David Leangen <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, <manoj.vrajam...@wipro.com> 
>> <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 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
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 <osgi-dev@mail.osgi.org>
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> 
[mailto:osgi-dev-boun...@mail.osgi.org] On Behalf Of Peter Kriens
Sent: 24 August 2016 10:43
To: OSGi Developer Mail List 
<osgi-dev@mail.osgi.org<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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto:osgi-dev@m

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 <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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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, distribut

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 <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<mailto: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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of David Leangen <o...@leangen.net<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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 c

Re: [osgi-dev] Help

2016-08-23 Thread Peter Kriens
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 
> <http://localhost:8080/rest/value>
> 
> 
> But got the following error:
> 
> manoj@manoj-Latitude-E5420:~$ curl --data "param1=Hello" 
> http://localhost:8080/rest/value <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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of David Leangen <o...@leangen.net <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
>  
> <https://github.com/osgi/osgi.enroute.bundles/tree/master/osgi.enroute.rest.simple.test>
> 
> 
> Cheers,
> =David
> 
> 
> 
>> On Aug 23, 2016, at 8:36 PM, <manoj.vrajam...@wipro.com 
>> <mailto:manoj.vrajam...@wipro.com>> <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 
>> <http://www.wipro.com/> ___
>> OSGi Developer Mail List
>> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
>> https://mail.osgi.org/mailman/listinfo/osgi-dev 
>> <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 <http://www.wipro.com/> 
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <https://mail.osgi.org/mailman/listinfo/osgi-dev>


smime.p7s
Description: S/MIME cryptographic signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

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 <osgi-dev-boun...@mail.osgi.org> on behalf 
of David Leangen <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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com/> 
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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-08-23 Thread David Leangen

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 
> 
___
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 Peter Kriens
Eh, we’ve decided in the OSGi to move OSGi enRoute support to this list … So 
this is a valid topic.

Kind regards,

Peter Kriens

> On 16 aug. 2016, at 11:53, Łukasz Dywicki <luk...@dywicki.pl> wrote:
> 
> Gentlemen,
> Could you please move enroute support to separate mailing list?
> 
> Best regards,
> Lukasz
> —
> Apache Karaf Committer & PMC
> Twitter: @ldywicki
> Blog: http://dywicki.pl <http://dywicki.pl/>
> Code-House - http://code-house.org <http://code-house.org/>
>> Wiadomość napisana przez <manoj.vrajam...@wipro.com 
>> <mailto:manoj.vrajam...@wipro.com>> <manoj.vrajam...@wipro.com 
>> <mailto:manoj.vrajam...@wipro.com>> w dniu 16 sie 2016, o godz. 11:49:
>> 
>> Please find the Github page when accessed from my browser..  (attached)
>> From: Manoj Venkatesh Rajamani (Product Engineering Service)
>> Sent: 16 August 2016 15:12:19
>> To: OSGi Developer Mail List
>> Subject: Re: [osgi-dev] Help
>>  
>> 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 <mailto:osgi-dev-boun...@mail.osgi.org> 
>> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
>> behalf of Neil Bartlett <njbartl...@gmail.com <mailto:njbartl...@gmail.com>>
>> 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, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <manoj.vrajam...@wipro.com 
>>>

Re: [osgi-dev] Help

2016-08-16 Thread Łukasz Dywicki
Gentlemen,
Could you please move enroute support to separate mailing list?

Best regards,
Lukasz
—
Apache Karaf Committer & PMC
Twitter: @ldywicki
Blog: http://dywicki.pl
Code-House - http://code-house.org

> Wiadomość napisana przez <manoj.vrajam...@wipro.com> 
> <manoj.vrajam...@wipro.com> w dniu 16 sie 2016, o godz. 11:49:
> 
> Please find the Github page when accessed from my browser..  (attached)
> From: Manoj Venkatesh Rajamani (Product Engineering Service)
> Sent: 16 August 2016 15:12:19
> To: OSGi Developer Mail List
> Subject: Re: [osgi-dev] Help
>  
> 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 <mailto:osgi-dev-boun...@mail.osgi.org> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of Neil Bartlett <njbartl...@gmail.com <mailto:njbartl...@gmail.com>>
> 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, <manoj.vrajam...@wipro.com 
>> <mailto:manoj.vrajam...@wipro.com>> <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> 
>> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
>> behalf of Peter Kriens <peter.kri...@aqute.biz 
>> <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, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com&g

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 <osgi-dev-boun...@mail.osgi.org> on behalf 
of Neil Bartlett <njbartl...@gmail.com>
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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens <peter.kri...@aqute.biz<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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 <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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens <peter.kri...@aqute.biz<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<manoj.vrajam...@w

Re: [osgi-dev] Help

2016-08-16 Thread Neil Bartlett
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, <manoj.vrajam...@wipro.com> 
> <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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of Peter Kriens <peter.kri...@aqute.biz 
> <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, <manoj.vrajam...@wipro.com 
>> <mailto:manoj.vrajam...@wipro.com>> <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  <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> 
>> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
>> behalf of Peter Kriens <peter.kri...@aqute.biz 
>> <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 <https://github.com/osgi> is included.
>> 
>> Kind regards,
>> 
>> Peter Kriens
>> 
>> 
>>> On 16 aug. 2016, at 06:49, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <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> <osgi-dev-boun...@mail.osgi.org 
>>> <mailto:osgi-dev-boun...@mail.osgi.org>> on behalf of Peter Kriens 
>>> <peter.kri...@aqute.biz <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, <manoj.vrajam...@wipro.com 
>>>> <mailto:manoj.vrajam...@wipro.com>> <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.osg

Re: [osgi-dev] Help

2016-08-16 Thread Daghan ACAY
Hi Manoj,

I think you should start from base tutorial from scratch but follow *every* 
step because those are to give you a ventral idea without knowing enroute or 
bndtool which has many conventions under the hood e.g. enroute workspace. Also 
make sure you are using the recommended versions of eclipse and bndtools.

If you have difficulty following the base tutorials then please let's us know 
or create a pull request.

After that you might solve the problem you are facing right now. It is quite 
difficult to help you without knowing your exact steps. Best person to help you 
is yourself.

Regards
- Daghan

Sent by MailWise<http://www.mail-wise.com/installation/2> – See your emails as 
clean, short chats.


 Original Message 
From: manoj.vrajam...@wipro.com
Sent: Tuesday, August 16, 2016 06:17 PM
To: osgi-dev@mail.osgi.org
Subject: Re: [osgi-dev] Help


I did not quite understand that...Can you please help me to cross this barrier 
please...


From: osgi-dev-boun...@mail.osgi.org <osgi-dev-boun...@mail.osgi.org> on behalf 
of Peter Kriens <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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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 <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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens <peter.kri...@aqute.biz<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Peter Kriens <peter.kri...@aqute.biz<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, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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> 
<osgi-dev-boun...@mail.osgi.org<mailto:osgi-dev-boun...@mail.osgi.org>> on 
behalf of Neil Bartlett <njbartl...@gmail.com<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<mailto: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

Re: [osgi-dev] Help

2016-08-12 Thread Peter Kriens
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, <manoj.vrajam...@wipro.com> 
> <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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of Neil Bartlett <njbartl...@gmail.com <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 
>> <mailto: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> 
>> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
>> behalf of Peter Kriens <peter.kri...@aqute.biz 
>> <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, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <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> 
>>> [mailto: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 <osgi-dev@mail.osgi.org 
>>> <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 <http://enroute.osgi.org/>
>>>  
>>> On 1 aug. 2016, at 06:49, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <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:
>>

Re: [osgi-dev] Help

2016-08-12 Thread Neil Bartlett
It says “ 5 errors detected”. It would be nice to know what they are.

Neil

> On 12 Aug 2016, at 14:59, 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> 
> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
> behalf of Neil Bartlett <njbartl...@gmail.com <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 
>> <mailto: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> 
>> <osgi-dev-boun...@mail.osgi.org <mailto:osgi-dev-boun...@mail.osgi.org>> on 
>> behalf of Peter Kriens <peter.kri...@aqute.biz 
>> <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, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <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> 
>>> [mailto: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 <osgi-dev@mail.osgi.org 
>>> <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 <http://enroute.osgi.org/>
>>>  
>>> On 1 aug. 2016, at 06:49, <manoj.vrajam...@wipro.com 
>>> <mailto:manoj.vrajam...@wipro.com>> <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 
>>> <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 acces

Re: [osgi-dev] Help

2016-08-01 Thread Peter Kriens
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, <manoj.vrajam...@wipro.com> 
> <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> 
> [mailto: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 <osgi-dev@mail.osgi.org 
> <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 <http://enroute.osgi.org/>
>  
> On 1 aug. 2016, at 06:49, <manoj.vrajam...@wipro.com 
> <mailto:manoj.vrajam...@wipro.com>> <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 <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 <http://www.wipro.com/>
> ___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <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 
> <http://www.wipro.com/>___
> OSGi Developer Mail List
> osgi-dev@mail.osgi.org <mailto:osgi-dev@mail.osgi.org>
> https://mail.osgi.org/mailman/listinfo/osgi-dev 
> <https://mail.osgi.org/mailman/listinfo/osgi-dev>


smime.p7s
Description: S/MIME cryptographic signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

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 <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

On 1 aug. 2016, at 06:49, 
<manoj.vrajam...@wipro.com<mailto:manoj.vrajam...@wipro.com>> 
<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<http://www.wipro.com>
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org<mailto: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-08-01 Thread Peter Kriens
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,  
>  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



smime.p7s
Description: S/MIME cryptographic signature
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev

Re: [osgi-dev] Help in using your Quartz OSGi bundle

2015-10-19 Thread Pedro Domingues

Greetings,

as some of you may know, I have been trying to import the Quartz 
library into my vanilla OSGi project.


Importing third-party dependencies into an OSGi container is usually a 
daunting task time consuming, most of the times not even worth it hours 
after starting it.
This problem is so severe, that I was asked to post in my blog the 
solutions I've found so far to work around this issue 
(http://web.ist.utl.pt/ist162500/?cat=2 - sorry for the messy images and 
ugly UI, I am working on a new server to host my blog).


Well, so far no luck on importing quartz... Both original quartz library 
bundle and amdatu bundle 
 import even more 
dependencies as mandatory:


(Amdatu)

*Import-Package:* com.mchange.v2.c3p0;resolution:=optional,
javax.ejb;resolution:=optional,
javax.mail;resolution:=optional,
javax.mail.internet;resolution:=optional,
javax.jms;resolution:=optional,
javax.rmi;resolution:=optional,
javax.naming;resolution:=optional,
*javax.management,**
**javax.management.openmbean,**
**javax.servlet,**
**javax.servlet.http,**
**javax.sql,**
**javax.transaction,**
**javax.xml.bind,**
**javax.xml.namespace,**
**javax.xml.parsers,**
**javax.xml.xpath,*
org.amdatu.scheduling.annotations;version="[1.0,2)",
org.amdatu.scheduling.annotations.timeinterval;version="[1.0,2)",
org.apache.felix.dm;version="[4.0,5)",
org.osgi.framework;version="[1.6,2)",
org.osgi.service.log;version="[1.3,2)",
*org.w3c.dom,**
**org.xml.sax*

(Quartz terracotta)

*Import-Package:* *com.mchange.v2.c3p0,*
commonj.work;resolution:=optional,
javax.ejb;resolution:=optional,
javax.jms;resolution:=optional,
javax.mail;resolution:=optional,
javax.mail.internet;resolution:=optional,
*javax.management,**
**javax.management.openmbean,**
**javax.naming,*
javax.servlet;resolution:=optional,
javax.servlet.http;resolution:=optional,
javax.sql;resolution:=optional,
javax.transaction;resolution:=optional,
*javax.xml.bind,**
**javax.xml.namespace,**
**javax.xml.parsers,**
**javax.xml.xpath,*
oracle.sql;resolution:=optional,
org.jboss.logging;resolution:=optional,
org.jboss.naming;resolution:=optional,
org.jboss.system;resolution:=optional,
*org.quartz,**
**org.quartz.core,**
**org.quartz.impl.matchers,**
**org.quartz.impl.triggers,**
**org.quartz.jobs;resolution:=optional,**
**org.quartz.spi,**
**org.slf4j;version="[1.6,2)",*
org.terracotta.toolkit;resolution:=optional,
org.terracotta.toolkit.atomic;resolution:=optional,
org.terracotta.toolkit.builder;resolution:=optional,
org.terracotta.toolkit.cluster;resolution:=optional,
org.terracotta.toolkit.collections;resolution:=optional,
org.terracotta.toolkit.concurrent.locks;resolution:=optional,
org.terracotta.toolkit.config;resolution:=optional,
org.terracotta.toolkit.internal;resolution:=optional,
org.terracotta.toolkit.internal.concurrent.locks;resolution:=optional,
org.terracotta.toolkit.rejoin;resolution:=optional,
org.terracotta.toolkit.search;resolution:=optional,
org.terracotta.toolkit.search.attribute;resolution:=optional,
org.terracotta.toolkit.store;resolution:=optional,
*org.w3c.dom,**
**org.xml.sax,*
weblogic.jdbc.jts;resolution:=optional,
weblogic.jdbc.vendor.oracle;resolution:=optional

Why would I need javax.sql, javax.servlet, w3c, etc... to make cron 
jobs? To me as *the end user of this bundle* this make no sense!


However, I can see why this happens; this bundles is *coarse-grained*, 
which is against the desired design of bundles. According to literature 
all bundles should be *fine-grained*, having *very concise 
responsibilities* and as a consequence, *only import the required 
dependencies for those responsibilities* (these books cover this very 
well http://www.kirkk.com/modularity/chapters/ and 
http://shop.oreilly.com/product/0636920033158.do, and so does this one 
https://www.manning.com/books/osgi-in-action). So arguments like the 
ones I've received before "this is the OSGi way, get used to it or leave 
it" are in my opinion invalid, since every OSGi and modular programming 
book states that *bulky coase-grained bundles**are a very bad practice*.


To make things worse, these are not a bundles, these are entire projects 
wrapped into a single jar having a MANIFEST.MF file. In the end, I see 
that my only option, as of now, is to import manually each quartz 
dependency, one by one, until no unresolved imports are left or class 
not found exceptions are thrown (yeah, because most of those transitive 
dependencies are not bundles!). However, finding a solution for this 
specific bundle will only help me this time and will probably be based 
on mere luck because due to the circumstances of what I am importing. 
Since I am a frequent user of OSGi it will be just a mater of time until 
I face the dependency hell again with another third-party import, 
*because this problem has no publicly available solution so far*. So, my 
despair exists for deeper reasons, greater than the "minor" 

Re: [osgi-dev] Help on Security Permission

2009-09-14 Thread Karl Pauls
Have a look at the following pdf:

http://felix.apache.org/site/presentations.data/Building%20Secure%20OSGi%20Applications.pdf

Hope that helps,

regards,

Karl

On Mon, Sep 14, 2009 at 2:24 AM, Abhishek kapoor
abhishekkapoor2...@gmail.com wrote:
 Richard,

 Thanks for the reply. As I am in a learning process of OSGI is there any
 online example for it ?


 On Sun, 2009-09-13 at 20:18 -0400, Richard S. Hall wrote:
 If you run with security enabled, then you just don't grant them that
 permission.

 - richard

 On 9/13/09 20:06, Abhishek kapoor wrote:
  Dear Members,
 
  Is there any way to stop bundle from un-installing other bundles in the
  framework ?
 
  Many Thanks
  Sunny
 
  ___
  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

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




-- 
Karl Pauls
karlpa...@gmail.com
___
OSGi Developer Mail List
osgi-dev@mail.osgi.org
https://mail.osgi.org/mailman/listinfo/osgi-dev


Re: [osgi-dev] Help on Security Permission

2009-09-14 Thread Abhishek kapoor
Dear Karl,

Many Thanks for the doc. You are a star :)

Much Appreciated
Sunny


On Mon, 2009-09-14 at 11:13 +0200, Karl Pauls wrote:
 Karl

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


Re: [osgi-dev] Help on Security Permission

2009-09-13 Thread Richard S. Hall
If you run with security enabled, then you just don't grant them that 
permission.


- richard

On 9/13/09 20:06, Abhishek kapoor wrote:

Dear Members,

Is there any way to stop bundle from un-installing other bundles in the
framework ?

Many Thanks
Sunny

___
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