Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Plugin Development Environment (PDE) » Running as if I were pointed to an installation
Running as if I were pointed to an installation [message #63733] Mon, 01 June 2009 07:25 Go to next message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

In my "RCP" product, I have an API which is distributed through a JAR
file. It has a few top-level API classes, and when you call one of them,
it starts the Eclipse framework using the EclipseStart stuff (through
reflection). This way the caller only needs my little JAR file.

This has all been working great, and I have been sucessfully testing it by
pointing the osgi.instance.area to a real Eclipse deployment of my product
(complete with configuration, plugins, features directories).

The downside of testing like this is that I need to do the batch
build/export to make this kit to point to, rather than pointing directly
to the binaries in my workspace. So now I'm trying to make this work (I
know it's possible, since that's what PDE does when it runs).

What's happening is that it is getting into my code in the Eclipse
install, but it's dying because the org.eclipse.core.resources bundle was
not started. So somehow that's not happening (and probably other things
are not happening as well).

Details of the configuration follow.

Any help is appreciated!

Thanks,
Francis

------------------------------------------------------------
I'm testing with the following properties:

osgi.noShutdown=true,
eclipse.application=com.oaklandsw.transform.runtime.engine,
osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
osgi.parentClassloader=fwk,
osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
osgi.instance.area=/tmp/osdtWorkspace15181.tmp

And the contents of the osgi.install.area is only:

configuration
org.eclipse.equionox.simpleconfigurator
bundles.info
config.ini
dev.properties

My config.ini looks like this:

osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
osgi.bundles.defaultStartLevel=4
eclipse.p2.profile=OSDTProfile
eclipse.p2.data.area=@config.dir/../p2

My dev.properties is:

com.oaklandsw.transform.external.qizxopen=bin
com.oaklandsw.transform.runtime.api=bin
com.oaklandsw.util=bin
com.oaklandsw.transform.external.xstream=bin
com.oaklandsw.transform.external.mxquery=bin
com.oaklandsw.util.tests=bin
com.oaklandsw.transform.runtime=bin,binexample
com.oaklandsw.transform.external.mule=bin
com.oaklandsw.transform.tests=bin
com.oaklandsw.gui=bin
com.oaklandsw.data.standard.x12.scripts=bin
com.oaklandsw.transform.external.saxon9=bin
com.oaklandsw.transform.external.hibernate33=target/classes
com.oaklandsw.transform.external.saxon9sa=bin
com.oaklandsw.transform.examples=bin
com.oaklandsw.data.standards.x12.3050=bin
com.oaklandsw.base=bin
com.oaklandsw.transform.runtime.servlet=build/classes
com.oaklandsw.util.log4j=bin
com.oaklandsw.gui.tests=bin
com.oaklandsw.transform.external.quickbooks=bin
com.oaklandsw.transform.external.cb2xml=bin
com.oaklandsw.transform=bin
com.oaklandsw.util.log=bin
com.oaklandsw.build=bin
com.oaklandsw.base.tests=bin
@ignoredot@=true
com.oaklandsw.transform.external.qexo=bin
com.oaklandsw.transform.external.saxon89=bin
com.oaklandsw.transform.tests.mule=bin

And my bundles.info has all of the plugins and their locations.




--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
Re: Running as if I were pointed to an installation [message #63758 is a reply to message #63733] Mon, 01 June 2009 07:38 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

A bit more information (still stuck and would like help) :)

I also tried putting the following line into my config.ini (same results,
as I expected, because it's actually finding my classes that are in the
workspace):

osgi.dev=@config.dir/dev.properties

The ...RuntimeFactory class comes from the classpath (it would be in my
little JAR file), the ...RuntimeEngineImpl and AppRuntimeImpl classes come
from the Eclipse installation (and these are getting successfully invoked).


And here is the stack trace of the failure (the interesting stuff is in
the bottom 2 frames, you can pretty much ignore the rest):

org.mule.api.config.ConfigurationException: Initialisation Failure: Error
creating bean with name 'EchoPaypal': Cannot create inner bean '(inner
bean)' of type [org.mule.routing.inbound.DefaultInboundRouterCollection]
while setting bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception (org.mule.api.lifecycle.InitialisationException)
at
org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:46)
at
org.mule.config.builders.AbstractResourceConfigurationBuilde r.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.context.DefaultMuleContextFactory.createMuleContext (DefaultMuleContextFactory.java:79)
at
org.mule.tck.AbstractMuleTestCase.createMuleContext(Abstract MuleTestCase.java:404)
at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase .java:373)
at junit.framework.TestCase.runBare(TestCase.java:128)
at
org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCa se.java:253)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.j ava:233)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)
Caused by: org.mule.api.lifecycle.InitialisationException: Initialisation
Failure: Error creating bean with name 'EchoPaypal': Cannot create inner
bean '(inner bean)' of type
[org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:79)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.createS pringRegistry(SpringXmlConfigurationBuilder.java:98)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.doConfi gure(SpringXmlConfigurationBuilder.java:69)
at
org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:39)
... 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'EchoPaypal': Cannot create inner bean '(inner
bean)' of type [org.mule.routing.inbound.DefaultInboundRouterCollection]
while setting bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:22 2)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:429)
at
org.springframework.context.support.AbstractApplicationConte xt.finishBeanFactoryInitialization(AbstractApplicationContex t.java:728)
at
org.springframework.context.support.AbstractApplicationConte xt.refresh(AbstractApplicationContext.java:380)
at
org.mule.config.spring.SpringRegistry.doInitialise(SpringReg istry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:71)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)': Cannot create inner bean '(inner
bean)' of type
[org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 275)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:104)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'osdt_paypal': Invocation of init method failed;
nested exception is java.lang.RuntimeException: Unable to start runtime
because of exception
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:283)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 269)
... 59 more
Caused by: java.lang.RuntimeException: Unable to start runtime because of
exception
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:293)
at
com.oaklandsw.transform.external.mule.OaklandCommon.initiali se(OaklandCommon.java:140)
at
com.oaklandsw.transform.external.mule.OaklandTransformer.ini tialise(OaklandTransformer.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa bleBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe anFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1335)
... 67 more
Caused by: java.lang.RuntimeException: Plug-in
"com.oaklandsw.transform.runtime" was unable to instantiate class
"com.oaklandsw.transform.runtime.RuntimeEngineImpl".
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:250)
... 76 more
Caused by: org.eclipse.core.runtime.CoreException: Plug-in
"com.oaklandsw.transform.runtime" was unable to instantiate class
"com.oaklandsw.transform.runtime.RuntimeEngineImpl".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
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.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
... 76 more
Caused by: java.lang.IllegalStateException: Workspace is closed.
at
org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)
at com.oaklandsw.base.AppRuntimeImpl.<init>(AppRuntimeImpl.java:173)
at
com.oaklandsw.transform.runtime.RuntimeEngineImpl.<init>(RuntimeEngineImpl.java:147)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
... 88 more






On Mon, 01 Jun 2009 00:25:01 -0700, Francis Upton
<francis@oaklandsoftware.com> wrote:

> In my "RCP" product, I have an API which is distributed through a JAR
> file. It has a few top-level API classes, and when you call one of
> them, it starts the Eclipse framework using the EclipseStart stuff
> (through reflection). This way the caller only needs my little JAR file.
>
> This has all been working great, and I have been sucessfully testing it
> by pointing the osgi.instance.area to a real Eclipse deployment of my
> product (complete with configuration, plugins, features directories).
>
> The downside of testing like this is that I need to do the batch
> build/export to make this kit to point to, rather than pointing directly
> to the binaries in my workspace. So now I'm trying to make this work (I
> know it's possible, since that's what PDE does when it runs).
>
> What's happening is that it is getting into my code in the Eclipse
> install, but it's dying because the org.eclipse.core.resources bundle
> was not started. So somehow that's not happening (and probably other
> things are not happening as well).
>
> Details of the configuration follow.
>
> Any help is appreciated!
>
> Thanks,
> Francis
>
> ------------------------------------------------------------
> I'm testing with the following properties:
>
> osgi.noShutdown=true,
> eclipse.application=com.oaklandsw.transform.runtime.engine,
> osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
> osgi.parentClassloader=fwk,
> osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
> osgi.instance.area=/tmp/osdtWorkspace15181.tmp
>
> And the contents of the osgi.install.area is only:
>
> configuration
> org.eclipse.equionox.simpleconfigurator
> bundles.info
> config.ini
> dev.properties
>
> My config.ini looks like this:
>
> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
> osgi.bundles.defaultStartLevel=4
> eclipse.p2.profile=OSDTProfile
> eclipse.p2.data.area=@config.dir/../p2
>
> My dev.properties is:
>
> com.oaklandsw.transform.external.qizxopen=bin
> com.oaklandsw.transform.runtime.api=bin
> com.oaklandsw.util=bin
> com.oaklandsw.transform.external.xstream=bin
> com.oaklandsw.transform.external.mxquery=bin
> com.oaklandsw.util.tests=bin
> com.oaklandsw.transform.runtime=bin,binexample
> com.oaklandsw.transform.external.mule=bin
> com.oaklandsw.transform.tests=bin
> com.oaklandsw.gui=bin
> com.oaklandsw.data.standard.x12.scripts=bin
> com.oaklandsw.transform.external.saxon9=bin
> com.oaklandsw.transform.external.hibernate33=target/classes
> com.oaklandsw.transform.external.saxon9sa=bin
> com.oaklandsw.transform.examples=bin
> com.oaklandsw.data.standards.x12.3050=bin
> com.oaklandsw.base=bin
> com.oaklandsw.transform.runtime.servlet=build/classes
> com.oaklandsw.util.log4j=bin
> com.oaklandsw.gui.tests=bin
> com.oaklandsw.transform.external.quickbooks=bin
> com.oaklandsw.transform.external.cb2xml=bin
> com.oaklandsw.transform=bin
> com.oaklandsw.util.log=bin
> com.oaklandsw.build=bin
> com.oaklandsw.base.tests=bin
> @ignoredot@=true
> com.oaklandsw.transform.external.qexo=bin
> com.oaklandsw.transform.external.saxon89=bin
> com.oaklandsw.transform.tests.mule=bin
>
> And my bundles.info has all of the plugins and their locations.
>
>
>
>



--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go
Re: Running as if I were pointed to an installation [message #63919 is a reply to message #63758] Tue, 02 June 2009 20:31 Go to previous messageGo to next message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
I notice the root exception:
> Caused by: java.lang.IllegalStateException: Workspace is closed.
> at
> org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)


Which seems odd, because org.eclipse.core.resources is lazily started,
and its bundle activator start() sets up the workspace.

However, bundles will not get started until their start level is met,
even if classes are loaded earlier. Also:
If a class is loaded from a lazy activated bundle before its start-level
is met and then later the bundle's start-level is met the bundle will
not activate. It will only activate if a class is loaded from it while
its start-level is met.

So it seems that
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)

is happening before reaching start level 4.

-Andrew

Francis Upton wrote:
> A bit more information (still stuck and would like help) :)
>
> I also tried putting the following line into my config.ini (same
> results, as I expected, because it's actually finding my classes that
> are in the workspace):
>
> osgi.dev=@config.dir/dev.properties
>
> The ...RuntimeFactory class comes from the classpath (it would be in my
> little JAR file), the ...RuntimeEngineImpl and AppRuntimeImpl classes
> come from the Eclipse installation (and these are getting successfully
> invoked).
>
>
> And here is the stack trace of the failure (the interesting stuff is in
> the bottom 2 frames, you can pretty much ignore the rest):
>
> org.mule.api.config.ConfigurationException: Initialisation Failure:
> Error creating bean with name 'EchoPaypal': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception (org.mule.api.lifecycle.InitialisationException)
> at
> org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:46)
>
> at
> org.mule.config.builders.AbstractResourceConfigurationBuilde r.configure(AbstractResourceConfigurationBuilder.java:78)
>
> at
> org.mule.context.DefaultMuleContextFactory.createMuleContext (DefaultMuleContextFactory.java:79)
>
> at
> org.mule.tck.AbstractMuleTestCase.createMuleContext(Abstract MuleTestCase.java:404)
>
> at
> org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase .java:373)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at
> org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCa se.java:253)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.j ava:233)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
>
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)
>
> Caused by: org.mule.api.lifecycle.InitialisationException:
> Initialisation Failure: Error creating bean with name 'EchoPaypal':
> Cannot create inner bean '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:79)
> at
> org.mule.config.spring.SpringXmlConfigurationBuilder.createS pringRegistry(SpringXmlConfigurationBuilder.java:98)
>
> at
> org.mule.config.spring.SpringXmlConfigurationBuilder.doConfi gure(SpringXmlConfigurationBuilder.java:69)
>
> at
> org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:39)
>
> ... 19 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'EchoPaypal': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:264)
>
> at
> org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:22 2)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:261)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
>
> at
> org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:429)
>
> at
> org.springframework.context.support.AbstractApplicationConte xt.finishBeanFactoryInitialization(AbstractApplicationContex t.java:728)
>
> at
> org.springframework.context.support.AbstractApplicationConte xt.refresh(AbstractApplicationContext.java:380)
>
> at
> org.mule.config.spring.SpringRegistry.doInitialise(SpringReg istry.java:87)
> at
> org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:71)
> ... 22 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
> setting bean property 'endpoints' with key [0]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
>
> ... 39 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Cannot resolve reference
> to bean 'osdt_paypal' while setting bean property 'transformers' with
> key [0]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 275)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:104)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
>
> ... 49 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'osdt_paypal': Invocation of init method
> failed; nested exception is java.lang.RuntimeException: Unable to start
> runtime because of exception
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1338)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:473)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:283)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 269)
>
> ... 59 more
> Caused by: java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:293)
>
> at
> com.oaklandsw.transform.external.mule.OaklandCommon.initiali se(OaklandCommon.java:140)
>
> at
> com.oaklandsw.transform.external.mule.OaklandTransformer.ini tialise(OaklandTransformer.java:74)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa bleBeanFactory.java:1414)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe anFactory.java:1375)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1335)
>
> ... 67 more
> Caused by: java.lang.RuntimeException: Plug-in
> "com.oaklandsw.transform.runtime" was unable to instantiate class
> "com.oaklandsw.transform.runtime.RuntimeEngineImpl".
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:250)
>
> ... 76 more
> Caused by: org.eclipse.core.runtime.CoreException: Plug-in
> "com.oaklandsw.transform.runtime" was unable to instantiate class
> "com.oaklandsw.transform.runtime.RuntimeEngineImpl".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> 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.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
>
> ... 76 more
> Caused by: java.lang.IllegalStateException: Workspace is closed.
> at
> org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)
>
> at com.oaklandsw.base.AppRuntimeImpl.<init>(AppRuntimeImpl.java:173)
> at
> com.oaklandsw.transform.runtime.RuntimeEngineImpl.<init>(RuntimeEngineImpl.java:147)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> ... 88 more
>
>
>
>
>
>
> On Mon, 01 Jun 2009 00:25:01 -0700, Francis Upton
> <francis@oaklandsoftware.com> wrote:
>
>> In my "RCP" product, I have an API which is distributed through a JAR
>> file. It has a few top-level API classes, and when you call one of
>> them, it starts the Eclipse framework using the EclipseStart stuff
>> (through reflection). This way the caller only needs my little JAR file.
>>
>> This has all been working great, and I have been sucessfully testing
>> it by pointing the osgi.instance.area to a real Eclipse deployment of
>> my product (complete with configuration, plugins, features directories).
>>
>> The downside of testing like this is that I need to do the batch
>> build/export to make this kit to point to, rather than pointing
>> directly to the binaries in my workspace. So now I'm trying to make
>> this work (I know it's possible, since that's what PDE does when it
>> runs).
>>
>> What's happening is that it is getting into my code in the Eclipse
>> install, but it's dying because the org.eclipse.core.resources bundle
>> was not started. So somehow that's not happening (and probably other
>> things are not happening as well).
>>
>> Details of the configuration follow.
>>
>> Any help is appreciated!
>>
>> Thanks,
>> Francis
>>
>> ------------------------------------------------------------
>> I'm testing with the following properties:
>>
>> osgi.noShutdown=true,
>> eclipse.application=com.oaklandsw.transform.runtime.engine,
>> osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
>>
>> osgi.parentClassloader=fwk,
>> osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
>>
>> osgi.instance.area=/tmp/osdtWorkspace15181.tmp
>>
>> And the contents of the osgi.install.area is only:
>>
>> configuration
>> org.eclipse.equionox.simpleconfigurator
>> bundles.info
>> config.ini
>> dev.properties
>>
>> My config.ini looks like this:
>>
>> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
>>
>> osgi.bundles.defaultStartLevel=4
>> eclipse.p2.profile=OSDTProfile
>> eclipse.p2.data.area=@config.dir/../p2
>>
>> My dev.properties is:
>>
>> com.oaklandsw.transform.external.qizxopen=bin
>> com.oaklandsw.transform.runtime.api=bin
>> com.oaklandsw.util=bin
>> com.oaklandsw.transform.external.xstream=bin
>> com.oaklandsw.transform.external.mxquery=bin
>> com.oaklandsw.util.tests=bin
>> com.oaklandsw.transform.runtime=bin,binexample
>> com.oaklandsw.transform.external.mule=bin
>> com.oaklandsw.transform.tests=bin
>> com.oaklandsw.gui=bin
>> com.oaklandsw.data.standard.x12.scripts=bin
>> com.oaklandsw.transform.external.saxon9=bin
>> com.oaklandsw.transform.external.hibernate33=target/classes
>> com.oaklandsw.transform.external.saxon9sa=bin
>> com.oaklandsw.transform.examples=bin
>> com.oaklandsw.data.standards.x12.3050=bin
>> com.oaklandsw.base=bin
>> com.oaklandsw.transform.runtime.servlet=build/classes
>> com.oaklandsw.util.log4j=bin
>> com.oaklandsw.gui.tests=bin
>> com.oaklandsw.transform.external.quickbooks=bin
>> com.oaklandsw.transform.external.cb2xml=bin
>> com.oaklandsw.transform=bin
>> com.oaklandsw.util.log=bin
>> com.oaklandsw.build=bin
>> com.oaklandsw.base.tests=bin
>> @ignoredot@=true
>> com.oaklandsw.transform.external.qexo=bin
>> com.oaklandsw.transform.external.saxon89=bin
>> com.oaklandsw.transform.tests.mule=bin
>>
>> And my bundles.info has all of the plugins and their locations.
>>
>>
>>
>>
>
>
>
Re: Running as if I were pointed to an installation [message #63943 is a reply to message #63919] Tue, 02 June 2009 21:16 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

On Tue, 02 Jun 2009 13:31:09 -0700, Andrew Niefer <aniefer@ca.ibm.com>
wrote:


> So it seems that
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
> is happening before reaching start level 4.
>

Thanks Andrew! And sorry for the double posting.

The RuntimeFactory.createRuntime() is what actually calls the
EclipseStarter through reflection. However the RuntimeEngineImpl
constructor is what touches the resources. This is the class that is
defined by the application extension point. Is there a way to get this
class to run at a start level that's higher than 4?

Francis
Re: Running as if I were pointed to an installation [message #63966 is a reply to message #63943] Tue, 02 June 2009 21:39 Go to previous message
Eclipse UserFriend
Originally posted by: francis.oaklandsoftware.com

Ignore the previous post, see the thread in equinox for what's going on.
I won't continue with this thread.

On Tue, 02 Jun 2009 14:16:03 -0700, Francis Upton
<francis@oaklandsoftware.com> wrote:

> On Tue, 02 Jun 2009 13:31:09 -0700, Andrew Niefer <aniefer@ca.ibm.com>
> wrote:
>
>
>> So it seems that
>> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
>> is happening before reaching start level 4.
>>
>
> Thanks Andrew! And sorry for the double posting.
>
> The RuntimeFactory.createRuntime() is what actually calls the
> EclipseStarter through reflection. However the RuntimeEngineImpl
> constructor is what touches the resources. This is the class that is
> defined by the application extension point. Is there a way to get this
> class to run at a start level that's higher than 4?
>
> Francis



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/
Re: Running as if I were pointed to an installation [message #597998 is a reply to message #63733] Mon, 01 June 2009 07:38 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
A bit more information (still stuck and would like help) :)

I also tried putting the following line into my config.ini (same results,
as I expected, because it's actually finding my classes that are in the
workspace):

osgi.dev=@config.dir/dev.properties

The ...RuntimeFactory class comes from the classpath (it would be in my
little JAR file), the ...RuntimeEngineImpl and AppRuntimeImpl classes come
from the Eclipse installation (and these are getting successfully invoked).


And here is the stack trace of the failure (the interesting stuff is in
the bottom 2 frames, you can pretty much ignore the rest):

org.mule.api.config.ConfigurationException: Initialisation Failure: Error
creating bean with name 'EchoPaypal': Cannot create inner bean '(inner
bean)' of type [org.mule.routing.inbound.DefaultInboundRouterCollection]
while setting bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception (org.mule.api.lifecycle.InitialisationException)
at
org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:46)
at
org.mule.config.builders.AbstractResourceConfigurationBuilde r.configure(AbstractResourceConfigurationBuilder.java:78)
at
org.mule.context.DefaultMuleContextFactory.createMuleContext (DefaultMuleContextFactory.java:79)
at
org.mule.tck.AbstractMuleTestCase.createMuleContext(Abstract MuleTestCase.java:404)
at org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase .java:373)
at junit.framework.TestCase.runBare(TestCase.java:128)
at
org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCa se.java:253)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:120)
at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.j ava:233)
at junit.framework.TestSuite.runTest(TestSuite.java:230)
at junit.framework.TestSuite.run(TestSuite.java:225)
at
org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
at
org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
at
org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)
Caused by: org.mule.api.lifecycle.InitialisationException: Initialisation
Failure: Error creating bean with name 'EchoPaypal': Cannot create inner
bean '(inner bean)' of type
[org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:79)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.createS pringRegistry(SpringXmlConfigurationBuilder.java:98)
at
org.mule.config.spring.SpringXmlConfigurationBuilder.doConfi gure(SpringXmlConfigurationBuilder.java:69)
at
org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:39)
... 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'EchoPaypal': Cannot create inner bean '(inner
bean)' of type [org.mule.routing.inbound.DefaultInboundRouterCollection]
while setting bean property 'inboundRouter'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot create inner bean '(inner bean)' of
type [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:264)
at
org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:22 2)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:261)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:429)
at
org.springframework.context.support.AbstractApplicationConte xt.finishBeanFactoryInitialization(AbstractApplicationContex t.java:728)
at
org.springframework.context.support.AbstractApplicationConte xt.refresh(AbstractApplicationContext.java:380)
at
org.mule.config.spring.SpringRegistry.doInitialise(SpringReg istry.java:87)
at org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:71)
... 22 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)': Cannot create inner bean '(inner
bean)' of type
[org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
setting bean property 'endpoints' with key [0]; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
... 39 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name '(inner bean)': Cannot resolve reference to bean
'osdt_paypal' while setting bean property 'transformers' with key [0];
nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'osdt_paypal': Invocation of init method failed; nested
exception is java.lang.RuntimeException: Unable to start runtime because
of exception
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 275)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:104)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
... 49 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'osdt_paypal': Invocation of init method failed;
nested exception is java.lang.RuntimeException: Unable to start runtime
because of exception
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1338)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:473)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
at java.security.AccessController.doPrivileged(Native Method)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:283)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
at
org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
at
org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 269)
... 59 more
Caused by: java.lang.RuntimeException: Unable to start runtime because of
exception
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:293)
at
com.oaklandsw.transform.external.mule.OaklandCommon.initiali se(OaklandCommon.java:140)
at
com.oaklandsw.transform.external.mule.OaklandTransformer.ini tialise(OaklandTransformer.java:74)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa bleBeanFactory.java:1414)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe anFactory.java:1375)
at
org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1335)
... 67 more
Caused by: java.lang.RuntimeException: Plug-in
"com.oaklandsw.transform.runtime" was unable to instantiate class
"com.oaklandsw.transform.runtime.RuntimeEngineImpl".
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:250)
... 76 more
Caused by: org.eclipse.core.runtime.CoreException: Plug-in
"com.oaklandsw.transform.runtime" was unable to instantiate class
"com.oaklandsw.transform.runtime.RuntimeEngineImpl".
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
at
org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
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.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
... 76 more
Caused by: java.lang.IllegalStateException: Workspace is closed.
at
org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)
at com.oaklandsw.base.AppRuntimeImpl.<init>(AppRuntimeImpl.java:173)
at
com.oaklandsw.transform.runtime.RuntimeEngineImpl.<init>(RuntimeEngineImpl.java:147)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e Method)
at
sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
at
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at
org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
... 88 more






On Mon, 01 Jun 2009 00:25:01 -0700, Francis Upton
<francis@oaklandsoftware.com> wrote:

> In my "RCP" product, I have an API which is distributed through a JAR
> file. It has a few top-level API classes, and when you call one of
> them, it starts the Eclipse framework using the EclipseStart stuff
> (through reflection). This way the caller only needs my little JAR file.
>
> This has all been working great, and I have been sucessfully testing it
> by pointing the osgi.instance.area to a real Eclipse deployment of my
> product (complete with configuration, plugins, features directories).
>
> The downside of testing like this is that I need to do the batch
> build/export to make this kit to point to, rather than pointing directly
> to the binaries in my workspace. So now I'm trying to make this work (I
> know it's possible, since that's what PDE does when it runs).
>
> What's happening is that it is getting into my code in the Eclipse
> install, but it's dying because the org.eclipse.core.resources bundle
> was not started. So somehow that's not happening (and probably other
> things are not happening as well).
>
> Details of the configuration follow.
>
> Any help is appreciated!
>
> Thanks,
> Francis
>
> ------------------------------------------------------------
> I'm testing with the following properties:
>
> osgi.noShutdown=true,
> eclipse.application=com.oaklandsw.transform.runtime.engine,
> osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
> osgi.parentClassloader=fwk,
> osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
> osgi.instance.area=/tmp/osdtWorkspace15181.tmp
>
> And the contents of the osgi.install.area is only:
>
> configuration
> org.eclipse.equionox.simpleconfigurator
> bundles.info
> config.ini
> dev.properties
>
> My config.ini looks like this:
>
> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
> osgi.bundles.defaultStartLevel=4
> eclipse.p2.profile=OSDTProfile
> eclipse.p2.data.area=@config.dir/../p2
>
> My dev.properties is:
>
> com.oaklandsw.transform.external.qizxopen=bin
> com.oaklandsw.transform.runtime.api=bin
> com.oaklandsw.util=bin
> com.oaklandsw.transform.external.xstream=bin
> com.oaklandsw.transform.external.mxquery=bin
> com.oaklandsw.util.tests=bin
> com.oaklandsw.transform.runtime=bin,binexample
> com.oaklandsw.transform.external.mule=bin
> com.oaklandsw.transform.tests=bin
> com.oaklandsw.gui=bin
> com.oaklandsw.data.standard.x12.scripts=bin
> com.oaklandsw.transform.external.saxon9=bin
> com.oaklandsw.transform.external.hibernate33=target/classes
> com.oaklandsw.transform.external.saxon9sa=bin
> com.oaklandsw.transform.examples=bin
> com.oaklandsw.data.standards.x12.3050=bin
> com.oaklandsw.base=bin
> com.oaklandsw.transform.runtime.servlet=build/classes
> com.oaklandsw.util.log4j=bin
> com.oaklandsw.gui.tests=bin
> com.oaklandsw.transform.external.quickbooks=bin
> com.oaklandsw.transform.external.cb2xml=bin
> com.oaklandsw.transform=bin
> com.oaklandsw.util.log=bin
> com.oaklandsw.build=bin
> com.oaklandsw.base.tests=bin
> @ignoredot@=true
> com.oaklandsw.transform.external.qexo=bin
> com.oaklandsw.transform.external.saxon89=bin
> com.oaklandsw.transform.tests.mule=bin
>
> And my bundles.info has all of the plugins and their locations.
>
>
>
>



--
Common Navigator Framework section in Platform Plugin Developer Guide
(Programmer's Guide)
http://help.eclipse.org/ganymede/topic/org.eclipse.platform. doc.isv/guide/cnf.htm

http://dev.eclipse.org/blogs/francis
http://wiki.eclipse.org/Common_Navigator_Framework
http://wiki.eclipse.org/Common_Navigator_Framework_Use_Cases


You have brains in your head.
You have feet in your shoes.
- Dr Seuss, Oh the Places You'll Go


Re: Running as if I were pointed to an installation [message #598056 is a reply to message #63758] Tue, 02 June 2009 20:31 Go to previous message
Andrew Niefer is currently offline Andrew NieferFriend
Messages: 990
Registered: July 2009
Senior Member
I notice the root exception:
> Caused by: java.lang.IllegalStateException: Workspace is closed.
> at
> org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)


Which seems odd, because org.eclipse.core.resources is lazily started,
and its bundle activator start() sets up the workspace.

However, bundles will not get started until their start level is met,
even if classes are loaded earlier. Also:
If a class is loaded from a lazy activated bundle before its start-level
is met and then later the bundle's start-level is met the bundle will
not activate. It will only activate if a class is loaded from it while
its start-level is met.

So it seems that
com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)

is happening before reaching start level 4.

-Andrew

Francis Upton wrote:
> A bit more information (still stuck and would like help) :)
>
> I also tried putting the following line into my config.ini (same
> results, as I expected, because it's actually finding my classes that
> are in the workspace):
>
> osgi.dev=@config.dir/dev.properties
>
> The ...RuntimeFactory class comes from the classpath (it would be in my
> little JAR file), the ...RuntimeEngineImpl and AppRuntimeImpl classes
> come from the Eclipse installation (and these are getting successfully
> invoked).
>
>
> And here is the stack trace of the failure (the interesting stuff is in
> the bottom 2 frames, you can pretty much ignore the rest):
>
> org.mule.api.config.ConfigurationException: Initialisation Failure:
> Error creating bean with name 'EchoPaypal': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception (org.mule.api.lifecycle.InitialisationException)
> at
> org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:46)
>
> at
> org.mule.config.builders.AbstractResourceConfigurationBuilde r.configure(AbstractResourceConfigurationBuilder.java:78)
>
> at
> org.mule.context.DefaultMuleContextFactory.createMuleContext (DefaultMuleContextFactory.java:79)
>
> at
> org.mule.tck.AbstractMuleTestCase.createMuleContext(Abstract MuleTestCase.java:404)
>
> at
> org.mule.tck.AbstractMuleTestCase.setUp(AbstractMuleTestCase .java:373)
> at junit.framework.TestCase.runBare(TestCase.java:128)
> at
> org.mule.tck.AbstractMuleTestCase.runBare(AbstractMuleTestCa se.java:253)
> at junit.framework.TestResult$1.protect(TestResult.java:106)
> at junit.framework.TestResult.runProtected(TestResult.java:124)
> at junit.framework.TestResult.run(TestResult.java:109)
> at junit.framework.TestCase.run(TestCase.java:120)
> at org.mule.tck.AbstractMuleTestCase.run(AbstractMuleTestCase.j ava:233)
> at junit.framework.TestSuite.runTest(TestSuite.java:230)
> at junit.framework.TestSuite.run(TestSuite.java:225)
> at
> org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestRefer ence.run(JUnit3TestReference.java:130)
>
> at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(Test Execution.java:38)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:460)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTe sts(RemoteTestRunner.java:673)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(R emoteTestRunner.java:386)
>
> at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main( RemoteTestRunner.java:196)
>
> Caused by: org.mule.api.lifecycle.InitialisationException:
> Initialisation Failure: Error creating bean with name 'EchoPaypal':
> Cannot create inner bean '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:79)
> at
> org.mule.config.spring.SpringXmlConfigurationBuilder.createS pringRegistry(SpringXmlConfigurationBuilder.java:98)
>
> at
> org.mule.config.spring.SpringXmlConfigurationBuilder.doConfi gure(SpringXmlConfigurationBuilder.java:69)
>
> at
> org.mule.config.builders.AbstractConfigurationBuilder.config ure(AbstractConfigurationBuilder.java:39)
>
> ... 19 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'EchoPaypal': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.routing.inbound.DefaultInboundRouterCollection] while setting
> bean property 'inboundRouter'; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot create inner bean '(inner bean)'
> of type [org.mule.config.spring.factories.InboundEndpointFactoryBean ]
> while setting bean property 'endpoints' with key [0]; nested exception
> is org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y$1.getObject(AbstractBeanFactory.java:264)
>
> at
> org.springframework.beans.factory.support.DefaultSingletonBe anRegistry.getSingleton(DefaultSingletonBeanRegistry.java:22 2)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:261)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
>
> at
> org.springframework.beans.factory.support.DefaultListableBea nFactory.preInstantiateSingletons(DefaultListableBeanFactory .java:429)
>
> at
> org.springframework.context.support.AbstractApplicationConte xt.finishBeanFactoryInitialization(AbstractApplicationContex t.java:728)
>
> at
> org.springframework.context.support.AbstractApplicationConte xt.refresh(AbstractApplicationContext.java:380)
>
> at
> org.mule.config.spring.SpringRegistry.doInitialise(SpringReg istry.java:87)
> at
> org.mule.registry.AbstractRegistry.initialise(AbstractRegist ry.java:71)
> ... 22 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Cannot create inner bean
> '(inner bean)' of type
> [org.mule.config.spring.factories.InboundEndpointFactoryBean ] while
> setting bean property 'endpoints' with key [0]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name '(inner bean)': Cannot resolve reference to bean
> 'osdt_paypal' while setting bean property 'transformers' with key [0];
> nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 230)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:122)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
>
> ... 39 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name '(inner bean)': Cannot resolve reference
> to bean 'osdt_paypal' while setting bean property 'transformers' with
> key [0]; nested exception is
> org.springframework.beans.factory.BeanCreationException: Error creating
> bean with name 'osdt_paypal': Invocation of init method failed; nested
> exception is java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 275)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:104)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveManagedList(BeanDefinitionValueResolver.jav a:287)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveValueIfNecessary(BeanDefinitionValueResolve r.java:126)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.applyPropertyValues(AbstractAutowireCapable BeanFactory.java:1245)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.populateBean(AbstractAutowireCapableBeanFac tory.java:1010)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:472)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveInnerBean(BeanDefinitionValueResolver.java: 219)
>
> ... 49 more
> Caused by: org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'osdt_paypal': Invocation of init method
> failed; nested exception is java.lang.RuntimeException: Unable to start
> runtime because of exception
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1338)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFac tory.java:473)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.ja va:409)
>
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.createBean(AbstractAutowireCapableBeanFacto ry.java:380)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.doGetBean(AbstractBeanFactory.java:283)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:185)
>
> at
> org.springframework.beans.factory.support.AbstractBeanFactor y.getBean(AbstractBeanFactory.java:164)
>
> at
> org.springframework.beans.factory.support.BeanDefinitionValu eResolver.resolveReference(BeanDefinitionValueResolver.java: 269)
>
> ... 59 more
> Caused by: java.lang.RuntimeException: Unable to start runtime because
> of exception
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:293)
>
> at
> com.oaklandsw.transform.external.mule.OaklandCommon.initiali se(OaklandCommon.java:140)
>
> at
> com.oaklandsw.transform.external.mule.OaklandTransformer.ini tialise(OaklandTransformer.java:74)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapa bleBeanFactory.java:1414)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.invokeInitMethods(AbstractAutowireCapableBe anFactory.java:1375)
>
> at
> org.springframework.beans.factory.support.AbstractAutowireCa pableBeanFactory.initializeBean(AbstractAutowireCapableBeanF actory.java:1335)
>
> ... 67 more
> Caused by: java.lang.RuntimeException: Plug-in
> "com.oaklandsw.transform.runtime" was unable to instantiate class
> "com.oaklandsw.transform.runtime.RuntimeEngineImpl".
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:250)
>
> ... 76 more
> Caused by: org.eclipse.core.runtime.CoreException: Plug-in
> "com.oaklandsw.transform.runtime" was unable to instantiate class
> "com.oaklandsw.transform.runtime.RuntimeEngineImpl".
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .throwException(RegistryStrategyOSGI.java:180)
>
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:172)
>
> at
> org.eclipse.core.internal.registry.ExtensionRegistry.createE xecutableExtension(ExtensionRegistry.java:867)
>
> 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.equinox.internal.app.EclipseAppHandle.run(Eclips eAppHandle.java:188)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:110)
>
> at
> org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:79)
>
> at
> org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:386)
>
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcce ssorImpl.java:39)
>
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMe thodAccessorImpl.java:25)
>
> at java.lang.reflect.Method.invoke(Method.java:585)
> at
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
>
> ... 76 more
> Caused by: java.lang.IllegalStateException: Workspace is closed.
> at
> org.eclipse.core.resources.ResourcesPlugin.getWorkspace(Reso urcesPlugin.java:339)
>
> at com.oaklandsw.base.AppRuntimeImpl.<init>(AppRuntimeImpl.java:173)
> at
> com.oaklandsw.transform.runtime.RuntimeEngineImpl.<init>(RuntimeEngineImpl.java:147)
>
> at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Nativ e
> Method)
> at
> sun.reflect.NativeConstructorAccessorImpl.newInstance(Native ConstructorAccessorImpl.java:39)
>
> at
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(De legatingConstructorAccessorImpl.java:27)
>
> at java.lang.reflect.Constructor.newInstance(Constructor.java:4 94)
> at java.lang.Class.newInstance0(Class.java:350)
> at java.lang.Class.newInstance(Class.java:303)
> at
> org.eclipse.core.internal.registry.osgi.RegistryStrategyOSGI .createExecutableExtension(RegistryStrategyOSGI.java:170)
>
> ... 88 more
>
>
>
>
>
>
> On Mon, 01 Jun 2009 00:25:01 -0700, Francis Upton
> <francis@oaklandsoftware.com> wrote:
>
>> In my "RCP" product, I have an API which is distributed through a JAR
>> file. It has a few top-level API classes, and when you call one of
>> them, it starts the Eclipse framework using the EclipseStart stuff
>> (through reflection). This way the caller only needs my little JAR file.
>>
>> This has all been working great, and I have been sucessfully testing
>> it by pointing the osgi.instance.area to a real Eclipse deployment of
>> my product (complete with configuration, plugins, features directories).
>>
>> The downside of testing like this is that I need to do the batch
>> build/export to make this kit to point to, rather than pointing
>> directly to the binaries in my workspace. So now I'm trying to make
>> this work (I know it's possible, since that's what PDE does when it
>> runs).
>>
>> What's happening is that it is getting into my code in the Eclipse
>> install, but it's dying because the org.eclipse.core.resources bundle
>> was not started. So somehow that's not happening (and probably other
>> things are not happening as well).
>>
>> Details of the configuration follow.
>>
>> Any help is appreciated!
>>
>> Thanks,
>> Francis
>>
>> ------------------------------------------------------------
>> I'm testing with the following properties:
>>
>> osgi.noShutdown=true,
>> eclipse.application=com.oaklandsw.transform.runtime.engine,
>> osgi.install.area=/home/francis/d/transform/com.oaklandsw.tr ansform.tests.mule/deploy,
>>
>> osgi.parentClassloader=fwk,
>> osgi.framework=file:/usr/local/eclipse_deploy/eclipse341/ecl ipse/plugins/org.eclipse.osgi_3.4.2.R34x_v20080826-1230.jar,
>>
>> osgi.instance.area=/tmp/osdtWorkspace15181.tmp
>>
>> And the contents of the osgi.install.area is only:
>>
>> configuration
>> org.eclipse.equionox.simpleconfigurator
>> bundles.info
>> config.ini
>> dev.properties
>>
>> My config.ini looks like this:
>>
>> osgi.bundles=org.eclipse.equinox.common@2:start,org.eclipse.core.runtime@start,org.eclipse.equinox.simpleconfigurator@1\:start
>>
>> osgi.bundles.defaultStartLevel=4
>> eclipse.p2.profile=OSDTProfile
>> eclipse.p2.data.area=@config.dir/../p2
>>
>> My dev.properties is:
>>
>> com.oaklandsw.transform.external.qizxopen=bin
>> com.oaklandsw.transform.runtime.api=bin
>> com.oaklandsw.util=bin
>> com.oaklandsw.transform.external.xstream=bin
>> com.oaklandsw.transform.external.mxquery=bin
>> com.oaklandsw.util.tests=bin
>> com.oaklandsw.transform.runtime=bin,binexample
>> com.oaklandsw.transform.external.mule=bin
>> com.oaklandsw.transform.tests=bin
>> com.oaklandsw.gui=bin
>> com.oaklandsw.data.standard.x12.scripts=bin
>> com.oaklandsw.transform.external.saxon9=bin
>> com.oaklandsw.transform.external.hibernate33=target/classes
>> com.oaklandsw.transform.external.saxon9sa=bin
>> com.oaklandsw.transform.examples=bin
>> com.oaklandsw.data.standards.x12.3050=bin
>> com.oaklandsw.base=bin
>> com.oaklandsw.transform.runtime.servlet=build/classes
>> com.oaklandsw.util.log4j=bin
>> com.oaklandsw.gui.tests=bin
>> com.oaklandsw.transform.external.quickbooks=bin
>> com.oaklandsw.transform.external.cb2xml=bin
>> com.oaklandsw.transform=bin
>> com.oaklandsw.util.log=bin
>> com.oaklandsw.build=bin
>> com.oaklandsw.base.tests=bin
>> @ignoredot@=true
>> com.oaklandsw.transform.external.qexo=bin
>> com.oaklandsw.transform.external.saxon89=bin
>> com.oaklandsw.transform.tests.mule=bin
>>
>> And my bundles.info has all of the plugins and their locations.
>>
>>
>>
>>
>
>
>
Re: Running as if I were pointed to an installation [message #598063 is a reply to message #63919] Tue, 02 June 2009 21:16 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
On Tue, 02 Jun 2009 13:31:09 -0700, Andrew Niefer <aniefer@ca.ibm.com>
wrote:


> So it seems that
> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
> is happening before reaching start level 4.
>

Thanks Andrew! And sorry for the double posting.

The RuntimeFactory.createRuntime() is what actually calls the
EclipseStarter through reflection. However the RuntimeEngineImpl
constructor is what touches the resources. This is the class that is
defined by the application extension point. Is there a way to get this
class to run at a start level that's higher than 4?

Francis


Re: Running as if I were pointed to an installation [message #598069 is a reply to message #63943] Tue, 02 June 2009 21:39 Go to previous message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
Ignore the previous post, see the thread in equinox for what's going on.
I won't continue with this thread.

On Tue, 02 Jun 2009 14:16:03 -0700, Francis Upton
<francis@oaklandsoftware.com> wrote:

> On Tue, 02 Jun 2009 13:31:09 -0700, Andrew Niefer <aniefer@ca.ibm.com>
> wrote:
>
>
>> So it seems that
>> com.oaklandsw.transform.runtime.RuntimeFactory.createRuntime (RuntimeFactory.java:243)
>> is happening before reaching start level 4.
>>
>
> Thanks Andrew! And sorry for the double posting.
>
> The RuntimeFactory.createRuntime() is what actually calls the
> EclipseStarter through reflection. However the RuntimeEngineImpl
> constructor is what touches the resources. This is the class that is
> defined by the application extension point. Is there a way to get this
> class to run at a start level that's higher than 4?
>
> Francis



--
Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


Previous Topic:Making a JAR available to project from plugin?
Next Topic:3.5RC3: target platform and plug-in source problem
Goto Forum:
  


Current Time: Sun Jun 13 03:24:45 GMT 2021

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

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

Back to the top