[seasar-dotnet:2526] Re: dbflute introについて質問です

kubo dbflute @ gmail.com
2018年 3月 30日 (金) 11:59:34 JST


久保(jflute)です

​> あれ?すんません。ログ間違ったかも。
> もう一回添付します。
ありがとうございます。助かります。

_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/_/

[Application Exception] #16247cd

 action   : runtime:{/api/welcome/create, public JsonResponse
WelcomeAction @ create(WelcomeCreateBody), pathParam:{{}},
*DatabaseConnectionException}

 response : HtmlResponse:{forward:{/error/show_errors.jsp}}

org.dbflute.intro.bizfw.tellfailure.DatabaseConnectionException: Failed to
test the connection: database:{oracle.jdbc.OracleDriver,
box:{jdbc:oracle:thin:@xxx:1521:orcl, xxx, xxx}, []}

  at
org.dbflute.intro.app.logic.dfprop.TestConnectionLogic.testConnection(TestConnectionLogic.java:83)

  at
org.dbflute.intro.app.web.welcome.WelcomeAction.testConnectionIfPossible(WelcomeAction.java:147)

  at
org.dbflute.intro.app.web.welcome.WelcomeAction.create(WelcomeAction.java:101)

  at sun.reflect.NativeMethodAccessorImpl.invoke0(null)

  at sun.reflect.NativeMethodAccessorImpl.invoke(null)

  at sun.reflect.DelegatingMethodAccessorImpl.invoke(null)

  at java.lang.reflect.Method.invoke(null)

  at
org.lastaflute.web.ruts.GodHandableAction.invokeExecuteMethod(GodHandableAction.java:335)

  at
org.lastaflute.web.ruts.GodHandableAction.actuallyExecute(GodHandableAction.java:306)

  at
org.lastaflute.web.ruts.GodHandableAction.doExecute(GodHandableAction.java:146)

  at
org.lastaflute.web.ruts.GodHandableAction.lambda$transactionalExecute$0(GodHandableAction.java:137)

  ...

Caused by: java.lang.ClassNotFoundException: oracle.jdbc.OracleDriver

  at java.net.URLClassLoader.findClass(null)

  at java.lang.ClassLoader.loadClass(null)

  at java.net.FactoryURLClassLoader.loadClass(null)

  at java.lang.ClassLoader.loadClass(null)

  ...

_/_/_/_/_/_/_/_/_/_/

そして、こちらでも再現ができたので、これはIntro側を修正します。
フィードバックありがとうございますm(_ _)m。

Oracle, DB2, SQLServerなどはライセンス上、
JDBCドライバーをDBFlute本体に組み込んでいないので、
JDBCドライバーのファイルをアップロードしてもらう必要があるのですが、
connect as test が組み込みでないケースに対応できてないというところです。

一方で、connect as test だけのお話なので、
そこを通り過ぎてしまえば、Generateなどの動作はするという感じです。
(WelcomeのCreate処理が途中で落ちてしまっていますが、
最後の処理なのでDBFlute環境は作成されたという感じですね)





# ちなみに、DBFlute Intro自体のお話であれば、
# (もしよければですけど...)
# DBFlute自体のメーリングリストをオススメしています。
# https://groups.google.com/forum/#!forum/dbflute
#
# Introは(嬉しいことに)コミッターが他にもいらっしゃるのですが、
# ここのSeasar.NETのMLは全く見ていないと思うので、
# DBFluteのMLの方がフォローは受けやすいです。
# (jfluteも、Introはパッとわからない部分もあるので)
-------------- next part --------------
HTML$B$NE:IU%U%!%$%k$rJ]4I$7$^$7$?(B...
URL: <http://ml.seasar.org/archives/seasar-dotnet/attachments/20180330/12b4fcb2/attachment.html>


seasar-dotnet メーリングリストの案内