Unfortunately, you cannot put the web application in a subdirectory of a /webapp directory, and have Jetty pick it up and deploy it with respective subdirectory being part of the context. All web applications have to reside in /webapp directory in order to be automatically deployed.
On the other hand, if you need to deploy an application from an arbitrary path, or with a context path other when default that is picked for you, you could do that by creating a context configuration file in /contexts directory. Please see the text.xml context configuration file in Jetty distributions for an example. Depending on the version of Jetty you are using, you should be able to find information about ContextDeployer by searching for "Jetty ContextDeployer" in either Codehaus or Eclipse documentation. -Michael On Wed, Aug 10, 2011 at 5:51 AM, zhiwei chen <[email protected]> wrote: > hello,veryone. > > webapps directory tree: > > webapps > ├── child > │ └── hello.war > ├── test.war > > I can access test.war by using http://localhost:8080/test/ , but I can't > access hello.war by using http://localhost:8080/child/hello/. > > How to let jetty load all the .war files under webapps directory and it's > children directory? > > Thank you! > > _______________________________________________ > jetty-users mailing list > [email protected] > https://dev.eclipse.org/mailman/listinfo/jetty-users > >
_______________________________________________ jetty-users mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/jetty-users
