Caucho Forums  

This forum is permanently closed because of spam. For free community support, please visit Google Groups:


Go Back   Caucho Forums > Quercus

Reply
 
Thread Tools Display Modes
  #1  
Old 12-03-2012, 01:40 PM
Reiji1987 Reiji1987 is offline
Junior Member
 
Join Date: Dec 2012
Posts: 2
Default Access Denied after deploying to hosting server.

Hi everyone,

I am new to this, I was working on a PHP site and deploying on my local tomcat server.... everything works fine, however, when I posted it to my application hosting(EATJ) it causes some error, and I don't quite understand what it meant.

Code:
java.lang.ExceptionInInitializerError
	com.caucho.quercus.servlet.QuercusServletImpl.init(QuercusServletImpl.java:87)
	com.caucho.quercus.servlet.QuercusServlet.initImpl(QuercusServlet.java:531)
	com.caucho.quercus.servlet.QuercusServlet.init(QuercusServlet.java:441)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:619)
root cause

java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
	java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	java.security.AccessController.checkPermission(AccessController.java:546)
	java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
	java.lang.System.getProperty(System.java:652)
	com.caucho.vfs.Path.getUserDir(Path.java:1593)
	com.caucho.vfs.FilePath.getPwd(FilePath.java:115)
	com.caucho.vfs.FilePath.initialPath(FilePath.java:94)
	com.caucho.vfs.FilePath.<init>(FilePath.java:75)
	com.caucho.vfs.Path.<clinit>(Path.java:1665)
	com.caucho.quercus.servlet.QuercusServletImpl.init(QuercusServletImpl.java:87)
	com.caucho.quercus.servlet.QuercusServlet.initImpl(QuercusServlet.java:531)
	com.caucho.quercus.servlet.QuercusServlet.init(QuercusServlet.java:441)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:619)
Can someone help me with this? Thank You
Reply With Quote
  #2  
Old 12-03-2012, 02:19 PM
Reiji1987 Reiji1987 is offline
Junior Member
 
Join Date: Dec 2012
Posts: 2
Default Access Denied after deploying to hosting server.

Hi,

I am new to Quercus, I've tried deploying the application on my local tomcat server, everything works fine, however, when I tried to deploy it to an actual hosting, I hit into an access denied exception.

The stacktrace:
Code:
java.security.AccessControlException: access denied (java.util.PropertyPermission user.dir read)
	java.security.AccessControlContext.checkPermission(AccessControlContext.java:323)
	java.security.AccessController.checkPermission(AccessController.java:546)
	java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
	java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:1285)
	java.lang.System.getProperty(System.java:652)
	com.caucho.vfs.Path.getUserDir(Path.java:1593)
	com.caucho.vfs.FilePath.getPwd(FilePath.java:115)
	com.caucho.vfs.FilePath.initialPath(FilePath.java:94)
	com.caucho.vfs.FilePath.<init>(FilePath.java:75)
	com.caucho.vfs.Path.<clinit>(Path.java:1665)
	com.caucho.quercus.servlet.QuercusServletImpl.init(QuercusServletImpl.java:87)
	com.caucho.quercus.servlet.QuercusServlet.initImpl(QuercusServlet.java:531)
	com.caucho.quercus.servlet.QuercusServlet.init(QuercusServlet.java:441)
	sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	java.lang.reflect.Method.invoke(Method.java:597)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:274)
	org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:271)
	java.security.AccessController.doPrivileged(Native Method)
	javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
	org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:306)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:166)
	org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:120)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
	org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
	org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:987)
	org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:579)
	org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:307)
	java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
	java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
	java.lang.Thread.run(Thread.java:619)
Anyone encounter this problem before?

Please help, thank you
Reply With Quote
  #3  
Old 12-03-2012, 02:27 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

Hi,

It looks like host has a security manager in place that prevents Quercus from reading System properties, specifically the "user.dir" property. Can you check with your hosting provider for a complete list of things that they block?
Reply With Quote
  #4  
Old 12-03-2012, 02:33 PM
nam nam is offline
Administrator
 
Join Date: Aug 2009
Posts: 337
Default

It looks like EATJ's free acount has a SecurityManager in place:

http://jforum.s41.eatj.com/posts/list/3638.page
Reply With Quote
Reply

Tags
access, denied, deploy, error, jsp, php, tomcat

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:24 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.