Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

ServletInitialization Exception in Resteasy doFilter() chain

Posted on 2014-09-15
2
Medium Priority
?
293 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 2000 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

CHALLENGE LAB: Troubleshooting Connectivity Issues

Goal: Fix the connectivity issue in the lab's AWS environment so that you can SSH into the provided EC2 instance.  

Question has a verified solution.

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

Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
Basic understanding on "OO- Object Orientation" is needed for designing a logical solution to solve a problem. Basic OOAD is a prerequisite for a coder to ensure that they follow the basic design of OO. This would help developers to understand the b…
The viewer will learn how to implement Singleton Design Pattern in Java.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses

664 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