<track id="1rt7t"></track>
<pre id="1rt7t"></pre>

    <p id="1rt7t"><ruby id="1rt7t"><b id="1rt7t"></b></ruby></p>

      軟件培訓網

      歡迎訪問軟件培訓網!招生咨詢電話與微信:15225191462(周老師)
      軟件培訓網,專業解決學IT疑難雜癥!

      首頁 > 軟件測試/ 正文

      在開發dwr+struts的時候會報錯誤,不知道你遇到了嗎

      2014-12-03 16:20:53 軟件培訓網

       開發dwr+struts的時候,會報以下的錯誤。兩點注意:KZ7軟件培訓網

      1,如果formbean是自己寫的,不是自動生成的,里面如果沒有validate和reset方法。那么在配置文件中
      validate="false"要設置成false。
      2,<action name="testForm" path="/login" type="dev.trade.netopt.action.LoginAction" scope="request">不要把scope設置成request
      【在dwr的org.directwebremoting.struts.StrutsCreator中
      他是這樣獲取formbean的:
      ActionForm formInstance = (ActionForm) WebContextFactory.get().getSession().getAttribute(formBean); 】
       警告: Method execution failed: 
      java.lang.InstantiationException: Illegal Access to default constructor
       at org.directwebremoting.struts.StrutsCreator.getInstance(StrutsCreator.java:138)
       at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:348)
       at org.directwebremoting.impl.DefaultRemoter.execute(DefaultRemoter.java:283)
       at org.directwebremoting.servlet.PlainCallHandler.handle(PlainCallHandler.java:52)
       at org.directwebremoting.servlet.UrlProcessor.handle(UrlProcessor.java:101)
       at org.directwebremoting.servlet.DwrServlet.doPost(DwrServlet.java:146)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)
       at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
       at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
       at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
       at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
       at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:152)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:102)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
       at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
       at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
       at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:929)
       at org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:160)
       at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:799)
       at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:705)
       at org.apache.tomcat.util.net.TcpWorkerThread.runIt(PoolTcpEndpoint.java:577)
       at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:683)
       at java.lang.Thread.run(Thread.java:595)
      2008-7-15 16:09:51 org.directwebremoting.util.CommonsLoggingOutput warn
      警告: --Erroring: batchId[0] message[java.lang.InstantiationException: Illegal Access to default constructor]

      Tags:深度技術linux,河南linux技術,linux網絡技術,java培訓好不好,河南java培訓怎么樣,西安.NET培訓

      搜索
      軟件培訓學校哪家好,就來軟件培訓網咨詢
      軟件培訓學校哪家好,就來軟件培訓網咨詢
      熱門標簽
      軟件培訓學校哪家好,就來軟件培訓網咨詢
      軟件培訓學校哪家好,就來軟件培訓網咨詢
      軟件培訓學校哪家好,就來軟件培訓網咨詢
      • QQ交談
      制服丝袜无码中文字幕第1页

      <track id="1rt7t"></track>
      <pre id="1rt7t"></pre>

        <p id="1rt7t"><ruby id="1rt7t"><b id="1rt7t"></b></ruby></p>