Tomcat 部署在 free.hostingjava.it 中失败
我正在为我的应用程序使用 free.hostingjava.it,但是当尝试部署 Web 应用程序时,它给了我一个异常:
Caused by: java.security.AccessControlException: access returned (java.lang.RuntimePermission accessClassInPackage.org.apache. jasper.compiler)
当我测试下面的 url 时,我收到 404 错误 http://free.hostingjava.it/-。
网络托管说我应该使用这样的配置,
catalinastartup.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.*";
}
但我不知道如何在我的应用程序中添加它:(
对此有什么想法吗???
I am using free.hostingjava.it for my application, but when try to deploy the web app, it gives me an exception:
Caused by: java.security.AccessControlException: access denied (java.lang.RuntimePermission accessClassInPackage.org.apache.jasper.compiler)
And I'm getting a 404 error, when I test the below url
http://free.hostingjava.it/-.
The web hosting says that I should use some configuration like 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 don't know how add this in my application :(
Any idea about it???
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
也许,我认为我们必须将此授权代码放入位于其 tomcat 服务器中的 catalina.policy 文件中。为了访问他们的 tomcat 服务器配置,我们需要一个高级帐户。
Probably, I think we have to put this grant code in catalina.policy file located in their tomcat server. And for accessing their tomcat server configuration , we'll need a Premium account.