8 Replies Latest reply on Apr 6, 2006 2:52 PM by Alexander Sack

    EAR packaging issue with classpaths and optional libraries (

    Alexander Sack Novice

      I have an EAR file packaged like this:

      my.ear:
      my.ear/META-INF/MANIFEST.MF
      my.ear/META_INF/application.xml
      my.ear/lib/ibatis-common-2.jar
      my.ear/lib/ibatis-sqlmap-2.jar
      my.ear/lib/ibatis-map-2.jar
      my.ear/my.jar

      my.jar:
      my.jar/com/blah/blah
      my.jar/META-INF/MANIFEST.MF

      my.ear's MANIFEST file has a Class-Path entry with lib/ibatis* etc. so iBatis can seen within the entire EAR deployment.

      However, now within my.jar, when I try to load a map file, I get a IOExcetion claiming iBatis can not find a map file in the current classpath.

      com.blah.org/ibatis/dao/maps/Map.xml

      Can someone please explain to me what's going on here?

      Thanks!