Hi Guys,
I am using SMARTGwtEE(Eval) 2.5, with GWT2.0.4 in Eclipse STS2.7.1
I tried to convert an existing application developed with SmartGwt2.5 to SmartGWTEE2.5. I followed the steps exactly as mentioned in http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/SgwtEESetup.html
But I am getting the following errors:
1.javax.servlet.jsp.JspException: Unable to load DataSource for ID: table3
and after that
2.[ERROR] Invalid version number "2.1" passed to external.gwtOnLoad(), expected "2.0"; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app
Following is the logs
-------------------------
war/ds/Trades.ds.xml
--------------------------
<DataSource
ID="table3"
serverType="sql"
tableName="T_LOG_TRADES"
autoDeriveSchema="true"
/>
------------------------------
gwt.xml content
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module rename-to='nails'>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<entry-point class='sgcib.nemo.nails.client.NAILS'/>
</module>
----------------------
NAILS.html
-----------------------
<script src="NAILS/sc/DataSourceLoader?dataSource=table3"></script>
I am completely stuck and can't proceed.
Attached are the files if it helps to resolve.
Best Regards,
debashis
I am using SMARTGwtEE(Eval) 2.5, with GWT2.0.4 in Eclipse STS2.7.1
I tried to convert an existing application developed with SmartGwt2.5 to SmartGWTEE2.5. I followed the steps exactly as mentioned in http://www.smartclient.com/smartgwtee/javadoc/com/smartgwt/client/docs/SgwtEESetup.html
But I am getting the following errors:
1.javax.servlet.jsp.JspException: Unable to load DataSource for ID: table3
and after that
2.[ERROR] Invalid version number "2.1" passed to external.gwtOnLoad(), expected "2.0"; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app
Following is the logs
Code:
WARN] Server class 'com.isomorphic.servlet.CompressionFilter' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/isomorphic_core_rpc.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html ISC: Configuring log4j from: file:/C:/HOMEWARE/Projects/Logging/NAILS/war/WEB-INF/classes/log4j.isc.config.xml [WARN] Server class 'org.apache.commons.collections.map.LinkedMap' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/gwt-2.0.4/gwt-dev.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html === 2011-10-07 18:57:37,595 [main] INFO ISCInit - Isomorphic SmartClient Framework - Initializing === 2011-10-07 18:57:37,595 [main] INFO ConfigLoader - Attempting to load framework.properties from CLASSPATH [WARN] Server class 'isc.org.apache.oro.text.perl.Perl5Util' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/isc-jakarta-oro-2.0.6.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Successfully loaded framework.properties from CLASSPATH at location: jar:file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/isomorphic_core_rpc.jar!/framework.properties === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Attempting to load project.properties from CLASSPATH === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Unable to locate project.properties in CLASSPATH === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Successfully loaded isc_interfaces.properties from CLASSPATH at location: jar:file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/isomorphic_core_rpc.jar!/isc_interfaces.properties === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Attempting to load server.properties from CLASSPATH === 2011-10-07 18:57:37,642 [main] INFO ConfigLoader - Successfully loaded server.properties from CLASSPATH at location: file:/C:/HOMEWARE/Projects/Logging/NAILS/war/WEB-INF/classes/server.properties === 2011-10-07 18:57:37,642 [main] INFO Logger - Logging system started. === 2011-10-07 18:57:37,657 [main] INFO ISCInit - Isomorphic SmartClient Framework (SC_SNAPSHOT-2011-08-02/EVAL Deployment 2011-08-02) - Initialization Complete === 2011-10-07 18:57:37,657 [main] INFO ISCInit - Auto-detected webRoot - using: C:\HOMEWARE\Projects\Logging\NAILS\war [WARN] Server class 'com.isomorphic.compression.ServletCompression' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/isomorphic_compression.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html log4j:WARN No appenders could be found for logger (org.apache.jasper.compiler.JspRuntimeContext). log4j:WARN Please initialize the log4j system properly. [WARN] Server class 'org.apache.commons.fileupload.FileItemFactory' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/commons-fileupload-1.2.1.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html === 2011-10-07 18:57:40,938 [l0-1] INFO RequestContext - URL: '/NAILS/sc/DataSourceLoader', User-Agent: 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; Trident/4.0; .NET CLR 1.1.4322; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729)': MSIE with Accept-Encoding header, ready for compressed JS [WARN] Server class 'org.apache.commons.pool.impl.GenericKeyedObjectPool' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/commons-pool-1.4.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html === 2011-10-07 18:57:41,157 [l0-2] INFO Compression - /nails/sc/modules/ISC_Core.js: 696279 -> 180349 bytes === 2011-10-07 18:57:41,157 [l0-1] INFO PoolManager - SmartClient pooling disabled for 'table3' objects [WARN] Server class 'org.apache.commons.jxpath.AbstractFactory' could not be found in the web app, but was found on the system classpath [WARN] Adding classpath entry 'file:/C:/HOMEWARE/GWT/smartgwtee-2.5/lib/commons-jxpath-1.3.jar' to the web app classpath for this session For additional info see: file:/C:/HOMEWARE/GWT/gwt-2.0.4/doc/helpInfo/webAppClassPath.html === 2011-10-07 18:57:41,204 [l0-1] DEBUG XML - Parsed XML from C:\HOMEWARE\Projects\Logging\NAILS\war\nails\sc\system\schema\builtinTypes.xml: 0ms === 2011-10-07 18:57:41,251 [l0-1] ERROR DataSourceLoader - Exception while attempting to load a DataSource javax.servlet.jsp.JspException: Unable to load DataSource for ID: table3 at com.isomorphic.servlet.DataSourceLoader.processRequest(DataSourceLoader.java:109) at com.isomorphic.servlet.DataSourceLoader.doGet(DataSourceLoader.java:83) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) === 2011-10-07 18:57:41,251 [l0-1] ERROR DataSourceLoader - Top-level servlet error: javax.servlet.ServletException: javax.servlet.jsp.JspException: Unable to load DataSource for ID: table3 at com.isomorphic.servlet.DataSourceLoader.processRequest(DataSourceLoader.java:109) at com.isomorphic.servlet.DataSourceLoader.doGet(DataSourceLoader.java:83) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) at com.isomorphic.servlet.DataSourceLoader.processRequest(DataSourceLoader.java:115) at com.isomorphic.servlet.DataSourceLoader.doGet(DataSourceLoader.java:83) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:152) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:487) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1097) at com.isomorphic.servlet.CompressionFilter.doFilter(CompressionFilter.java:259) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1088) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:360) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:181) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:729) at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:405) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.handler.RequestLogHandler.handle(RequestLogHandler.java:49) at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152) at org.mortbay.jetty.Server.handle(Server.java:324) at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:505) at org.mortbay.jetty.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:829) at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:513) at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:211) at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:380) at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:395) at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:488) === 2011-10-07 18:57:41,267 [l0-1] INFO Compression - /NAILS/sc/DataSourceLoader: 4029 -> 609 bytes Connection received from localhost:1385 [ERROR] Invalid version number "2.1" passed to external.gwtOnLoad(), expected "2.0"; your hosted mode bootstrap file may be out of date; if you are using -noserver try recompiling and redeploying your app
war/ds/Trades.ds.xml
--------------------------
<DataSource
ID="table3"
serverType="sql"
tableName="T_LOG_TRADES"
autoDeriveSchema="true"
/>
------------------------------
gwt.xml content
-------------------------
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Google Inc.//DTD Google Web Toolkit 1.7.0//EN"
"http://google-web-toolkit.googlecode.com/svn/tags/1.7.0/distro-source/core/src/gwt-module.dtd">
<module rename-to='nails'>
<inherits name='com.google.gwt.user.User'/>
<inherits name="com.smartgwt.tools.SmartGwtTools"/>
<inherits name="com.smartgwtee.tools.Tools"/>
<inherits name="com.smartgwtee.SmartGwtEE"/>
<entry-point class='sgcib.nemo.nails.client.NAILS'/>
</module>
----------------------
NAILS.html
-----------------------
<script src="NAILS/sc/DataSourceLoader?dataSource=table3"></script>
I am completely stuck and can't proceed.
Attached are the files if it helps to resolve.
Best Regards,
debashis
Comment