Starting framework from Java code with EclipseStarter [message #57412] |
Mon, 23 January 2006 17:42 |
Eclipse User |
|
|
|
Originally posted by: agno.AI.SRI.COM
I'm trying to start the framework from existing Java code. I'm
using EclipseStarter to do this. This starts out fine--bundles get
auto-started, but the problem is that EclipseStarter seems to need
an application to start. When I try to add an extension to the
org.eclipse.core.runtime.applications extension point, the logs say:
Command-line arguments: -application com.sri.aic.plugin.core.OSGIAppStarter -noSplash -console 8090 -clean
!ENTRY org.eclipse.osgi 2006-01-23 09:00:10.429
!MESSAGE Application error
!STACK 1
java.lang.RuntimeException: Application "com.sri.aic.plugin.core.OSGIAppStarter" could not be found in the
registry. The applications available are: <NONE>.
at
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.java:99)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(EclipseAppLauncher.java:92)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAppLauncher.java:68)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
at
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
at
com.sri.aic.cmatrix.bootstrap.CMatrixCoordinator$1.run(CMatr ixCoordinator.java:120)
at java.lang.Thread.run(Thread.java:595)
I feel I must be missing something fairly obvious, but I can't find
it. I'm guessing that just loading my bundle won't register the
application, but how else must I register the application?
Oh, and I'm using 3.2M4.
Any help would be appreciated.
Thanks,
Andrew.
|
|
|
|
Re: Starting framework from Java code with EclipseStarter [message #57462 is a reply to message #57412] |
Tue, 24 January 2006 03:30 |
Eclipse User |
|
|
|
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com
Just to clarify, the -application argument is the id of the application
extension that you have to supply. Here it appears (from the name) to be a
class. There is a way of running the platform and telling it not to even
try to run the application but for the life of me I can't see the arg in the
code. The app model is in flux so I suppose it has moved or changed some
how. I'll try to get the info and post back here.
Jeff
"Andrew Agno" <agno@AI.SRI.COM> wrote in message
news:pan.2006.01.23.17.42.20.386734@AI.SRI.COM...
> I'm trying to start the framework from existing Java code. I'm
> using EclipseStarter to do this. This starts out fine--bundles get
> auto-started, but the problem is that EclipseStarter seems to need
> an application to start. When I try to add an extension to the
> org.eclipse.core.runtime.applications extension point, the logs say:
> Command-line arguments: -application
com.sri.aic.plugin.core.OSGIAppStarter -noSplash -console 8090 -clean
>
> !ENTRY org.eclipse.osgi 2006-01-23 09:00:10.429
> !MESSAGE Application error
> !STACK 1
> java.lang.RuntimeException: Application
"com.sri.aic.plugin.core.OSGIAppStarter" could not be found in the
> registry. The applications available are: <NONE>.
> at
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
java:99)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
EclipseAppLauncher.java:92)
> at
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAp
pLauncher.java:68)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
> at
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> at
>
com.sri.aic.cmatrix.bootstrap.CMatrixCoordinator$1.run(CMatr ixCoordinator.ja
va:120)
> at java.lang.Thread.run(Thread.java:595)
>
> I feel I must be missing something fairly obvious, but I can't find
> it. I'm guessing that just loading my bundle won't register the
> application, but how else must I register the application?
>
> Oh, and I'm using 3.2M4.
>
> Any help would be appreciated.
>
> Thanks,
> Andrew.
|
|
|
Re: Starting framework from Java code with EclipseStarter [message #57889 is a reply to message #57462] |
Tue, 24 January 2006 04:57 |
Eclipse User |
|
|
|
Originally posted by: jeff_nospam_mcaffer.ca.ibm.com
Tom reminded me...
There are two properties to set in their config.ini
eclipse.ignoreApp=true
osgi.noShutdown=true
If you do not use the console then you need to make sure that a non-daemon
thread is started from one of their bundles, otherwise the VM will exit once
the work of main is done starting the framework.
Jeff
"Jeff McAffer" <jeff_nospam_mcaffer@ca.ibm.com> wrote in message
news:dr470k$oa4$1@utils.eclipse.org...
> Just to clarify, the -application argument is the id of the application
> extension that you have to supply. Here it appears (from the name) to be
a
> class. There is a way of running the platform and telling it not to even
> try to run the application but for the life of me I can't see the arg in
the
> code. The app model is in flux so I suppose it has moved or changed some
> how. I'll try to get the info and post back here.
>
> Jeff
>
> "Andrew Agno" <agno@AI.SRI.COM> wrote in message
> news:pan.2006.01.23.17.42.20.386734@AI.SRI.COM...
> > I'm trying to start the framework from existing Java code. I'm
> > using EclipseStarter to do this. This starts out fine--bundles get
> > auto-started, but the problem is that EclipseStarter seems to need
> > an application to start. When I try to add an extension to the
> > org.eclipse.core.runtime.applications extension point, the logs say:
> > Command-line arguments: -application
> com.sri.aic.plugin.core.OSGIAppStarter -noSplash -console 8090 -clean
> >
> > !ENTRY org.eclipse.osgi 2006-01-23 09:00:10.429
> > !MESSAGE Application error
> > !STACK 1
> > java.lang.RuntimeException: Application
> "com.sri.aic.plugin.core.OSGIAppStarter" could not be found in the
> > registry. The applications available are: <NONE>.
> > at
> >
>
org.eclipse.core.internal.runtime.PlatformActivator$1.run(Pl atformActivator.
> java:99)
> > at
> >
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .runApplication(
> EclipseAppLauncher.java:92)
> > at
> >
>
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher .start(EclipseAp
> pLauncher.java:68)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:379)
> > at
> >
>
org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseS tarter.java:177)
> > at
> >
>
com.sri.aic.cmatrix.bootstrap.CMatrixCoordinator$1.run(CMatr ixCoordinator.ja
> va:120)
> > at java.lang.Thread.run(Thread.java:595)
> >
> > I feel I must be missing something fairly obvious, but I can't find
> > it. I'm guessing that just loading my bundle won't register the
> > application, but how else must I register the application?
> >
> > Oh, and I'm using 3.2M4.
> >
> > Any help would be appreciated.
> >
> > Thanks,
> > Andrew.
>
>
|
|
|
Powered by
FUDForum. Page generated in 0.02775 seconds