Bug?? JDK1.6 Classes Not Found are not loaded when using EclipseStarter??? [message #134410] |
Mon, 06 July 2009 03:25  |
Eclipse User |
|
|
|
Hi all,
I'm trying to launch equinox *without using the native launcher* with the
following command line:
java -jar org.eclipse.osgi_3.5.0.v20090520.jar
-Dosgi.framework=org.eclipse.osgi_3.5.0.v20090520.jar
-Dosgi.requiredJavaVersion=1.6
-Dosgi.frameworkClassPath=org.eclipse.osgi_3.5.0.v20090520.j ar -debug
-console
And i've installed the
org.eclipse.equinox.transforms.xslt_1.0.100.v20090520-1800.j ar bundle
The bundle is resolved but when i try to start i've the following
exception.
The strange thing is that if *instead* i use the native launcher i have
not that problem... so it seems the native launcher is doing something
under the hood that is not clear to me..
Any idea???
Is it possible to start equinox with the same configuration of the native
launcher but using EclipseStarter??
Is there any detailed documentation on that???
Thanks
osgi> start 34
org.osgi.framework.BundleException: Exception in
org.eclipse.equinox.internal.tr
ansforms.xslt.Activator.start() of bundle
org.eclipse.equinox.transforms.xslt.
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:805)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:280)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:272)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:253)
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.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:224)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerConfig
urationException
at
org.eclipse.equinox.internal.transforms.xslt.Activator.start (Activato
r.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bund
leContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:773)
... 14 more
Caused by: java.lang.ClassNotFoundException:
javax.xml.transform.TransformerConf
igurationException
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 18 more
Nested Exception:
java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerConfigurationExce
ption
at
org.eclipse.equinox.internal.transforms.xslt.Activator.start (Activato
r.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bund
leContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:280)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:272)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:253)
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.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:224)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
javax.xml.transform.TransformerConf
igurationException
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 18 more
Nested Exception:
java.lang.ClassNotFoundException:
javax.xml.transform.TransformerConfigurationEx
ception
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
org.eclipse.equinox.internal.transforms.xslt.Activator.start (Activato
r.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bund
leContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:280)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:272)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:253)
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.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:224)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.lang.NoClassDefFoundError:
javax/xml/transform/TransformerConfigurationExce
ption
at
org.eclipse.equinox.internal.transforms.xslt.Activator.start (Activato
r.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bund
leContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:280)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:272)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:253)
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.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:224)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException:
javax.xml.transform.TransformerConf
igurationException
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 18 more
Nested Exception:
java.lang.ClassNotFoundException:
javax.xml.transform.TransformerConfigurationEx
ception
at
org.eclipse.osgi.internal.loader.BundleLoader.findClassInter nal(Bundl
eLoader.java:489)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:405)
at
org.eclipse.osgi.internal.loader.BundleLoader.findClass(Bund leLoader.
java:393)
at
org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loa dClass(De
faultClassLoader.java:105)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at
org.eclipse.equinox.internal.transforms.xslt.Activator.start (Activato
r.java:34)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl$1 .run(Bund
leContextImpl.java:782)
at java.security.AccessController.doPrivileged(Native Method)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tartActiv
ator(BundleContextImpl.java:773)
at
org.eclipse.osgi.framework.internal.core.BundleContextImpl.s tart(Bund
leContextImpl.java:754)
at
org.eclipse.osgi.framework.internal.core.BundleHost.startWor ker(Bundl
eHost.java:352)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:280)
at
org.eclipse.osgi.framework.internal.core.AbstractBundle.star t(Abstrac
tBundle.java:272)
at
org.eclipse.osgi.framework.internal.core.FrameworkCommandPro vider._st
art(FrameworkCommandProvider.java:253)
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.osgi.framework.internal.core.FrameworkCommandInt erpreter.
execute(FrameworkCommandInterpreter.java:155)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.do command(F
rameworkConsole.java:303)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.co nsole(Fra
meworkConsole.java:288)
at
org.eclipse.osgi.framework.internal.core.FrameworkConsole.ru n(Framewo
rkConsole.java:224)
at java.lang.Thread.run(Unknown Source)
|
|
|
|
|
|
Re: Bug?? JDK1.6 Classes Not Found are not loaded when using EclipseStarter??? [message #134757 is a reply to message #134657] |
Wed, 08 July 2009 05:08   |
Eclipse User |
|
|
|
Hi Cris,
I've try do do this but unfortunately the product definition
ask for a Eclipse Product asking me for a "product" as it's means
in eclipse world.
You must provide a product and it's ask for the product defining plugin.
In particular the dialog say
"An Eclipse product must be associated with an application, the default
entry point for the product when it is running"
In my use case i've not an Eclipse Product but only pure equinox, without
gui, i've only OSGi bundles and i need only to configure the bundles,
startut level config files and so on.
I think that what eclipse have in it's 3.5 could be easy adapted to
achieve
what i need. It's only necessary to remove the assumption that every OSGi
application must be an Eclipse Application.
Andrea
Chris Aniszczyk wrote:
> Andrea Zoppello wrote:
>> Another thing that i would like to have in Eclipse IDE, is a way to
>> export my
>> OSGi launch configuration to an external folder. At the moment this is
>> present
>> only for Eclipse Application, not for Equinox standalone app.
> Sure, you can do this! :)
> In Eclipse 3.5, you can create a new product definition from an OSGi
> launch configuration. From there, you should be able to tweak the
> necessary settings to have a standalone application... and whether or
> not you want to include the native launchers.
> Cheers,
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
|
|
|
|
Re: Bug?? JDK1.6 Classes Not Found are not loaded when using EclipseStarter??? [message #135141 is a reply to message #134881] |
Thu, 09 July 2009 12:31  |
Eclipse User |
|
|
|
Hi Chris,
First of all thanks for your support.
It seems it's more a "lack of documentation" problem that a real
technical problem.
Regards my needs, so i'm not strict enforced to use a native launcher for
headless application, but have the native launcher could be a value for
osgi application, and i like equinox for that.
In my point a view an article or a blog entry could help a lot.
For example one of your last blog entries about startup level help me a
lot.
I don't think this is the right place to discuss this, but as a suggestion
to add to the upcoming equinox book that ( i just bought it ), is to add a
little chapter, paragraph on this.
Cheers and thanks
Andrea
Chris Aniszczyk wrote:
> Andrea Zoppello wrote:
>>
>> Hi Cris,
>>
>> I've try do do this but unfortunately the product definition ask for a
>> Eclipse Product asking me for a "product" as it's means
>> in eclipse world.
>> You must provide a product and it's ask for the product defining plugin.
>>
>> In particular the dialog say
>>
>> "An Eclipse product must be associated with an application, the default
>> entry point for the product when it is running"
> That isn't true anymore. You don't have to specify a product or
> application if you don't want one. In most cases, you may want to
> specify an application as that serves as an entry point.
> I will create a bug to update the documentation.
>> In my use case i've not an Eclipse Product but only pure equinox,
>> without gui, i've only OSGi bundles and i need only to configure the
>> bundles, startut level config files and so on.
> You can do that using product definitions. Do you need need a launcher
> for your headless application?
>> I think that what eclipse have in it's 3.5 could be easy adapted to
>> achieve what i need. It's only necessary to remove the assumption that
>> every OSGi application must be an Eclipse Application.
> It does this already because we use it at EclipseSource to build OSGi
> applications that are headless... and even deployed into application
> servers.
> Cheers,
> Chris Aniszczyk | EclipseSource Austin | +1 860 839 2465
> http://twitter.com/eclipsesource | http://twitter.com/caniszczyk
|
|
|
Powered by
FUDForum. Page generated in 0.08074 seconds