Home » Eclipse Projects » Equinox » Activator is not found, raising a ClassNotFoundException
Activator is not found, raising a ClassNotFoundException [message #91202] |
Tue, 26 June 2007 19:01  |
Eclipse User |
|
|
|
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 19:18   |
Eclipse User |
|
|
|
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 19:53   |
Eclipse User |
|
|
|
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 #92963 is a reply to message #92935] |
Tue, 24 July 2007 18:26   |
Eclipse User |
|
|
|
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.
|
|
| | | | |
Goto Forum:
Current Time: Mon Jul 14 11:25:30 EDT 2025
Powered by FUDForum. Page generated in 0.11825 seconds
|