Unsolvable error while exporting plugins [message #305489] |
Wed, 05 July 2006 12:08  |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
First, I'd like to mention that I've read nearly all related threads
about exporting issues and nothing worked so far :(
I have a product composed of several plugins, everything compiles and
launches within Eclipse. But, when I export the product I get several
errors in the log.zip like this:
1. ERROR in
D:\Designer\workspace\com.supplyinsight.designer.generator\s rc\com\supplyinsight\designer\generator\AdapterGenerator.jav a
(at line 11)
import org.jdom.Document;
^^^^^^^^
The import org.jdom cannot be resolved
I have a separate plugin for JDOM that is declared as a dependency in
the failing plugin.
What is even stranger is that even though the export fails, it seems
that the product is exported correctly and appears to work and both the
failing plugin and the JDOM plugin appear to be complete JARs. Also, if
I export each plugin individually it works. But if I export both JDOM
plugin and the other plugin at the same time (using the plugin Export
wizard) then it fails?!
I'm totally stuck, I've fully reinstalled the Eclipse 3.2 SDK, created a
fresh workspace, and still no change.
I've looked at http://eclipsewiki.editme.com/PDEFaq and wanted to add an
additional entry like this to the plugin.xml but it is not accepted by
the editor:
<require>
<import plugin="org.jdom"/>
</require>
Any idea?
Thanks,
Jerome
|
|
|
Re: Unsolvable error while exporting plugins [message #305497 is a reply to message #305489] |
Wed, 05 July 2006 12:23   |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
FYI, here are the MANIFEST.MF files:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Generator Plug-in
Bundle-SymbolicName: com.supplyinsight.designer.generator
Bundle-Version: 1.0.0
Bundle-Vendor: Supply Insight
Bundle-Localization: plugin
Require-Bundle: org.jdom;visibility:=reexport,
com.supplyinsight.designer.model;visibility:=reexport
Export-Package: com.supplyinsight.designer.generator
Bundle-ClassPath: .
and:
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Jdom Plug-in
Bundle-SymbolicName: org.jdom
Bundle-Version: 1.0.0
Bundle-ClassPath: .
Bundle-Localization: plugin
Export-Package: .,
org.jdom,
org.jdom.adapters,
org.jdom.filter,
org.jdom.input,
org.jdom.output,
org.jdom.transform,
org.jdom.xpath
|
|
|
|
|
|
Re: Unsolvable error while exporting plugins [message #305555 is a reply to message #305529] |
Thu, 06 July 2006 05:16  |
Eclipse User |
|
|
|
Originally posted by: contact.noelios.com
Paul Webster wrote :
>> I've looked at http://eclipsewiki.editme.com/PDEFaq and wanted to add
>> an additional entry like this to the plugin.xml but it is not accepted
>> by the editor:
>> <require>
>> <import plugin="org.jdom"/>
>> </require>
>
> So I'll just mention that all runtime information is done in the OSGi
> MANIFEST now, not the older plugin.xml style.
OK
> As for exports, if you have imported binary plugins, especially with
> linked content, that can interfere with plugin export.
In my case there was no linked content. When looking at existing bugs, I
came to several similar bugs and especially this one:
"RCP export has problems with required plug-ins"
https://bugs.eclipse.org/bugs/show_bug.cgi?id=146042
It describes a very similar case identified as a PDE-UI bug. It is fixed
in 3.2.1 (upcoming) and 3.3. Meanwhile, for those with 3.2, there is a
workaround that solved it for me. In the build.properties file of the
plug-in corresponding to the existing JAR (JDOM in my case), just add
the following two lines:
source..=.
output..=.
The text editor will complain about "An entry for . is required in
bin.includes" and "The folder "." does not exist in the workspace". Just
ignore those warnings, don't do anything else. The plugin and product
export now works again!
Thanks,
Jerome
|
|
|
Powered by
FUDForum. Page generated in 0.31630 seconds