Tag: java
Categories
javax.servlet.ServletException org.apache.catalina.security.SecurityUtil.execute (SecurityUtil.java:294)
Solution:
Create 20servlets.policy:
nano -w /etc/tomcat5.5/policy.d/20servlets.policy
And add:
grant codeBase "file:${catalina.base}/webapps/-" { permission java.security.AllPermission; };
And restart Tomcat
/etc/init.d/tomcat5.5 restart
Angry IP scanner was quitting each time I started the application, and looking at Console I saw these errors:
06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] [JavaAppLauncher Error] CFBundleCopyResourceURL() failed loading MRJApp.properties file 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] [JavaAppLauncher Error] CFBundleCopyResourceURL() failed while getting Resource/Java directory 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] [LaunchRunner Error] No main class specified 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] [JavaAppLauncher Error] CallStaticVoidMethod() threw an exception 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] Exception in thread "main" java.lang.NullPointerException 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] at apple.launcher.LaunchRunner.run(LaunchRunner.java:112) 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] at apple.launcher.LaunchRunner.callMain(LaunchRunner.java:50) 06/11/08 11:34:15 [0x0-0x1f01f].net.azib.ipscan[190] at apple.launcher.JavaApplicationLauncher.main(JavaApplicationLauncher.java:61) 06/11/08 11:34:15 com.apple.launchd[97] ([0x0-0x1f01f].net.azib.ipscan[190]) Exited with exit code: 1 |
After some googling I came upon this website.
Following the (long/first) instructions did solve the problem, and I can now run the application.
Only skipping #9, as I could not find the “CFBundleExecutable”, and simply renaming the old ipscan to ipscan.bak, and renaming JavaApplicationStub to ipscan.