I have spend more than one day trying to create a very simple hello world application in GWT but I am not being successful. I am trying to get a hello string from the server through RPC and display it on the client.
Thanks
Download a fresh copy of Eclipse Helios for java EE
Install the appropriate GWT Eclipse plugin
Start Eclipse, go to File->New Project, search for Google/Web Application Project
Project properties, Run As... Web Application
At this point you should have a fully functional GWT application.
Related
I believe this is specific question regarding Vaadin so if anyone who has an experience with Vaadin can help it will be great.
I am new with Vaadin framework. I worked more then 25 years as Oracle Developer and also wrote some Java programs.
My company is actually migrating Oracle Forms application to Java. As a user User interface layer we are using Vaadin and HTML5
I have installed Eclipse IDE for Java Developers Version: 2021-03 (4.19.0) on my Oracle Vbox virtual machine ( Ubuntu 18.04.3 LTS)
Also I have added tomcat 8 server to my Eclipse workspace.
Actually I am trying to create my first project based on this document https://vaadin.com/docs/v7/framework/getting-started/getting-started-first-project but I am already facing some issues :)
I have selected Vaadin 7 project for a new project .
select Maven Archetype ==> Single module Application
window => specified Archetype parameters and clicked finished
After I have selected the project and Run As Maven Install and also compiled Vaadin themes.
Here are the issues I am having:
When I compare my project hierarchy with https://vaadin.com/docs/v8/framework/getting-started/getting-started-first-project/#figure.getting-started.first-project.exploring I don't see JavaScript resources. It's important because my first task will be adding JavasScript to my application.
When I am running the project as explained in the document:
"Starting your application is as easy as selecting myproject from the Project Explorer and then Run › Debug As › . Eclipse then opens the application in built-in web browser"
When I select run and Debug the Debug on Server option is not available ( only Java application , Maven Build etc)
So I have tried another option: right click on Tomcat Server => Add or remove and I got the message: there are no resources that can be added or removed from the server
Also tried : Properties -> Projects Facets and check Dynamic Web Module but this doesn't help either
When I am trying to run the project I am getting the message "The selection did not contain any resources that can run on a server"
fre
org.eclipse.wst.common.project.facet.core.xml
I have also created the new Vaadin 10+ project with a "Base Starter for Vaadin" added Tomcat 8.0 Server ( maybe I should use Tomcat 9) and
Getting the message "the selection cannot be run on any server" when trying to run the project.
Any help will be highly appreciated
Note that Vaadin 7 is no longer a publicly supported version. If you are starting a new project, you may want to start with the latest LTS version 14.
If you have a Spring Boot-based app (default), you can run it either with mvn spring-boot:run Maven goal or by right-clicking the Application.java file and running it.
This documentation page outlines the steps for importing and running a Vaadin app in Eclipse: https://vaadin.com/docs/v14/guide/start/eclipse
I am creating a gwt application as following steps:
First install gwt plugin in my eclipse(Helios).
Create GWT project
Add Dynamic web plugin
going to property page of the project
project Facets tab
Select Dynamic Web Module and java
ok to apply changes.
Write code
and i try to run on server tomcat7 then it shows resources not available.But when i run as internal server of gwt as just right clicking on project and selecting run as web application.
then it run successfully. so please help to run my application on tomcat server.
Thanks
Rahul
Did you Compile your Application? (GWT Compile Project)
You can then run this Ant buildfile and deploy the WAR file on your Tomcat Server.
I need to create a web based project where I will use java codes to do the back-end processing and database connections. So I need to write my code in JSP. I already installed tomcat.
But in Aptana i do not get the option "New Dynamic Web Project". Which i have created JSP projects previously. Any one knows how to add it or what toold i need to install?.
I'm not a fan of Aptana; in my experience it's a bloated tool that tries to do too much and does nothing particularly well. I would just get the Eclipse IDE for Java EE Developers package from http://www.eclipse/downloads and use that.
In my eclipse web application I made a Web Project and a Library Project. The Web Project referenced the Library Project.
When I started the Server, every time I change a code in the Library Project and build it. The server wants to restart and it does not redeploy by the Web Project only. I do not want to restart the server because it takes a lot of time waiting the startup of the server.
Another is I am developing portlets using Liferay Portal and every time I change the Library Project, the auto-deploy of Liferay comes in but the Library Project Jar is locked and resulted to crash the portlet and did not deploy it until I restart the server.
Please Help!!!
In Java EE perspective find "Servers" tab at the bottom, delete your EAR out of there.
Try JavaRebel
If you install the nightly build of Liferay IDE (eclipse plugins for Liferay) it has support for delta-deployment where after the initial deployment (full deploy) it will only deploy the delta or just the individual files that you change as you save them (a single JSP or CSS file, etc).
I am new to GWT. I have developed a GWT application in version-1.6.4 and it is working fine. Now I want to integrate with that project in existing Java EE application. I don't know how to go ahead.
Where to copy the GWT source code in this existing Java EE application? I am also using RPC in GWT.
Can anyone provide help on this?
GWT is just a set of javascript and HTML files, so the most basic form of integration is just to put them in a folder in the same place your as your web pages go.
One step up from there would be to integrate the gwt Compiler in with your build process. If you use Netbeans there is a good plugin called GWT4NB that will handle all of this process for you, so that when you build the WAR of your project it will build the GWT portions of it as well. There would probably be something similar for Eclipse. You could also do all this by hand using maven or ant.
You would tell the compiler where you want it to put the generated files, which again, would be in the same location you put your web pages for your WAR project. The RPC side of it will still work just fine no matter where you put the files.