Hi Dan,

Yes, to get it to work in web mode (i.e. deployed) you need to a) make
sure your web.xml file has the correct RPC servlet mappings, and b)
you need to deploy all the static HTML/js/CSS etc and the java classes/
libs in the right structure.

The simplest way (IMO) to deploy is to use an Ant script to build a
WAR file. A WAR file is basically a zip file that contains all the
resources necessary to run a web application including a GWT one, and
all you have to do is toss it into Tomcat's webapps directory and off
you go. Ant has a convenient WAR task that will build one for you with
the right structure providing you give it a few relatively simple
instructions.

Personally I always write my own rather than let my IDE do it for me
because that way that way you get a bomb proof build/deploy that is
immune from local IDE settings/different IDE's etc and you can teak it
how you want. I would search the group for posts about "web.xml" and
"ant build.xml" etc to get up to speed on these questions (they have
been asked once or twice before, plenty of examples) and see how you
get on.

Yes, you need a java servlet container for your your RPC servlets to
run JDBC code. It doesn't have to be Tomcat, any Java EE application
server or servlet container will do. If you don't have such a thing,
you could use HttpRequets instead of GWT RPC using JSON as your wire
data transfer protocol. If you had a php or python server for example,
this is a popular approach I believe.

gregor



On Feb 14, 2:25 pm, Dan <[email protected]> wrote:
> Hi Guys
>
> I'm relatively new to web development, I have a lot of experience with
> C++, C, Java a bit of php and Symbian C++.
>
> Would anyone mind If I asked a couple of generic servlet / war file
> questions?
>
> I have started to created a site using the google web toolkit (GWT).
> So far my server side my code inserts and selects from a mysql
> database using JDBC.
>
> Having "built" everything where the appropriate javascript is created
> and all runs fine and accesses my DB using the tomcat server that
> comes with the GWT I want to make sure I am going to be able to deploy
> the site somewhere.
>
> http://www.pimtext.co.uk/gwtTestshows everything I have placed on the
> server.
> If I go 
> tohttp://www.pimtext.co.uk/gwtTest/build/gwtOutput/pimtext.Start/Start....
> it is not possible to add a new user because something is wrong with
> the set-up - the client side does not appear to be able to talk to the
> server side.
>
> I hope it would not be to ambiguous to ask where you think I might be
> going wrong? My eclipse plugin (cypal) for the GWT also has the
> ability to build a WAR file for me. What is a war file and is it
> appropriate to me.
>
> The site is for a university project. I am hosting at eukhost and not
> on my university servers as they do not have tomcat servers for
> student use - are tomcat servers the only real way to carry on using
> JDBC?
>
> Everything works fine from my computer when using the tomcat server
> that comes with the GWT.
>
> Many Thanks for any help you can provide.
>
> Dan
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to