Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » RCP JWS - Plug-in was unable to load ... (ClassNotFoundException)
RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458195] Wed, 15 November 2006 13:42 Go to next message
Dawid Ostrowski is currently offline Dawid OstrowskiFriend
Messages: 9
Registered: July 2009
Junior Member
------=_Part_1359_25651984.1163598258338
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hello All.

I've been fighting with many RCP - Java Web Start issues for over 6 days. I solved many, many, problems (thanks to Alex Blewitt for his internet-wide activity :) ) but...

I feel I'm close to solve this finally, but stucked with one error. It looks stupid-simple but I can't solve it. :/

(this is not "wrong class version" or "wrong jre version" problem!)
!SESSION 2006-11-15 13:23:29.158 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2006-11-15 13:23:30.290
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.xxx.client was unable to load class org.xxx.client.DesktopMain.
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.throwException(RegistryStrategyOSGI.java:165)
	at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI.createExecutableExtension(RegistryStrategyOSGI.java:149)
	at org.eclipse.core.internal.registry.ExtensionRegistry.createExecutableExtension(ExtensionRegistry.java:759)
...

org.eclipse.core.runtime.CoreException[1]: java.lang.ClassNotFoundException: org.xinity.client.DesktopMain
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:402)
	at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:347)
	at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:83)
...
---------complete stacktrace in attachment---------


of course - mentioned class is available in the plugin jar.
And I don't know why OSGI doesn't find it. :/

Info about whole configuration:
WinXP, tomcat, Rational Software Architect 7.0, jre 1.5
(so no Mac, no GTK problems)

directories in webapp:
/RcpSharedWebStart
   META-INF
   *.jars
   RcpSharedWebStart.jnlp
   WEB-INF
/xxxRCP
   org.xxx.client_3.0.0.jar
   startup.jar
   xxxRCP.jnlp



-------org.xxx.client_3.0.0.jar ---------
bin
 - here is dir. structure: org/xxx/client/DesktopMain.class
configuration
img
META-INF
plugin.properties
plugin.xml
xxxRCP.jar
 - here in this jar is the same structure as in bin directory


latest problems:
I added com.ibm.icu plugin because of dependency error
I changed osgi plugin jar name (removed R32x_) because of nullpointer error

this stupid DesktopMain class implements org.eclipse.core.runtime.IPlatformRunnable
but not defines any constructor (is it possible that osgi needs some special constructor to instantiate this class?)

other important files I included as attachment

thank You in advance guys :) please rescue me :)
:)
best regards
------=_Part_1359_25651984.1163598258338
Content-Type: text/plain; name=error.txt; charset=us-ascii
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=error.txt

!SESSION 2006-11-15 13:23:29.158 -----------------------------------------------
eclipse.buildId=unknown
java.version=1.5.0_09
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US

!ENTRY org.eclipse.osgi 4 0 2006-11-15 13:23:30.290
!MESSAGE Application error
!STACK 1
org.eclipse.core.runtime.CoreException: Plug-in org.xxx.client was unable to load class org.xxx.client.DesktopMain.
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:165)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:149)
at org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:74)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:59)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
org.eclipse.core.runtime.CoreException[1]: java.lang.ClassNotFoundException: org.xxx.client.DesktopMain
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:402)
at org.eclipse.osgi.framework.internal.core.BundleLoader.findCl ass(BundleLoader.java:347)
at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(DefaultClassLoader.java:83)
at java.lang.ClassLoader.loadClass(Unknown Source)
at org.eclipse.osgi.framework.internal.core.BundleLoader.loadCl ass(BundleLoader.java:278)
at org.eclipse.osgi.framework.internal.core.BundleHost.loadClas s(BundleHost.java:227)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.load Class(AbstractBundle.java:1245)
at org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:147)
at org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:759)
at org.eclipse.core.internal.registry.ConfigurationElement.crea teExecutableExtension(ConfigurationElement.java:243)
at org.eclipse.core.internal.registry.ConfigurationElementHandl e.createExecutableExtension(ConfigurationElementHandle.java: 51)
at org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:74)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:400)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.core.launcher.Main.invokeFramework(Main.java:336 )
at org.eclipse.core.launcher.Main.basicRun(Main.java:280)
at org.eclipse.core.launcher.WebStartMain.basicRun(WebStartMain .java:59)
at org.eclipse.core.launcher.Main.run(Main.java:977)
at org.eclipse.core.launcher.WebStartMain.main(WebStartMain.jav a:40)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.sun.javaws.Launcher.executeApplication(Unknown Source)
at com.sun.javaws.Launcher.executeMainClass(Unknown Source)
at com.sun.javaws.Launcher.continueLaunch(Unknown Source)
at com.sun.javaws.Launcher.handleApplicationDesc(Unknown Source)
at com.sun.javaws.Launcher.handleLaunchFile(Unknown Source)
at com.sun.javaws.Launcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

------=_Part_1359_25651984.1163598258338
Content-Type: application/octet-stream; name=plugin.xml
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=plugin.xml

<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.0"?>
<plugin>

<extension
point="org.eclipse.core.runtime.applications"
id="app"
name="%appName">
<application>
<run
class="org.xxx.client.DesktopMain">
</run>
</application>
</extension>
<extension
point="org.eclipse.ui.perspectives">
<perspective
id="org.xxx.client.xxxPerspective"
name="%perspectives.xxx.name"
class="org.xxx.client.xxxPerspective"
fixed="false"/>
</extension>

<extension
point="org.eclipse.ui.views">
<category
id="org.xxx.client"
name="%views.category.name"/>

<view
id="org.xxx.client.views.commandTreeView"
name="%views.xxx.ct.name"
category="org.xxx.client"
icon="img/xxx_16.bmp"
class="org.xxx.client.views.CommandTreeView"
allowMultiple="false"
/>

</extension>

<extension
point="org.eclipse.ui.editors">
<editor
name="XBOEditor"
default="true"
icon="img/xxx_16.bmp"
filenames=""
class="org.xxx.client.editors.FormEditor"
id="org.xxx.client.editors.FormEditor"
>
</editor>
</extension>

<extension
point="org.eclipse.ui.editors">
<editor
name="OOoEditor"
default="true"
icon="img/write_obj.gif"
filenames=""
class="org.xxx.client.editors.OOEditor"
id="org.xxx.client.editors.OOEditor"
>
</editor>
</extension>

<extension
point="org.eclipse.core.runtime.products"
id="product">
<product
name="%productName"
application="org.xxx.client.app">
<property
name="appName"
value="%swtAppName"/>
<property
name="windowImages"
value="img/xxx_16.bmp,img/xxx_32.bmp"/>
<property
name="aboutText"
value="%aboutText"/>
<property
name="aboutImage"
value="img/xxx_32.bmp"/>
</product>
</extension>

</plugin>

------=_Part_1359_25651984.1163598258338
Content-Type: application/octet-stream; name=rcpsharedwebstart.jnlp
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=rcpsharedwebstart.jnlp

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/RcpSharedWebStart" >
<information>
<title>xxx RCP Libraries</title>
<vendor>xxx</vendor>
<homepage href="http://www.xxx.com" />
<description>xxx RCP runtime libraries</description>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<jar href="com.ibm.cds_2.0.1.200609261321.jar"/>
<jar href="com.ibm.icu_3.4.5.jar"/>
<jar href="org.apache.xerces_2.8.0.v200606131651.jar"/>
<jar href="org.eclipse.core.commands_3.2.0.I20060605-1400.jar"/ >
<jar href="org.eclipse.core.contenttype_3.2.0.v20060603.jar"/>
<jar href="org.eclipse.core.expressions_3.2.1.r321_v20060721.jar "/>
<jar href="org.eclipse.core.jobs_3.2.0.v20060603.jar"/>
<jar href=" org.eclipse.core.runtime.compatibility.auth_3.2.0.v20060601. jar "/>
<jar href=" org.eclipse.core.runtime.compatibility.registry_3.2.1.R32x_v 20060907.jar "/>
<jar href="org.eclipse.core.runtime_3.2.0.v20060603.jar"/>
<jar href="org.eclipse.equinox.common_3.2.0.v20060603.jar"/>
<jar href="org.eclipse.equinox.preferences_3.2.1.R32x_v20060717.jar "/>
<jar href="org.eclipse.equinox.registry_3.2.1.R32x_v20060814.jar "/>
<jar href="org.eclipse.help_3.2.1.R321_v20060920.jar"/>
<jar href="org.eclipse.jface_3.2.1.M20060908-1000.jar"/>
<jar href="org.eclipse.osgi_3.2.1.v20060919.jar"/>
<jar href="org.eclipse.swt.win32.win32.x86_3.2.1.v3235.jar"/>
<jar href="org.eclipse.swt_3.2.1.v3235e.jar"/>
<jar href="org.eclipse.ui.workbench_3.2.1.M20060906-0800.jar"/>
<jar href="org.eclipse.ui_3.2.1.M20060913-0800.jar"/>
</resources>
<component-desc/>
</jnlp>

------=_Part_1359_25651984.1163598258338
Content-Type: application/octet-stream; name=xxxrcp.jnlp
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=xxxrcp.jnlp

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://localhost:8080/xxxRCP" >
<information>
<title>xxx RCP</title>
<vendor>xxx</vendor>
<homepage href="http://www.xxx.com" />
<description>xxx RCP TEST</description>
<icon kind="splash" href="splash.gif"/>
</information>
<offline-allowed/>
<security>
<all-permissions/>
</security>
<resources>
<j2se version="1.4+"/>
<extension name="Shared RCP Framework" href="../RcpSharedWebStart/RcpSharedWebStart.jnlp"/>
<jar href="startup.jar"/>
<jar href="org.xxx.client_3.0.0.jar"/>
<property name="osgi.configuration.area" value="c:/tmp/xxxRCP/config/"/>
<property name="osgi.instance.area" value="c:/tmp/xxxRCP/workspace/"/>
<property name="eclipse.product" value="org.xxx.client.product"/>
</resources>
<application-desc main-class="org.eclipse.core.launcher.WebStartMain"/>
</jnlp>



------=_Part_1359_25651984.1163598258338--
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458203 is a reply to message #458195] Wed, 15 November 2006 15:38 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Usually you don't wanna have your .class files in
<plugin>/bin/org/xxx/....whatever

The basic build.properties file looks something like:
source.. = src/
output.. = bin/
bin.includes = .,\
plugin.xml,\ #etc


It's the ".,\" that includes your .class files at the root of the plugin
jar.

This can happen if you have jar files in your Bundle-ClassPath and don't
include ".", then OSGi can't find your activator.


Later,
PW


Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458216 is a reply to message #458195] Wed, 15 November 2006 19:29 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
What does the manifest.mf of your client jar look like?

Alex.
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458223 is a reply to message #458216] Thu, 16 November 2006 08:54 Go to previous messageGo to next message
Dawid Ostrowski is currently offline Dawid OstrowskiFriend
Messages: 9
Registered: July 2009
Junior Member
------=_Part_1544_5113081.1163667356315
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

The client's manifest.mf look like this (attachment)
It has been generated by Rational Software Architect

Do you have any related clues?

TIA
Dawid
------=_Part_1544_5113081.1163667356315
Content-Type: application/octet-stream; name=manifest.mf
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=manifest.mf

Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Export-Package: .,com.sun.star.accessibility,com.sun.star.animations,c
om.sun.star.auth,com.sun.star.awt,com.sun.star.beans,com.sun .star.bri
dge,com.sun.star.bridge.oleautomation,com.sun.star.chart,com .sun.star
.chart2,com.sun.star.comp.beans,com.sun.star.comp.bridgefact ory,com.s
un.star.comp.connections,com.sun.star.comp.helper,com.sun.st ar.comp.l
oader,com.sun.star.comp.servicemanager,com.sun.star.comp.url resolver,
com.sun.star.configuration,com.sun.star.configuration.backen d,com.sun
.star.connection,com.sun.star.container,com.sun.star.corba,c om.sun.st
ar.corba.giop,com.sun.star.corba.iiop,com.sun.star.corba.iop ,com.sun.
star.datatransfer,com.sun.star.datatransfer.clipboard,com.su n.star.da
tatransfer.dnd,com.sun.star.deployment,com.sun.star.deployme nt.ui,com
.sun.star.document,com.sun.star.drawing,com.sun.star.embed,c om.sun.st
ar.form,com.sun.star.form.binding,com.sun.star.form.submissi on,com.su
n.star.form.validation,com.sun.star.formula,com.sun.star.fra me,com.su
n.star.frame.status,com.sun.star.gallery,com.sun.star.graphi c,com.sun
.star.i18n,com.sun.star.installation,com.sun.star.io,com.sun .star.jav
a,com.sun.star.lang,com.sun.star.ldap,com.sun.star.lib.conne ctions.pi
pe,com.sun.star.lib.connections.socket,com.sun.star.lib.uno, com.sun.s
tar.lib.uno.adapter,com.sun.star.lib.uno.bridges.java_remote ,com.sun.
star.lib.uno.environments.java,com.sun.star.lib.uno.environm ents.remo
te,com.sun.star.lib.uno.helper,com.sun.star.lib.uno.helper.d raft,com.
sun.star.lib.uno.protocols.urp,com.sun.star.lib.uno.typedesc ,com.sun.
star.lib.uno.typeinfo,com.sun.star.lib.util,com.sun.star.lin guistic2,
com.sun.star.loader,com.sun.star.mail,com.sun.star.media,com .sun.star
.mozilla,com.sun.star.packages,com.sun.star.packages.manifes t,com.sun
.star.packages.zip,com.sun.star.plugin,com.sun.star.presenta tion,com.
sun.star.reflection,com.sun.star.registry,com.sun.star.resou rce,com.s
un.star.scanner,com.sun.star.script,com.sun.star.script.brow se,com.su
n.star.script.provider,com.sun.star.sdb,com.sun.star.sdbc,co m.sun.sta
r.sdbcx,com.sun.star.security,com.sun.star.setup,com.sun.sta r.sheet,c
om.sun.star.style,com.sun.star.svg,com.sun.star.sync,com.sun .star.syn
c2,com.sun.star.system,com.sun.star.table,com.sun.star.task, com.sun.s
tar.test,com.sun.star.test.bridge,com.sun.star.test.performa nce,com.s
un.star.text,com.sun.star.ucb,com.sun.star.ui,com.sun.star.u i.dialogs
,com.sun.star.uno,com.sun.star.uri,com.sun.star.util,com.sun .star.uti
l.logging,com.sun.star.view,com.sun.star.xforms,com.sun.star .xml,com.
sun.star.xml.crypto,com.sun.star.xml.crypto.sax,com.sun.star .xml.csax
,com.sun.star.xml.dom,com.sun.star.xml.dom.events,com.sun.st ar.xml.do
m.views,com.sun.star.xml.input,com.sun.star.xml.sax,com.sun. star.xml.
wrapper,com.sun.star.xml.xpath,com.sun.star.xsd,drafts.com.s un.star.d
rawing,drafts.com.sun.star.form,drafts.com.sun.star.frame,dr afts.com.
sun.star.frame.status,drafts.com.sun.star.geometry,drafts.co m.sun.sta
r.rendering,drafts.com.sun.star.ui,org.apache.log4j,org.apac he.log4j.
chainsaw,org.apache.log4j.config,org.apache.log4j.helpers,or g.apache.
log4j.jdbc,org.apache.log4j.jmx,org.apache.log4j.lf5,org.apa che.log4j
.lf5.config,org.apache.log4j.lf5.util,org.apache.log4j.lf5.v iewer,org
.apache.log4j.lf5.viewer.categoryexplorer,org.apache.log4j.l f5.viewer
.configure,org.apache.log4j.lf5.viewer.images,org.apache.log 4j.net,or
g.apache.log4j.nt,org.apache.log4j.or,org.apache.log4j.or.jm s,org.apa
che.log4j.or.sax,org.apache.log4j.spi,org.apache.log4j.varia ,org.apac
he.log4j.xml,org.dom4j,org.dom4j.bean,org.dom4j.datatype,org .dom4j.do
m,org.dom4j.dtd,org.dom4j.io,org.dom4j.jaxb,org.dom4j.rule,o rg.dom4j.
rule.pattern,org.dom4j.swing,org.dom4j.tree,org.dom4j.util,o rg.dom4j.
xpath,org.dom4j.xpp,org.jaxen,org.jaxen.dom,org.jaxen.dom.ht ml,org.ja
xen.dom4j,org.jaxen.expr,org.jaxen.expr.iter,org.jaxen.funct ion,org.j
axen.function.ext,org.jaxen.function.xslt,org.jaxen.javabean ,org.jaxe
n.jdom,org.jaxen.pattern,org.jaxen.saxpath,org.jaxen.saxpath .base,org
.jaxen.saxpath.helpers,org.jaxen.util,org.jaxen.xom,org.jdom ,org.jdom
.adapters,org.jdom.filter,org.jdom.input,org.jdom.output,org .jdom.tra
nsform,org.jdom.xpath,org.xxx.base,org.xxx.base.container,or g.x
inity.base.exceptions,org.xxx.client,org.xxx.client.actions, org
.xxx.client.connection,org.xxx.client.container,org.xxx.clie
nt.dialogs,org.xxx.client.editors,org.xxx.client.editors.ima ges
,org.xxx.client.editors.ooo,org.xxx.client.editors.parser,or g.x
inity.client.editors.parser.elements,org.xxx.client.exceptio ns,org
.xxx.client.views,org.xxx.openoffice,org.xxx.openoffice.help
er,org.xxx.openoffice.internal,org.xxx.util,org.xxx.util.fil
es
Bundle-Version: 3.0.0
Require-Bundle: org.eclipse.core.runtime,org.eclipse.ui.workbench,org.
eclipse.jface
Eclipse-LazyStart: true
Bundle-SymbolicName: org.xxx.client; singleton:=true
Bundle-Name: %pluginName
Bundle-Localization: plugin
Bundle-Vendor: %providerName
Bundle-ClassPath: lib/xxxShared.jar,lib/dom4j-1.6.jar,lib/jaxen-1.1
-beta-4.jar,lib/jdom.jar,lib/juh.jar,lib/jurt.jar,lib/log4j- 1.2.8.jar
,lib/officebean.jar,lib/ridl.jar,lib/unoil.jar,configuration /org.xini
ty.client/

------=_Part_1544_5113081.1163667356315--
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458226 is a reply to message #458203] Thu, 16 November 2006 10:08 Go to previous messageGo to next message
Dawid Ostrowski is currently offline Dawid OstrowskiFriend
Messages: 9
Registered: July 2009
Junior Member
------=_Part_1556_3110824.1163671809006
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Hi

I changed build.properties of my plugin
(added - this "." issue and removed "bin")

I also added Bundle-activator: property to manifest.mf
but still receive the same error :/
------=_Part_1556_3110824.1163671809006
Content-Type: application/octet-stream; name=build.properties
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename=build.properties

source.xxxRCP.jar = src/
output.xxxRCP.jar = bin/
#removed from bin.includes.
# bin/,\
# added - .,\
bin.includes = .,\
plugin.xml,\
xxxRCP.jar,\
plugin.properties,\
configuration/,\
img/,\
META-INF/
src.includes = bin/,\
configuration/,\
plugin.xml,\
src/,\
.classpath,\
build.properties,\
img/,\
lib/,\
plugin.properties
jars.extra.classpath = lib/xxxShared.jar,\
lib/dom4j-1.6.jar,\
lib/jaxen-1.1-beta-4.jar,\
lib/jdom.jar,\
lib/juh.jar,\
lib/jurt.jar,\
lib/log4j-1.2.8.jar,\
lib/officebean.jar,\
lib/ridl.jar,\
lib/unoil.jar

------=_Part_1556_3110824.1163671809006--
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458227 is a reply to message #458223] Thu, 16 November 2006 10:50 Go to previous messageGo to next message
Alex Blewitt is currently offline Alex BlewittFriend
Messages: 946
Registered: July 2009
Senior Member
Your Bundle-ClassPath is giving you the problem:

Bundle-ClassPath: lib/xxxShared.jar,lib/dom4j-1.6.jar,lib/jaxen-1.1
-beta-4.jar,lib/jdom.jar,lib/juh.jar,lib/jurt.jar,lib/log4j- 1.2.8.jar
,lib/officebean.jar,lib/ridl.jar,lib/unoil.jar,configuration /org.xini
ty.client/


It doesn't contain a reference to the classes in the jar itself. If you're packaging them up in the 'bin/' directory, you'd need to have a ',bin/' in there. If you're not packaging them up in the bin directory, you'd need to have a ',.' in there. Probably the easiest way is to export the bundle and then open it up in WinZip, and see whether there's a 'bin/' prefix on the front of your 'bin/org/xxx/client/Example.class' or not :-)

NB for the future, it's usually better practice to split up the dependent Jars (unoil.jar, dom4j.jar etc.) into separate bundles, primarily so that when you need to update your lib/xxxShared,jar, you don't need to download everything again. Ideally, you want to aim for a one-bundle-per-jar type philosophy. However, in the interests of getting it working, I'd suggest that you don't do that just yet until you've got your app up and running :-)

Alex.
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458286 is a reply to message #458226] Thu, 16 November 2006 13:38 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Dawid Ostrowski wrote:
> Hi
>
> I changed build.properties of my plugin
> (added - this "." issue and removed "bin")
>
> I also added Bundle-activator: property to manifest.mf
> but still receive the same error :/

OK, you had this:

source.xxxRCP.jar = src/
output.xxxRCP.jar = bin/
bin.includes = .,\
plugin.xml,\
xxxRCP.jar,\

you don't need "." or "bin/" ... it will correctly create and include
your RCP.jar

However, this looks to be your problem:
Bundle-ClassPath: lib/xxxShared.jar,lib/dom4j-1.6.jar,lib/jaxen-1.1
-beta-4.jar,lib/jdom.jar,lib/juh.jar,lib/jurt.jar,lib/log4j- 1.2.8.jar
,lib/officebean.jar,lib/ridl.jar,lib/unoil.jar,configuration /org.xini
ty.client/

Where is your xxxRCP.jar mentioned on your classpath? If it's not
there, you just can't see it :-)

Also, you normally need a Bundle-Activator. Generate one of the example
RCP plugins (like the RCP mail application) and check out it's
MANIFEST.MF file and Activator class.

Later,
PW


Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #458304 is a reply to message #458195] Thu, 16 November 2006 17:00 Go to previous messageGo to next message
Dawid Ostrowski is currently offline Dawid OstrowskiFriend
Messages: 9
Registered: July 2009
Junior Member
Alex, Paul - THANK YOU A LOT!

Of course my manifest.mf file was corrupted

I haven't my main plugin jar included in the classpath

Now application has been deployed properly.

My new challenge is to fix
java.security.AccessControlException: access denied (java.io.FilePermission C:\tmp\xinityRCP\workspace\.metadata\.log read)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
...

!ENTRY org.eclipse.equinox.registry 4 1 2006-11-16 17:36:07.451
!MESSAGE Unable to create view ID org.xinity.client.views.commandTreeView: Plug-in "org.xinity.client" was unable to instantiate class "org.xinity.client.views.CommandTreeView".
!STACK 0
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:292)
...


I have the
	<security>
		<all-permissions/>
	</security>

in both of my jnlp files but I receive this error which looks
the same as when I run application from eclipse env. and don't include argument:
-Djava.security.policy=${workspace_loc}\xxxRCP\configuration\org.xxx.client\xxx.policy

which targets to
grant { 
    permission java.security.AllPermission;
  };


I'll be working on it tomorrow, but if you have any clues
please let me know.

you both have a BIG beer from me.
just let me know when an where :)

kindes regards
Dawid
Re: RCP JWS - Plug-in was unable to load ... (ClassNotFoundException) [message #459634 is a reply to message #458195] Tue, 05 December 2006 08:38 Go to previous message
Eclipse UserFriend
Originally posted by: lms15_84.yahoo.com

MAKE MONEY QUICK!
At 5:08 AM on Jan 30, 2004, Unregistered Guest wrote:
Greetings: I am a retired attorney. A few years ago a man came to me with a letter. He asked me to verify the fact that this was legal to do. I told him I would review it and get back to him. When I first read the letter my client brought me, I thought it was some “off-the-wall” idea to make money. A week and a half later we met in my office to discuss the issue. I told him the letter he originally brought me was not 100% legal. My client then asked me to alter it to make it perfectly legal. I asked him to make one small change in the letter. I was still curious about the letter, so he explained to me how it works. I thought it seemed like a long shot, so I decided against participating. But before my client left, I asked him to keep me updated on his results. About two months later, he called me to tell me he had received over $800,000 in cash. I didn’t believe him, so he asked me to try this idea and find out for myself. I thought about it for a couple of days and decided I really didn’t have anything to lose, so I asked him for a copy of the letters. I followed the instructions exactly, mailed 200 copies, and sure enough, the money started coming in! It arrived slowly at first, but coming. I kept a precise record of the earnings, and in the end, it totaled $978,493! I could hardly believe it. I met with my friend for lunch to find out exactly how it worked. He told me there are quite a few similar letters around, but this one is different because there are six names at the end of the letter, not five like some others. This fact alone results in your name being in far more returns. The other fact was the help I gave him, making sure the whole thing was legal, since no one wants to take the risk of doing something illegal. By now you are surely curious to know what small changes to make. If you sent a letter like this one out, in order to be completely legal, you must actually sell something in order to receive a dollar in return. So when you send a dollar to each of the names on the list, you must include these words, “PLEASE PUT ME ON YOUR MAILING LIST” and include your name and address. This is the key to the program. The item you will receive for the dollar you sent to the six people below is the letter. At the time I first tried this idea, I was earning a good living as a lawyer. But everyone in the legal profession will tell you there is a lot of stress that comes with the job. I told myself if things worked out, I would retired from my practice and play golf. I decided to try the letter again, but this time I sent 500 copies. Three months later , I had totaled $2,341,178! Here are a few reasons a person might give for not trying this program: Ø Some people think they can never make a lot of money with anything this simple. Ø Some are afraid they will be ridiculed for trying Ø Some dream of large sums of money, but do nothing to actually achieve it. Ø Some are just plain lazy. Ø Some are afraid of losing their investment. They think this program is designed to beat them out of a few dollars. The system works if you will just try it. But you must follow the simple instructions exactly, and in less than three months, you will receive $800,000 GUARANTEED! Keep what you are doing to yourself for awhile. Many will tell you it won`t work and will try to talk you out of your dreams. Let them know of your success after it works. LETTERS FROM PARTICIPANTS IN THIS PROGRAM: My name is David Rhodes. In 1992 my car was repossessed and bill collectors were housing my. I was laid off and my unemployment ran out. In October of 1992, I received a letter telling me how to earn $800,000 anytime I wanted. Of course, I was skeptical. But because I was so desperate and virtually had nothing to lose, I gave it a try. In January 1993, my family and I went on a 10-day cruise. The next month I bought a brand new Mercedes with cash! I am currently building a home in Virginia and I will never have to work again. This money program really works perfectly every time. I have never failed to receive less than $500,000. This is a legitimate, money-making opportunity. It does not require you to sell anything or to come in contact with people. And , best of all, you only leave the house to mail the letters. If you have always believed that someday you would get the lucky break, then simply follow the instructions and make dreams come true. Larry McMahon, Norfolk, VA Six months ago, I received this letter and ignored it. Five more came within a period of time and I ignored them also. I was tempted, but I was convinced that they were just a Hoax. After three weeks of deliberating, I decided to give it a try ( not expecting much ). Two weeks went by and nothing happened. The fourth week was unbelievable! I cant say I received $800,000 but I received $400,000. For the first time in years, I am debt free. I am doing this again, only this time starting with 500 post. I strongly recommend that you follow the instructions exactly as outlined in this letter. INSTRUCTIONS 1. Immediately send $1.00 to each of the six people on the list at the end of this letter. Wrap the dollar bill in a note saying “ Please add me to your mailing list” and include your name and address. 2. Copy this letter. You do not have to type it 200 times. Simply place your cursor at the top of the page, hold it and drag it all the way down to the end of the letter. Then click on "edit" and select "copy". Now open up a notepad file on your computer and put the cursor at the top of the page in the notepad, click on 'edit' and then select 'paste' it will copy the letter for you onto your computer. 3. Remove the name next to the #1 on the list and move the rest of the names up one position (#2 becomes #1, #3 becomes #2, etc…..) Then place your name in the #6 position. Then save it, make sure it is saved as a txt. file. 4. When you have completed the instructions, take this letter and then go to (Google,Yahoo,...) and type in (Making Money Massege board,or post massege,...)and start posting your copy to 200 message boards,or more this is only the minimum, you can post as much as you like...The more copies you send the better the results. Keep a copy of this letter so you can use it a second time. Post it out again in six months, but Post it with the addresses you receive with each dollar. It will work better the second time. NOTE: This service is 100% legal - (Refer to title 18 section 1302 of the U.S. Postal & lottery laws) How does it work? When you send out 200 Posts, it is estimated that at least 15 people will respond and send you a $1.00. ($15.00) Those 15 will Post 200 Posts each and 225 people send you $1.00 ($225.00) Those 225 people Post 200 Posts each and 3,375 people send you $1.00 ($3,375.00) Those 3,375 post 200 posts each and 759,375 people send you $1.00 ($759,375.00) At this point your name drops off the list, but so far you have received $813,615.00. P.S. When your money begins to come in, give the first 10% to charity with spirit and share a good fortune!
1. Jacob, Maxime 660 Prevost Street Trois-Rivières, Qc G8Y-4A5 Canada
2. Jose E. Cruz 4440 N.E. 14 Ave. Pompano Beach, FL 33064 USA
3. Cristian Mery El Boldo 8682 906-0272 PUDAHUEL CHILE This really really works,I tried it once and I'm doing it again, first to be honest I only posted 145 posts and I didn't recive alot only 6,689.00$ in 3 months,at least this means that it realy works ,so this time I'm posting 604 posts and I've got so far in 2 month 15,640.00$ this is realy like a dream come true. So go on and try it trust me you've got nothing to lose.... important tip - Cover money by paper fully by which it can not been seen in light , because postal employees do some cheat some times....ok PD: Send this letter to all your email contacts, friends and all the newsgroups you could find. The more you get The best for BOTH of us. Good Luck!
4. Joseph Dushin, 264 B South Bridge Road Singapore 058813
5. Carey Tri, 8756 Brunell Way, Inver Grove Heights, MN 55076
6, Lance Suire 802 Cheneau Rd, Kaplan, LA 70548
Previous Topic:export product error! No useful error message in log.zip
Next Topic:Re: Contribute to the application coobar
Goto Forum:
  


Current Time: Mon Dec 22 05:51:16 GMT 2014

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

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