webtier@glassfish.java.net

Re: [webtier] Embedded Jetty with MyFaces

From: Martin Beránek <martin.beranek_at_i.cz>
Date: Fri, 6 Nov 2009 10:56:25 +0100

Dne Pá 6. listopadu 2009 10:42:57 webtier_at_javadesktop.org napsal(a):
> hi,
>
> i have that webapp structure.
> thats the point, somehow the web.xml does not take effekt.
>
> does the embedded code automaticly load the web.xml? or do i have to load is manually?

it should load it automatically. i am using it like this:

Server server = new Server(8080);
WebAppContext webapp = new WebAppContext("web","/");
server.setHandler(webapp);
server.start();

the "web" (in my and your case) is relative path, so do you have proper working directory?


> [Message sent by forum member 'cintex' (a.froemer_at_gmx.net)]
>
> http://forums.java.net/jive/thread.jspa?messageID=370818
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: webtier-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: webtier-help_at_glassfish.dev.java.net
>
>

-- 
Martin Beránek
mailto:martin.beranek_at_i.cz
http://www.i.cz