J
Josh
I've been testing Webwork 2 on Tomcat 5.x without any trouble (deployed to
both a Suse and Windows XP box). When I try to move it to a Linux box
running Resin 2.1.12, I receive and IllegalAccessException (trace below). I
noticed at
http://www.opensymphony.com/webwork/wikidocs/Deployment Notes.html that
SunONE 7.0 requires explicit permission setting - does anyone know if this
is the case for this version of Resin?
2005.02.20@21:02:26^ERROR^com.opensymphony.xwork.util.CompoundRootAccessor:111^Caught
an Ognl exception while getting property person
ognl.OgnlException: person [java.lang.IllegalAccessException: Method [public
testing.Person testing.TestAction.getPerson()] cannot be accessed.]
at
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:62)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at
com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:97)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:193)
at ognl.ASTChain.setValueBody(ASTChain.java:168)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
at ognl.SimpleNode.setValue(SimpleNode.java:230)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:189)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:115)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:99)
at
com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:71)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.TimerInterceptor.intercept(TimerInterceptor.java:63)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
/-- Encapsulated exception ------------\
java.lang.IllegalAccessException: Method [public testing.Person
testing.TestAction.getPerson()] cannot be accessed.
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:483)
at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:904)
at
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at
com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:97)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:193)
at ognl.ASTChain.setValueBody(ASTChain.java:168)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
at ognl.SimpleNode.setValue(SimpleNode.java:230)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:189)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:115)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:99)
at
com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:71)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.TimerInterceptor.intercept(TimerInterceptor.java:63)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
both a Suse and Windows XP box). When I try to move it to a Linux box
running Resin 2.1.12, I receive and IllegalAccessException (trace below). I
noticed at
http://www.opensymphony.com/webwork/wikidocs/Deployment Notes.html that
SunONE 7.0 requires explicit permission setting - does anyone know if this
is the case for this version of Resin?
2005.02.20@21:02:26^ERROR^com.opensymphony.xwork.util.CompoundRootAccessor:111^Caught
an Ognl exception while getting property person
ognl.OgnlException: person [java.lang.IllegalAccessException: Method [public
testing.Person testing.TestAction.getPerson()] cannot be accessed.]
at
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:62)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at
com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:97)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:193)
at ognl.ASTChain.setValueBody(ASTChain.java:168)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
at ognl.SimpleNode.setValue(SimpleNode.java:230)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:189)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:115)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:99)
at
com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:71)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.TimerInterceptor.intercept(TimerInterceptor.java:63)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)
/-- Encapsulated exception ------------\
java.lang.IllegalAccessException: Method [public testing.Person
testing.TestAction.getPerson()] cannot be accessed.
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:483)
at ognl.OgnlRuntime.getMethodValue(OgnlRuntime.java:904)
at
ognl.ObjectPropertyAccessor.getPossibleProperty(ObjectPropertyAccessor.java:54)
at ognl.ObjectPropertyAccessor.getProperty(ObjectPropertyAccessor.java:122)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at
com.opensymphony.xwork.util.CompoundRootAccessor.getProperty(CompoundRootAccessor.java:97)
at ognl.OgnlRuntime.getProperty(OgnlRuntime.java:1616)
at ognl.ASTProperty.getValueBody(ASTProperty.java:96)
at ognl.SimpleNode.evaluateGetValueBody(SimpleNode.java:171)
at ognl.SimpleNode.getValue(SimpleNode.java:193)
at ognl.ASTChain.setValueBody(ASTChain.java:168)
at ognl.SimpleNode.evaluateSetValueBody(SimpleNode.java:180)
at ognl.SimpleNode.setValue(SimpleNode.java:230)
at ognl.Ognl.setValue(Ognl.java:476)
at com.opensymphony.xwork.util.OgnlUtil.setValue(OgnlUtil.java:189)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:115)
at
com.opensymphony.xwork.util.OgnlValueStack.setValue(OgnlValueStack.java:99)
at
com.opensymphony.xwork.interceptor.ParametersInterceptor.before(ParametersInterceptor.java:71)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:34)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.AroundInterceptor.intercept(AroundInterceptor.java:35)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.interceptor.TimerInterceptor.intercept(TimerInterceptor.java:63)
at
com.opensymphony.xwork.DefaultActionInvocation.invoke(DefaultActionInvocation.java:164)
at
com.opensymphony.xwork.DefaultActionProxy.execute(DefaultActionProxy.java:116)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.serviceAction(ServletDispatcher.java:272)
at
com.opensymphony.webwork.dispatcher.ServletDispatcher.service(ServletDispatcher.java:237)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter(FilterChainServlet.java:96)
at com.caucho.server.http.Invocation.service(Invocation.java:315)
at com.caucho.server.http.CacheInvocation.service(CacheInvocation.java:135)
at
com.caucho.server.http.RunnerRequest.handleRequest(RunnerRequest.java:346)
at
com.caucho.server.http.RunnerRequest.handleConnection(RunnerRequest.java:274)
at com.caucho.server.TcpConnection.run(TcpConnection.java:139)
at java.lang.Thread.run(Thread.java:534)