[Seasar-user:15423] [S2Dao]dao.dicon変更でエラー

[E-MAIL ADDRESS DELETED] [E-MAIL ADDRESS DELETED]
2008年 8月 19日 (火) 15:06:10 JST


conpotaと申します。
また質問させていただきます。

最新のDoltengからS2Dao+Teeda+WTPでプロジェクトを作成しました。
データソースを複数使いたいので、
http://www.seasar.org/wiki/index.php?FAQ%2FS2DAO#w7da6e0e
を参考にしましたが、
サーバ起動時にエラーが出てしまいました。
いろいろ試したところ、
dao.diconを変更しただけで失敗しているようでした。
dao.diconの変更は以下のようにmy-dao.diconを作ってそこを見るようにしていますが、
どこかおかしいところはありますでしょうか?
ちなみにmy-dao.diconを見るように修正する前はエラーは出ません。

○s2container.dicon
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE components PUBLIC "-//SEASAR//DTD S2Container 2.4//EN"
    "http://www.seasar.org/dtd/components24.dtd">
<components>
    <include condition="#ENV == 'ut'" path="warmdeploy.dicon"/>
    <include condition="#ENV == 'ct'" path="hotdeploy.dicon"/>
    <include condition="#ENV != 'ut' and #ENV != 'ct'"
path="cooldeploy.dicon"/>
    <component
class="org.seasar.framework.container.factory.SimplePathResolver">
      <initMethod name="addRealPath">
        <arg>"dao.dicon"</arg>
        <arg>"my-dao.dicon"</arg><!-- 実際に使用する定義ファイル -->
      </initMethod>
</component>
</components>

○my-dao.dicon
<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE components PUBLIC "-//SEASAR2.1//DTD S2Container//EN"
  "http://www.seasar.org/dtd/components21.dtd">
<components namespace="dao">
    <include path="j2ee.dicon"/>
    <component class="org.seasar.dao.impl.AnnotationReaderFactoryImpl"/>
    <component class="org.seasar.dao.impl.DaoMetaDataFactoryImpl"/>
    <component
        name="interceptor"
        class="org.seasar.dao.pager.PagerS2DaoInterceptorWrapper">
        <arg>
            <component
class="org.seasar.dao.interceptors.S2DaoInterceptor"/>
        </arg>
    </component>
    <component class="org.seasar.dao.impl.ValueTypeFactoryImpl"/>
    <component
        name="stringClobType"
        class="org.seasar.extension.jdbc.types.StringClobType"
    />
    <component class="org.seasar.dao.impl.BeanMetaDataFactoryImpl"/>
    <component class="org.seasar.dao.impl.DaoNamingConventionImpl"/>
    <component class="org.seasar.dao.impl.NullBeanEnhancer"/>
    <component class="org.seasar.dao.impl.ResultSetHandlerFactorySelector"/>
    <component class="org.seasar.dao.impl.DtoMetaDataFactoryImpl"/>
    <component class="org.seasar.dao.impl.PropertyTypeFactoryBuilderImpl"/>
    <component
class="org.seasar.dao.impl.RelationPropertyTypeFactoryBuilderImpl"/>
    <component class="org.seasar.dao.impl.DefaultTableNaming"/>
    <component class="org.seasar.dao.impl.DefaultColumnNaming"/>
    <component class="org.seasar.dao.impl.ProcedureMetaDataFactoryImpl"/>
</components>

サーバ起動時のエラーは以下です。
2008-08-19 14:49:59,688 [main] DEBUG org.seasar.framework.env.Env -
環境変数#Envにファイル(env.txt)から値(ct)が設定されました
2008-08-19 14:49:59,750 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=hotdeploy.dicon
2008-08-19 14:49:59,766 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=convention.dicon
2008-08-19 14:49:59,876 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=convention.dicon
2008-08-19 14:49:59,876 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=customizer.dicon
2008-08-19 14:49:59,876 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=default-customizer.dicon
2008-08-19 14:49:59,876 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=std-customizer.dicon
2008-08-19 14:49:59,922 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=std-customizer.dicon
2008-08-19 14:49:59,938 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=default-customizer.dicon
2008-08-19 14:49:59,938 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=customizer.dicon
2008-08-19 14:49:59,938 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=creator.dicon
2008-08-19 14:49:59,969 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=creator.dicon
2008-08-19 14:49:59,969 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=hotdeploy.dicon
2008-08-19 14:50:00,016 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=app.dicon
2008-08-19 14:50:00,016 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=convention.dicon
2008-08-19 14:50:00,032 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=convention.dicon
2008-08-19 14:50:00,032 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=aop.dicon
2008-08-19 14:50:00,063 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=aop.dicon
2008-08-19 14:50:00,063 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=app_aop.dicon
2008-08-19 14:50:00,079 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=app_aop.dicon
2008-08-19 14:50:00,079 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=teedaExtension.dicon
2008-08-19 14:50:00,079 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=teeda.dicon
2008-08-19 14:50:00,094 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=teedaErrorPage.dicon
2008-08-19 14:50:00,094 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=teedaErrorPage.dicon
2008-08-19 14:50:00,094 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=teedaCustomize.dicon
2008-08-19 14:50:00,126 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=teedaCustomize.dicon
2008-08-19 14:50:00,360 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=teeda.dicon
2008-08-19 14:50:00,548 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=teedaExtension.dicon
2008-08-19 14:50:00,548 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=dao.dicon, realPath=my-dao.dicon
2008-08-19 14:50:00,563 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=j2ee.dicon
2008-08-19 14:50:00,563 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=jta.dicon
2008-08-19 14:50:00,579 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=jta.dicon
2008-08-19 14:50:00,579 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=jdbc.dicon
2008-08-19 14:50:00,594 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成します。path=jdbc-extension.dicon
2008-08-19 14:50:00,594 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=jdbc-extension.dicon
2008-08-19 14:50:00,626 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=jdbc.dicon
2008-08-19 14:50:00,641 [main] DEBUG
org.seasar.framework.container.factory.S2ContainerFactory -
S2Containerを作成しました。path=j2ee.dicon
Exception occured at /components[1]/component[9]
org.seasar.framework.exception.ClassNotFoundRuntimeException:
[ESSR0044]クラスが見つかりませんでした。詳細はjava.lang.ClassNotFoundException:
org.seasar.dao.impl.ResultSetHandlerFactorySelector
    at org.seasar.framework.util.ClassUtil.forName(ClassUtil.java:96)
    at
org.seasar.framework.container.factory.ComponentTagHandler.start(ComponentTagHandler.java:43)
    at org.seasar.framework.xml.SaxHandler.start(SaxHandler.java:183)
    at org.seasar.framework.xml.SaxHandler.start(SaxHandler.java:177)
    at org.seasar.framework.xml.SaxHandler.startElement(SaxHandler.java:79)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at org.seasar.framework.util.SAXParserUtil.parse(SAXParserUtil.java:52)
    at
org.seasar.framework.xml.SaxHandlerParser.parse(SaxHandlerParser.java:117)
    at
org.seasar.framework.xml.SaxHandlerParser.parse(SaxHandlerParser.java:107)
    at
org.seasar.framework.container.factory.XmlS2ContainerBuilder.parse(XmlS2ContainerBuilder.java:170)
    at
org.seasar.framework.container.factory.XmlS2ContainerBuilder.include(XmlS2ContainerBuilder.java:152)
    at
org.seasar.framework.container.factory.S2ContainerFactory$DefaultProvider.include(S2ContainerFactory.java:600)
    at
org.seasar.framework.container.factory.S2ContainerFactory.include(S2ContainerFactory.java:201)
    at
org.seasar.framework.container.factory.IncludeTagHandler.start(IncludeTagHandler.java:55)
    at org.seasar.framework.xml.SaxHandler.start(SaxHandler.java:183)
    at org.seasar.framework.xml.SaxHandler.start(SaxHandler.java:175)
    at org.seasar.framework.xml.SaxHandler.startElement(SaxHandler.java:79)
    at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown
Source)
    at
org.apache.xerces.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
Source)
    at org.apache.xerces.impl.dtd.XMLDTDValidator.emptyElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown
Source)
    at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
    at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
    at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
    at javax.xml.parsers.SAXParser.parse(SAXParser.java:395)
    at org.seasar.framework.util.SAXParserUtil.parse(SAXParserUtil.java:52)
    at
org.seasar.framework.xml.SaxHandlerParser.parse(SaxHandlerParser.java:117)
    at
org.seasar.framework.xml.SaxHandlerParser.parse(SaxHandlerParser.java:107)
    at
org.seasar.framework.container.factory.XmlS2ContainerBuilder.parse(XmlS2ContainerBuilder.java:170)
    at
org.seasar.framework.container.factory.XmlS2ContainerBuilder.build(XmlS2ContainerBuilder.java:148)
    at
org.seasar.framework.container.factory.AbstractS2ContainerBuilder.build(AbstractS2ContainerBuilder.java:65)
    at
org.seasar.framework.container.factory.S2ContainerFactory$DefaultProvider.build(S2ContainerFactory.java:634)
    at
org.seasar.framework.container.factory.S2ContainerFactory$DefaultProvider.create(S2ContainerFactory.java:558)
    at
org.seasar.framework.container.factory.S2ContainerFactory.create(S2ContainerFactory.java:144)
    at
org.seasar.framework.container.factory.SingletonS2ContainerFactory.init(SingletonS2ContainerFactory.java:135)
    at
org.seasar.framework.container.servlet.SingletonS2ContainerInitializer.initialize(SingletonS2ContainerInitializer.java:55)
    at
org.seasar.framework.container.servlet.S2ContainerServlet.initializeContainer(S2ContainerServlet.java:139)
    at
org.seasar.framework.container.servlet.S2ContainerServlet.init(S2ContainerServlet.java:127)
    at org.seasar.teeda.core.webapp.TeedaServlet.init(TeedaServlet.java:41)
    at javax.servlet.GenericServlet.init(GenericServlet.java:212)
    at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1161)
    at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:981)
    at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
    at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4364)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)
    at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1045)
    at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
    at
org.apache.catalina.core.StandardService.start(StandardService.java:516)
    at
org.apache.catalina.core.StandardServer.start(StandardServer.java:710)
    at org.apache.catalina.startup.Catalina.start(Catalina.java:578)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)
    at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)
Caused by: java.lang.ClassNotFoundException:
org.seasar.dao.impl.ResultSetHandlerFactorySelector
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1360)
    at
org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1206)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:247)
    at org.seasar.framework.util.ClassUtil.forName(ClassUtil.java:94)
    ... 69 more

よろしくお願い致します。

-- 
conpota <[E-MAIL ADDRESS DELETED]>
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20080819/5c3d9e56/attachment-0001.html>


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