[Seasar-user:13837] Re: [要望] SAStruts+S2JDBC開発においての要望です
TAIGA
[E-MAIL ADDRESS DELETED]
2008年 4月 18日 (金) 23:05:17 JST
TAIGAです。
時間が空いてしまい申し訳ありません。
Error Logビューにエラーが出ていました。
jdbc.diconで設定していたのは DB2 Express-C V8.2 の
JDBCドライバ「COM.ibm.db2.jdbc.net.DB2Driver」でした。(Type4)
にもかかわらず、以下のメッセージでは「com.ibm.db2.jcc.SQLJPackage」を探しているようです。。
■以下、Error Logビューの内容
【エラー内容】
java.lang.reflect.InvocationTargetException
【スタックトレース】
java.lang.reflect.InvocationTargetException
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:383)
at org.eclipse.jface.operation.ModalContext.run(ModalContext.java:313)
at org.eclipse.jface.wizard.WizardDialog.run(WizardDialog.java:934)
at org.seasar.dolteng.eclipse.wizard.QueryDtoMappingPage.refreshRows(QueryDtoMappingPage.java:210)
at org.seasar.dolteng.eclipse.wizard.QueryDtoMappingPage.setVisible(QueryDtoMappingPage.java:339)
at org.eclipse.jface.wizard.WizardDialog.updateForPage(WizardDialog.java:1161)
at org.eclipse.jface.wizard.WizardDialog.access$2(WizardDialog.java:1139)
at org.eclipse.jface.wizard.WizardDialog$4.run(WizardDialog.java:1128)
at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:67)
at org.eclipse.jface.wizard.WizardDialog.showPage(WizardDialog.java:1126)
at org.eclipse.jface.wizard.WizardDialog.nextPressed(WizardDialog.java:820)
at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)
at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:616)
at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)
at org.eclipse.jface.window.Window.open(Window.java:796)
at org.seasar.dolteng.eclipse.util.WorkbenchUtil.startWizard(WorkbenchUtil.java:139)
at org.seasar.dolteng.eclipse.action.NewQueryDtoAction.run(NewQueryDtoAction.java:39)
at org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:153)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
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.eclipse.equinox.launcher.Main.invokeFramework(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
Caused by: java.lang.NoClassDefFoundError: com/ibm/db2/jcc/SQLJPackage
at COM.ibm.db2.jdbc.net.DB2Connection.prepareStatement(Unknown Source)
at org.seasar.dolteng.core.dao.impl.BasicDatabaseMetadataDao.getColumns(BasicDatabaseMetadataDao.java:195)
at org.seasar.dolteng.eclipse.wizard.QueryDtoMappingPage.createRows(QueryDtoMappingPage.java:273)
at org.seasar.dolteng.eclipse.wizard.QueryDtoMappingPage$4.run(QueryDtoMappingPage.java:220)
at org.eclipse.jface.operation.ModalContext.runInCurrentThread(ModalContext.java:369)
... 49 more
Caused by: java.lang.ClassNotFoundException: com.ibm.db2.jcc.SQLJPackage
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 java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
... 54 more
【セッションデータ】
eclipse.buildId=I20070625-1500
java.version=1.6.0_05
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=ja_JP
Command-line arguments: -os win32 -ws win32 -arch x86 -clean
Koichi Kobayashi さんは書きました:
> 小林 (koichik) です.
>
> Date: Tue, 15 Apr 2008 22:03:53 +0900
> From: TAIGA <[E-MAIL ADDRESS DELETED]>
> To: [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:13766] Re: [要望] SAStruts+S2JDBC開発においての要望です
>
>> どうも、私の環境では
>> Dolteng で sql ファイルを右クリックして,
>> 「Dolteng」−「Create New Dto」がうまくいかないんです。
>> 最後のJavaとデータベースの型マッピングの画面で何も出てこないのです。
>
> 自分の環境でも試してみましたが,DBMS が H2 だと
> とりあえず生成はできました.
> ただし,Wizard で作成された jdbc.dicon に問題が
> あったので,そこは修正しましたが.
>
> もしかしたら Error Log ビューに何か出ているかも
> しれないので「Window」−「Show View」−「Error Log」で
> 確認してみてください.
> # Eclipse 3.3 の Java Developer だと表示できないかも.
>
> それから,お使いの DBMS を教えてください.
>
>
>
Seasar-user メーリングリストの案内