Hi,
I am trying to run Jetty 8 standalone ( not embedded ) and to use the servlet
3.0 code configuration capabilities using WebApplicationInitializer
When I deploy my war ( includes servlet 3.0 APIs ) the jetty choose to use the
defaultweb.xml
that configured to use servlet 2.5 and therefore it doesn't call my
WebApplicationInitializer class.
Does it supported for not embedded jetty?
How can I tell jetty not to use web.xml or defaultweb.xml at all?
>From the jetty debug log:
2015-01-14 10:54:24,722 DEBUG
org.eclipse.jetty.webapp.WebInfConfiguration.unpack:508 [main] -
webapp=file:/var/log/opt/tmp/jetty-127.0.0.1-8443-web.war-_web-any-/webapp/
2015-01-14 10:54:24,737 DEBUG
org.eclipse.jetty.webapp.WebAppContext.preConfigure:456 [main] - preConfigure
o.e.j.w.WebAppContext{/web,file:/var/log/opt/tmp/jetty-127.0.0.1-8443-web.war-_web-any-/webapp/},/opt
/webapps/web.war with org.eclipse.jetty.webapp.WebXmlConfiguration@6dc0d731
2015-01-14 10:54:24,766 DEBUG
org.eclipse.jetty.webapp.WebDescriptor.processVersion:207 [main] -
jar:file:/opt/jetty/lib/jetty-webapp-8.1.12.v20130726.jar!/org/eclipse/jetty/webapp/webdefault.xml:
Calculated metadatacomplete =
True with version=2.5
2015-01-14 10:54:24,767 DEBUG
org.eclipse.jetty.webapp.WebXmlConfiguration.findWebXml:114 [main] - No
WEB-INF/web.xml in /opt/webapps/web.war. Serving files and default/dynamic
servlets only
2015-01-14 10:54:24,767 DEBUG
org.eclipse.jetty.webapp.WebAppContext.preConfigure:456 [main] - preConfigure
o.e.j.w.WebAppContext{/web,file:/var/log/opt/tmp/jetty-127.0.0.1-8443-web.war-_web-any-/webapp/},/opt
/webapps/web.war with org.eclipse.jetty.webapp.MetaInfConfiguration@6357be97
_______________________________________________
jetty-users mailing list
[email protected]
To change your delivery options, retrieve your password, or unsubscribe from
this list, visit
https://dev.eclipse.org/mailman/listinfo/jetty-users