|
|
|
|
|
|
|
|
Re: Spring DM: No Catalina Service found [message #842877 is a reply to message #842834] |
Thu, 12 April 2012 17:45 |
R Abreu Messages: 7 Registered: April 2012 |
Junior Member |
|
|
[quote title=Violeta Georgieva wrote on Thu, 12 April 2012 17:49]Quote:My WAR file is OSGi compliant.
You should be able to deploy such application on Virgo Tomcat Server.
What is the problem that you receive?
You can check as a reference the applications provided with Virgo Tomcat Server.
Thank you for the advice, I'll double check to make sure my bundle is correct and OSGi compliant.
As I said, my WAR is a Spring MVC application and I'm assuming I have to deploy spring-osgi-web.jar and spring-osgi-web-extender to enable the Spring DM Web module.
The error I got is:
org.springframework.osgi.web.deployer.tomcat.TomcatWarDeployer
No Catalina Service found, bailing out
It appears the Tomcat service needs to be registered in the OSGi registry.
The bottom line is this: is Spring MVC OSGi bundle suppose to work in Virgo Tomcat Server without further configurations?
Thank you
[Updated on: Thu, 12 April 2012 17:45] Report message to a moderator
|
|
|
Re: Spring DM: No Catalina Service found [message #844083 is a reply to message #842877] |
Fri, 13 April 2012 17:14 |
R Abreu Messages: 7 Registered: April 2012 |
Junior Member |
|
|
I was able to deploy my Spring MVC OSGi bundle to Virgo Tomcat.
I was trying to install the web module of Spring Dynamic Modules (DM) because that's what the official Spring DM documentation says. But that's not necessary.
I found another post in this forum that helped.
All I had to do was add to my web.xml:
<context-param>
<param-name>contextClass</param-name>
<param-value>org.eclipse.virgo.web.dm.ServerOsgiBundleXmlWebApplicationContext</param-value>
</context-param>
And this to my MANIFEST.MF:
Import-Package: org.eclipse.virgo.web.dm
It now deploys successfully.
Thank you
[Updated on: Fri, 13 April 2012 17:15] Report message to a moderator
|
|
|
Powered by
FUDForum. Page generated in 0.03836 seconds