I'm using free.hostingjava.it for my application, however when attempt to deploy the net application, it provides me with the best:

Triggered by: java.security.AccessControlException: access refused (java.lang.RuntimePermission accessClassInPackage.org.apache.jasper.compiler)

And I am obtaining a 404 error, after i test the below url http://free.hostingjava.it/-.

The website hosting states which i should apply certain configuration such as this,

catalina startup.sh -security

grant codebase "file:/home/hostingjava.it/" {
    permission java.util.PropertyPermission "*", "read";
    permission java.lang.RuntimePermission "getAttribute";
    permission java.io.FilePermission "/home/hostingjava.it//-",
    "read,write,delete";
    permission java.lang.RuntimePermission
    "accessClassInPackage.org.apache.tomcat.util.*";
}

But I'm not sure how add this during my application :(

Any understanding of it???