"mybatis" jar causes issue in Tomcat during deployment

Solution Unverified - Updated -

Issue

  • Getting the following error when deploying application containing mybatis jar to Tomcat

    SEVERE: Unable to process Jar entry [org/apache/ibatis/javassist/ByteArrayClassPath.class] from Jar [jar:file:/C:/Tomcat7/webapps/coreui/WEB-INF/lib/mybatis-3.4.1.jar!/] for annotations
    java.io.EOFException
        at java.io.DataInputStream.readUnsignedShort(Unknown Source)
        at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:796)
        at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:171)
    

Environment

  • Tomcat
    • 7.0.54
  • RHEL
    • 7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content