Re: ZipException When Trying to start ccm

Vadim Nasardinov <[email protected]> Tue, 25 May 2004 11:23:57 -0400
Newsgroups gmane.linux.redhat.ccm.general
Organization Red Hat / Westford
Message-ID <[email protected]>
On Tuesday 25 May 2004 10:52, Darian Schramm wrote:
> I've tried the newest builds and I'm still getting the same error.

There might be a broken jar lurking somewhere in your servlet
container's share library directory or a webapp, for all you know.
You can try looking for any signs for brokenness with the attached
script (or some modification thereof).

-- 
Redhat-ccm-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/redhat-ccm-list
Archives: https://www.redhat.com/pipermail/redhat-ccm-list/
broken-jars.sh (application/x-shellscript, 515 B)
#!/bin/bash

# Date: 2004-05-25

# edit as necessary
suspect_dirs="lib foo/lib"

for dd in $suspect_dirs; do
    if [ -d "$dd" ]; then
        for jj in $(find "$dd" -name \*.jar -o -name \*.zip -o -name \*.war -o -name \*.rar); do
            jar tvf $jj 1>/dev/null 2>/dev/null
            status=$?
            if [ $status = "1" ]; then
                echo "$jj is BROKEN"
            else
                echo "$jj is ok"
            fi
        done
    else
        echo "$dd is not a directory"
    fi
done