[Seasar-user:8127] Re: Teeda Ajaxでデータベースへ接続

松崎美姫 [E-MAIL ADDRESS DELETED]
2007年 6月 6日 (水) 21:04:51 JST


米林さんありがとうございます。

すいません、私のミスで、include してない、
app.diconを記載してしまいました。
app.diconで、includeしたもので、試すと、
下記のスタックトレースが発生します。

ScannerAjaxにscannerDaoは存在するのですが、
このようなログがでてしまいました。

何が原因か、分らずじまいで申し訳ございませんが、
アドバイスお願いいたします。

美姫 miki

=======  トレースログ ===========================================
DEBUG 2007-06-06 20:50:06,578 [http-8080-1] HOT deployを開始します
WARN  2007-06-06 20:50:06,578 [http-8080-1]
net.miki.web.setting.ScannerAjaxのプロパティ(scannerDao)が見つからないので設定をスキップします
DEBUG 2007-06-06 20:50:06,578 [http-8080-1] HOT deployを終了しました
2007/06/06 20:50:06 org.apache.catalina.core.StandardWrapperValve invoke
致命的: サーブレット ajaxServlet のServlet.service()が例外を投げました
javax.servlet.ServletException: Ajax Component Name[stajx] does not
has method[doget]
 at org.seasar.teeda.ajax.AjaxServlet.doAjax(AjaxServlet.java:108)
 at org.seasar.teeda.ajax.AjaxServlet.doGet(AjaxServlet.java:66)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63)
 at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
 at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
 at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
 at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
 at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
 at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
 at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
 at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
 at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
 at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
 at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
 at java.lang.Thread.run(Unknown Source)
==========================================================

=======  scanner.html ======================================
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja" lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="JavaScript" src="/miki/js/ajax.js"></script>
<script type="text/javascript">
// <![CDATA[
function stajx_doget(response) {


  document.getElementById('msg').innerHTML = response;
}

function scannar() {
 Kumu.Ajax.executeTeedaAjax(stajx_doget,[]);
}

// ]]>
</script>
</head>
<body>
<form id="Form">
<div><span id="messages"></span></div>
<span id="msg" ></span>
<input type="button" value="取得" onClick="scannar()" />
</form>
</body></html>

===========================================================

=======  ScannerAjax.java ====================================


public class ScannerAjax {
  private ScannerDao ScannerDao;

  public ScannerDao getScannerDao() {
   return ScannerDao;
  }
  public void setScannerDao(ScannerDao stationDao) {
   ScannerDao = stationDao;
  }

  public int doGet(String yadoScannerId) {

        int cnt = getScannerDao().selectDx();

        return cnt;
  }
}

==========================================================

====== env.txt ==============================================
ct
==========================================================

====== env_ut.txt ===========================================
ut
==========================================================



Seasar-user メーリングリストの案内