| Summary: | org.eclipse.rap.rwt.osgi does not support Servlet API 3.0 | ||
|---|---|---|---|
| Product: | [RT] RAP | Reporter: | Ralf Zahn <ralf.zahn> |
| Component: | RWT | Assignee: | Project Inbox <rap-inbox> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P1 | CC: | fr.appel, fwaibel, rsternberg, ruediger.herrmann |
| Version: | 1.5 | ||
| Target Milestone: | 1.5 M1 | ||
| Hardware: | PC | ||
| OS: | Windows 7 | ||
| Whiteboard: | |||
|
Description
Ralf Zahn
This makes RAP unusable with modern servlet containers such as Tomcat 7. Since RAP 1.4 is already compatible with servlet 3.0, we'll have to find a way to make rwt.osgi compatible, too. Would it be a solution to let the wrapper implement the additional 3.0 ServletContext methods? This should not hurt in a 2.6 environment since the 3.0 methods would never be called. We have to have a look at the other wrapper classes also. Implemented servlet 3.0 interfaces. Unfortunately, this requires a type from a package that has been introduced in 3.0 (javax.servlet.descriptor). Added an optional import for this package to maintain compatibility to 2.5. With servlet 3.0, this package will always be available, as it is exported from the same bundle. But since the single method that refers to this type will never be called, I think it should even work fine when the package is missing at runtime. rwt.osgi is now compiled against servlet 3.0, and runs fine with servlet 2.5. |