SecurityException: There is no explicit section for writing a signature file

I have all the banks in my lib folder, but I don’t know which banks are signed, it contains a lot of selenium jars.my build.xml:

        <jar basedir="bin" destfile="build/xpath.jar">
        <zipgroupfileset dir="lib" includes="*.jar">
            <exclude name="**/*.RSA, **/*.SF, **/*.DSA"/>
            </zipgroupfileset>
        </jar>

but getting the following exception when I use it in another project:

An exception in the "main" thread is java.lang.SecurityException: no manifestiest section for writing the org / bouncycastle / asn1 / ocsp / ResponderID.class at sun.security.util.SignatureFileVerifier.verifySection (SignatureFileVerifier.javahaps92) signature file in sun. security.util.SignatureFileVerifier.processImpl (SignatureFileVerifier.java:249)

+5
source share
2 answers

META-INF/MANIFEST.MF. , MANIFEST.MF JAR xpath.jar. MANIFEST.MF.

+1

- .

<jar destfile="build/xpath.jar" basedir="bin">
    <restrict>
        <not>
            <or>
                <name name="**/*.RSA"/>
                <name name="**/*.SF"/>
                <name name="**/*.DSA"/>
            </or>
        </not>
        <archives>
            <zips>
                <fileset dir="lib" includes="**/*.jar"/>
            </zips>
        </archives>
    </restrict>
</jar>

http://ant.apache.org/manual/Tasks/jar.html " ".

+1

All Articles