Skip to main content

Posts

Showing posts with the label jetty

How do I remove the root element of my Jetty webapp url?

I am running a Java webapp (let's call it mywebapp). Currently I access my page in this webapp by pointing locally to: http://localhost:9000/mywebapp/mystuff However, I need to access it using: http://localhost:9000/mystuff How can I do this? I've tried messing with some confs, but to no avail... This is my current root.xml: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure class="org.mortbay.jetty.webapp.WebAppContext"> <Set name="contextPath">/root</Set> <Set name="war"> <SystemProperty name="app.webapps.path"/>/mywebapp.war </Set> </Configure> Also tried: <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configu