Solved

ServletInitialization Exception in Resteasy doFilter() chain

Posted on 2014-09-15
2
273 Views
Last Modified: 2014-09-16
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
Comment
Question by:jkavx
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:jkavx
Comment Utility
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

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 81
powerN  challenge 3 46
Unable to open debugger port in Intellij idea 6 77
solarwind tftp server 2 30
For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
Viewers learn how to read error messages and identify possible mistakes that could cause hours of frustration. Coding is as much about debugging your code as it is about writing it. Define Error Message: Line Numbers: Type of Error: Break Down…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now