tag:blogger.com,1999:blog-18490491.post6493773003965758380..comments2023-09-15T15:20:41.933+02:00Comments on Martin Lippert: Eclipse RCP and Spring: Code Example from Spring Experience 2006Unknownnoreply@blogger.comBlogger2125tag:blogger.com,1999:blog-18490491.post-10222150651457347882007-02-07T11:25:00.000+01:002007-02-07T11:25:00.000+01:00Hi!
Sorry for the hard-coded paths in the launch ...Hi!<br /><br />Sorry for the hard-coded paths in the launch config. I should take a look at this, should be possible to define relative paths as well.<br /><br />The access restriction is violated by the Spring OSGi code and not in my hand. But you are right, the code would be cleaner without this violation.<br /><br />The exception you get seems like to result from a wrong config.ini file. Is the spring-osgi bundle correctly defined there? The point is that the spring bundle needs to be started before the other bundles (especially your application bundle) are started.<br /><br />Start the client with the -console option and find out if the spring bundle is activated and running.Martin Lipperthttps://www.blogger.com/profile/12324741319942962555noreply@blogger.comtag:blogger.com,1999:blog-18490491.post-71335893622224293502007-01-25T04:56:00.000+01:002007-01-25T04:56:00.000+01:00That's great! it's what I have been looking for fo...That's great! it's what I have been looking for for a longtime now.<br /><br />But I have some issues with your zip file: <br />- there are hardcoded path in the launch config to C:\eclipse-workspaces\springosgi2<br />- eclipse is complaining that org.osgi.service.startlevel.StartLevel has Access restriction: The type StartLevel is not accessible due to restriction on required library org.eclipse.osgi_3.2.1.R32x_v20060919.jar<br />from BundleFactoryBean, this may be resolved in a more recent spring-osgi.<br />- when I run rcp mail example the view creation fail with a "org.springframework.osgi.service.NoSuchServiceException: A service of type 'org.springframework.context.ApplicationContext' matching filter '(org-springframework-context-service-name=org.eclipse.example.rcpmail-springApplicationContext)' could not be found." maybe it's related to the access restriction problem ?<br /><br />Thanks again for your example.Patrick Roumanoffhttps://www.blogger.com/profile/07661509962667491051noreply@blogger.com