Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Activator is not found, raising a ClassNotFoundException
Activator is not found, raising a ClassNotFoundException [message #91202] Tue, 26 June 2007 23:01 Go to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Hi,

I am experimenting with Eclipse 3.3RC3, trying to port our product.

I am currently trying to run our plugins in dev mode in Eclipse 3.3.

I encounter a strange problem: of all my plugins running together (20+),
one is throwing an exception on activation:


org.osgi.framework.BundleException: The activator
com.intalio.xxx.TryActivator for bundle
"plugin name" is invalid
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
at
org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
at
org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:234)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
Caused by: java.lang.ClassNotFoundException: com.intalio.xxx.TryActivator
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
at
org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)

I tried to see if it was proper to the Activator by changing the
activator class, recreating one from scratch. I also tried playing with
build.properties, I looked at the classpath and all looks good.

This plugin runs with Eclipse 3.2.2.

Any help is appreciated.

Thanks for reading,

Antoine Toulme
--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #91219 is a reply to message #91202] Tue, 26 June 2007 23:18 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Well, as usual, five minutes after writing my message out of
desperation, I have a breakthrough.

Adding the bin folder to the runtime libraries and folders did the job,
now the plugin is loaded as it should be.

I have other plugins for which I defined the classpath, which do not
include the bin folder. They run fine.

I have no idea why this all happened. Is there a bug here ?

Antoine

Antoine Toulme wrote:
> Hi,
>
> I am experimenting with Eclipse 3.3RC3, trying to port our product.
>
> I am currently trying to run our plugins in dev mode in Eclipse 3.3.
>
> I encounter a strange problem: of all my plugins running together (20+),
> one is throwing an exception on activation:
>
>
> org.osgi.framework.BundleException: The activator
> com.intalio.xxx.TryActivator for bundle
> "plugin name" is invalid
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>
> at
> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
> at
> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:234)
>
> at
> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>
> Caused by: java.lang.ClassNotFoundException: com.intalio.xxx.TryActivator
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>
> at
> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>
>
> I tried to see if it was proper to the Activator by changing the
> activator class, recreating one from scratch. I also tried playing with
> build.properties, I looked at the classpath and all looks good.
>
> This plugin runs with Eclipse 3.2.2.
>
> Any help is appreciated.
>
> Thanks for reading,
>
> Antoine Toulme


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #91234 is a reply to message #91219] Tue, 26 June 2007 23:53 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Actually, I have taken this experiment a little further by deleting the
build.properties file that was on the plugin. The other plugins did not
have a build.properties set up. Doing this made also the plugin work.

Here is the build.properties that was attached to my plugin:

bin.includes = plugin.properties,\
plugin.xml,\
schema/,\
META-INF/,\
lib/stax-1.2.0.jar,\
.,\
target/classes/
src.includes = src/main/java/,\
src/test/java/,\
src4.4/main/java/,\
plugin.xml,\
plugin.properties,\
META-INF/,\
schema/,\
lib/stax-1.2.0.jar,\
target/classes/
source.. = src/main/java/,\
src/test/java/,\
src4.4/main/java/
The "bin" directory is target/classes.

I think I'll do without the build.properties file for now.

Antoine

Antoine Toulme wrote:
> Well, as usual, five minutes after writing my message out of
> desperation, I have a breakthrough.
>
> Adding the bin folder to the runtime libraries and folders did the job,
> now the plugin is loaded as it should be.
>
> I have other plugins for which I defined the classpath, which do not
> include the bin folder. They run fine.
>
> I have no idea why this all happened. Is there a bug here ?
>
> Antoine
>
> Antoine Toulme wrote:
>> Hi,
>>
>> I am experimenting with Eclipse 3.3RC3, trying to port our product.
>>
>> I am currently trying to run our plugins in dev mode in Eclipse 3.3.
>>
>> I encounter a strange problem: of all my plugins running together (20+),
>> one is throwing an exception on activation:
>>
>>
>> org.osgi.framework.BundleException: The activator
>> com.intalio.xxx.TryActivator for bundle
>> "plugin name" is invalid
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load BundleActivator(AbstractBundle.java:141)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(BundleContextImpl.java:970)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(BundleHost.java:346)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(AbstractBundle.java:260)
>>
>> at
>> org.eclipse.osgi.framework.util.SecureAction.start(SecureAct ion.java:400)
>> at
>> org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:234)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1269)
>>
>> Caused by: java.lang.ClassNotFoundException: com.intalio.xxx.TryActivator
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl assInternal(BundleLoader.java:434)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:369)
>>
>> at
>> org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:357)
>>
>>
>> I tried to see if it was proper to the Activator by changing the
>> activator class, recreating one from scratch. I also tried playing
>> with build.properties, I looked at the classpath and all looks good.
>>
>> This plugin runs with Eclipse 3.2.2.
>>
>> Any help is appreciated.
>>
>> Thanks for reading,
>>
>> Antoine Toulme
>
>


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #91764 is a reply to message #91234] Sun, 08 July 2007 15:57 Go to previous messageGo to next message
Alain Picard is currently offline Alain PicardFriend
Messages: 266
Registered: July 2009
Senior Member
Antoine,

I just got the same type of issue after cleaning the runtime classpath entries of all sort of inexistent jars.

Thanks
Alain
Re: Activator is not found, raising a ClassNotFoundException [message #92002 is a reply to message #91764] Thu, 12 July 2007 00:57 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Alain,

so far I have just deleted all the plugin.properties files that were
present in the workspace, and that did it.

This is clearly not a proper answer if you are doing a little project
and want to deploy using Eclipse directly.

The problem is not easily reproducible, so I wonder if the Equinox team
is facing it in its test cases or in dev.


Alain Picard wrote:
> Antoine,
>
> I just got the same type of issue after cleaning the runtime
classpath entries of all sort of inexistent jars.
>
> Thanks
> Alain


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #92935 is a reply to message #92002] Tue, 24 July 2007 21:34 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

No news on this ? Should I open a bug, even without a reproducible case,
just for investigation ?

Antoine Toulme wrote:
> Alain,
>
> so far I have just deleted all the plugin.properties files that were
> present in the workspace, and that did it.
>
> This is clearly not a proper answer if you are doing a little project
> and want to deploy using Eclipse directly.
>
> The problem is not easily reproducible, so I wonder if the Equinox team
> is facing it in its test cases or in dev.
>
>
> Alain Picard wrote:
> > Antoine,
> >
> > I just got the same type of issue after cleaning the runtime
> classpath entries of all sort of inexistent jars.
> >
> > Thanks
> > Alain
>
>


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #92963 is a reply to message #92935] Tue, 24 July 2007 22:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: alex_blewitt.yahoo.com

To be honest with you, I doubt that anyone will look; if they do, it'll probably get closed WORKSFORME.

There have been some caching issues with PDE and launch configurations in the past (and possibly still are). Generally, if you get it right first time, it works. I believe that there are cases where if you get it wrong the first time, but then change it subsequently, you can still get bizzare results. Unfortunately, I've not been able to pin down when such things happen.

As with other metadata files, the build.properties contains important information which is always assumed to be in sync with what your project is doing. If it's not, weird and wonderful things occur.

If at first you don't succeed, hit it with ever bigger hammers until one of them fixes it :-)

Alex.
Re: Activator is not found, raising a ClassNotFoundException [message #93476 is a reply to message #92935] Tue, 31 July 2007 19:27 Go to previous messageGo to next message
Thomas Watson is currently offline Thomas WatsonFriend
Messages: 503
Registered: July 2009
Senior Member
I have not run into this myself. It seems like PDE is not setting up
the dev classpath properly for the equinox runtime. Does the bundle
that fails have a Bundle-SymbolicName header? PDE only sets up
development classpaths for bundles with symbolic names.

If you bundle does have a symbolic name then I would open a bug against
PDE, but as Alex states it will be hard for the PDE team to investigate
it unless the have some steps to reproduce.

Tom.
Re: Activator is not found, raising a ClassNotFoundException [message #93545 is a reply to message #93476] Tue, 31 July 2007 21:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

Hi Tom, I will be working on a test case. I will also open a bug against
PDE for that.


Thanks for the help, both of you.

Antoine

Tom Watson wrote:
> I have not run into this myself. It seems like PDE is not setting up
> the dev classpath properly for the equinox runtime. Does the bundle
> that fails have a Bundle-SymbolicName header? PDE only sets up
> development classpaths for bundles with symbolic names.
>
> If you bundle does have a symbolic name then I would open a bug against
> PDE, but as Alex states it will be hard for the PDE team to investigate
> it unless the have some steps to reproduce.
>
> Tom.


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #93875 is a reply to message #93545] Wed, 01 August 2007 21:32 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: atoulme.intalio.com

I opened a request for enhancement regarding PDE. What I thought was a
bug might have been a user error, and this enhancement would help
greatly recognize issues ahead (and fix the bug if any).

https://bugs.eclipse.org/bugs/show_bug.cgi?id=198465

Antoine

Antoine Toulme wrote:
> Hi Tom, I will be working on a test case. I will also open a bug against
> PDE for that.
>
>
> Thanks for the help, both of you.
>
> Antoine
>
> Tom Watson wrote:
>> I have not run into this myself. It seems like PDE is not setting up
>> the dev classpath properly for the equinox runtime. Does the bundle
>> that fails have a Bundle-SymbolicName header? PDE only sets up
>> development classpaths for bundles with symbolic names.
>>
>> If you bundle does have a symbolic name then I would open a bug
>> against PDE, but as Alex states it will be hard for the PDE team to
>> investigate it unless the have some steps to reproduce.
>>
>> Tom.
>
>


--
Intalio, the Open Source BPMS Company

<a href="http://www.intalio.com">http://www.intalio.com</a>
<a href="http://bpms.intalio.com">Community website</a>
Re: Activator is not found, raising a ClassNotFoundException [message #529924 is a reply to message #91202] Tue, 27 April 2010 17:20 Go to previous message
Robert Onslow is currently offline Robert OnslowFriend
Messages: 13
Registered: April 2010
Junior Member
I had this recently. I discovered that right click on the Project, PDETools/Update Classpath ..

solved it for me.

Robert
Previous Topic:OSGI console secured telenet port
Next Topic:Integration of Equinox and Liferay
Goto Forum:
  


Current Time: Fri Apr 26 22:16:50 GMT 2024

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

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

Back to the top