Launch Web Browser After Tomcat Startups in Eclipse - eclipse

In my old Eclipse setup, I used to have a web browser launch whenever Eclipse builds my project and Tomcat finishes starting up. Now, on my new computer, I've lost that setting.
I was able to change which browser would be the default browser for Eclipse (Windows > Preference > General > Web Browser ). However, now after it says "INFO: Server startup in xxxxxxx ms", I have to manually open my browser and go to "http://localhost:8080/webapp_name".
Does anyone know how to make Eclipse automatically launch the browser after Tomcat finishes starting up? It's very useful particular for builds that takes minutes.

Do the reverse of this one:
how to stop Eclipse browser from displaying web page upon restarting tomcat?
I just turned off my auto browser open by having internet explorer in that setting, try with default for ti to open auto again.

Related

How can I debug a GWT project in eclipse?

I have a GWT-Maven project and I want to debug it. I have not any Idea about debug in development mode or production mode. so I am giving some step which I did.
I deploy the war file on tomcat6 liferay server.
now I set a break point on server side(its work perfect)
when I set break point on client its not workig.
so is there is any way to debug GWT client on development or production mode.
I'm not sure if I'm following you correctly, but GWT is compiled into JS. Take a look at sourceMaps, I believe that's what you're looking for.
You should use the debugger of your browser. Chrome is best for this.
Launch your GWT app.
Press F12 to open developer tools.
Select "sources" tab
In the tree on the left open "Title of your page (xxxx.html)"
Below this you will see source maps with all your packages.
Open the java file you wish to put a breakpoint in and set a breakpoint using Chrome.
Doing client side GWT debugging in Eclipse is afaik not possible. But for me the Chrome debugger is more than enough.
I think IntelliJ can do client side debugging for GWT from whitin IntelliJ itself (for the paid version of IntelliJ).

Worklight application builder never finish execution in OS X

I have created a test application (hello world and a button) using Eclipse and Worklight 6.2.
I have 3 environments: iphone, ipad and android.
My project also includes jQuery Mobile 1.4.4.
Everything is set up correctly (ADT, Xcode, Worklight).
When I right-click myApp -> Run As > Run on Worklight Development Server, I see on the right bottom of Eclipse "Worklight application builder running". The problem is that it never finishes...
What could be the cause? Any solutions?
Things to try:
Close Eclipse and kill the Java process via Applications > Activity Monitor
Close Eclipse and delete the your-workspace\worklightServerConfig folder
Then open Eclipse and try again to build the app.

GWT SuperDev - Can't find GWT Modules

I have followed the steps given on this page - getting-started-with-the-superdevmode
but I am still getting message - Can't find any GWT Modules on this page. I did some more googling but could not find any solution until now.
I am using GWT 2.6.1 and eclipse kepler 64 bit on ubuntu.
Here are the steps I did.
Created a new Web app project for GAE, using GWT 2.6.1 and GAE sdk 1.9.6.
Go to Run configurations. Create a new configuration for a "Java Application". Change the main class, Argument and add jar file as shown in the screenshot.
Check the apps .gwt.xml file. It already has <add-linker name="xsiframe"/>. I have tried adding devModeRedirectEnabled property also. It did not help.
GWT compile the project.
Run the application as Web application. Default jetty config serves the application at
http://localhost:8888/SuperDev.html.
I opened up this page in firefox. I can see the page content.
Launch the Java application configuration. It does compile again and gives a success message and tells me to launch
http://localhost:9876/
I opened it in firefox and it shows -
Dragged Dev Mode On to firefox's bookmark. And clicked.
I get the message - Can't find any GWT Modules on this page.
Following are the configurations for my superdev mode java app. Did I miss anything?
You need to click the bookmarklet when viewing your compiled web app.
The last steps should therefore be:
Dragged Dev Mode On to firefox's bookmark.
Switched back to my application at http://localhost:8888/SuperDev.html and clicked the bookmark
Once you have the bookmarklets, you actually don't really need to open http://localhost:9876 anymore (you'll find compile logs there, and can browser your code, including the code generated by GWT generators; so it can still be useful).
I tried to do it with Eclipse Oxygen, Java7 (for run application, for oxygen you have to have java 8), and GWT Eclipse Plugin 3.0.0.
In such an environment all you need to do is:
On project right click > Debug As > GWT Legacy Development Mode with Jetty.
PS:
you have to have address like this
http://127.0.0.1:8888/StockWatcher.html?gwt.codesvr=127.0.0.1:9997
NOT like :http://127.0.0.1:8888/StockWatcher.html
After openning addres you must additionally install the plugin in the browser - you will be asked for it
It work on IE11

Eclipse / Aptana 3 : Launching wrong browser

I just installed the Aptana Studio 3 plugin on my installation of Eclipse Juno, and attempted to use a portable install of Firefox to debug with, so that my general browsing install wouldn't get mucked up with a billion debugging features I don't need.
I set Eclipse's Window->Preferences->General->Web Browser to use this new portable install, but... it's still trying to launch my other install of Firefox. ("Please close down to complete installation" or whatever. I know the portable one isn't running.)
I just cannot get it to launch to the right browser. Firefox Portable is set up to allow multiple instances to be open, so I can get both my permanent install and my portable install to work at the same time, but Eclipse is trying to open the wrong installation.
I've tried restarting eclipse, closing Firefox , both internal/external web browser options on the web browser page, and even rebooting the whole computer. There are no other references to Firefox in the Eclipse settings that I can find.
... Help?
Apparently that particular setting only affects browsing in the integrated browser, not running and debugging web applications.
The setting that needs to be modified for running/debugging is in the run/debug configurations. Why that doesn't by default automatically use the default browser set in the preferences page is beyond me.
In order to get Eclipse/Aptana to open the correct browser when debugging and running web applications, do this:
In the Project Manager, r-click on the project and go to Run As -> Run Configurations... and under 'Web Browser' in the left pane, either edit the default one or add a new run configuration. I just replaced the standard 'Firefox - Internal Server' entry.
In the Web Browser field, either type in the full path to the browser executable (in my case FirefoxPortable.exe), or click 'Browse' and browse to the executable.
That should do it. and now it's doing what I would expect it to.

Eclipse open a new web browser tab on every build

I'm using Eclipse Juno (Java EE) + Tomcat and everything works fine but one thing is annoying. Every time when I press the run button, Eclipse opens a new web browser tab (I use chrome as external web browser). Is it possible to tell Eclipse that it should refresh the tab instead of open a new one?
Thanks and best regards
konze