Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

ServletInitialization Exception in Resteasy doFilter() chain

In our WebSphere environment (8.5.0.2), this MULTIPART_FORM_DATA service call is causing all service calls to fail in the servlet doFilter() chain.

      @POST
      @Path("/upload_attachment")
      @Consumes(MediaType.MULTIPART_FORM_DATA)
      @Produces(MediaType.APPLICATION_JSON)
      public Response uploadAttachment(@FormDataParam("attachment") InputStream input,                               @FormDataParam("attachment") FormDataContentDisposition contentDisposition) {

The error:

javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
        at com.ibm.ws.webcontainer.servlet.ServletWrapper.init(ServletWrapper.java:399)
        ...
Caused by: java.lang.NoSuchMethodError: com/sun/jersey/core/reflection/ReflectionHelper.getFromStringStringMethodPA(Ljava/lang/Class;)Ljava/security/PrivilegedAction;

This is not an issue for us locally.  Does any know what might be going on here?
0
jkavx
Asked:
jkavx
1 Solution
 
CEHJCommented:
Make sure you have the correct Jersey library jars and that they are in the classpath. When you have it right, you should be able to run javap on the ReflectionHelper class that it's complaining about and see the method that it's currently saying does not exist
0
 
jkavxAuthor Commented:
Thx.  There was an old version of the jersey-core jar that was overriding what we have in our war file.  The ReflectionHelper class in the older jar file does not have this method.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now