Announcement Announcement Module
Collapse
No announcement yet.
spring-core.jar and spring.jar missing directory entries? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • spring-core.jar and spring.jar missing directory entries?

    In working with the twdata PackageScanner project I discovered that the spring-core.jar and spring.jar files (2.5.6) appear to be "different" than the rest of the spring jar files. Most of the spring jar files look something like this:

    Code:
    $ jar tf spring-beans-2.5.6.jar
    META-INF/MANIFEST.MF
    META-INF/
    org/
    org/springframework/
    org/springframework/beans/
    ...additional directories...
    org/springframework/beans/AbstractPropertyAccessor.class
    org/springframework/beans/BeanInstantiationException.class
    ...additional class files...
    However, the spring and spring-core jar files are missing the initial directory entries. spring-core.jar looks like this
    Code:
    $ jar tf spring-core-2.5.6.jar
    META-INF/MANIFEST.MF
    org/springframework/core/AliasRegistry.class
    org/springframework/core/AttributeAccessor.class
    org/springframework/core/AttributeAccessorSupport.class
    ...additional class files...
    I'm guessing this is a result of the JarJar processing that occurs on these two files.

    The problem is that the PackageScanner does something like ClassLoader.getResources("org/springframework") in order to get package information from the jar file. Since the spring-core and spring jar files don't have this entry, it's never able to find any of the spring-core classes.

    So my question is, what do I do now? I can re-jar the spring-core jar file for now, but that doesn't feel like the right solution long term.

    Thanks!
    David
Working...
X