Skip to content

-Dloader.path not working as expected with mapr #3685

@tenstriker

Description

@tenstriker
$ java -Dloader.path=/opt/mapr/spark/spark-1.3.1/lib/spark-assembly-1.3.1-hadoop2.5.1-mapr-1501.jar,/opt/mapr/hadoop/hadoop-2.5.1/etc/hadoop -XX:PermSize=512m -XX:MaxPermSize=512m -Xms1024m -Dspring.profiles.active=noxbase -jar myspringbootapp.jar
java.lang.IllegalStateException: Unable to open nested entry 'minlog-1.2.jar'.
It has been compressed and nested jar files must be stored without compression. Please check the mechanism used to create your executable jar file
    at org.springframework.boot.loader.jar.JarFile.createJarFileFromFileEntry(JarFile.java:379)
    at org.springframework.boot.loader.jar.JarFile.createJarFileFromEntry(JarFile.java:355)
    at org.springframework.boot.loader.jar.JarFile.getNestedJarFile(JarFile.java:341)
    at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchive(JarFileArchive.java:108)
    at org.springframework.boot.loader.archive.JarFileArchive.getNestedArchives(JarFileArchive.java:92)
    at org.springframework.boot.loader.PropertiesLauncher.getClassPathArchives(PropertiesLauncher.java:445)
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:60)
    at org.springframework.boot.loader.PropertiesLauncher.main(PropertiesLauncher.java:608)

Similar to,
http://stackoverflow.com/questions/28074393/spring-boot-createjarfilefromfileentry

It works if I use,
/opt/mapr/spark/spark-1.3.1/lib instead of /opt/mapr/spark/spark-1.3.1/lib/spark-assembly-1.3.1-hadoop2.5.1-mapr-1501.jar

EDIT :
I can not use entire folder on loader.path as I need to exclude some of the libraries from the folder using some mechanism. Any suggestion for doing that is also welcome. I am just thinking of using revers find like find /opt/mapr ! -regex slf4j-log4j12-.*

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions