title: Unable to process jar entry from Jar
body: <p>I'm trying to run simple program on restful API and I'm getting the following Exception</p>
  
  <pre><code>&gt;Sep 12, 2016 10:05:02 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar
  SEVERE: Unable to process Jar entry [javassist/tools/rmi/RemoteRef.class] from Jar [jar:file:/C:/Users/user/examples/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/demoWebservice/WEB-INF/lib/javassist-3.19.0-GA.jar!/] for annotations
  java.io.EOFException
      at java.io.DataInputStream.readUnsignedShort(Unknown Source)
      at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:797)
      at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:171)
      at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.&lt;init&gt;(FieldOrMethod.java:57)
      at org.apache.tomcat.util.bcel.classfile.Method.&lt;init&gt;(Method.java:71)
      at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:267)
      at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:127)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2058)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1934)
      at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1900)
      at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
      at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1317)
      at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
      at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
      at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5378)
      at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1575)
      at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1565)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
  </code></pre>
  
  <p>My web.xml is shown below...</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;web-app id="WebApp_ID" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"&gt;
  &lt;display-name&gt;demoWebservice&lt;/display-name&gt;
  
      &lt;servlet&gt;
      &lt;servlet-name&gt;Java WS&lt;/servlet-name&gt;
      &lt;servlet-class&gt;org.glassfish.jersey.servlet.ServletContainer&lt;/servlet-class&gt;
      &lt;init-param&gt;
        &lt;param-name&gt;jersy.config.server.provider.packages&lt;/param-name&gt;
        &lt;param-value&gt;book&lt;/param-value&gt;
      &lt;/init-param&gt;
      &lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
      &lt;/servlet&gt;
  
      &lt;servlet-mapping&gt;
      &lt;servlet-name&gt;Java WS&lt;/servlet-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;/servlet-mapping&gt;
  &lt;/web-app&gt;
  </code></pre>
  
  <p>class is shown below:-</p>
  
  <pre><code>package book;
  
  import javax.ws.rs.GET;
  import javax.ws.rs.Path;
  import javax.ws.rs.Produces;
  import javax.ws.rs.core.MediaType;
  
  @Path("/book")
  public class Book {
  
      @GET
      @Produces(MediaType.TEXT_XML)
      public String sayHelloXML(){
          String response = "&lt;?xml version='1.0'?&gt;"
                  + "&lt;hello&gt; Hello World &lt;/hello&gt;";
          return response;
      }
  
  }
  </code></pre>