|
Re: WAR Deploy [message #1073855 is a reply to message #1073832] |
Thu, 25 July 2013 16:23 |
Violeta Georgieva Messages: 278 Registered: October 2010 |
Senior Member |
|
|
Hi,
Let's imagine that you have already Gemini Web started.
If you want to install the Apache Tomcat examples, you can do the following:
- go to the console
- execute
osgi> install webbundle:file:<path-to-examples-folder>?Web-ContextPath=/examples
Bundle id is 33
osgi> start 33
- go to the browser and request http://localhost:8080/examples/
Some of the examples need additional tweaks.
If you want to test websocket example, you can do the following:
- go to the console
- execute
osgi> install webbundle:file:C:\vily\apache-tomcat-7.0.39\webapps\examples?Web-ContextPath=/examples&Import-Package=org.apache.catalina.websocket
Bundle id is 33
osgi> start 33
- go to the browser and request http://localhost:8080/examples/websocket
So some explanation:
When we use "webbundle" this will instruct Gemini Web to transform the web application to web application bundle.
If you have already a web application bundle then you do not need "webbundle". You also do not need Web-ContextPath and Import-Package as they are available in MANIFEST.MF file.
osgi> install file:osgi.web.app.war
Bundle id is 33
osgi> start 33
An example of web application bundle can be found here [1]
Regards
Violeta
[1] http://wiki.eclipse.org/images/f/f6/Osgi.web.app.zip
[Updated on: Thu, 25 July 2013 17:08] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.45113 seconds