chinadyw

导航

No class by name: pd

下面是错误的代码

警告: Unhandled Exception
java.lang.SecurityException: No class by name: pd
    at org.directwebremoting.impl.DefaultCreatorManager.getCreator(DefaultCreatorManager.java:189)
    at org.directwebremoting.impl.DefaultRemoter.generateInterfaceScript(DefaultRemoter.java:158)
    at org.directwebremoting.servlet.InterfaceHandler.handle(InterfaceHandler.java:50)
    at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
    at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
    at org.directwebremoting.servlet.DwrServlet.doGet(DwrServlet.java:132)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:291)
    at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
    at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:594)
    at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
    at java.lang.Thread.run(Thread.java:662)
View Code

此问题的错误在于你使用了dwr

 

<script language="JavaScript" type="text/javascript" src="js/basick.js"></script>
<script language="JavaScript" type="text/javascript" src="js/rq.js"></script>
<SCRIPT type="text/javascript" src="dwr/engine.js"></SCRIPT>
<SCRIPT type="text/javascript" src="dwr/util.js"></SCRIPT>
<SCRIPT type="text/javascript" src="dwr/interface/pd.js"></SCRIPT>
View Code

这里写上了pd.js,但是dwr的配置文件里面却没有pd,所以才导致的,去掉就行了

posted on 2013-12-30 10:00  apk5211314  阅读(298)  评论(0编辑  收藏  举报