Discussion:
How to disable brp-java-repack-jars
(too old to reply)
Splinker
2007-05-09 17:56:26 UTC
Permalink
I have some jar files that are being modified by brp-java-repack-jars
during rpmbuild. Unfortunately it removes empty directories, which
upsets Tomcat no end:

sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.findResource(Unknown Source)
at sun.misc.URLClassPath.findResource(Unknown Source)
at java.net.URLClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
at org.apache.commons.modeler.Registry.loadDescriptors(Registry.java:
895)
at
org.apache.catalina.mbeans.MBeanUtils.createRegistry(MBeanUtils.java:
1361)
at org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:98)
... 28 more

Is there a way to disable this from being run? I've stuck an "exit"
at the top of the script to get around the problem, but this is an
ugly hack and I need to get rid of it.
Scott Lurndal
2007-05-10 00:05:44 UTC
Permalink
Post by Splinker
I have some jar files that are being modified by brp-java-repack-jars
during rpmbuild. Unfortunately it removes empty directories, which
sun.misc.InvalidJarIndexException: Invalid index
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
at sun.misc.URLClassPath$JarLoader.findResource(Unknown Source)
at sun.misc.URLClassPath.findResource(Unknown Source)
at java.net.URLClassLoader$2.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findResource(Unknown Source)
at java.lang.ClassLoader.getResource(Unknown Source)
895)
at
1361)
at org.apache.catalina.mbeans.MBeanUtils.<clinit>(MBeanUtils.java:98)
... 28 more
Is there a way to disable this from being run? I've stuck an "exit"
at the top of the script to get around the problem, but this is an
ugly hack and I need to get rid of it.
brb-java-repack-jars will be located in /usr/lib/rpm. Go ahead and
edit it or remove it.

scott

Loading...