Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    SmartGWTEE-06-30-2011 VisualBuilder Not Working

    Hello Isomorphic,

    My new company is a SmartGWTPro licensee. So, it's nice to be working with you again.

    I'm on mac os x 10.6.8 running the CustomDS sample in firefox 4 dev mode. The sample was built with gwt 2.3.0. I had no problems when the sample was built with gwt 2.2.0.

    Here's a link to a standalone test case that shows the changes I made to build.xml, server.properties and the CustomeDS.java entry point to build the app and call the sc tools api:

    http://dl.dropbox.com/u/10891367/custom-ds.zip

    (BTW: I hard-coded the path to the gwt-2.3.0 sdk in build.xml since the env.GWT_HOME did not resolve correctly for me.)

    Do you think this is a bug? Is there something I am overlooking? The same is true for buildtinds sample, and probably for the other samples, too.

    Here's the eclipse console output when I call the SCEE.openVisualBuilder() api.

    Code:
    === 2011-07-06 20:13:27,390 [l0-9] INFO  RequestContext - URL: '/customds/tools/visualBuilder/index.jsp', User-Agent: 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0) Gecko/20100101 Firefox/4.0': Moz (Gecko) with Accept-Encoding header
    === 2011-07-06 20:13:27,391 [l0-9] WARN  LoadISCTag - isc.moduleLoadOrder does not include user-selected modules: [DBConsole] - placing these modules last in the load order.
    === 2011-07-06 20:13:27,418 [l0-9] ERROR LoadDSTag - Exception while attempting to process a loadDS tag.
    javax.servlet.jsp.JspException: Unable to load DataSource for ID: uploadedFiles
    	at com.isomorphic.taglib.LoadDSTag.outputJS(LoadDSTag.java:80)
    	at com.isomorphic.taglib.LoadDSTag.doStartTag(LoadDSTag.java:58)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadDS_0(index_jsp.java:195)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:114)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	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)
    [WARN] /customds/tools/visualBuilder/index.jsp
    javax.servlet.jsp.JspException: javax.servlet.jsp.JspException: Unable to load DataSource for ID: uploadedFiles
    	at com.isomorphic.taglib.LoadDSTag.outputJS(LoadDSTag.java:80)
    	at com.isomorphic.taglib.LoadDSTag.doStartTag(LoadDSTag.java:58)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadDS_0(index_jsp.java:195)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:114)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	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.taglib.LoadDSTag.doStartTag(LoadDSTag.java:61)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspx_meth_isomorphic_loadDS_0(index_jsp.java:195)
    	at org.apache.jsp.customds.tools.visualBuilder.index_jsp._jspService(index_jsp.java:114)
    	at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
    	at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
    	at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    	at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    	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)
    Last edited by wil.pannell; 6 Jul 2011, 17:14.

    #2
    Hi Wil, good to be working with you again :)

    In the FAQ there's a list of every mistake that could possibly lead to this error, and how to correct it.

    It's almost certainly not related to your GWT upgrade. You're likely to instead find that your IDE hasn't copied the relevant .ds.xml file to the deployment directory, or it's been misplaced.

    Comment


      #3
      Thanks for your speedy reply.

      I've followed your advice and reviewed the configuration step-by-step. There was a spurious <inherits name="com.smartgwt.tools.SmartGwtTools"/> in the gwt module that I removed, but I did not see anything else out of order.

      The logs reported an unresolved reference to the uploadedFiles datasource, but this is not defined anywhere in the sample application.

      A search of the filesystem located references to the uploadedFiles string *only* in the following folders:

      sc,
      tools, and
      db.

      This is all sample application configuration that I did not change. The attached screenshot indicates the locations in which the datasource IDs where found on the filesystem:
      Attached Files

      Comment


        #4
        Upon further scrutiny of the screenshot I posted, the uploadedFiles datasource seems to be introduced in the tooling for visual builder as of smartgwtee v2.5. No such references appear in v2.4.

        I would be surprised if visual builder can be invoked from any of the samples present in the 2011-06-30 smartgwtee nightly. I had no success with customds. I'll try the others by-and-by.

        I look forward to hearing more on this matter. In the meantime, I'll work with the stable 2.4 smartgwtee eval.

        Comment

        Working...
        X