Run GWT application in super dev mode - java

I'm trying to run GWT application in super dev mode with maven via mvn gwt:run-codeserver. This plugin gave me to a localhost page http://localhost:9876/, I bookmarked the Dev mode On as suggestion and then access the link provided in the page.
Then I clicked Dev Mode On on bookmark bar, however I got messages
Can't find any GWT Modules on this page.
So how can I run the application in super dev mode, do I have to deploy the app in a web server like Tomcat, JBoss ...

Yes, you do need to deploy your application first.
See https://stackoverflow.com/a/18333050/116472 for a step-by-step guide.
GWT 2.7 will introduce a way to launch your webapp in an embedded Jetty server (the same as in DevMode) while using SuperDevMode, and without even requiring the bookmarklets. See http://www.sencha.com/blog/getting-started-with-gwt-super-dev-mode/ (note that this is already available in the 2.7.0-SNAPSHOT that are deployed nightly)

Related

How to run web application on testing environment

Can I run or deploy java web application inside selenium, without having to first deploy it in any web container.
So, I want to deploy web app in selenium testing environment. Can it be done ?
Thanks.
You cant deploy application inside Selenium.
What you are expecting is CI/CD pipeline, this you can achieve using any tools like Jenkins/Cruise Control etc. In this you need to maintain a separate environment(where you have to host your application) in which you will be executing your selenium tests, and only if those tests gets passed you can promote that build to other environments like QA/UAT etc.
Selenium is for handling your browsers and not for hosting a website.. It's not a webserver software like Tomcat, Apache.
Selenium expects an web URL to launch the application, which means, you need to have a web application up and running either hosted locally or in remote web sever..

How to use Eclipse for Spring REST development with Brackets like editor for JavaScript/front end development?

We have two separate web projects for our application
One for Spring REST services
Other for AngularJS, the front end of the application.
We have been using eclipse for development of both and also for running those locally on tomcat server.
It is a great deal of pain to view updates to JavaScript and CSS part of the second project from eclipse, because it requires restart or publish of the tomcat server every time which takes a long time.
So I wanted to use eclipse for development of REST and front-end development editor like Brackets for development of AngularJS/JavaScript and CSS. But then they run on different ports causing Cross Site requests errors, and I don't want to write any CORS filter like this for this purpose.
Is there any better way to get these tools work together ?
Spring Tool Suite (STS) uses the pivotal tc server will automatically deploy resources without redeploying the application. Download it and give it a go, STS is just eclipse anyway with different branding. Maybe you can just download it, copy the pivotal server folder to your eclipse folder and add it to your servers view in your eclipse version. One thing I have noticed is that the application must be running under a context for this to work, deploying to root does not automatically deploy resources for some reason (at least this was the case when I was using the previous vfabric server about a year ago).

Java Code in Azure cloud service

I have java code (that generates jasper reports) and I couldn't convert it to .net and I want to run it on a "Cloud Services" how can I run java code into cloud service ?
any help will be appreciated
#Dhana provided a link to a tutorial for pushing a Java app to Azure in Cloud Services (worker role). You could also push to a Web role but it makes less sense since IIS runs in a Web role, and you'll probably want Jetty, Tomcat, or JBoss for your web server.
If you're running a console app, that's fine too - just launch it from a startup script or the OnStart() in your workerrole.cs.
You'll need to install the tooling into Eclipse. At this point, you'll be able to build Azure deployment packages, in a similar way to Visual Studio (The Azure plugin for Eclipse only works on Windows though). Part of the packaging sets up links to the appropriate JVM and web server package, as well as your own jar files.
If, say, you have a console app that listens on a port, you'll just need to make sure you have an input endpoint set up for the port you want to expose.

GWT application run without browser plugin

How can I run gwt application without any browser plugins?
You have to deploy it into a server (such as Tomcat or Jetty) and run it from there. this is called Production Mode.
You can check The Official GWT tutorial for more info.

What are the Steps for Debugging Java Web Application?

I joined a project which has been already developed and its an Web Application deployed on Tomcat Server.
I have configured the Web Application on my local Tomcat Server and it is running fine. I want to start debugging the Application but I am not sure where to start from and how to debug an Java Web Application from Eclipse and so my question is
Q: How to Debug Java Web Application which is running on Tomcat Server on Local Machine in Eclipse Environment {Pointers to useful resources or other steps would be highly appreciated}?
There are at least a couple of ways to do this:
A quick search turned up a tutorial to use remote debugging in eclipse with tomcat to connect eclipse to the java process running tomcat.
If you create your project as a Dynamic Web Project using eclipses Web Tools Platform plugin then you can deploy to and debug tomcat from within eclipse easily.
Just stop your server from normal start mode and click on debug mode. Soon, after the server shows debugging,synchronised, continue using the web apps as you do normally. But before that, you must provide breakpoints and you can see the results that you need.
Works for me.
I have had to do this a few times. Often it is not convenient to create a Dynamic web project to debug a web application in tomcat. This technique is fairly simple but requires some configuration in tomcat and then using Elcipse (or netbeans) to attach to tomcat when its running.
http://wiki.apache.org/tomcat/FAQ/Developing, in particular
How do I configure Tomcat to support remote debugging? and
How do I remotely debug Tomcat using Eclipse?
First get the Java EE edition of Eclipse
You then need to have the Eclipse project containing the WEB-INF folder be a Dynamic Web Project. Then the full tooling becomes available and allow you to work with your projects inside any server including Tomcat. The trick is to locate the Server view pane, and right click to add a new Tomcat server adapter.

Categories