Is this file part of the distribution. I’m getting errors relating to this and I think is it because it does not exist.
Please post the details of what you’re trying to do, the relevant code and any message you see in the dev console.
I’m trying to get a basic setup of SMARTGWTEE working. I am having all kinds of problems, but I really want to get this working. My main problem seems to be related to the webroot variable. It does not seem to return what the framework is expecting and therefore cannot find anything. I was having a problem loading the datasource, but I hardcoded the actual location and now I get this error.
Problem loading builtinTypes.xml
Exception when loading from USE_CONTAINER/ITPortalEE/isomorphic/system/schema/builtinTypes.xml:
java.lang.NullPointerException
I downloaded the smartgwtee 1.1 distribution and this file is not a part of it, should I download something else? In the documention, it states that there is a skeleton example, this also it not there. I really need to get a good starting base and instructions to get a example to work.
thanks
The builtinTypes.xml is part of smartgwtee.jar which will get deployed in the correct location when the project is compiled.
Have you tried running the various samples provided in SmartGWT EE. If not, I suggest you do so.
For example, pick the built-in-ds sample. The README.txt file contains the build instructions.
As you can see, its pretty straightforward to build a war, or run in hosted mode.
Once you have this sample running, you can use it as a starting point of your own application by changing the package names appropriately and introducing new code. We decided to remove the “skeleton” directory structure as it was rather confusing to have without all the pieces that are required to have a sample running along with a build file.
There are various other, rather focused and simple sample apps in the distribution.
built-in-ds
custom-ds
ds-dmi
ds-hibernate
ds-tree
spring-hibernate-dmi
The README.txt file in each of these directories gives a brief overview of the sample. You can pick any of these as the starting point of your new project and build upon it. The SmartGWT EE showcase has the standalone source for each sample accessible via the “View Source” button. So you can study the relevant code and incorporate it in your project.
What is the required JDK and also the required GWT version..
I have jdk 1.5.0.19 and I tried with gwt 1.53 and gwt 1.64
It is complaining with this error
javac: invalid target release: 1.5
JDK 1.5.x and GWT 1.6.4.
Are you sure you’re using JDK 1.5 and not JDK 1.4 in your build? Please run ant with the “-verbose” flag, and post the entire error message.
excuse my last post.. I just realised that it was a classpath issue.. but I was curious if I can use jdk 1.5 and gwt 1.5.3
Yes, JDK 1.5 with GWT 1.5.3 is also supported.
The samples in the SmartGWT 1.1 distribution use an ant build file that is based on GWT 1.6.4. You’ll just have to create an equivalent project based on GWT 1.5.
Edit : SmartGWT 1.0b1 did ship with maven based project files for GWT 1.5. So if you really want to use GWT 1.5, you can download the SmartGWT 1.0b1 distribution from here and have a look at the samples that were based on GWT 1.5 and maven. Note that in SmartGWT 1.1 we are using the much simpler ant based build file with GWT 1.6 instead as the gwt maven plugin does not play well with GWT 1.6 and the Google’s GWT Eclipse plugin.
Finally Success.. Thanks for your help..
I finally got it to work using gwt 1.6.4 (the built-in) example.. from the command line
It took a few minutes to load.. for a minute I thought it still was not working.
I had to disable a command XstartOnFirstThread from the build file.. Should I have to do this? It would not compile unless I did that.
Also, I have been trying all this time to get this working in eclipse. Before I ran across smartgwt I was using a cypal studios plugin (regular gwt) and eclipse and all worked well, but I have not been able to get this working in eclipse (jdk1.5 and gwt 1.5.3)..
Great!
Launching in hosted mode does take a little time because its running in Java emulated mode, and hasn’t compiled to Javascript yet however when you deploy the war (with compiled javascript), it will load up fast.
Yeah, that XstartOnFirstThread arg in the build file is required only for JDK on OSX. We’ll add a conditional check in the build file on the next release. So removing that is fine.
With GWT 1.6.4, you are recommended to use the GWT Eclipse Plugin that is released by the GWT team instead of Cypal Studio. We’ll try to ship eclipse project files for the samples in a future release to help users get started more efficiently.
I have been able to run this using the ant build file with no problems now, but I really need to get it working in eclipse. I have been using eclipse for years and all my old code is there, etc. I wanted to get the example working in eclipse and then start expanding into a full application. If you could provide some guidance, it would be appreciated. I am now using the google plugin (as you stated) and gwt 1.6.4.
actually.. this is the error : SERVICE_UNAVAILABLE
It is running in eclipse now..
The service not available error was due to this error:
org.apache.commons.logging.LogConfigurationException: No suitable Log constructor
and after much searching I found this post..
http://dev.eclipse.org/newslists/news.eclipse.webtools/msg16141.html
and added : -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
Also.. I found that these 3 files needs to be copied to the /src directory
log4j.isc.config
hsqlserver.properties
server.properties
They were found in the /war/WEB-INF/classes in the sample file
I am curious.. why -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog is not needed at the command line using ant..
Also.. I’m doing some things I did not have to do before..
Before.. using the cypal setup.. all the jar files I added to lib directory were auto added to the build path and resolved any import errors.. Now I had to add the jar files one at a time, even though they are in the lib directory (now in a new location)..