当前位置: 代码迷 >> Java Web开发 >> Can anyone help me to use struts in Godaddy
  详细解决方案

Can anyone help me to use struts in Godaddy

热度:408   发布时间:2016-04-17 14:10:52.0
Can anyone help me to use struts in Godaddy?
It   comes   500   errors   when   reading   struts   jsp:

HTTP   Status   500   -

--------------------------------------------

type   Exception   report

message

description   The   server   encountered   an   internal   error   ()   that   prevented   it
from   fulfilling   this   request.

exception

javax.servlet.ServletException:   BeanUtils.populate
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1254)
org.apache.struts.action.RequestProcessor.processPopulate(
RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor150.invoke(Unknown   Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(
DelegatingMethodAccessorImpl.java:25)
java.lang.reflect.Method.invoke(Method.java:585)
org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:239)
java.security.AccessController.doPrivileged(Native   Method)
javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:266)
org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java
:157)


root   cause

java.security.AccessControlException:   access   denied   (
java.lang.RuntimePermission   accessDeclaredMembers)
java.security.AccessControlContext.checkPermission(
AccessControlContext.java:264)
java.security.AccessController.checkPermission(AccessController.java:427)
java.lang.SecurityManager.checkPermission(SecurityManager.java:532)
java.lang.SecurityManager.checkMemberAccess(SecurityManager.java:1662)
java.lang.Class.checkMemberAccess(Class.java:2125)
java.lang.Class.getDeclaredMethods(Class.java:1762)
org.apache.commons.beanutils.MappedPropertyDescriptor$1.run(
MappedPropertyDescriptor.java:386)
java.security.AccessController.doPrivileged(Native   Method)

org.apache.commons.beanutils.MappedPropertyDescriptor.getPublicDeclaredMethods
(MappedPropertyDescriptor.java:383)
org.apache.commons.beanutils.MappedPropertyDescriptor.internalFindMethod(
MappedPropertyDescriptor.java:453)
org.apache.commons.beanutils.MappedPropertyDescriptor.findMethod(
MappedPropertyDescriptor.java:527)
org.apache.commons.beanutils.MappedPropertyDescriptor.(
MappedPropertyDescriptor.java:149)
org.apache.commons.beanutils.PropertyUtils.getPropertyDescriptor(
PropertyUtils.java:907)
org.apache.commons.beanutils.BeanUtils.setProperty(BeanUtils.java:934)
org.apache.commons.beanutils.BeanUtils.populate(BeanUtils.java:808)
org.apache.struts.util.RequestUtils.populate(RequestUtils.java:1252)
org.apache.struts.action.RequestProcessor.processPopulate(
RequestProcessor.java:821)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java
:254)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482)
org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525)
javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
sun.reflect.GeneratedMethodAccessor150.invoke(Unknown   Source)
sun.reflect.DelegatingMethodAccessorImpl.invoke(
  相关解决方案