Bug 209306 - [server] org.eclipse.equinox.http.jetty_1.0.0.v20070607 not support ServletFilter,listener and context-param
Summary: [server] org.eclipse.equinox.http.jetty_1.0.0.v20070607 not support ServletFi...
Status: RESOLVED DUPLICATE of bug 199748
Alias: None
Product: Equinox
Classification: Eclipse Project
Component: Framework (show other bugs)
Version: 3.3   Edit
Hardware: All All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: equinox.framework-inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2007-11-09 02:01 EST by Hao kangsheng CLA
Modified: 2007-11-09 10:55 EST (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Hao kangsheng CLA 2007-11-09 02:01:49 EST
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:
Comment 1 Thomas Watson CLA 2007-11-09 09:08:30 EST
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.
Comment 2 Hao kangsheng CLA 2007-11-09 09:31:38 EST
(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>
Comment 3 Simon Kaegi CLA 2007-11-09 10:55:10 EST
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 ***