[Seasar-user:5132] Re: Teeda+S2Dao
Junichi Kato
[E-MAIL ADDRESS DELETED]
2006年 11月 15日 (水) 22:41:47 JST
小林さん
加藤です。
> convention.dicon に S2Dao を使うための設定が
> されていないためだと思われます.
Doltengで生成したプロジェクトのconvention.diconとteeda-html-example
のconvention.diconは、arg以外は同じなのですが、S2Daoのための設定とは
具体的にどのようにすればよいでしょうか?
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN"
"http://www.seasar.org/dtd/components21.dtd">
<components>
<component class="org.seasar.framework.convention.impl.NamingConventionImpl">
<initMethod name="addRootPackageName">
<arg>"chura"</arg>
</initMethod>
</component>
</components>
ためしに、Doltengのプロジェクトウィザードで作成したプロジェクトのs2と
teedaをRCではなくリリース版に差し替えましたが、(この場合はs2dao 1.0.38で
す)
scaffoldしたページにアクセスと同様の例外が発生します。
2006-11-15 22:36:12,172 [http-8080-Processor24] ERROR org.apache.catalina.core.ContainerBase.[Catalina].[localhost].[/sphere-customer].[facesServlet] - サーブレット facesServlet のServlet.service()が例外を投げました
java.lang.NoSuchMethodError: org.seasar.extension.jdbc.util.DatabaseMetaDataUtil.getColumnMap(Ljava/sql/DatabaseMetaData;Ljava/lang/String;)Lorg/seasar/framework/util/CaseInsensitiveMap;
at org.seasar.dao.impl.BeanMetaDataImpl.setupPropertyPersistentAndColumnName(BeanMetaDataImpl.java:391)
at org.seasar.dao.impl.BeanMetaDataImpl.setupDatabaseMetaData(BeanMetaDataImpl.java:363)
at org.seasar.dao.impl.BeanMetaDataImpl.initialize(BeanMetaDataImpl.java:127)
at org.seasar.dao.impl.DaoMetaDataImpl.initialize(DaoMetaDataImpl.java:202)
at org.seasar.dao.impl.DaoMetaDataFactoryImpl.createDaoMetaData(DaoMetaDataFactoryImpl.java:140)
at org.seasar.dao.impl.DaoMetaDataFactoryImpl.getDaoMetaData(DaoMetaDataFactoryImpl.java:109)
at org.seasar.dao.interceptors.S2DaoInterceptor.invoke(S2DaoInterceptor.java:51)
at jp.grandtech.sphere.customer.dao.CustomerDao$$EnhancedByS2AOP$$13638d4$$MethodInvocation$$selectAll3.proceed(MethodInvocationClassGenerator.java)
at jp.grandtech.sphere.customer.dao.CustomerDao$$EnhancedByS2AOP$$13638d4.selectAll(CustomerDao$$EnhancedByS2AOP$$13638d4.java)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage.prerender(CustomerListPage.java:25)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727.prerender$$invokeSuperMethod$$(CustomerListPage$$EnhancedByS2AOP$$836727.java)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727$$MethodInvocation$$prerender1.proceed(MethodInvocationClassGenerator.java)
at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:40)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727$$MethodInvocation$$prerender1.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:64)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727$$MethodInvocation$$prerender1.proceed(MethodInvocationClassGenerator.java)
at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:58)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727$$MethodInvocation$$prerender1.proceed(MethodInvocationClassGenerator.java)
at jp.grandtech.sphere.customer.web.customer.CustomerListPage$$EnhancedByS2AOP$$836727.prerender(CustomerListPage$$EnhancedByS2AOP$$836727.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:49)
at org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:207)
at org.seasar.teeda.extension.html.impl.HtmlViewHandler.invoke(HtmlViewHandler.java:183)
at org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:155)
at org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:139)
at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase.executePhase(RenderResponsePhase.java:37)
at org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:55)
at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6.execute$$invokeSuperMethod$$(RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6.java)
at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6$$MethodInvocation$$execute0.proceed(MethodInvocationClassGenerator.java)
at org.seasar.teeda.core.interceptor.MeasurementInterceptor.invoke(MeasurementInterceptor.java:46)
at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6$$MethodInvocation$$execute0.proceed(MethodInvocationClassGenerator.java)
at org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6.execute(RenderResponsePhase$$EnhancedByS2AOP$$1e3c2c6.java)
at org.seasar.teeda.core.lifecycle.LifecycleImpl.render(LifecycleImpl.java:127)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:100)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)
at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
at java.lang.Thread.run(Unknown Source)
───────────────────────────────
有限会社 グランテック
代表取締役
加藤 潤一 Junichi Kato
〒150-0011 東京都渋谷区東1-23-4
TEL : 03-3498-2011
FAX : 03-3498-2012
Mobile : 090-7238-6314
[E-MAIL ADDRESS DELETED] http://www.grandtech.jp/
Seasar-user メーリングリストの案内