public interface SgwtEESetup
If you are starting a new project from scratch, we recommend starting with one of the sample projects included with Smart GWT Pro/Power/EE under the "samples" directory. Use the project that most closely matches your integration strategy and follow the instructions in the "README" file within the sample directory.
Note if you rename the GWT module (e.g. "builtinds" → "myApplication") you need to make changes to several files which contain the GWT module name in filesystem paths or URLs. See the set of steps for adding Smart GWT to an existing project to see all the files that may need changes.
Adding Smart GWT Pro/Power/EE to an existing project
Important: If you have created a project using the GWT Plugin for Eclipse or a similar tool, first get rid of unused resources typically included in such "starter projects":
com.google.gwt.user.User. The proper imports to add for Smart GWT Pro/Power/EE are shown below.
Now add Smart GWT Pro/Power/EE: all of these steps are required. Do not skip steps or omit resources you think you may not need. Get a working project first, then think about trimming resources, as needed, once you understand the system.
In the steps below, copying from e.g. "war/WEB-INF/..." means copying from the "war" subdirectory of whichever sample project is closest to your desired integration strategy.
<inherits name="com.smartgwtee.SmartGwtEE"/> <inherits name="com.smartgwtee.tools.Tools"/>
<script> var isomorphicDir = "modulename/sc/"; </script>This should appear before the <script src=> tag that loads *.nocache.js.
here. See the server-side JavaDoc for further details on servlet APIs and override points.
|ClassNotFound or other Java Exceptions in the server log.||Missing JAR files||Verify every .jar from the smartgwtee-version/lib directory has been added to your CLASSPATH. Although you might later be able to remove some .jars, for initial installation testing, copy every .jar|
|Client-side error about attempting to use "iscServer" request without server installed||Wrong imports in moduleName.gwt.xml||See correct imports above, note remove com.smartgwt.SmartGWT import and ensure that com.smartgwt.tools.SmartGwtTools import is before your com.smartgwtee.* imports (or corresponding Pro/Power imports)|
|Missing images or failure to load page||Didn't set isomorphicDir in .html bootstrap file||See step above for setting isomorphicDir|
|Server error: "adminConsole" app not found when launching tools such as Visual Builder||Bad filesystem paths configured in server.properties||Correct paths in server.properties. NOTE the samples include the GWT module name in some settings, search and replace this value with your GWT module name|
|Server error: Can't find DataSource with ID yourDataSourceID||Bad filesystem paths in server.properties or bad DataSource .ds.xml file||Correct paths in server.properties - search for "project.datasources". Also check that the DataSource ID you are using matches the "ID" attribute in the .ds.xml file (NOTE: ID attribute is uppercase "ID" not "id") and that the file is named dataSourceId.ds.xml. DataSource IDs are case sensitive, including the file name|
|Server error: taglib not defined||Missing iscTaglib.xml or iscTaglib.xml not referenced in web.xml||See step above about iscTaglib.xml and web.xml entry|
For further troubleshooting steps, see the SmartGWT FAQ and, if still stuck, try posting in the Forums. NOTE: gather all the information indicated in the FAQ before posting.