日期:2014-05-17  浏览次数:20710 次

ajax 报错
  大家好,我做了个ajax本地机上一切正常,部署到服务器上就不能用了,下面是爆出的错误:
  com.easyjf.web.ajax.ServiceNotAvailableException: frameworkException: 名为null的Ajax服务不可用,可能是名字已经被限制!
  后台的报错是:
   com.easyjf.web.ajax.ServiceNotAvailableException: frameworkException: 名为null的Ajax服务不可用,可能是名字已经被限制!
at com.easyjf.web.ajax.AjaxServiceContainer.getService(AjaxServiceContainer.java:94)
at com.easyjf.web.ajax.RemoteCall.execute(RemoteCall.java:53)
at com.easyjf.web.ajax.AjaxEngineAction.doAjaxCall(AjaxEngineAction.java:191)
at sun.reflect.GeneratedMethodAccessor305.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at com.easyjf.web.ajax.AjaxEngineAction.execute(AjaxEngineAction.java:61)
at com.easyjf.web.core.DefaultRequestProcessor.getResult(DefaultRequestProcessor.java:444)
at com.easyjf.web.core.DefaultRequestProcessor.process(DefaultRequestProcessor.java:192)
at com.easyjf.web.core.DefaultRequestProcessor.process(DefaultRequestProcessor.java:135)
at com.easyjf.web.ActionServlet.doRequest(ActionServlet.java:205)
at com.easyjf.web.ActionServlet.doPost(ActionServlet.java:163)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:641)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.jingyun.sysinfo.util.HomeFilter.doFilter(HomeFilter.java:80)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at com.easyjf.web.CharsetFilter.doFilter(CharsetFilter.java:79)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1002)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:585)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

配置文件:
 <ajax>
<services allowName="*">
<service name="modifyinfoService">
<include method="canModifyByCompany" />
</service>
               &n