I am trying a deploy a ruby on rails web application using
Warble/Jruby1.1.2 on glassfish v2 into the default root context (i.e.
“/” instead of “/myapp”). On glassfish this can apparently be done by
adding a “sun-web.xml” file such as the one below to the WAR file. The
question is how do I make Warble include this file in the generated WAR
file. I tried to put the sun-web.xml file into the rails config
directory like it is possible to do with web.xml but it did not work.
Suggestion? Alternative ways to solve deploy my app as a default root
context ?
Example sun-web.xml:
<?xml version=“1.0” encoding=“UTF-8”?>
<!DOCTYPE sun-web-app PUBLIC ‘-//Sun Microsystems, Inc.//DTD
Application Server 8.1 Servlet 2.4//EN’
‘Hardware | Oracle’>
<sun-web-app>
<context-root>/myapp</context-root>
</sun-web-app>
/Thanks
Morten
________________________________________________________
Audi, Fiat, Peugeot, Skoda, Porsche, Toyota, Ford - Kelkoo har brugte
biler til en hver smag! Klik her for at sammenligne
priser.(http://dk.yahoo.com/r/pat/mmb)