Deploying GWT application to Godaddy - gwt

I have read through all I can find but doesn't just work out for me.
Does anyone by chance know a detailed step-by-step instruction to deploy GWT to external domain servers like Godaddy?
I am using maven to manage my app. I can run it in dev mode but when I try to copy over to tomcat, does not work.
Please help.

After more and more attempts leading to frustrations, I decided to host my GWT app on GAE (Google app Engine). It is easier to deploy to GAE than trying to setup GWT to work on Godaddy services.
And for mvn related issues, I recreated my app using GWT Maven Archetype version 2.3.0-1
I pop the .war in webapps directory of tomcat and voila ... It works
Cheers
PB

Related

How to run/debug java web service project in eclipse

I have a Java Web Service project which was just handed over to me by a colleague who just resigned (no one is assisting me in my new company). Im new to Java (J2EE) and my background is .Net + frontend + azure so I am pretty much very confused with setting up and running the java project. Also, Since my background is .Net Im referencing everything with how things work in Visual Studio from running a project, setting up a project to setting up and debugging a WCF project which I realized now is very different from eclipse + java.
I would really appreciate if someone could explain to me how I can run this project which is supposedly a java web service (as I was told)?
First I have a project that is like this:
Im assuming that the project boxed as blue is the webservice (and the rest are just libraries)? Is this correct? if so how do I run and debug the project using eclipse
Second when I click on debug as -> debug on server this is all I see:
Another colleague told me to install JBOSS (I haven't installed a server in eclipse) because that is what they used. Is there good documentation (step-by-step guide) on how to install JBOSS to run in eclipse. Im assuming that JBOSS + eclipse is like IIS express + Visual studio. Are there also other alternatives to JBOSS + eclipse like perhaps tomcat + ecplise that I can configure.
I really really find it hard to setup the java web service project in eclipse I have little to no prior experience with java j2ee programming especially with web services so any clarifications with my questions would be much appreciated. To sum up:
How would I really know that the project is a java webservice?
If so, how do I run the project and host the project using debugging in eclipse with tomcat or jboss?
I would appreciate if anyone can point me to the right direction of figuring out the source code
From here we can only guide you, you will have to go through some tutorials to understand how java projects work.
Your project is a webservice project according to your web.xml file because its having context params for rest.
the context param sets a front url to your webservice which in this case is gametime.
Check these tutorials and you will understand how it works
http://www.mkyong.com/tutorials/jax-rs-tutorials/
Create simple examples given in the above tutorial and then you can execute your's program
Jboss is a application server which we use to run our app.
You can install jboss in eclipse or you can use it externally also.
To install eclipse and jboss you can follow the link
http://theopentutorials.com/tutorials/java-ee/installing-jboss-tools-in-eclipse/
The other option is to download eclipse and jboss seperately
and use them.
Go to jbosshome/bin
If you download both of them seperately
then in that case for jboss
Invoke the add-user.sh or add-user.bat script. ...
Choose to add a Management user. ...
Choose the realm for the user. ...
Enter the desired username and password. ...
Choose whether the user represents a remote JBoss Enterprise Application Platform 6 server instance. ...
Enter additional users. ...
Create users non-interactively.
After this go to eclipse and follow steps of below link to add jboss to eclipse
http://www.mastertheboss.com/eclipse/jboss-eclipse/jboss-and-eclipse
A Java web application among other things has a predefined directory structure including folders named WEB-INF, WEB-CONTENT etc.
On how to deploy a web application to Tomcat via Eclipse you can follow the steps in this tutorial.

How to deploy a Glassfish application on CloudBees

I'm trying to deploy my Web application running on Glassfish on Cloudbees.
Unfortunately I didn't find any documentation or tutorial.
I'll be very thankful if anybody can explain me the best way to do this. I'm lost...
Thank you!
(PS: I'm working on Netbeans)
To deploy, you need to right-click on the project in the NetBeans project list and click "Deploy". Obviously you need to ensure that the properties for the project are pointing to the correct deployment location and directory.
To get a glassfish container at runtime you'll need to setup your application to run he related clickstack. You'll need the CloudBees SDK installed, and run this command :
bees app:deploy -a DOMAIN/APP_ID -t glassfish3 hello.war
Another option is to use cloudbees clickstart (see clickstart icon top left on cloudbees web toolbar) and select the glassfish one. Then commit your own code in the generated application skeleton, or change the generated jenkins job to point to your existing SCM
Please note this container is a community work in progress, doesn't provide all the features you can have on the tomcat6 or jboss7 runtimes. If your application isn't container dependent, those ones may be a better option then.
My application is working, actually I had to create an application using JavaEE6 in configuration (it's a jboss server in reality).
I configured the persistence.xml and added a cloudbees-web.xml.
I also deleted some hibernate and mysql jar(s) and it has worked!
I hope that can help others cloudbees developers!

difficulty in deploying struts 2 application

I am a beginner with struts2 and I have few struts2 projects downloaded from a website, but they all are created as simple java projects and not as web-projects, so I am unable to deploy them on my Tomcat or JBoss AS server through Eclipse.
How can simple java projects be deployed on a Java EE server?
Your best bet is download sample applications from Struts2 official sites and deploy them on any of the server of your choice.
Those sample application comes with all required dependencies as well will give you idea about structuring of S2 application as well flow and configurations
I created a structure similar to the one shown on website and manually added all the files required and it worked.

building development environment for GWT with JBoss

I am using eclipse IDE and want to build up a development environment for creating an app.
I have an EJB module on Jboss5 and would like to add a GWT project.
I could see that GWT during development is executed on it's development host mode, but the problem is that in this case I can not local EJB services deployed on my JBoss.
Is there anyway to overcome this challenge? how can I use the eclipse along with JBoss to develop, run and debug GWT application? I don't mind using ANT script in order to compile and deploy on JBoss, just need to know if this is possible (Also to debug the GWT application).
Thanks in advance.
Best regards.
There is a sample setup to use JBoss Tools with GWT and GWT Plugin. http://community.jboss.org/wiki/UseJBossToolsWithGoogleGWTPlugin
Strelok's sample page now recommends following the guidelines for creating a GWT project using a general Eclipse Web Tool Project approach.
https://community.jboss.org/wiki/CreateGWTProjectsWithJBossToolsAndEclipseWTP

Deploying WAR File to Glassfish

I'm just getting to grips with the NetBeans 6.9 / Glassfish 3 combo, and have developed a Java EE app consisting of a WAR module and an EJB module. Having played around with the EJB side of things for a while, I went back to run the web code, and started having problems.
When I try to run the WAR file, it fails to deploy, and the error from the server is `WEB0113: virtual server [server] already has a web module [MyApp-war.war] loaded.' But I haven't edited the web side code since I last ran it, and I'm rather puzzled as to what it's trying to do.
I've tried the usual things: restarting the server, undeploying and redeploying the application, but to no avail... so if anyone with any more experience with Glassfish has any hints, they will be gratefully received!
if anyone with any more experience with Glassfish has any hints, they will be gratefully received!
Open GlassFish's Admin Console, see if the application is listed and try to undeploy it from there.
Did you create and deploy an enterprise application (ear) containing the ejb and web module? I don't think you can then deploy only the webapplication since its already deployed inside the ear. You'll have to redeploy the ear instead.
I had the same problem. Restart of glassfish server helped.
What was interesting, the Applications list did not have the application. Apparently some glassfish/netbeans bug.
What I did was , i went to the admin console for my Glassfish server and I undeployed all the unused projects and redeployed the project that i was trying to run. And it worked!