"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 of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In