Hi everyone,
I'm getting started with SmartGWT EE and I'm stuck now for quite a few hours on a problem when connecting to a MS SQL Server database
System:
- SmartGWT EE 2.4 evaluation version
- Eclipse Indigo
- GWT 2.3
- SQL Server 2005,
- sqljdbc_3.0.1301.101 from http://www.microsoft.com/downloads/de-de/details.aspx?familyid=a737000d-68d0-4531-b65d-da0f2a735707&displaylang=de
- Tomcat 7.0 (nothing deployed there yet, only hosted mode so far)
- FF 5.01
I started with the built-in-ds sample project and added some code for UI elements, including two buttons for SCEE.openDataSourceConsole() and SCEE.openDataSourceGenerator().
I also changed the relevant contents of server.properties to
(I read http://forums.smartclient.com/showpo...79&postcount=5 )
The build path includes all the files from the sample (see screenshot), copied to workspace\built-in-ds\war\WEB-INF\lib and also sqljdbc4.jar
If it is important: I'm in hosted mode only, so far.
When I start ISC Admin Console it comes up as expected, but shows the JDBC driver missing (see screenshot).
For course, when I click "browse" now, I get an error message ("java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver", see screenshot)
Do you have an idea how to enable the Admin Console and of course the application as well to connect to the SQL Server? (See strack trace when trying to bind a Listbox to the DS).
I think that it is a minor mistake on by behalf, but I really can't imagine where to put the JDBC jar and where to include it besides the build path. Do I have to put it in a .java file as an import?
Thanks in advance,
Blama
Screenshots:
http://www8.pic-upload.de/26.07.11/zziutts1zsc.png
http://www8.pic-upload.de/26.07.11/bwhgh7m3r6p.jpg
http://www8.pic-upload.de/26.07.11/y478bof6duf.jpg
Stack trace when trying to bind DS:
I'm getting started with SmartGWT EE and I'm stuck now for quite a few hours on a problem when connecting to a MS SQL Server database
System:
- SmartGWT EE 2.4 evaluation version
- Eclipse Indigo
- GWT 2.3
- SQL Server 2005,
- sqljdbc_3.0.1301.101 from http://www.microsoft.com/downloads/de-de/details.aspx?familyid=a737000d-68d0-4531-b65d-da0f2a735707&displaylang=de
- Tomcat 7.0 (nothing deployed there yet, only hosted mode so far)
- FF 5.01
I started with the built-in-ds sample project and added some code for UI elements, including two buttons for SCEE.openDataSourceConsole() and SCEE.openDataSourceGenerator().
I also changed the relevant contents of server.properties to
Code:
sql.defaultDatabase: SQLServer sql.SQLServer.database.type: sqlserver sql.SQLServer.interface.type: driverManager sql.SQLServer.driver: com.microsoft.sqlserver.SQLServerDriver sql.SQLServer.driver.url: jdbc:sqlserver://development4:1433;DatabaseName=dev;User=xxx;Password=yyy
The build path includes all the files from the sample (see screenshot), copied to workspace\built-in-ds\war\WEB-INF\lib and also sqljdbc4.jar
If it is important: I'm in hosted mode only, so far.
When I start ISC Admin Console it comes up as expected, but shows the JDBC driver missing (see screenshot).
For course, when I click "browse" now, I get an error message ("java.lang.ClassNotFoundException: com.microsoft.sqlserver.jdbc.SQLServerDriver", see screenshot)
Do you have an idea how to enable the Admin Console and of course the application as well to connect to the SQL Server? (See strack trace when trying to bind a Listbox to the DS).
I think that it is a minor mistake on by behalf, but I really can't imagine where to put the JDBC jar and where to include it besides the build path. Do I have to put it in a .java file as an import?
Thanks in advance,
Blama
Screenshots:
http://www8.pic-upload.de/26.07.11/zziutts1zsc.png
http://www8.pic-upload.de/26.07.11/bwhgh7m3r6p.jpg
http://www8.pic-upload.de/26.07.11/y478bof6duf.jpg
Stack trace when trying to bind DS:
Code:
[ERROR] [builtinds] - Uncaught exception escaped 16:18:50.223 [ERROR] [builtinds] Uncaught exception escaped com.google.gwt.event.shared.UmbrellaException: One or more exceptions caught, see full set in UmbrellaException#getCauses at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:129) at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:66) 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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source) Caused by: java.lang.NullPointerException: null at com.smartgwt.client.widgets.grid.ListGrid.setDataSource(ListGrid.java:12572) at com.smartgwt.sample.client.BuiltInDS.bindComponents(BuiltInDS.java:225) at com.smartgwt.sample.client.BuiltInDS.access$0(BuiltInDS.java:223) at com.smartgwt.sample.client.BuiltInDS$2.onRecordClick(BuiltInDS.java:117) at com.smartgwt.client.widgets.grid.events.RecordClickEvent.dispatch(RecordClickEvent.java:98) at com.smartgwt.client.widgets.grid.events.RecordClickEvent.dispatch(RecordClickEvent.java:1) at com.google.gwt.event.shared.GwtEvent.dispatch(GwtEvent.java:1) at com.google.web.bindery.event.shared.SimpleEventBus.doFire(SimpleEventBus.java:193) at com.google.web.bindery.event.shared.SimpleEventBus.fireEvent(SimpleEventBus.java:88) at com.google.gwt.event.shared.HandlerManager.fireEvent(HandlerManager.java:127) at com.smartgwt.client.widgets.BaseWidget.fireEvent(BaseWidget.java:66) 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 com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessagesWhileWaitingForReturn(BrowserChannelServer.java:326) at com.google.gwt.dev.shell.BrowserChannelServer.invokeJavascript(BrowserChannelServer.java:207) at com.google.gwt.dev.shell.ModuleSpaceOOPHM.doInvoke(ModuleSpaceOOPHM.java:132) at com.google.gwt.dev.shell.ModuleSpace.invokeNative(ModuleSpace.java:561) at com.google.gwt.dev.shell.ModuleSpace.invokeNativeObject(ModuleSpace.java:269) at com.google.gwt.dev.shell.JavaScriptHost.invokeNativeObject(JavaScriptHost.java:91) at com.google.gwt.core.client.impl.Impl.apply(Impl.java) at com.google.gwt.core.client.impl.Impl.entry0(Impl.java:214) at sun.reflect.GeneratedMethodAccessor27.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.google.gwt.dev.shell.MethodAdaptor.invoke(MethodAdaptor.java:103) at com.google.gwt.dev.shell.MethodDispatch.invoke(MethodDispatch.java:71) at com.google.gwt.dev.shell.OophmSessionHandler.invoke(OophmSessionHandler.java:167) at com.google.gwt.dev.shell.BrowserChannelServer.reactToMessages(BrowserChannelServer.java:281) at com.google.gwt.dev.shell.BrowserChannelServer.processConnection(BrowserChannelServer.java:531) at com.google.gwt.dev.shell.BrowserChannelServer.run(BrowserChannelServer.java:352) at java.lang.Thread.run(Unknown Source)
Comment