[
https://issues.apache.org/jira/browse/IVYDE-347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13777331#comment-13777331
]
Gregory Amerson commented on IVYDE-347:
---------------------------------------
I've debugged this and its because ivy-settings.xml parser is trying to create
an instance of this class:
org.apache.ivy.plugins.signer.bouncycastle.OpenPGPSignatureGenerator
This class requires several classes in the org.bouncycastle.* package, however,
the OSGi classloader from Eclipse that is creating the new instance of
OpenPGPSignatureGenerator can't find the needed classes from org.bouncycastle
on the bundle classpath.
After trying several alternatives, it seems that the only way to get this to
work is to modify the org.apache.ivy_xxx.jar OSGi bundle itself and add the
necessary "Import-Package: org.bouncycastle.*" packages and also make them
available to Eclipse OSGi runtime. How does IvyDE team feel about this?
> Embedded Ivy fails to parse ivy-settings.xml file if it contains <pgp> element
> ------------------------------------------------------------------------------
>
> Key: IVYDE-347
> URL: https://issues.apache.org/jira/browse/IVYDE-347
> Project: IvyDE
> Issue Type: Bug
> Components: classpath container
> Affects Versions: 2.2.0.beta1
> Reporter: Gregory Amerson
> Attachments: ivy-error.txt
>
>
> I've got a Eclipse java project where I have a ivy.xml and ivy-settings.xml
> added and I'm configuring a Ivy container that I'm pointing to the
> ivy-settings.xml file. The problem is that inside the ivy-settings.xml there
> is an element like this:
> <signers><pgp keyId="${pgp.keyname}" name="${pgp.generator}"
> password="${pgp.passphrase}" /></signers>
> When the IvyDE plugin loads the embedded Ivy runtime from the OSGi bundle and
> have it parse the ivy-settings.xml file it will throw NoClassDefFound when it
> hits the <pgp> element. See attached log file for error.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira