Deploy Spring MVC application on Virgo Web Server? [message #632449] |
Wed, 13 October 2010 01:40 |
Misha Koshelev Messages: 31 Registered: May 2010 |
Member |
|
|
Dear All:
I am in the process of researching for this OpenMRS ticket:
http://tickets.openmrs.org/browse/TRUNK-1596
and have found a relatively simple guide for converting Spring MVC applications (which we have) that seems like a relatively straightforward way to convert a Spring MVC application gradually to an OSGi bundle.
http://static.springsource.org/osgi/docs/1atest/reference/ht ml/web.html#web:spring-mvc
I have found a simple application that seems like it has followed this guide, albeit a bit dated (2008):
http://raibledesigns.com/rd/entry/running_spring_mvc_web_app lications
http://static.raibledesigns.com/downloads/myapp-noosgi.zip
http://tinyurl.com/3ylrbhp
I am trying to deploy this file in Virgo Web Server.
Specifically, I have installed successfully:
http://carroll.aset.psu.edu/pub/eclipse/virgo/milestone/VWS/ 2.1.0.M06-incubation/virgo-web-server-2.1.0.M06-incubation.z ip
I enable the Equinox telnet console by uncommenting the following line:
misha@misha-d630:~/opt/virgo-web-server-2.1.0.M06-incubation$ cat config/org.eclipse.virgo.kernel.userregion.properties | grep console
# osgi console support
osgi.console=2401
then drop the following bundle into pickup:
http://www.springsource.com/repository/app/bundle/version/do wnload?name=org.springframework.osgi.web&version=1.2.1&a mp;a mp;type=binary
I go to the console, install bundle, it is active:
telnet localhost 2401
Trying ::1...
Connected to localhost.
Escape character is '^]'.
osgi> install file:///tmp/myapp.war
Bundle id is 64
osgi> start myapp
osgi> ss myapp
Framework is launched.
id State Bundle
64 ACTIVE myapp_0.0.0
Yet get a 404 from the suggested URL:
curl http://localhost:8080/myapp/
<html><head><title>Apache Tomcat/6.0.29 - Error report</title><style><!--H1 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;} H2 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;} H3 {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;} BODY {font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B {font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;} P {font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A {color : black;}A.name {color : black;}HR {color : #525D76;}--></style> </head><body><h1>HTTP Status 404 - /myapp/</h1><HR size="1" noshade="noshade"><p><b>type</b> Status report</p><p><b>message</b> <u>/myapp/</u></p><p><b>description</b> <u>The requested resource (/myapp/) is not available.</u></p><HR size="1" noshade="noshade"><h3>Apache Tomcat/6.0.29</h3></body></html>
Any ideas? Thank you.
Misha
[Updated on: Wed, 13 October 2010 01:41] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04606 seconds