[Seasar-user:20607] Re: dbflute 0.9.7.4のSingletonS2ContainerFactory.init()でエラー
Nguyen Vu Hung (VNC)
[E-MAIL ADDRESS DELETED]
2011年 2月 23日 (水) 15:45:22 JST
金子さん、
vuhungと申します。
※ DBFluteはセットで使っています、
下記の設定で
<component name="jdbcManager"
class="org.seasar.extension.jdbc.manager.JdbcManagerImpl">
※ JdbcManagerImplは使っています。
DBFlute 0.9.7.4
s2-tiger-2.4.40.jar
→ 以前のメールで述べたように、エラーが発生しました。
DBFlute 0.9.7.8
s2-tiger-2.4.43.jar
→ 問題ありません
同じように
DBFlute 0.9.7.4
s2-tiger-2.4.43.jar
→ 問題ありません
DBFlute 0.9.7.8
s2-tiger-2.4.40.jar
→ 以前のメールで述べたように、エラーが発生しました。
後、ご指摘どおり、DBFlute自体は関係なさそうです。
s2jdbcも使っていますが、関係あるのかは不明です。
宜しくお願いします。
(2011/02/23 13:13), 金子 雄一 wrote:
> 金子と申します。
>
> 0.9.7.8 で問題ない理由については、
> ちょっと、謎ですが、
> そもそも、DBFluteを利用するのに、
> なぜ、S2JDBCの設定が必要なのでしょうか?
>
> DBFluteは、S2JDBCには依存していないはずなので、
> s2jdbc.diconをincludeすること自体が無意味かと思いますが・・・。
>
> いずれにせよ、出力されている例外は、
> S2JDBC関連の例外であって、
> DBFluteは関係していないように見えます。
>
> app.dicon上から、j2jdbc.diconのincludeをはずせば、
> この問題は解決するかと思います。
>
> (s2jdbcも同時に使用しているということであれば、
> 話が別ですが。。。。)
>
>
> ご不明な点がありましたら、ご連絡ください。
> 以上、よろしくお願いいたします。
>
> ※メールが文字化けしているようでしたので、再投稿します。
>
> (2011/02/23 13:32), Nguyen Vu Hung (VNC) wrote:
>> はじめまして、
>>
>> vuhungと申します。
>>
>> 下記のソースで
>>
>> SingletonS2ContainerFactory.setConfigPath("app.dicon");
>> SingletonS2ContainerFactory.init();
>>
>> dbflute: 0.9.7.8: 問題なし
>> dbflute: 0.9.7.4: 以下のようにエラーが発生しました。
>>
>> 0.9.7.4で実行できるようにしたいです。
>>
>> 環境:
>> s2-extension-2.4.40
>> s2-framework-2.4.40
>> s2-tiger-2.4.40
>>
>> 0.9.7.4から0.9.7.8にかけて、変更履歴を見てみましたが、
>> 関係ありそうなBUGFIX/変更が見つかりません、質問させていただいきます。
>> ※ http://dbflute.sandbox.seasar.org/ja/environment/changelog/index.html
>>
>> 具体的には以下で説明しますので、宜しくお願いします。
>>
>> ■ s2jdbc.dicon
>> ※ <component name="jdbcManager"
>> class="org.seasar.extension.jdbc.manager.JdbcManagerImpl">
>> でエラーが発生するようです。
>>
>> <?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 path="jdbc.dicon"/>
>> <include path="s2jdbc-internal.dicon"/>
>> <component name="jdbcManager"
>> class="org.seasar.extension.jdbc.manager.JdbcManagerImpl">
>> <property name="maxRows">0</property>
>> <property name="fetchSize">0</property>
>> <property name="queryTimeout">0</property>
>> <property name="dialect">h2Dialect</property>
>> </component>
>> </components>
>>
>> ■ Exception:
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/seasar/extension/jdbc/Update
>> at java.lang.ClassLoader.defineClass1(Native Method)
>> at java.lang.ClassLoader.defineClass(Unknown Source)
>> at java.security.SecureClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.access$000(Unknown Source)
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> at java.lang.Class.getDeclaredMethods0(Native Method)
>> at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
>> at java.lang.Class.privateGetPublicMethods(Unknown Source)
>> at java.lang.Class.getMethods(Unknown Source)
>> at
>> org.seasar.framework.beans.impl.BeanDescImpl.setupPropertyDescs(BeanDescImpl.java:527)
>> at
>> org.seasar.framework.beans.impl.BeanDescImpl.<init>(BeanDescImpl.java:113)
>> at
>> org.seasar.framework.beans.factory.BeanDescFactory.getBeanDesc(BeanDescFactory.java:60)
>> at
>> org.seasar.framework.container.factory.ConstantAnnotationHandler.createComponentDef(ConstantAnnotationHandler.java:151)
>> at
>> org.seasar.framework.container.factory.TigerAnnotationHandler.createComponentDef(TigerAnnotationHandler.java:408)
>> at
>> org.seasar.framework.container.factory.AbstractAnnotationHandler.createComponentDef(AbstractAnnotationHandler.java:148)
>> at
>> org.seasar.framework.container.factory.AbstractAnnotationHandler.createComponentDef(AbstractAnnotationHandler.java:143)
>> at
>> org.seasar.framework.container.factory.ComponentTagHandler.start(ComponentTagHandler.java:48)
>> 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
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.startElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.startElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>> at
>> org.seasar.framework.util.SAXParserUtil.parse(SAXParserUtil.java:55)
>> 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
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.xinclude.XIncludeHandler.emptyElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.dtd.XMLDTDValidator.emptyElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
>> at
>> com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown
>> Source)
>> at
>> com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown
>> Source)
>> at javax.xml.parsers.SAXParser.parse(Unknown Source)
>> at
>> org.seasar.framework.util.SAXParserUtil.parse(SAXParserUtil.java:55)
>> 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:150)
>> at
>> jp.co.softbank.cmn.bat.BatchMain.createBatchLogic(BatchMain.java:312)
>> at jp.co.softbank.cmn.bat.BatchMain.main(BatchMain.java:106)
>> Caused by: java.lang.ClassNotFoundException:
>> org.seasar.extension.jdbc.Update
>> at java.net.URLClassLoader$1.run(Unknown Source)
>> at java.security.AccessController.doPrivileged(Native Method)
>> at java.net.URLClassLoader.findClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClass(Unknown Source)
>> at java.lang.ClassLoader.loadClassInternal(Unknown Source)
>> ... 79 more
>> Caused by: java.util.zip.ZipException: oversubscribed literal/length tree
>> at java.util.zip.InflaterInputStream.read(Unknown Source)
>> at sun.misc.Resource.getBytes(Unknown Source)
>> at java.net.URLClassLoader.defineClass(Unknown Source)
>> at java.net.URLClassLoader.access$000(Unknown Source)
>> ... 86 more
>>
>>
>>
>>
>>
>>
>> _______________________________________________
>> Seasar-user mailing list
>> [E-MAIL ADDRESS DELETED]
>> https://ml.seasar.org/mailman/listinfo/seasar-user
>
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20110223/62567dfd/attachment.html>
Seasar-user メーリングリストの案内