Announcement

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

    SmartGWT installation frustration

    I can't be the only one who is frustrated by creating a simple web application. I have downloaded the maven archetype. When I go to do a build the compiler complains that smartgwt-eval, isomorphic-network, and isomorphic-sql are missing. Maven does not recognize these dependencies. I can remove them and it builds fine. Are these jars needed for backend integrations? So far this is a thumbs down for this framework.

    #2
    We don't know where you got a broken Maven archetype, but please limit your "thumbs down" to whomever gave it to you.

    There's a Maven *plugin* being worked on in this thread.

    Comment


      #3
      Originally posted by eldobbs View Post
      I can't be the only one who is frustrated by creating a simple web application. I have downloaded the maven archetype. When I go to do a build the compiler complains that smartgwt-eval, isomorphic-network, and isomorphic-sql are missing. Maven does not recognize these dependencies. I can remove them and it builds fine.
      Assuming you mean this archetype, you can blame me. Although I suppose in my defense it doesn't sound like you have a problem with SmartGWT or with the archetype.

      Where are you trying to resolve your dependencies from? I suppose you've followed the instructions for mavenization from that wiki page (which will ultimately lead you to the plugin Isomorphic has pointed you at)?

      Are these jars needed for backend integrations?
      Integrations with what? Read the descriptions in the POMs to see what each artifact contains, or better yet start with the documentation.

      Comment


        #4
        Originally posted by Isomorphic View Post
        We don't know where you got a broken Maven archetype, but please limit your "thumbs down" to whomever gave it to you.

        There's a Maven *plugin* being worked on in this thread.

        Point noted. I AM excited to get coding using SmartGWT, it has been frustrating setting up a simple application using maven.

        Thanks for the link. I have a question however.
        I am interested in SmartGWT, and I notice in the link that you provided there is an xml element in the settings.xml isc.username, where do I get these credentials from? I am using the LGPL license.

        Comment


          #5
          That's your username for a SmartClient.com account. Use the "Register" link above to get one.

          Note that the archetype at wiki.smartclient.com does not work with LGPL. The *plugin* does, we're not sure whether you actually need a SmartClient.com account, it may be sufficient to leave this blank as the download page doesn't actually require registration for LGPL. bbruyn may clarify whether it's truly required.

          Comment


            #6
            Originally posted by Isomorphic View Post
            That's your username for a SmartClient.com account. Use the "Register" link above to get one.
            If you're posting here, you already have one, right?

            Note that the archetype at wiki.smartclient.com does not work with LGPL.
            Well... I suppose you couldn't actually run what gets generated, that's true. It was meant to kickstart Pro+ development, after all. I'm not sure it's worth the effort, but you could still use it as an LGPL starter project, if you wanted. Off the top of my head, you'd need to
            • eliminate the dependencies you complained about before
            • add a dependency on the artifact hosted in the smartclient repo, or use the Maven plugin to get an updated patch build. In case of the latter (which is what I'd recommend), you need com.isomorphic.smartgwt:smartgwt-lgpl
            • remove the references to Pro+ servlets from the web.xml
            • change the datasources so that they're not type="sql", or remove them (and references to them) altogether
            • fix up the inherits at YourProject.gwt.xml
            • do something interesting in onModuleLoad


            The *plugin* does, we're not sure whether you actually need a SmartClient.com account, it may be sufficient to leave this blank as the download page doesn't actually require registration for LGPL. bbruyn may clarify whether it's truly required.
            It is required for the download goal. There's a way to skip that if you want, but you probably want an account anyway...

            Comment


              #7
              Originally posted by Isomorphic View Post
              That's your username for a SmartClient.com account. Use the "Register" link above to get one.
              If you're posting here, you already have one, right?
              Uhh good point. eldobbs, your isc.username is eldobbs :)

              Comment


                #8
                Grrrr....

                Originally posted by Isomorphic View Post
                Uhh good point. eldobbs, your isc.username is eldobbs :)
                Thanks for your help. Let just go back to basics.
                How do I create the most basic SmartGWT web application that I can deploy to a standalone Web container i.e. Tomcat?
                I have the samples/built-in-ds project loaded into Elclipse. I can perform a GWT compile and run the application in hosted mode. However I would like to execute a build(I prefer Maven, but ...) using the build.xml file supplied with the source code for this project I get
                "Errors occurred during the build. Errors running builder 'Google WebApp Project Validator' on project 'SmartGWT'. java.lang.NullPointerException

                Essentially I all want to do is produce a .war file to deploy to a Tomcat server.

                Thanks in advance

                Comment


                  #9
                  Now I have this error in the ant build

                  Originally posted by Isomorphic View Post
                  Uhh good point. eldobbs, your isc.username is eldobbs :)
                  C:\Users\Eric Dobbs\Downloads\smartgwtee-3.1\smartgwtee-3.1\samples\built-in-ds\build.xml:35: C:\Users\Eric Dobbs\Downloads\smartgwtee-3.1\smartgwtee-3.1\samples\built-in-ds\${env.GWT_HOME} does not exist.

                  I have verified that the GWT_HOME variable set properly

                  Comment


                    #10
                    We're not reproducing this error, however, a common Windows gotcha with environment variables may be causing your issue: if you have a command prompt open, then changes to the Environment Variables settings only take effect when the command prompt is closed and re-opened.

                    You can see whether the GWT_HOME environment variable is properly set by running:

                    echo %GWT_HOME%

                    Comment

                    Working...
                    X