Community
Participate
Working Groups
Build ID: I20070625-1500 Steps To Reproduce: org.eclipse.equinox.http.jetty_1.0.0.v20070607 not support ServletFilter,listener and context-param. not support jetty6 More information:
Can you give more information? Is there a stacktrace or an error log? Do you have an example that can reproduce? Please reopen with more information.
(In reply to comment #1) > Can you give more information? Is there a stacktrace or an error log? Do you > have an example that can reproduce? > > Please reopen with more information. > Can you help me ? I have a web.xml file. But i can not config it in the org.eclipse.equinox.http.jetty. <?xml version="1.0" encoding="ISO-8859-1"?> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN" "http://java.sun.com/dtd/web-app_2_3.dtd"> <web-app id="dwr"> <display-name>test</display-name> <description>test</description> <context-param> <param-name>contextConfigLocation</param-name> <param-value> /WEB-INF/configs/applicationContext-*.xml </param-value> </context-param> <listener> <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> </listener> <servlet> <servlet-name>dwr-invoker</servlet-name> <display-name>DWR Servlet</display-name> <description>Direct Web Remoter Servlet</description> <servlet-class>org.directwebremoting.spring.DwrSpringServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>activeReverseAjaxEnabled</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>initApplicationScopeCreatorsAtStartup</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>maxWaitAfterWrite</param-name> <param-value>500</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet> <servlet-mapping> <servlet-name>dwr-invoker</servlet-name> <url-pattern>/dwr/*</url-pattern> </servlet-mapping> <filter> <filter-name>Encoding</filter-name> <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> <init-param> <param-name>encoding</param-name> <param-value>UTF-8</param-value> </init-param> <init-param> <param-name>forceEncoding</param-name> <param-value>true</param-value> </init-param> </filter> <filter> <filter-name>struts2</filter-name> <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> </filter> <filter-mapping> <filter-name>Encoding</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <filter-mapping> <filter-name>struts2</filter-name> <url-pattern>/*</url-pattern> </filter-mapping> <welcome-file-list> <welcome-file>index.html</welcome-file> <welcome-file>index.jsp</welcome-file> </welcome-file-list> </web-app>
org.eclipse.equinox.http.jetty provides an OSGi Http Service. Filters, Listeners and Init Params are not currently supported by the Http Service specification. There is a bug open to look at adding these feature that I've added as a duplicate. I think there's a Jetty 6 bug open already however if not I'll open that up separately. If you need help using the service you should use the Equinox user newsgroup instead of bugzilla as it gives a chance for other users to learn and provide help. *** This bug has been marked as a duplicate of bug 199748 ***