Hi,
I am actually experimenting with GWT to replace our UI. (We actually
use struts) I like GWT a lot so far.
I thus pushed the experiment further by trying to integrate it in our
solutions. I must work within a few parameters set by my employer.
Among those, it must be possible for my team to debug/trace GWT stuff
(Take advantage of the devmode) but while the main application still
runs in tomcat 5.5.26. (-noserver switch). All of this inside the
same Eclipse.
I came close to get this to work, really close, but here's my problem:
The tomcat ClassLoader loads tomcat classes found in gwt-dev.jar
instead of reading its own jar files. If both those tomcats (Mine and
GWT's) were of the same version, I would probably not even know
there's a problem.
This is how i am set up:
1. I have a tomcat installed outside of my project, say, d:/
tomcat-5.5.26
2. I have an eclipse project which was created fully by the GWT
wizard. (say, d:/projects/myproject)
3. I activated the AJDT builder in this project.
Up until here, everything works great, but inside Google App Engine.
(no -noserver switch)
4. I deactivate the Google App Engine (add the -noserver switch)
5. I create a server.xml inside my project, rig everything up
6. I create a Run Configuration this way:
6a. Main class: org.apache.catalina.startup.Bootstrap
6b. Working directory: d:/tomcat-5.5.26/bin
7. I add bootstrap.jar in the classpath of my project.
I try to launch it, bang problems arise because of the mixup. I tried
tampering with the classpath in my Run Configuration to eliminate GWT,
and my tomcat loads allright. (Obviously the GWT classes on the
server-side fail to load since they extend RemoteService, which,
without GWT jars, is not found of course)
I suppose that if the tomcat jars were earlier in the classpath, I
would not have this problem?
A solution for me to try would be to open gwt-dev.jar and erase tomcat
classes. I don't like this solution. Would it even work? Is there a
better way?
Thanks a lot!
Bob
--
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-web-toolkit?hl=en.