Solved

ServletInitialization Exception in Resteasy doFilter() chain

Posted on 2014-09-15
2
283 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 86

Accepted Solution

by:
CEHJ earned 500 total points
ID: 40324897
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
ID: 40326340
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

Industry Leaders: 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!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers will learn about the different types of variables in Java and how to declare them. Decide the type of variable desired: Put the keyword corresponding to the type of variable in front of the variable name: Use the equal sign to assign a v…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

730 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