Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Applet and ClassPathResource problem

 
David Woon
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please help me. When I call following code:



error occur as following:

 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Applets don't have access to most system properties for security reasons; it looks like the Apache Commons Logging library is not compatible with that. Generally that makes sense, since most logging goes to files, and applets can't access the local file system.
 
David Woon
Greenhorn
Posts: 3
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
so... how to solve this problem?
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do you need to use Spring?

Alternatively, if the applet really does so much that Spring is called for, then a signed applet (or JavaWebStart application) may be more appropriate. Signing would get around the security restrictions.
 
Jadson Santos
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


First of all, you need to signed your Applet to Access local files.


In second, "Caused by: java.security.AccessControlException: access denied (java.util.PropertyPermission org.apache.commons.logging.LogFactory.HashtableImpl read"

is a error in the commons-logging-1.1.jar, I updated to commons-logging-1.1.1.jar and revolved the problem of AccessControlException.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic