Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] "jsp" folder created on startup

yup, this works great.

thank you.


On Nov 2, 2009, at 10:50 PM, Jan Bartel wrote:

Hi Ryan,

I believe the webdefault.xml file buried in the jetty-webapp.jar (and also visible in etc/webdefault.xml) defines the jsp servlet, which is what is
generating the "NO JSP ..." message when it is parsed.

You can copy etc/webdefault.xml, (or edit in place, as you prefer), remove the jsp servlet declaration, and then call setDefaultDescriptor() on your WebAppContext, passing it the location of your edited webdefault.xml.

regards
Jan

Ryan McKinley wrote:
I just migrated my app from jetty 6 to 7.
Everything went well, except there is one minor issue i'm not sure how to fix.
The app does not use JSP, and I get the warning:
2009-11-02 12:12:00,546 INFO org.eclipse.jetty.util.log - jetty-7.0.0.v20091005
2009-11-02 12:12:00,709 INFO org.eclipse.jetty.util.log - NO JSP
Support for , did not find org.apache.jasper.servlet.JspServlet
this is fine, BUT it also creates a folder "jsp" when it starts.
Anyway I can disable that?
I am starting jetty with a webapp context that is programatically loaded:
WebAppContext ctx = new WebAppContext();
   if( ctx.getMimeTypes() == null ) {
     ctx.setMimeTypes( new MimeTypes() );
   }
   WebXmlConfiguration cfg = new WebXmlConfiguration() {
     @Override
     protected Resource findWebXml(WebAppContext context) throws
IOException, MalformedURLException
     {
       String v =
ConfigClass.class.getPackage().getName().replace('.', '/')+"/ web.xml";
       System.out.println( "Loading: "+v );
       return Resource.newClassPathResource( v );
     }
   };
   cfg.preConfigure( ctx );
   cfg.configure( ctx );
   cfg.postConfigure( ctx );
thanks for any pointers...
ryan
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users

--
Jan Bartel, Webtide LLC | janb@xxxxxxxxxxx | http://www.webtide.com
_______________________________________________
jetty-users mailing list
jetty-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/jetty-users



Back to the top