i've placed activation.jar and mail.jar into jettys libs (been told these are
required) and then go to run and i get a mass of SAXXmlParser errors, loads of
em. The server starts fine without that line, quite happy to supply boring pages.
Can someone please help, even jst a pointer to a clear example would be very
much appreciated as most seem to just talk around the subject without any actual
Thank you all for your time and hopefully some of your efforts as well!
Tony, I think you will find your problem is due to a handler ordering issue!
You have to make sure that there is a SecurityHandler added to the context BEFORE
the ResourceHandler!!! Otherwise the ResourceHandler will handle the request before
the SecurityHandler deals with it.
Tony Seebregts wrote:
> I'm trying to set a 'forbidden' security constraint programmatically:
> SecurityConstraint forbidden = new SecurityConstraint();
> context.setContextPath ("/");
> context.setResourceBase ("./webapps/default");
> context.addHandler (new ResourceHandler());
> But ... it doesn't work and I can't figure out why.
> Tony Seebregts
> This SF.Net email is sponsored by: NEC IT Guy Games.
> Get your fingers limbered up and give it your best shot. 4 great events, 4
> opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
> win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20 > _______________________________________________
> Jetty-support mailing list
> [hidden email] > https://lists.sourceforge.net/lists/listinfo/jetty-support >