Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Equinox » Equinox+Spring DM + OSGified tomcat
Equinox+Spring DM + OSGified tomcat [message #528716] Wed, 21 April 2010 10:54 Go to next message
Abhinav Mishra is currently offline Abhinav Mishra
Messages: 4
Registered: April 2010
Junior Member
Hi All,

I need some help to run OSGified Tomcat in Equinox.
Environment :
Eclipse : 3.5
Imported following bundles:
org.eclipse.osgi3.5.1 and dependencies
spring related bundles(version 2.5SEC01) : org.springframework.aop,aspects,beans,context,core,web,etc

OSGi related bundles:
osgi.test,web,web-extender,io,core,mock,common.logging,junit

OSGified tomcat and its dependencies:
org.apache.catalina.springsource

all from site:http://www.springsource.com/repository/app/

I created a new OSGi Run configuration and when I start all the bundles I get following error:

INFO: Initializing Timer
Apr 21, 2010 8:21:01 PM org.springframework.osgi.web.deployer.tomcat.TomcatWarDeploy er afterPropertiesSet
SEVERE: No Catalina Service found, bailing out
org.springframework.osgi.service.ServiceUnavailableException : service matching filter=[(objectClass=org.apache.catalina.Service)] unavailable
at org.springframework.osgi.service.importer.support.internal.a op.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterce ptor.java:403)
at org.springframework.osgi.service.importer.support.internal.a op.ServiceDynamicInterceptor.afterPropertiesSet(ServiceDynam icInterceptor.java:462)
at org.springframework.osgi.service.importer.support.OsgiServic eProxyFactoryBean.createProxy(OsgiServiceProxyFactoryBean.ja va:194)
at org.springframework.osgi.service.importer.support.AbstractSe rviceImporterProxyFactoryBean.getObject(AbstractServiceImpor terProxyFactoryBean.java:83)
at org.springframework.osgi.service.importer.support.OsgiServic eProxyFactoryBean.getObject(OsgiServiceProxyFactoryBean.java :141)
at org.springframework.osgi.web.deployer.internal.util.Utils.cr eateServerServiceProxy(Utils.java:117)
at org.springframework.osgi.web.deployer.tomcat.TomcatWarDeploy er.afterPropertiesSet(TomcatWarDeployer.java:90)
at org.springframework.osgi.web.extender.internal.activator.War ListenerConfiguration.createDefaultWarDeployer(WarListenerCo nfiguration.java:197)
at org.springframework.osgi.web.extender.internal.activator.War ListenerConfiguration. <init>(WarListenerConfiguration.java:105)
at org.springframework.osgi.web.extender.internal.activator.War LoaderListener$1.run(WarLoaderListener.java:353)
at java.lang.Thread.run(Thread.java:619)
Apr 21, 2010 8:21:01 PM org.springframework.osgi.web.extender.internal.activator.War LoaderListener$1 run
SEVERE: Cannot property start Spring-DM WebExtender; stopping bundle...
org.springframework.osgi.OsgiException: Cannot create Tomcat deployer
at org.springframework.osgi.web.extender.internal.activator.War ListenerConfiguration.createDefaultWarDeployer(WarListenerCo nfiguration.java:201)
at org.springframework.osgi.web.extender.internal.activator.War ListenerConfiguration. <init>(WarListenerConfiguration.java:105)
at org.springframework.osgi.web.extender.internal.activator.War LoaderListener$1.run(WarLoaderListener.java:353)
at java.lang.Thread.run(Thread.java:619)
Caused by: org.springframework.osgi.service.ServiceUnavailableException : service matching filter=[(objectClass=org.apache.catalina.Service)] unavailable
at org.springframework.osgi.service.importer.support.internal.a op.ServiceDynamicInterceptor.getTarget(ServiceDynamicInterce ptor.java:403)
at org.springframework.osgi.service.importer.support.internal.a op.ServiceDynamicInterceptor.afterPropertiesSet(ServiceDynam icInterceptor.java:462)
at org.springframework.osgi.service.importer.support.OsgiServic eProxyFactoryBean.createProxy(OsgiServiceProxyFactoryBean.ja va:194)
at org.springframework.osgi.service.importer.support.AbstractSe rviceImporterProxyFactoryBean.getObject(AbstractServiceImpor terProxyFactoryBean.java:83)
at org.springframework.osgi.service.importer.support.OsgiServic eProxyFactoryBean.getObject(OsgiServiceProxyFactoryBean.java :141)
at org.springframework.osgi.web.deployer.internal.util.Utils.cr eateServerServiceProxy(Utils.java:117)
at org.springframework.osgi.web.deployer.tomcat.TomcatWarDeploy er.afterPropertiesSet(TomcatWarDeployer.java:90)
at org.springframework.osgi.web.extender.internal.activator.War ListenerConfiguration.createDefaultWarDeployer(WarListenerCo nfiguration.java:197)
... 3 more
Apr 21, 2010 8:21:01 PM org.springframework.scheduling.timer.TimerTaskExecutor destroy
INFO: Cancelling Timer

Changing run level or starting web-extender manully is not resolving the issue.

Please provide your input/suggestions.

Abhinav Mishra
Re: Equinox+Spring DM + OSGified tomcat [message #529745 is a reply to message #528716] Tue, 27 April 2010 01:47 Go to previous message
Abhinav Mishra is currently offline Abhinav Mishra
Messages: 4
Registered: April 2010
Junior Member
I found the solution.
I was missing : Tomcat OSGi Service Bootstraper. This will register Catalina service to the OSGi registry.

Calalina.start.osgi-1.0.0.jar

I just added that Catalina.start.osgi plug in that solved my problem.
Previous Topic:configuration for bundles
Next Topic:Software update runs into "StorageException"
Goto Forum:
  


Current Time: Sat Apr 19 23:26:16 EDT 2014

Powered by FUDForum. Page generated in 0.01742 seconds