When I add p2 site created to the Target Platform modifies the Manifest file [message #1779550] |
Tue, 09 January 2018 09:09  |
Eclipse User |
|
|
|
Hello, I recently migrated an Eclipse 3.7 application to Eclipse 4.7 using the compatibility layer which works correctly. Now add the use of Tycho to complete the deploy of the application and to generate the p2 site I use the plugin p2-maven-plugin. The application defines a Target Platform and Features files.
When I add the created p2 site to the target platform and inspecting the org.eclipse.gemini.blueprint bundle, the Maniffest file is modified and no longer has the attribute Bundle-Activator: org.eclipse.gemini.blueprint.extender.internal. boot.
ChainActivator. On the other hand, I have an Activator class that extends the AbstractUIPlugin that raises the plugin and since the manifest does not have that attribute, it does not follow the normal flow of execution.
Any clue?.
Thanks in advance!.
Eclipse 4.7 Oxygen
Tycho 1.1.0-SNAPSHOT
p2-maven-plugin 1.3.0
org.eclipse.gemini.blueprint:gemini-blueprint-extender:2.1.0.RELEASE
Java 1.8
[Updated on: Thu, 11 January 2018 09:46] by Moderator
|
|
|
|
|
|
|
|
|
|
Re: When I add p2 site created to the Target Platform modifies the Manifest file [message #1779798 is a reply to message #1779789] |
Fri, 12 January 2018 14:46   |
Eclipse User |
|
|
|
Hi, Brian, as I was saying before, I tried it in two ways, removing the plugin from Windows -> preferences -> Target Platform -> Edit Target Platform and as you mention from a fresh workspace, neither of which worked.
As you said it was likely that there is some reference at some point to an old copy of the jar and is recovering the old version. Therefore I delete all occurrences of the jar that was in my file system with the command:
find -name org.eclipse.gemini.blueprint.extender_2.1.0.RELEASE.jar -exec rm -f {} \;
Then when I started adding the p2 site to the Target Platform I get error
session context was: (profile = TARGET_DEFINITION: resource: / ftpos-target, phase = org.eclipse.equinox.internal.p2.engine.phases.Install, operand = null -> [R] org.eclipse.gemini.blueprint. extend 2.1.0.RELEASE, action = org.eclipse.equinox.internal.p2.touchpoint.eclipse.actions.InstallBundleAction).
The artifact file for osgi.bundle, org.eclipse.gemini.blueprint.extender, 2.1.0.RELEASE was not found.
Which is the same error I got when trying to remove the plugins manually instead of using Windows -> preferences -> Target Platform -> Edit Target Platform.
Any advice?.
[Updated on: Mon, 15 January 2018 06:32] by Moderator
|
|
|
|
Re: When I add p2 site created to the Target Platform modifies the Manifest file [message #1780191 is a reply to message #1779937] |
Thu, 18 January 2018 08:44   |
Eclipse User |
|
|
|
Hi Brian, you were right, I had to delete from the console gemini and the servicemix jar's of the file system. In some way they are referenced either from the cache, from the .m2 folder from the workspace metadata, etc.
After eliminating all the occurrences and updating some references I was able to advance in the debug. Now I have the error that I attached, basically it's the type
Error creating bean with name 'imageManager' defined in URL [bundleentry: //17.fwk1877453512/META-INF/spring/ftpos-domain-manager-context.xml]: Initialization of bean failed; nested exception is org.springframework.beans.ConversionNotSupportedException: Failed to convert property value of type 'com.sun.proxy. $ Proxy22 implementing com.zetti.common.dao.BaseMutableDAO, com.zetti.common.dao.BaseImmutableDAO, org. springframework.aop.SpringProxy, org.springframework.aop.framework.Advised, org.springframework.core.DecoratingProxy 'to required type' com.zetti.ftpos.domain.dao.impl.image.ImageNDAO 'for property' dao '; nested exception is java.lang.IllegalStateException: Can not convert value of type 'com.sun.proxy. $ Proxy22 implementing com.zetti.common.dao.BaseMutableDAO, com.zetti.common.dao.BaseImmutableDAO, org.springframework.aop. SpringProxy, org.springframework.aop.framework.Advised, org.springframework.core.DecoratingProxy 'to required type' com.zetti.ftpos.domain.dao.impl.image.ImageNDAO 'for property' dao ': no matching editors or conversion strategy found.
I'm investigating what the problem may be when creating the beans. Maybe it's just that the ImagenDao class has no interface and has to declare it. I try and post it if it works.
Attachment: tycho_log
(Size: 91.32KB, Downloaded 191 times)
[Updated on: Thu, 18 January 2018 08:51] by Moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.48029 seconds