Community
Participate
Working Groups
It would be nice to have support for Tomcat 7 Jasper in the User Assistance plugin. I tested the User Assistance plugin with Tomcat 7's Jasper jars and needed to make some minor changes to get all tests passing and functionality working. I'll attach these changes as a patch. This would merely allow a user running Eclipse with Tomcat 7's Jasper to do so, and would not impede the use of Jasper 5.
Created attachment 202032 [details] Patch Minor changes to MockServlet{Request,Response} to work with new Servlet 3.0 API.
Thanks for the patch. I would like to get this into Eclipse 3.8, however I'm seeing compilation errors when building against javax.servlet version 2.5. The import javax.servlet.AsyncContext cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 24 Java Problem The import javax.servlet.DispatcherType cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 25 Java Problem The import javax.servlet.http.Part cannot be resolved MockServletRequest.java /org.eclipse.ua.tests/help/org/eclipse/ua/tests/help/webapp line 36 Java Problem
You're right. From what I can see the new javax.servlet 3.0 has introduced some new classes that are not in javax.servlet 2.5. They are being used by MockServletRequest. I'm not sure how to get around this to support both 2.5 and 3.0. I'll continue looking into this, but is there a possibility of creating a branch to hold the User Assistance Jasper 7 changes if they can't be brought in to work with Jasper 5 ?
I'll have to look at that code and see if there is another way of accomplishing the same result, i.e. testing what cookies are written to the response. I'd rather rewrite the tests than have multiple versions of the test suite.
This is not blocked by the migration to jetty 8. Instead it is blocked by bug341643. Simon A. has been doing testing on Tomcat 7 in that bug without any jetty 8.
As UA is using Jetty 9 now this bug is useless to have open anymore.