Friday, April 27, 2012

Re: Difficulty to run simple GWT application

Hi Sebastian,

i am creating application as you suggest but when i deploying it on
tomcat server then it shows resources ins not available.so now what
should i do? help me .
Thanks
Rahul

On Apr 26, 7:38 pm, Sebastian Gurin <sgu...@softpoint.org> wrote:
> Hi Rahul, this is what I shlud do for getting started.
>
> first of all do not use tomcat yet, first feel confortable with the GWT+eclipse
>
> 1) File->New->(Google)New Application proyect - create your gwt web application project. Here use Google Web toolkit only, don't use Google App engine yet.
>
> That will create you a new project with some interesting things:
>
> a) your.proj.YourProject.gwt.xml - this file is called a gwt module definition.
> b) packages client, shared, server
> c) a root folder named "war" with a html file inside. This war folder is the web application folder (what you put inside webapps in tomcat - but not yet.)
>
> in client package that is where your java that will be translated to javascript by gwt are, there is two Greeting* classes (dont worry about these yet) and a third class named YourProject.java (or whatever name you give to your new project). thi s class is your entry point.
>
> the project has a sample applicatoin ready to be executed, right click on your.proj.YourProject.gwt.xml and run as "Web application". The Developer mode view will be shows and after the app is loaded, it will show you an url likehttp://127.0.0.1:8888/Test12.html?gwt.codesvr=127.0.0.1:9997. Open this url with firefox (version <=10) or with chrome. It will ask you to install a browser plugin, do it. When the plugin is installed reopen that url and you will be executing your sample webapp using the GWT hosted-mode. You can make changes in the java sources, save then and reoloading the page will reflect the changes. Try to change something...
>
> Now what about putting all this on a tomcat? its easy, first compile your project like this: ijn "package explorer" view, right click your new project -> Google -> GWT Compile... -> compile. When this is finish, GWT will put in "war" the entinre webapp. just copy or link the "war" folder to your tomcat's webapps folder and rename it acordingly, for example, "yourproject". Start tomcat and go tohttp://localhost:8080/yourProject/yourProject.html.
>
> I have ant scripts for doing all this with ant if you want I can share.
>
> hope this can help you ...
>
> On Thu, 26 Apr 2012 07:06:04 -0700 (PDT)
>
>
>
>
>
>
>
>
>
> Rahul Sharma <rahul.sharma1...@gmail.com> wrote:
> > I am making gwt application as following step: 1. Firstly i install
> > gwt plugin in my eclipse(Helios). 2. now i am creating dynamic
> > project. 3. now i am adding gwt plugin through goto to property page
> > of the project, select google-webtoolkit, check "use GWT", then go to
> > google-web application, the directory name to "web-content". 4.now i
> > am creating gwt module in my project then create entry point class
> > then html. 5.now i am creating a button in onModule method of entry
> > point class.
>
> > and then i am running application in tomcat server just right click on
> > project and select run as web application(run with tomcat server). As
> > result of this I am getting a blank page on browser? There is no
> > excption in server log. I am not able to debug where i am doing wrong?
> > Please help me to sort out this problem.
>
> > I am not using google web application because i was getting difficulty
> > to create war file. As i solution of this I got the above process to
> > develop GWT application.
>
> > Thanks Rahul
>
> > --
> > You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
> > To post to this group, send email to google-web-toolkit@googlegroups.com.
> > To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
> > For more options, visit this group athttp://groups.google.com/group/google-web-toolkit?hl=en.
>
> --
> Sebastian Gurin <sgu...@softpoint.org>

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment