Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Deploy plugins: build errors
Deploy plugins: build errors [message #293498] Tue, 25 October 2005 04:10 Go to next message
Eclipse UserFriend
Originally posted by: ja.fgomez.gmail.com

Hi

I've a problem with the Deploy Wizard.

My product works fine in the Eclipse IDE, but if I deploy it the build
fails.

1. ERROR in
D:\_work\GABP.Proteo.GUI.Plugin\src\bbva\gabp\gui\viewers\Fa stTreeContentProvider.java
(at line 8)
import bbva.gabp.structs.ITreeNode;
^^^^^^^^^^^^^^^^^
The import bbva.gabp.structs cannot be resolved
----------
2. ERROR in
D:\_work\GABP.Proteo.GUI.Plugin\src\bbva\gabp\gui\viewers\Fa stTreeContentProvider.java
(at line 64)
ITreeNode nodo = (ITreeNode) parent;
^^^^^^^^^
...

I've tried to create a feature and later deploy it, but also it failed.
In the feature I've sorted the plugins by build order.

Thanks

Jota
Re: Deploy plugins: build errors [message #293499 is a reply to message #293498] Tue, 25 October 2005 05:07 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: ja.fgomez.gmail.com

I've forgotten anything:

If I deploy the plugins separatelly, the build works fine and the deploy
is correct. But, the product run fail.
Framework generate a log file (34 Kb)

!ENTRY org.eclipse.osgi 2005-10-25 10:41:39.211
!MESSAGE An error occurred while automatically activating bundle
bbva.gabp.decalog (5).
!STACK 0
org.osgi.framework.BundleException: The activator
bbva.gabp.decalog.DecalogPlugin for bundle bbva.gabp.decalog is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
...
Caused by: java.lang.ClassNotFoundException:
bbva.gabp.decalog.DecalogPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
...
Root exception:
java.lang.ClassNotFoundException: bbva.gabp.decalog.DecalogPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
...

!ENTRY initial@reference:file:plugins/bbva.gabp.proteo.commons_1.0.0/ 0 0
2005-10-25 10:41:39.602
!MESSAGE FrameworkEvent.ERROR
!STACK 0
org.osgi.framework.BundleException: The activator
bbva.gabp.proteo.commons.ProteoPlugin for bundle bbva.gabp.proteo.commons
is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:149)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:965)
at ...
Caused by: java.lang.ClassNotFoundException:
bbva.gabp.proteo.commons.ProteoPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:350)
...

Root exception:
java.lang.ClassNotFoundException: bbva.gabp.proteo.commons.ProteoPlugin
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:405)
...

Why?
Re: Deploy plugins: build errors [message #293519 is a reply to message #293498] Tue, 25 October 2005 11:22 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mathieu.watel.axlog.fr

Is your plug-in depending on others plug-ins you have developped?

I've had the same problem recently and I found the solution for my case.

Have you got a manifest file ? Have you specified a JAR to compile your
sources into ?
Re: Deploy plugins: build errors [message #293526 is a reply to message #293519] Tue, 25 October 2005 12:14 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Mathieu Watel wrote:
> Is your plug-in depending on others plug-ins you have developped?
>
> I've had the same problem recently and I found the solution for my case.
>
> Have you got a manifest file ? Have you specified a JAR to compile your
> sources into ?
>

So whats the solution? I am having a similar problem. Plugin B depends
on Plugin A. Plugin A deployys just fine. I think plugin B is
deploying fine too, but the log has a bunch of complaints about failure
and not finding classes that are in plugin A. And the build process
sends up an error message. But if you look at the output, it looks good
as plugin As.

If I deploy both plugins at the same time, I don't get the error message.

Whats the solution?


CL
Re: Deploy plugins: build errors [message #293542 is a reply to message #293526] Wed, 26 October 2005 04:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mathieu.watel.axlog.fr

Make sure you have a manifest file for all plug-ins. Your plugin.xml
should only contain 'extension' markups. The manifest.mf file is the one
that contains informations about the bundle.
Edit the manifest.mf file of each plugin and go to the 'Build' tab of the
editor. In the section 'Runtime information', click on 'Add library' and
for plug-in A put a name like A.jar or whatever you want. Click now on the
'Add folder' button, and select your source(s) folder(s).
Then go to the runtime tab and check upon the 'Classpath' category. Click
'New' and enter the SAME name you entered previously. It means your
plug-in will compile as a library into the JAR you specified and then it
has to know this JAR for runtime.
If the dependency between each of your plug-ins is well achieved, it
should work. It not, explain your case in details, I would be glad to help
(spent 3 days searching on how to do that).
Re: Deploy plugins: build errors [message #293560 is a reply to message #293526] Wed, 26 October 2005 08:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mathieu.watel.axlog.fr

As my reply disappeared, I repaste it :P

Make sure you have a manifest file for all plug-ins. Your plugin.xml
should only contain 'extension' markups. The manifest.mf file is the one
that contains informations about the bundle.
Edit the manifest.mf file of each plugin and go to the 'Build' tab of the
editor. In the section 'Runtime information', click on 'Add library' and
for plug-in A put a name like A.jar or whatever you want. Click now on the
'Add folder' button, and select your source(s) folder(s).
Then go to the runtime tab and check upon the 'Classpath' category. Click
'New' and enter the SAME name you entered previously. It means your
plug-in will compile as a library into the JAR you specified and then it
has to know this JAR for runtime.
If the dependency between each of your plug-ins is well achieved, it
should work. It not, explain your case in details, I would be glad to help
(spent 3 days searching on how to do that).
Re: Deploy plugins: build errors [message #293581 is a reply to message #293560] Wed, 26 October 2005 11:54 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Lamont_Gilbert.rigidsoftware.com

Mathieu Watel wrote:
> As my reply disappeared, I repaste it :P
>
> Make sure you have a manifest file for all plug-ins. Your plugin.xml
> should only contain 'extension' markups. The manifest.mf file is the one
> that contains informations about the bundle.
> Edit the manifest.mf file of each plugin and go to the 'Build' tab of
> the editor. In the section 'Runtime information', click on 'Add library'
> and for plug-in A put a name like A.jar or whatever you want. Click now
> on the 'Add folder' button, and select your source(s) folder(s).
> Then go to the runtime tab and check upon the 'Classpath' category.
> Click 'New' and enter the SAME name you entered previously. It means
> your plug-in will compile as a library into the JAR you specified and
> then it has to know this JAR for runtime.
> If the dependency between each of your plug-ins is well achieved, it
> should work. It not, explain your case in details, I would be glad to
> help (spent 3 days searching on how to do that).
>


I used to do it this way. Now on the 'Runtime information' part instead
of using plugin name I use '.'. This makes it deploy the plugin as
class files and not a single jar file. On the classpath part I leave it
blank since when deployed as classes there is no need to add jar file.

So I was doing just as you said, and was having the errors. I do
differently now, but have same errors, but errors are false as the
deploy actually works.

My case is simple as explained. Plugin B depends on plugin A. Plugin A
depends on nothing. Plugin A deploys fine. Plugin B deploys with bunch
of errors about not findine the clases that should have been provided by
plugin A, but it actually does deploy.



CL
Re: Deploy plugins: build errors [message #293583 is a reply to message #293581] Wed, 26 October 2005 12:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: mathieu.watel.axlog.fr

In my case, plug-in A is compiled as a JAR, let's say a.jar. Its runtime
classpath contains a.jar.
Plug-in B is compiled as a JAR too, b.jar, and its runtime classpath
contains it. This plug-in has a dependency on A, and as a matter of fact
automatically gets the JAR produced by plug-in A, a.jar.

That's what I have for my case, and it works fine. Hope that helps.

PS : I don't even consider deployment here, I only speak about how to
configure your files.
Re: Deploy plugins: build errors [message #293585 is a reply to message #293581] Wed, 26 October 2005 12:09 Go to previous message
Eclipse UserFriend
Originally posted by: mathieu.watel.axlog.fr

Ohhh I forgot. Your plug-in A should list the exported packages. It is
done by opening the manifest file and working into tab 'Runtime', section
'Exported packages'. But as you don't seem to have any runtime compilation
error, you may already did that.
Previous Topic:Different behaviours in R3.1 development environment and in R3.1 platform
Next Topic:Deploying fragments in features?
Goto Forum:
  


Current Time: Thu Sep 04 17:01:36 EDT 2025

Powered by FUDForum. Page generated in 0.09476 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top