I’ve recently encountered a problem with integrating the FindBugs Ant task into my build script recently for Hudson integration, which puzzled me to no end as my program compiles just fine by itself. Judging by the FindBugs error message, it seems that it needs some auxiliary classes necessary for analysis, but not compilation.
The 4 missing classes were:
weblogic.security.service.SecurityServiceManager weblogic.security.service.PrivilegedActions weblogic.security.service.RoleManager weblogic.security.SecurityLogger
This was a problem. I had totally no idea which libraries these classes were in. After some googling,
I downloaded JarScan which solved my problem perfectly. Now all you need to do is to execute
java -jar jarscan.jar -dir C:\bea103\modules -class SecurityServiceManager
and you’ll know which pesky library to add to your classpath. Thanks to JarScan, I realized I had to add
to my classpath for the Findbugs task to run successfully.