felix-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sateesh <sate...@intense.in>
Subject Re: Ipojo War issue
Date Fri, 29 May 2015 14:03:09 GMT
Hi Clement,

Could you please help me in getting the below issue resolved.

Thanks  & Regards
SAteesh.A

________________________________________
From: Sateesh <sateesh@intense.in>
Sent: Wednesday, April 1, 2015 12:31 PM
To: users@felix.apache.org
Subject: Re: Ipojo War issue

Hi Clement,

below  is the pom file which i modified as per your suggestion but still not getting the required
output with this pom even the manifest.mf file is not getting any ipojo content.


<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
    <modelVersion>4.0.0</modelVersion>

    <groupId>com.aaaa</groupId>
    <artifactId>OSGIWebproject</artifactId>
    <version>1.0</version>
    <packaging>war</packaging>

    <name>OSGIWebproject</name>

    <properties>
        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    </properties>

    <dependencies>

        <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>org.osgi.core</artifactId>
            <version>1.4.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>org.apache.tomcat</groupId>
            <artifactId>tomcat-servlet-api</artifactId>
            <version>7.0.59</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>javax.servlet.jsp</groupId>
            <artifactId>jsp-api</artifactId>
            <version>2.2</version>
            <scope>provided</scope>
        </dependency>


        <dependency>
            <groupId>com.in10s</groupId>
            <artifactId>Workflow</artifactId>
            <version>1.0</version>
            <scope>provided</scope>
        </dependency>
        <dependency>
            <groupId>com.mycompany</groupId>
            <artifactId>MavenHelloService</artifactId>
            <version>1.0-SNAPSHOT</version>
            <scope>provided</scope>
        </dependency>
    </dependencies>

    <build>

        <plugins>

             <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.2</version>
        <configuration>
          <source>1.5</source>
          <target>1.5</target>
        </configuration>
      </plugin>

           <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <version>2.3.5</version>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-Name> Apache Felix iPOJO OSGi Junit Runner - Immediate Runner
            </Bundle-Name>
            <Bundle-SymbolicName> ${project.artifactId}</Bundle-SymbolicName>

            <Include-Resource> META-INF/LICENSE=LICENSE,
              META-INF/NOTICE=NOTICE </Include-Resource>
            <_plugin>org.apache.felix.ipojo.bnd.PojoizationPlugin;metadata=${basedir}/metadata.xml;use-local-schemas=true</_plugin>
          </instructions>
        </configuration>
        <dependencies>
          <dependency>
            <groupId>org.apache.felix</groupId>
            <artifactId>bnd-ipojo-plugin</artifactId>
            <version>1.12.1</version>
          </dependency>
        </dependencies>
      </plugin>
      <plugin>
        <groupId>org.codehaus.mojo</groupId>
        <artifactId>rat-maven-plugin</artifactId>
        <configuration>
          <excludeSubProjects>false</excludeSubProjects>
          <useEclipseDefaultExcludes>true</useEclipseDefaultExcludes>
          <useMavenDefaultExcludes>true</useMavenDefaultExcludes>
          <excludes>
            <param>doc/*</param>
            <param>maven-eclipse.xml</param>
            <param>.checkstyle</param>
            <param>.externalToolBuilders/*</param>
          </excludes>
        </configuration>
      </plugin>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-checkstyle-plugin
        </artifactId>
        <configuration>
          <configLocation>
            http://felix.apache.org/ipojo/dev/checkstyle_ipojo.xml
          </configLocation>
        </configuration>
      </plugin>

      </plugins>
    </build>


</project>


Thanks & Regards
SAteesh.A

________________________________________
From: clement escoffier <clement.escoffier@gmail.com>
Sent: Wednesday, April 1, 2015 11:35 AM
To: users@felix.apache.org
Subject: Re: Ipojo War issue

Hi,

You should try to use the iPOJO BND Plugin as in
https://github.com/apache/felix/blob/33f093d4862955286c3a37b0b1a01153821c50f3/ipojo/junit4osgi/immediate-launcher/pom.xml

(just update the plugin version to the last release).

Cheers,

Clement

2015-03-30 11:19 GMT+02:00 Sateesh <sateesh@intense.in>:

> Hi Clement,
>
> Any update on the below concern.
>
> Thanks & Regards
> SAteesh.A
>
>
>
> ________________________________________
> From: Sateesh <sateesh@intense.in>
> Sent: Wednesday, March 25, 2015 7:27 PM
> To: users@felix.apache.org
> Subject: Re: Ipojo War issue
>
> HI,
>
> My problem is the war file which is generated is not having  ipojo
> manipulated class files.I have attached the class file that is generated it
> does not have any ipojo manipulated code.Following is the meta.xml file
> used for it.
>
>
> <ipojo xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="org.apache.felix.ipojo
>              http://felix.apache.org/ipojo/schemas/CURRENT/core.xsd"
> xmlns="org.apache.felix.ipojo">
> <component name="WorkflowExecutor"
>
> classname="com.hascode.bundle.information_broker_servlet.impl.WorkflowExecutor"
> immediate="true">
> <requires field="WF" />
>
> </component>
>
> <instance name="InfoBrokerServlet.WorkflowExecutor"
> component="WorkflowExecutor">
>
> </instance>
> </ipojo>
>
> Thanks & Regards
> SAteesh.A
>
> ________________________________________
> From: clement escoffier <clement.escoffier@gmail.com>
> Sent: Wednesday, March 25, 2015 6:27 PM
> To: users@felix.apache.org
> Subject: Re: Ipojo War issue
>
> Hi,
>
> The output file looks good. The war is correctly manipulated. What's the
> issue you have ?
>
> Regards,
>
> Clement
>
> 2015-03-25 12:41 GMT+01:00 Sateesh <sateesh@intense.in>:
>
> > HI,
> >
> >  Thanks  for the reply,attached is the output of maven.
> >
> > Regarding bnd IPOJO plugin i am not getting information on how to use it.
> >
> > Thanks & Regards
> > SAteesh.A
> >
> > ________________________________________
> > From: clement escoffier <clement.escoffier@gmail.com>
> > Sent: Wednesday, March 25, 2015 11:54 AM
> > To: users@felix.apache.org
> > Subject: Re: Ipojo War issue
> >
> > Hi,
> >
> > Do you have the maven output ?
> > Did you try the bnd iPOJO plugin ?
> >
> > Regards,
> >
> > Clement
> >
> > 2015-03-24 7:58 GMT+01:00 Sateesh <sateesh@intense.in>:
> >
> > >  Hi Ipojo Team,
> > >
> > >
> > >  I am trying to create a war file which contains a component of ipojo
> to
> > > be created ,but unfortunately  iam not able to succeed in it,but the
> same
> > > thing is working fine on bundle creation.
> > >
> > >
> > >  I have pasted  the pom file below and also attached the MANIFEST.MF
> > > file,you can see in MANIFEST.MF file it does not show the required
> import
> > > package and the class files with in war are also not manipulated by
> > > ipojo.  Request you to please help me in getting this resolved.
> > >
> > >
> > >  <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="
> > > http://www.w3.org/2001/XMLSchema-instance"
> > >          xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
> > > http://maven.apache.org/xsd/maven-4.0.0.xsd">
> > >     <modelVersion>4.0.0</modelVersion>
> > >
> > >      <groupId>com.aaaa</groupId>
> > >     <artifactId>OSGIWebproject</artifactId>
> > >     <version>1.0</version>
> > >     <packaging>war</packaging>
> > >
> > >      <name>OSGIWebproject</name>
> > >
> > >      <properties>
> > >
> >  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
> > >     </properties>
> > >
> > >      <dependencies>
> > >
> > >         <dependency>
> > >             <groupId>org.apache.felix</groupId>
> > >             <artifactId>org.osgi.core</artifactId>
> > >             <version>1.4.0</version>
> > >             <scope>provided</scope>
> > >         </dependency>
> > >         <dependency>
> > >             <groupId>org.apache.tomcat</groupId>
> > >             <artifactId>tomcat-servlet-api</artifactId>
> > >             <version>7.0.59</version>
> > >             <scope>provided</scope>
> > >         </dependency>
> > >         <dependency>
> > >             <groupId>javax.servlet.jsp</groupId>
> > >             <artifactId>jsp-api</artifactId>
> > >             <version>2.2</version>
> > >             <scope>provided</scope>
> > >         </dependency>
> > >
> > >         <dependency>
> > >             <groupId>org.apache.felix</groupId>
> > >             <artifactId>org.apache.felix.ipojo.annotations</artifactId>
> > >             <version>1.11.0</version>
> > >
> > >         </dependency>
> > >         <dependency>
> > >             <groupId>com.in10s</groupId>
> > >             <artifactId>Workflow</artifactId>
> > >             <version>1.0</version>
> > >             <scope>provided</scope>
> > >         </dependency>
> > >     </dependencies>
> > > <build>
> > >         <plugins>
> > >            <plugin>
> > >                 <groupId>org.apache.felix</groupId>
> > >                 <artifactId>maven-bundle-plugin</artifactId>
> > >                 <version>2.5.3</version>
> > >                 <extensions>true</extensions>
> > >                 <executions>
> > >                     <execution>
> > >                         <id>bundle-manifest</id>
> > >                         <phase>package</phase>
> > >                         <goals>
> > >                             <goal>manifest</goal>
> > >                         </goals>
> > >
> > >                     </execution>
> > >                 </executions>
> > > </plugin>
> > >              <plugin>
> > >                 <groupId>org.apache.felix</groupId>
> > >                 <artifactId>maven-ipojo-plugin</artifactId>
> > >                 <version>1.12.1</version>
> > >                 <executions>
> > >                     <execution>
> > >                         <goals>
> > >                             <goal>ipojo-bundle</goal>
> > >                         </goals>
> > >                         <phase>package</phase>
> > >
> > >                     </execution>
> > >                 </executions>
> > >                  <configuration>
> > >                      <metadata>src/main/java/ipojo/meta.xml</metadata>
> > >
> > >                  </configuration>
> > >              </plugin>
> > >            <plugin>
> > >                 <groupId>org.apache.maven.plugins</groupId>
> > >                 <artifactId>maven-war-plugin</artifactId>
> > >                  <version>2.6</version>
> > >                 <configuration>
> > >                   <archive>
> > >
> > > <manifestFile>./src/main/webapp/META-INF/MANIFEST.MF</manifestFile>
> > >                   </archive>
> > >
> > >                    <instructions>
> > >
> > > <Bundle-SymbolicName>OSGIWebproject</Bundle-SymbolicName>
> > >
> > > <Bundle-Version>${project.version}</Bundle-Version>
> > >
> > > <Import-Package>com.in10s.workflow.api</Import-Package>
> > >
> > > <Web-ContextPath>/OSGIWebproject</Web-ContextPath>
> > >
> > > <Webapp-Context>/OSGIWebproject</Webapp-Context>
> > > </instructions>
> > >                 </configuration>
> > >               </plugin>
> > >         </plugins>
> > >     </build>
> > >
> > >
> > > </project>
> > >
> > > ‚Äč
> > >
> > >
> > >
> > >  Thanks & Regrads
> > >
> > > SAteesh.A
> > >  The information contained in this e-mail and any accompanying
> documents
> > > may contain information that is confidential or otherwise protected
> from
> > > disclosure. If you are not the intended recipient of this message, or
> if
> > > this message has been addressed to you in error, please immediately
> alert
> > > the sender by reply e-mail and then delete this message, including any
> > > attachments. Any dissemination, distribution or other use of the
> contents
> > > of this message by anyone other than the intended recipient is strictly
> > > prohibited.
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > > For additional commands, e-mail: users-help@felix.apache.org
> > >
> > The information contained in this e-mail and any accompanying documents
> > may contain information that is confidential or otherwise protected from
> > disclosure. If you are not the intended recipient of this message, or if
> > this message has been addressed to you in error, please immediately alert
> > the sender by reply e-mail and then delete this message, including any
> > attachments. Any dissemination, distribution or other use of the contents
> > of this message by anyone other than the intended recipient is strictly
> > prohibited.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> > For additional commands, e-mail: users-help@felix.apache.org
> >
> The information contained in this e-mail and any accompanying documents
> may contain information that is confidential or otherwise protected from
> disclosure. If you are not the intended recipient of this message, or if
> this message has been addressed to you in error, please immediately alert
> the sender by reply e-mail and then delete this message, including any
> attachments. Any dissemination, distribution or other use of the contents
> of this message by anyone other than the intended recipient is strictly
> prohibited.
> The information contained in this e-mail and any accompanying documents
> may contain information that is confidential or otherwise protected from
> disclosure. If you are not the intended recipient of this message, or if
> this message has been addressed to you in error, please immediately alert
> the sender by reply e-mail and then delete this message, including any
> attachments. Any dissemination, distribution or other use of the contents
> of this message by anyone other than the intended recipient is strictly
> prohibited.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@felix.apache.org
> For additional commands, e-mail: users-help@felix.apache.org
>
The information contained in this e-mail and any accompanying documents may contain information
that is confidential or otherwise protected from disclosure. If you are not the intended recipient
of this message, or if this message has been addressed to you in error, please immediately
alert the sender by reply e-mail and then delete this message, including any attachments.
Any dissemination, distribution or other use of the contents of this message by anyone other
than the intended recipient is strictly prohibited.
The information contained in this e-mail and any accompanying documents may contain information
that is confidential or otherwise protected from disclosure. If you are not the intended recipient
of this message, or if this message has been addressed to you in error, please immediately
alert the sender by reply e-mail and then delete this message, including any attachments.
Any dissemination, distribution or other use of the contents of this message by anyone other
than the intended recipient is strictly prohibited.
Mime
View raw message