You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Bob Ziuchkovski (Commented) (JIRA)" <ji...@apache.org> on 2011/12/31 23:43:30 UTC
[jira] [Commented] (FELIX-2825) The maven-ipojo-plugin does not
replace component classes in WAR files
[ https://issues.apache.org/jira/browse/FELIX-2825?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13178088#comment-13178088 ]
Bob Ziuchkovski commented on FELIX-2825:
----------------------------------------
I have run into the same problem. I checked-out and built the ipojo trunk to test this fix. Unfortunately, it looks like the code in the externalize() method of src/main/java/org/apache/felix/ipojo/manipulator/store/mapper/WABResourceMapper.java fails via throwing IllegalArgumentException when it encounters any non-class file, such as META-INF/MANIFEST.MF. If desired, I can craft and upload a simple test maven war project to reproduce the issue.
> The maven-ipojo-plugin does not replace component classes in WAR files
> ----------------------------------------------------------------------
>
> Key: FELIX-2825
> URL: https://issues.apache.org/jira/browse/FELIX-2825
> Project: Felix
> Issue Type: Bug
> Components: iPOJO
> Affects Versions: iPOJO-1.8.0
> Environment: Jetty, Windows
> Reporter: Dyblast
> Assignee: Clement Escoffier
> Fix For: ipojo-manipulator-1.8.2
>
>
> HI,
> I have notice a problem with the maven-ipojo-plugin on war package.
> The resulting classes are incorrect.
> Indeed when i create a war i have this error when i deploy it:
> createInstance -> Cannot invoke the constructor (method not found) :
> Now if i create a bundle instead, i take the classes from it and i put it in the former war, the war works
> my plugins part of maven:
> -------------------------------------------------
> <plugins>
> <plugin>
> <artifactId>maven-war-plugin</artifactId>
> <configuration>
> <archive>
> <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
> </archive>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-bundle-plugin</artifactId>
> <version>1.4.3</version>
> <extensions>true</extensions>
> <executions>
> <execution>
> <id>bundle-manifest</id>
> <phase>process-classes</phase>
> <goals>
> <goal>manifest</goal>
> </goals>
> <configuration>
> <instructions>
> <Bundle-ClassPath>
> .,
> WEB-INF/classes
> </Bundle-ClassPath>
> <Embed-Directory>WEB-INF/lib</Embed-Directory>
> <Embed-Dependency>*;scope=compile|runtime</Embed-Dependency>
> <Embed-Transitive>true</Embed-Transitive>
> <Web-ContextPath>webapp</Web-ContextPath>
> <Webapp-Context>webapp</Webapp-Context>
> </instructions>
> </configuration>
> </execution>
> </executions>
> <configuration>
> <supportedProjectTypes>
> <supportedProjectType>jar</supportedProjectType>
> <supportedProjectType>bundle</supportedProjectType>
> <supportedProjectType>war</supportedProjectType>
> </supportedProjectTypes>
> </configuration>
> </plugin>
> <plugin>
> <groupId>org.apache.felix</groupId>
> <artifactId>maven-ipojo-plugin</artifactId>
> <version>1.8.0</version>
> <executions>
> <execution>
> <goals>
> <goal>ipojo-bundle</goal>
> </goals>
> </execution>
> </executions>
> </plugin>
> </plugins>
> -------------------------------------------------------------
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira