Hi Ashwani,

You have two parts in a GWT application :
1) Client part :

   - User interface ( panels, menus, grids, tree etc....)
   - javascript generated by the GWT compiler from your java client code

2) Server part :

   - Servlets which receive requests across RPC calls from the client
   - any logic business part for your application ( classes, packages,
   external java framework etc...)

So, you should have two package e.g com.myapp.client and com.myapp.server.

In Eclipse, add mysql connector reference  ( for me it's
connector-java-5.1.14-bin.jar ) in your project settings, as you do for
other java library.
In your server part code, connect to your database as you do in other
standard J2EE application.

By proceeding like that, you ensure having a standard behaviour for your
application.
You can test your applcation with your database in DEV and TEST mode.

When you deploy, the client part will be compiled in javascript to manage
the UI ( DHTML scripting based ). The generated javascript will make the
AJAX calls to your server part and feed your UI components as you decided in
your client code.

Don't forget to put MySql connector jar, in the correct tomcat installation
subfolder.( for me it's
/usr/share/tomcat5.5/common/lib/mysql-connector-java-5.1.14-bin.jar ).

I'm surprised that you can't debug your code !!! It should work, you should
be abble to debug your application. I think something is missing to your
project settings.

I hope it helps.

Regards.

Karim Duran


2011/9/6 Ashwani <[email protected]>

> Hi,
>
> I was developing simple app using embeded jetty server in GWT Designer
> till i got stuck when i was connecting to mysql db.
> The same code for connection works very well, if i run it as java
> application. But was failing when running using embedded server.
>
> The I decided to put the app on tomcat and then develop using it.
> Now the connection works but i face issue while development:
>
> 1) The option Debug->Web Application (running on external server) does
> not work. i.e break points are not hit.
> 2) Everytime i add code, i have re-deploy my application.
>
> How can work properly with Tomcat as server and GWT Designer as IDE ?
>
>
> Regards,
> Ashwani Kr Sharma
>
> --
> 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.
>
>

-- 
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