You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by "Nguyen, Liem Manh" <li...@hp.com> on 2011/07/29 20:15:39 UTC
ipojo services within a war
Hello,
I have a service exposed and instantiated via iPOJO annotations within a war file. However, I do not see the service being published correctly (as I would if I package it in a bundle/jar file). Here is my ipojo plugin configuration:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<version>1.8.0</version>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
</plugin>
I am not sure if this is related to bug FELIX-2825 or not. If it is, what version of maven-ipojo-plugin was the bug fixed in? It seems to indicate 1.8.2; but, the latest on the Maven repo is 1.8.0.
Thanks,
Liem
Re: ipojo services within a war
Posted by clement escoffier <cl...@gmail.com>.
Hi,
2011/8/1 Nguyen, Liem Manh <li...@hp.com>
> Thanks, Clement. With 1.9.0-SNAPSHOT, it works now. I also notice that if
> the iPOJO service is packaged as a jar (bundle) file within WEB-INF/lib, the
> iPOJO services are not getting picked up. To have the service exposed, I
> need to package it under WEB-INF/classes. Is this a bug or expected
> behavior?
>
It's the expected behavior as right now, the embedded jar are not analyzed.
Regards,
Clement
>
> Liem
>
> -----Original Message-----
> From: clement escoffier [mailto:clement.escoffier@gmail.com]
> Sent: Saturday, July 30, 2011 3:17 AM
> To: users@felix.apache.org
> Subject: Re: ipojo services within a war
>
> Hi,
>
> You should see in the log is the manipulation occurs or not.
>
> Could you try with:
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-ipojo-plugin</artifactId>
> <version>1.8.0</version>
> <executions>
> <execution>
> <goals>
> <goal>ipojo-bundle</goal>
> </goals>
> <phase>package</phase>
> </execution>
> </executions>
> <dependencies>
> <groupId>org.apache.felix</groupId>
> <artifactId>org.apache.felix.ipojo.manipulator</artifactId>
> <version>1.9.0-SNAPSHOT</version>
> </dependencies>
> </plugin>
>
> It will use a 'not-yet-released' version of the manipulator. If you can't
> resolve it add the following repository to your pom file:
> https://repository.apache.org/content/repositories/snapshots
>
> Regards,
>
> Clement
>
> 2011/7/29 Nguyen, Liem Manh <li...@hp.com>
>
> > Hello,
> >
> > I have a service exposed and instantiated via iPOJO annotations within a
> > war file. However, I do not see the service being published correctly
> (as I
> > would if I package it in a bundle/jar file). Here is my ipojo plugin
> > configuration:
> >
> > <plugin>
> >
> > <groupId>org.apache.felix</groupId>
> >
> > <artifactId>maven-ipojo-plugin</artifactId>
> >
> > <version>1.8.0</version>
> >
> <executions>
> >
> > <execution>
> >
> > <goals>
> >
> > <goal>ipojo-bundle</goal>
> >
> > </goals>
> >
> > <phase>package</phase>
> >
> > </execution>
> >
> > </executions>
> > </plugin>
> >
> > I am not sure if this is related to bug FELIX-2825 or not. If it is,
> what
> > version of maven-ipojo-plugin was the bug fixed in? It seems to indicate
> > 1.8.2; but, the latest on the Maven repo is 1.8.0.
> >
> > Thanks,
> > Liem
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
>
RE: ipojo services within a war
Posted by "Nguyen, Liem Manh" <li...@hp.com>.
Thanks, Clement. With 1.9.0-SNAPSHOT, it works now. I also notice that if the iPOJO service is packaged as a jar (bundle) file within WEB-INF/lib, the iPOJO services are not getting picked up. To have the service exposed, I need to package it under WEB-INF/classes. Is this a bug or expected behavior?
Liem
-----Original Message-----
From: clement escoffier [mailto:clement.escoffier@gmail.com]
Sent: Saturday, July 30, 2011 3:17 AM
To: users@felix.apache.org
Subject: Re: ipojo services within a war
Hi,
You should see in the log is the manipulation occurs or not.
Could you try with:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<version>1.8.0</version>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<dependencies>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.ipojo.manipulator</artifactId>
<version>1.9.0-SNAPSHOT</version>
</dependencies>
</plugin>
It will use a 'not-yet-released' version of the manipulator. If you can't
resolve it add the following repository to your pom file:
https://repository.apache.org/content/repositories/snapshots
Regards,
Clement
2011/7/29 Nguyen, Liem Manh <li...@hp.com>
> Hello,
>
> I have a service exposed and instantiated via iPOJO annotations within a
> war file. However, I do not see the service being published correctly (as I
> would if I package it in a bundle/jar file). Here is my ipojo plugin
> configuration:
>
> <plugin>
>
> <groupId>org.apache.felix</groupId>
>
> <artifactId>maven-ipojo-plugin</artifactId>
>
> <version>1.8.0</version>
> <executions>
>
> <execution>
>
> <goals>
>
> <goal>ipojo-bundle</goal>
>
> </goals>
>
> <phase>package</phase>
>
> </execution>
>
> </executions>
> </plugin>
>
> I am not sure if this is related to bug FELIX-2825 or not. If it is, what
> version of maven-ipojo-plugin was the bug fixed in? It seems to indicate
> 1.8.2; but, the latest on the Maven repo is 1.8.0.
>
> Thanks,
> Liem
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
For additional commands, e-mail: users-help@felix.apache.org
Re: ipojo services within a war
Posted by clement escoffier <cl...@gmail.com>.
Hi,
You should see in the log is the manipulation occurs or not.
Could you try with:
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-ipojo-plugin</artifactId>
<version>1.8.0</version>
<executions>
<execution>
<goals>
<goal>ipojo-bundle</goal>
</goals>
<phase>package</phase>
</execution>
</executions>
<dependencies>
<groupId>org.apache.felix</groupId>
<artifactId>org.apache.felix.ipojo.manipulator</artifactId>
<version>1.9.0-SNAPSHOT</version>
</dependencies>
</plugin>
It will use a 'not-yet-released' version of the manipulator. If you can't
resolve it add the following repository to your pom file:
https://repository.apache.org/content/repositories/snapshots
Regards,
Clement
2011/7/29 Nguyen, Liem Manh <li...@hp.com>
> Hello,
>
> I have a service exposed and instantiated via iPOJO annotations within a
> war file. However, I do not see the service being published correctly (as I
> would if I package it in a bundle/jar file). Here is my ipojo plugin
> configuration:
>
> <plugin>
>
> <groupId>org.apache.felix</groupId>
>
> <artifactId>maven-ipojo-plugin</artifactId>
>
> <version>1.8.0</version>
> <executions>
>
> <execution>
>
> <goals>
>
> <goal>ipojo-bundle</goal>
>
> </goals>
>
> <phase>package</phase>
>
> </execution>
>
> </executions>
> </plugin>
>
> I am not sure if this is related to bug FELIX-2825 or not. If it is, what
> version of maven-ipojo-plugin was the bug fixed in? It seems to indicate
> 1.8.2; but, the latest on the Maven repo is 1.8.0.
>
> Thanks,
> Liem
>
>