You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Vladislav Kamensky <Vl...@atbusiness.com> on 2003/04/17 16:18:56 UTC
struts & resin
When I use Struts with Resin on Win2k everything is goes well,
but when I try to use Struts with Resin on Unix I get following error:
Does anybody know where trouble is ?
javax.servlet.UnavailableException: access denied (java.lang.RuntimePermission
accessDeclaredMembers)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1085)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at com.caucho.server.http.Application.createServlet(Application.java:3103)
at com.caucho.server.http.Application.loadServlet(Application.java:3054)
at com.caucho.server.http.Application.initServlets(Application.java:1914)
at com.caucho.server.http.Application.init(Application.java:1827)
at com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
at com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1196)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:484)
P.S. struts 1.1-b3
--Vlad Kamensky, @Business SPb.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: struts & resin
Posted by Vladislav Kamensky <Vl...@atbusiness.com>.
> Not sure if you've had an answer to this yet - it may be you've resolved it
> yourself? It seems to me this may be the result of running the container
> under a Java Security Manager - which requires some settings to be added to
> the policy for webapps. Basically this involves adding something like the
> following line to the catalina policy file:
>
> permission java.lang.RuntimePermission "accessDeclaredMembers";
>
Yes, I have already found answer to my question.
The problem is that JDK1.3 for Unix/FreeBSD 4.7 has a bug, in
particular, bug with reflection. And it can be solved (as you pointed) only by editing .policy file.
BTW: the root exception is thrown by Digester which uses Reflection very intensively.
grant {
permission java.lang.reflect.ReflectPermission "suppressAccessChecks";
};
--
Vlad Kamensky,
@Business SPb.
> > Here I attach stackTrace of root exception.
> > Does it clarify something ?
> >
> >
> > java.security.AccessControlException: access denied
> > (java.lang.RuntimePermission accessDeclaredMembers)
> > at
> > java.security.AccessControlContext.checkPermission(AccessControlCo
> > ntext.java:272)
> > at
> > java.security.AccessController.checkPermission(AccessController.java:399)
> > at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> > at VHostSecurityManager.checkPermission(VHostSecurityManager.java:156)
> > at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1650)
> > at java.lang.Class.checkMemberAccess(Class.java:1337)
> > at java.lang.Class.getDeclaredMethods(Class.java:1038)
> > at
> > org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(Mapped
> > PropertyDescriptor.java:386)
> > at java.security.AccessController.doPrivileged(Native Method)
> > at
> > org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDec
> > laredMethods(MappedPropertyDescriptor.java:383)
> > at
> > org.apache.commons.beanutils.MappedPropertyDescriptor.internalFind
> > Method(MappedPropertyDescriptor.java:453)
> > at
> > org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(M
> > appedPropertyDescriptor.java:527)
> > at
> > org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(Mappe
> > dPropertyDescriptor.java:149)
> > at
> > org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(P
> > ropertyUtils.java:907)
> > at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:849)
> > at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
> > at
> > org.apache.struts.action.ActionServlet.initModulePlugIns(ActionSer
> > vlet.java:1068)
> > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > at
> > com.caucho.server.http.Application.createServlet(Application.java:3103)
> > at com.caucho.server.http.Application.loadServlet(Application.java:3054)
> > at com.caucho.server.http.Application.initServlets(Application.java:1914)
> > at com.caucho.server.http.Application.init(Application.java:1827)
> > at
> > com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
> > at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
> > at
> > com.caucho.server.http.ServletServer.getInvocation(ServletServer.j
> > ava:1196)
> > at
> > com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
> > at
> > com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> > t.java:272)
> > at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> > at java.lang.Thread.run(Thread.java:484)
> >
> >
> >
> > "Vladislav Kamensky" <Vl...@atbusiness.com> wrote in
> > message news:b7md4f$3j9$1@localhost.localdomain...
> > > When I use Struts with Resin on Win2k everything is goes well,
> > > but when I try to use Struts with Resin on Unix I get following error:
> > >
> > > Does anybody know where trouble is ?
> > >
> > >
> > > javax.servlet.UnavailableException: access denied
> > (java.lang.RuntimePermission
> > > accessDeclaredMembers)
> > > at
> > org.apache.struts.action.ActionServlet.initModulePlugIns(ActionSer
> > vlet.java:1085)
> > > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
> > > at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > > at
> > com.caucho.server.http.Application.createServlet(Application.java:3103)
> > > at com.caucho.server.http.Application.loadServlet(Application.java:3054)
> > > at
> > com.caucho.server.http.Application.initServlets(Application.java:1914)
> > > at com.caucho.server.http.Application.init(Application.java:1827)
> > > at
> > com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
> > > at
> > com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
> > > at
> > com.caucho.server.http.ServletServer.getInvocation(ServletServer.j
> > ava:1196)
> > > at
> > com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
> > > at
> > com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> > t.java:272)
> > > at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> > > at java.lang.Thread.run(Thread.java:484)
> > > P.S. struts 1.1-b3
> > > --Vlad Kamensky, @Business SPb.
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: struts-user-help@jakarta.apache.org
> >
> >
> >
> > ---
> > Incoming mail is certified Virus Free.
> > Checked by AVG anti-virus system (http://www.grisoft.com).
> > Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
> >
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
RE: struts & resin
Posted by Hue Holleran <hu...@openAction.net>.
Not sure if you've had an answer to this yet - it may be you've resolved it
yourself? It seems to me this may be the result of running the container
under a Java Security Manager - which requires some settings to be added to
the policy for webapps. Basically this involves adding something like the
following line to the catalina policy file:
permission java.lang.RuntimePermission "accessDeclaredMembers";
Hue.
> -----Original Message-----
> From: Vladislav Kamensky [mailto:Vladislav.Kamensky@atbusiness.com]
> Sent: 17 April 2003 15:48
> To: struts-user@jakarta.apache.org
> Subject: Re: struts & resin
>
>
> Here I attach stackTrace of root exception.
> Does it clarify something ?
>
>
> java.security.AccessControlException: access denied
> (java.lang.RuntimePermission accessDeclaredMembers)
> at
> java.security.AccessControlContext.checkPermission(AccessControlCo
> ntext.java:272)
> at
> java.security.AccessController.checkPermission(AccessController.java:399)
> at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
> at VHostSecurityManager.checkPermission(VHostSecurityManager.java:156)
> at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1650)
> at java.lang.Class.checkMemberAccess(Class.java:1337)
> at java.lang.Class.getDeclaredMethods(Class.java:1038)
> at
> org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(Mapped
> PropertyDescriptor.java:386)
> at java.security.AccessController.doPrivileged(Native Method)
> at
> org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDec
> laredMethods(MappedPropertyDescriptor.java:383)
> at
> org.apache.commons.beanutils.MappedPropertyDescriptor.internalFind
> Method(MappedPropertyDescriptor.java:453)
> at
> org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(M
> appedPropertyDescriptor.java:527)
> at
> org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(Mappe
> dPropertyDescriptor.java:149)
> at
> org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(P
> ropertyUtils.java:907)
> at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:849)
> at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
> at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionSer
> vlet.java:1068)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
> at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> at
> com.caucho.server.http.Application.createServlet(Application.java:3103)
> at com.caucho.server.http.Application.loadServlet(Application.java:3054)
> at com.caucho.server.http.Application.initServlets(Application.java:1914)
> at com.caucho.server.http.Application.init(Application.java:1827)
> at
> com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
> at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
> at
> com.caucho.server.http.ServletServer.getInvocation(ServletServer.j
> ava:1196)
> at
> com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
> at
> com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> t.java:272)
> at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:484)
>
>
>
> "Vladislav Kamensky" <Vl...@atbusiness.com> wrote in
> message news:b7md4f$3j9$1@localhost.localdomain...
> > When I use Struts with Resin on Win2k everything is goes well,
> > but when I try to use Struts with Resin on Unix I get following error:
> >
> > Does anybody know where trouble is ?
> >
> >
> > javax.servlet.UnavailableException: access denied
> (java.lang.RuntimePermission
> > accessDeclaredMembers)
> > at
> org.apache.struts.action.ActionServlet.initModulePlugIns(ActionSer
> vlet.java:1085)
> > at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
> > at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> > at
> com.caucho.server.http.Application.createServlet(Application.java:3103)
> > at com.caucho.server.http.Application.loadServlet(Application.java:3054)
> > at
> com.caucho.server.http.Application.initServlets(Application.java:1914)
> > at com.caucho.server.http.Application.init(Application.java:1827)
> > at
> com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
> > at
> com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
> > at
> com.caucho.server.http.ServletServer.getInvocation(ServletServer.j
> ava:1196)
> > at
> com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
> > at
> com.caucho.server.http.RunnerRequest.handleConnection(RunnerReques
> t.java:272)
> > at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> > at java.lang.Thread.run(Thread.java:484)
> > P.S. struts 1.1-b3
> > --Vlad Kamensky, @Business SPb.
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: struts-user-help@jakarta.apache.org
>
>
>
> ---
> Incoming mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
>
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.471 / Virus Database: 269 - Release Date: 10/04/2003
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org
Re: struts & resin
Posted by Vladislav Kamensky <Vl...@atbusiness.com>.
Here I attach stackTrace of root exception.
Does it clarify something ?
java.security.AccessControlException: access denied (java.lang.RuntimePermission accessDeclaredMembers)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:272)
at java.security.AccessController.checkPermission(AccessController.java:399)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:545)
at VHostSecurityManager.checkPermission(VHostSecurityManager.java:156)
at java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1650)
at java.lang.Class.checkMemberAccess(Class.java:1337)
at java.lang.Class.getDeclaredMethods(Class.java:1038)
at org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(MappedPropertyDescriptor.java:386)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMethods(MappedPropertyDescriptor.java:383)
at org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(MappedPropertyDescriptor.java:453)
at org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(MappedPropertyDescriptor.java:527)
at org.apache.commons.beanutils.MappedPropertyDescriptor.<init>(MappedPropertyDescriptor.java:149)
at org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(PropertyUtils.java:907)
at org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:849)
at org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:729)
at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1068)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
at javax.servlet.GenericServlet.init(GenericServlet.java:82)
at com.caucho.server.http.Application.createServlet(Application.java:3103)
at com.caucho.server.http.Application.loadServlet(Application.java:3054)
at com.caucho.server.http.Application.initServlets(Application.java:1914)
at com.caucho.server.http.Application.init(Application.java:1827)
at com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
at com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1196)
at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:484)
"Vladislav Kamensky" <Vl...@atbusiness.com> wrote in message news:b7md4f$3j9$1@localhost.localdomain...
> When I use Struts with Resin on Win2k everything is goes well,
> but when I try to use Struts with Resin on Unix I get following error:
>
> Does anybody know where trouble is ?
>
>
> javax.servlet.UnavailableException: access denied (java.lang.RuntimePermission
> accessDeclaredMembers)
> at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1085)
> at org.apache.struts.action.ActionServlet.init(ActionServlet.java:454)
> at javax.servlet.GenericServlet.init(GenericServlet.java:82)
> at com.caucho.server.http.Application.createServlet(Application.java:3103)
> at com.caucho.server.http.Application.loadServlet(Application.java:3054)
> at com.caucho.server.http.Application.initServlets(Application.java:1914)
> at com.caucho.server.http.Application.init(Application.java:1827)
> at com.caucho.server.http.VirtualHost.startApplication(VirtualHost.java:1192)
> at com.caucho.server.http.VirtualHost.getInvocation(VirtualHost.java:991)
> at com.caucho.server.http.ServletServer.getInvocation(ServletServer.java:1196)
> at com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:339)
> at com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:272)
> at com.caucho.server.TcpConnection.run(TcpConnection.java:137)
> at java.lang.Thread.run(Thread.java:484)
> P.S. struts 1.1-b3
> --Vlad Kamensky, @Business SPb.
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org