[Seasar-user:6214] PostgresでのS2Dao接続

友田 雅宏 [E-MAIL ADDRESS DELETED]
2007年 2月 18日 (日) 18:48:24 JST


友田と申します
 
s2-jsf-example-1.1.1を使用して、S2Daoからデータをinsertしようとすると、エラーとなります。
postgresのバージョン8.2
 
jdbc.dicon(抜粋)
 <component name="xaDataSource"  class="org.seasar.extension.dbcp.impl.XADataSourceImpl">  <property name="driverClassName">   "org.postgresql.Driver"        </property>        <property name="URL">          "jdbc:postgresql://localhost:5432/xxxx"        </property>        <property name="user">"xxxx"</property>        <property name="password">"xxxx"</property>    </component>
 
ユーザとパスワード、データベース名は書き換えてあります。
 
 
postgresのドライバー
postgresql-8.2-504.jdbc3.jar
(3個ついているのですが、コレだとダメなのでしょうか?)
 
スタックトレース
java.lang.NullPointerException at org.seasar.extension.jdbc.util.DataSourceUtil.getConnection(DataSourceUtil.java:36) at org.seasar.dao.impl.DaoMetaDataImpl.initialize(DaoMetaDataImpl.java:191) 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 org.seasar.dao.pager.PagerS2DaoInterceptorWrapper.invoke(PagerS2DaoInterceptorWrapper.java:64) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:59) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.InterceptorChain.invoke(InterceptorChain.java:42) at jp.mtomoda.www.dao.VillageDtoDao$$EnhancedByS2AOP$$11f74a1$$MethodInvocation$$insert1.proceed(MethodInvocationClassGenerator.java) at jp.mtomoda.www.dao.VillageDtoDao$$EnhancedByS2AOP$$11f74a1.insert(VillageDtoDao$$EnhancedByS2AOP$$11f74a1.java) at jp.mtomoda.www.logic.impl.VillageRegistLogicImpl.insert(VillageRegistLogicImpl.java:36) at jp.mtomoda.www.logic.impl.VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db.$$insert$$invokeSuperMethod$$(VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db.java) at jp.mtomoda.www.logic.impl.VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db$$MethodInvocation$$insert1.proceed(MethodInvocationClassGenerator.java) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:45) at org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:40) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:59) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:64) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.InterceptorChain.invoke(InterceptorChain.java:42) at jp.mtomoda.www.logic.impl.VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db$$MethodInvocation$$insert1.proceed(MethodInvocationClassGenerator.java) at jp.mtomoda.www.logic.impl.VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db.insert(VillageRegistLogicImpl$$EnhancedByS2AOP$$1ba3db.java) at jp.mtomoda.www.action.impl.VillageRegistActionImpl.registVillage(VillageRegistActionImpl.java:41) at jp.mtomoda.www.action.impl.VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2.$$registVillage$$invokeSuperMethod$$(VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2.java) at jp.mtomoda.www.action.impl.VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2$$MethodInvocation$$registVillage0.proceed(MethodInvocationClassGenerator.java) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:45) at org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:64) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:59) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:43) at org.seasar.framework.aop.interceptors.InterceptorChain.invoke(InterceptorChain.java:42) at jp.mtomoda.www.action.impl.VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2$$MethodInvocation$$registVillage0.proceed(MethodInvocationClassGenerator.java) at jp.mtomoda.www.action.impl.VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2.registVillage(VillageRegistActionImpl$$EnhancedByS2AOP$$5bacb2.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.teeda.core.el.impl.MethodBindingImpl.invoke(MethodBindingImpl.java:70) at org.seasar.jsf.util.InvokeUtil.invokeInternal(InvokeUtil.java:92) at org.seasar.jsf.util.InvokeUtil.invoke(InvokeUtil.java:72) at org.seasar.jsf.application.ActionListenerImpl.processAction(ActionListenerImpl.java:65) at javax.faces.component.UICommand.broadcast(UICommand.java:149) at org.seasar.teeda.extension.component.html.THtmlCommandButton.broadcast(THtmlCommandButton.java:50) at org.seasar.jsf.component.S2UIViewRoot.broadcastForPhase(S2UIViewRoot.java:119) at org.seasar.jsf.component.S2UIViewRoot.processApplication(S2UIViewRoot.java:90) at org.seasar.jsf.lifecycle.LifecycleImpl.invokeApplication(LifecycleImpl.java:177) at org.seasar.jsf.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:108) at javax.faces.webapp.FacesServlet.service(FacesServlet.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at examples.jsf.util.RequestDumpFilter.doFilter(RequestDumpFilter.java:66) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:62) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:63) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157) at org.apache.myfaces.component.html.util.ExtensionsFilter.doFilter(ExtensionsFilter.java:122) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186) 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:118) 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(Unknown Source)
JDBCコネクションが張れていないとのエラーのようですが、jdbc.diconが悪いのかわかりません。
どのようにしたらよいのでしょうか?
 
ポイントだけでも構わないので、ご教授願います
_________________________________________________________________
進化した新しいサーチ。Live Search を今すぐトライ!
http://get.live.com/search/overview
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: http://ml.seasar.org/archives/seasar-user/attachments/20070218/0fc71abe/attachment.html 


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