|[jetty-users] ClassCastException of Response to Response|
((org.eclipse.jetty.server.Response) resp).addCookie(ck);That gives me a ClassCastException, even though it looks like the object is the right class. I assumed it is because the ClassLoader at the server level is not the same as at the servlet, but when I tried setting parentLoaderPriority it didn't help.
<plugin> <groupId>org.mortbay.jetty</groupId> <artifactId>jetty-maven-plugin</artifactId> <version>7.1.4.v20100610</version> <configuration> <webAppConfig> <parentLoaderPriority>true</parentLoaderPriority> I tried both true and false.I have a workaround using reflection, but it is obviously not the right thing to do. What is the right way to call a method on a org.eclipse.jetty.server.Response?
Back to the top