|
|
|
|
Re: Error while deploying a simple Spring MVC application using Gemini Blueprint, Gemini Web and Equ [message #815398 is a reply to message #815304] |
Wed, 07 March 2012 16:00 |
Nitin Kumar Messages: 7 Registered: March 2012 |
Junior Member |
|
|
Thanks again.
Re "The web side of Spring DM was a dead end and should be ignored."
- Spring MVC in an OSGi environment requires "org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext" in place of the standard 'XmlWebApplicationContext' which is used for 'non-OSGi Spring MVC'. The OsgiBundleXmlWebApplicationContext is provided by org.springframework.osgi.web-1.2.1 jar file. How do you suggest I ignore Spring DM then? Is there any other mechanism of providing applicationContect support for making Spring MVC application work inside OSGi environment? DO I continue to use XmlWebApplicationContext instead of OsgiBundleXmlWebApplicationContext?
- Should I ignore these jars as well:
a. org.springframework.osgi.web.extender-1.2.1.jar : Related to Spring DM Web and NOT present inside Virgo distribution
b. org.springframework.osgi.extensions.annotation-1.2.1.jar? : NOT related to Spring DM Web AND NOT present inside Virgo distribution
On a different note, the Spring MVC application fails with same error inside Virgo (ERROR Thread-34 0rg.springframework.web.context.ContextLoader Context initialization failed java.lang.IllegalArgumentException: bundle context should be set before refreshing the application context).
I have uploaded the log file from 'virgo-tomcat-server-3.0.2.RELEASE\serviceability\logs' folder.
I have also uploaded the source code (maven project) of the PoC Spring MVC application (ch08-web-springmvc.rar) for you to take a look at and suggest the changes required to make it inside Virgo. The 'target' folder has the binary version of the application. The binary version of the dependent application 'ch08-directory' has already been provided.
Please note that I have copied the following jars inside the 'pickup' directory inside Virgo home directory for meeting the dependencies of the Spring MVC application. The jars are installed and shown ACTIVE from the Virgo admin console.
org.springframework.osgi.extensions.annotation-1.2.1
org.springframework.osgi.web-1.2.1
org.springframework.web-3.0.5.RELEASE
org.springframework.web.servlet-3.0.5.RELEASE
org.springframework.osgi.web.extender-1.2.1 : My application doesn't seem to have any dependency on this JAR as it doesn't seem to matter if I keep it or remove it from the 'pickup' directory.
Thanks
[Updated on: Wed, 07 March 2012 17:05] Report message to a moderator
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.05277 seconds