open the browser after deploying ear project on wildfly - wildfly

I created a multi-module-maven project called mission-man.
After right clicking on mission-man-ear or mission-man-web > Run As > Run on Server, the welcome page welcome.xhtml is displayed with success.
My problem is: I'd like to display the welcome page with another method which is showing welcome.xhtml after drag and drop the mission-man-ear on wildfly.
In other words, I'm looking to show the welcome page welcome.xhtml automatically after drag and drop the ear project on the server.
Have you please any idea about solving my problem ?. Any help will be so appreciated.

Eclipse is open source, and JBoss Tools (assuming you're using it) is open source.
Therefore you can:
learn SWT
checkout the code for Eclipse and JBoss Tools
figure out how they work
figure out how to add the drag n drop functionality that you want to the existing code
modify the Eclipse and/or JBoss Tools code to suit

Related

missing profile for a server adapter in Eclipse

I am trying to set up a dynamic web project in Eclipse 2018-12. Within the Java EE perspective, the lower panel is hosting several commonly used views (markers, console, snippets, search ), among which the Servers view offers the possibility to bind the current project to an already existing server.
If no such server is defined, this view is showing a quick link to "add new server. When one is about to define a new server, a creation wizard takes off, and the first window you get is the profile select window. I would like to set up a Tomcat server, but my initial list does not include Apache Tomcat at all.
Question: how am I supposed top populate the initial list with a desired web server profile template ?
I have searched for Eclipse download links and the first link (and the only one shown there) on the Eclipse Foundation page was Eclipse 2018-12. It seemed pretty good at the time. Now the same page shows Eclipse 2019-06 (64-bits).
Upgrading the current intallation with the JST Server Adapter Extensions did the job nicely. Thank you nitind !

Setting up hot deployment with eclipse and Jboss

I am used to work with rails locally where I can use any text editor I please while I have the server running. If I make changes to a file Webrick, it will pick it up and I am able to see the changes on the page.
Can I do this with eclipse?
I am using Atom for html editing but every time I save the changes and reload the page, the changes are not done. Any ideas?
Is your project an Eclipse Web project associated with a server in the Eclipse Servers view? If so, double-click on the server and you'll be able to tweak a few thing. The interesting option would be Automatically publish when resources change under Publishing.
PS: if you're using Java Enterprise or JBoss technologies, you can add JBoss Tools on top of your Eclipse IDE, it features some features and default settings that should make things simpler for you.
I've found the answer by going to eclipse in Preferences > General > Workspaces > Refresh using native hooks or polling
This way I am able to edit html files with Atom. Hope it helps someone
Question for reference: eclipse, refresh files edited by external editor

Eclipse Plugin - XML Editor

I've followed this tutorial:
Eclipse Plugin
This tutorial explain why create a HTML Editor.
I need a Text editor,just for auto-highlight some words, anyway I thought this tuto should be a good one to start with.
The thing is that I created the Plugin project and the only thing that I changed it was the extension "pat" instead "html, htm", just that. After that I created a .pat file, but eclipse doesn't open it with my plugin, and my text editor is not in the editor's list.
Any suggestion??
Let me know if you need more information.
My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.
If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.
To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.

Eclipse plugin sample could not be run

On my Mac computer, I follow the tutorial on this page to get the Taipan example run, but still failed so many times.
Switch to the Plug-in Development perspective and open the models folder within the org.eclipse.gmf.examples.taipan project. Explore each of the models found hereand their element properties. You'll notice that there are full and RCP versions of the generated Taipan examples to explore.
When I try to run as "Eclipse application", it launches a new eclipse app but the dialog box Examples does not have the 'Taipan Diagram' as it says:
create an empty project and a new 'TaiPan Diagram' found in the Examples folder of the New dialog
What are the possible causes? Someone helps me to solve it out?
I'm assuming that your plugin is working fine and doesnt show compilation errors?
Then the most likely reason is that you havent chosen your plugin to be active in your launch dialog.
I answered a similar question with this:
My guess is that you have just created the plugin, but aren't running it in your current Eclipse instance. That can be verified by opening the view "Plugin registry". That will show a list of all plugins, see if the plugin you have created is in that list.
If you click on the run button in Eclipse you will open a run configuration dialog. In one of the tabs, you get to choose what plugins should be available. Make sure your plug-in is selected. This will start up a new Eclipse instance that will run your plugin.
To make your plugin be a part of your ordinary Eclipse installation, you will need to export it to a jar and copy that jar to the dropins catalog.

How to configure Ext GWT with GWT Designer?

I have problem with configuration GXT with GWT Designer. I have all new releases of Eclipse, GWT plugin and GXT and cannot configure GXT to work with GWT Designer. I setup my project so that I can compile my GXT project and run it in browser.
However I can't design in GWT Designer. I don't see any GXT widget in GWT Designer.
All forums reffer to Google Web Toolkit -> Configure for using Ext-GWT (GXT) but I don't have this option.
I have done all steps defined in setup.txt of GXT.
The only thing that is not working is GWT designer do not see GXT widgets.
Regrads,
Folks:
It simply appears that GXT 3 is not supported in the latest version of Windowbuilder. Period. All the instructions given in this thread work well for GXT 2, but GXT 3 has radical differences (different styling mechanisms, for one thing!) that Windowbuilder cannot seem to handle.
This is a bug that needs to be fixed in Windowbuilder.
I see this is an old article, but might still help people with the same problem.
If you right click on your gwt.xml file, the options are visible, if you click on your project, the options are not visible. That's the problem I was having.
I had this problem. I solved by installing:
(If you are using Eclipse Indigo)
http://dl.google.com/eclipse/inst/d2gwt/latest/3.7
Just check for the version you have. That should do the trick.
"select your GWT module file and right-click to select the Google Web Toolkit > Configure for using Ext GWT (GXT)" http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html
Read setup.txt in ext-gwt zip:
STEP 1 -> Create a Google Web Application Project project within Eclipse.
Copy the contents of the /resources folder in the download to a {foldername} location within your war folder.
Substitute {foldername} with the name of the folder you've created for resources within your war folder.
STEP 3 -> Add the following stylesheet to your host page.
STEP 3b -> If you are using Charts, add the following script to your host page.
STEP 4 -> Add the following entry to you projects module xml file.
STEP 5 -> Eclipse Setup (should be similar for other development environments)
These instructions assume you have a existing project and launch configuration.
Add gxt.jar to the project.
a. Right click on project name in 'Package Explorer'.
b. Select 'Properties' from content menu.
c. Select 'Java Build Path'.
d. Select 'Libraries' tab.
e. Add the gxt.jar either with 'Add JARs...' or 'Add External JARs...'.
Add GXT jar to launch configuration.
a. Choose Run / Open Run Dialog.
b. Select your appropriate launch configuration under 'Java Application'.
c. Select the 'Classpath' tab.
d. Add the gxt.jar to the classpath.
that happened to me too. I had to install WindowBuilder Pro from the update site (you can found it here) and after that the "Google Web Toolkit > Configure for using Ext GWT (GXT)" option appeared.
Support for 3rd party components like GXT and SmartGWT is only available in the full version of GWT Designer available here...
http://code.google.com/webtoolkit/tools/download-gwtdesigner.html
Install the full version and then follow the instructions here...
http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html
I just had the same problem. The only way I got it working is this:
I installed the full version of GWT designer as recommended by Eric Clayberg's answer (http://code.google.com/webtoolkit/tools/download-gwtdesigner.html)
However, the instructions at http://code.google.com/webtoolkit/tools/gwtdesigner/features/gwt/gxt.html didn't work, because there simply isn't any "Google Web Toolkit > Configure for using Ext GWT (GXT)" for me either.
So instead, I created a new Project, using: New Project > WindowBuilder/GWT Designer/Model/GWT Java Project:
I went through the Wizard, clicked Finish, and then it asked me about a GXT installation. The important thing is: You must select this now, I don't see any way to add this later. So navigate to a GXT installation folder. In that folder, I had to rename my "gxt-*.jar" to "gxt.jar" first, otherwise it couldn't be found (!).
Now, when opening a Java file using "Open With > GWT Designer", and selecting the Design view tab at the bottom of the editor - voila, the GXT menus appear.