首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > Java Web开发 >

Can anyone help me to use struts in Godaddy

2013-09-11 
Can anyone help me to use struts in Godaddy?Itcomes500errorswhenreadingstrutsjsp:HTTPStatus500-----

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(


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)


note   The   full   stack   trace   of   the   root   cause   is   available   in   the   Apache
Tomcat/5.0.27   logs.


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

Apache   Tomcat/5.0.27

that   stuff   can   work   on   my   localhost   machine,and   uploaded   to   other   jsp   hosting,   So   it   can   ,   But   in   Godaddy   hosting   can 't   work!!!   I   asked   the   support   center,they   told   me   that   struts   have   been   installed   in   the   hosting,so   i   have   no   idea   to   solve   that   errors?  
Can   anyone   help   me   to   use   struts   in   Godaddy?

[解决办法]
页面的数据填充到form的时候类型不匹配了,好好检查一下
我的异常网推荐解决方案:The server encountered an internal error () that prevented it from fulfilling this request.,http://www.myexception.cn/java-web/317.html

热点排行