Hot code deploy in intellij with websphere - intellij-idea

I am trying to accomplish the same in Intellij as in Eclipse, but I can't get it to work. If I use Eclipse with the Websphere plugins, I can change code anytime without having to manually redeploy or restart the server (websphere liberty).
In Intellij I followed the guidelines, such that I have an exploded webapp linked to websphere. Everything works fine except for the hot deployment. Whenever I change a simple line (e.g. a statement in a servlet) I have to manually press the redeployment button so that the server picks it up. My aim is to have code changes reflect immediately in my website without having to trigger anything manually. How?

Related

How to hotswap .xhtml files in Intellij with WebSphere

I'm migrating from eclipse to IntelliJ. In eclipse, when WebSphere servers are launched and I do changes in .xhtml or .xml (spring web-flow) files, changes can be seen instantly on web browser refresh and no server restart is needed.
An eclipse launch configuration is quite different there was a button "publish" that created project.ear.xml before server launch file which included paths to resources. Haven't found a similar option for Intellij, so using "ear exploded" (.ear not exploded is not the same thing in Intellij compared to Eclipse).
Now in order to launch servers in Intellij, I use "project:ear exploded" artifact which is being built before launch.
When the server is launched with Intellij and I do changes in ".xhtml" file no changes can be seen (hot-swapped), without server restart. In my server configuration, I also have chosen "On 'Update' action: Update classes and resources" (I assume that 'Update' action is build->build artifacts-> build new exploded .ear file). If I use run->update application->update resources it restarts server which is not acceptable because the application I'm using takes a lot of time to do it and even doesn't work properly after that and requires an additional server restart.
Does IntelliJ has any solution similar to eclipse for hot-swapping (instant) resources e.x .xhtml?

Gradle + JRebel + rebel-remote.xml without JRebel IDE Plugin

Can you use standalone + JRebel remote?
I have my IDE on Box A
I have my App on Box B
I want to be able to make gradle build on Box A and automatically have B hot deploy that.
If Possible I'd like all this needs to work without The intelliJ plugin because it's broken and produces the wrong paths to lib locations in our complex gradle project.
No.
Synchronization with remote servers can only done via JRebel IDE plugin.
If you have any troubles with the IDE plugin or the Gradle plugin, please contact support at support#zeroturnaround.com
It's not possible to use JRebel remoting without the IDE plugin as the remote server does licensing checks during a sync transaction and classes simply copied to the remote .cache folder will be rejected otherwise.
However you can still setup a manual remoting setup. For example you can create a "virtual" workspace on BoxB where classes/jars/wars are copied after the build. In this scenario disable the remoting plugin and use standard rebel.xml-s which map to the workspace on BoxB.
When doing changes, simply copy the files from BoxA to BoxB e.g. using rsync and they will be reloaded as usual. However note that in this setup you must provide the server on BoxB with a valid license.

Unable to to load Tomcat plugin in IntelliJ

I am running IntelliJ 15 Ultimate and trying to enable the Tomcat plugin (which for some reason was disabled). However, IntelliJ does not seem to let me re-enable it.
What I have tried is
Re-install IntelliJ 15, and I chose to replace the old version, but the problems with the plugin seem to be persistent
Deleting /Applications/IntelliJ IDEA 15.app/Contents/plugins/Tomcat between the re-installs to ensure it was not being re-used, but with no avail
Verifying that I have a licensed/paid version of IntelliJ 15 Ultimate edition
At this point I'm not sure what to do, as a re-install clearly did not work. Are there any directories or files I could manually change/remove?
I am using OS X version 10.11.2 is that matters.
You need to enable the "Java EE: EJB, JPA, Servlets" plugin as well. The message is displayed because that plugin is not enabled, and the Tomcat plugin depends on it.
The only solution I could come up with was to entirely wipe IntelliJ and any config files it created as described in this answer.
Upon installing IntelliJ once again, the Tomcat plugin was enabled and was able to create a run configuration for that! Maybe not a fix per se, but it works as expected again.

eclipse 4.3 RCP product is not working

I am facing a major issue in eclipse rcp. I created an application in eclipse rcp
and created a product file and run the application. It works fine as expected.
After that I exported the my application to a product. After that I run the eclipse, it does not work as expected. when my application is started, a view with
one composite which is having some text fields supposed to appear. But it does not appear. Everything is working before exporting to eclipse product.
I am using eclipse 4.3.
Aslo I checked the build configuration and checked that everything is added to
the build.properties. It is available.
I suspect it is because of any cache or something like that? or what else I can give a try in order to make it work?
What is the the way to clean the cache? I used -clean command while launching the eclipse.
./eclipse -clean

Stop all servers in one action in IntelliJ

I am developing with IntelliJ. In this project, I need to run 3 servers.
Is there a way to create a shortcut to :
Stop all those servers in one click or keyboard shortcut
Optionally, restart them.
Thanks.
There doesn't seem to be a direct method to do this in IntelliJ, but if you can stop each one from a script, then you could just write a script and run it from IntelliJ. Personally, I'd just go to the terminal and run the script rather than configuring it directly in IntelliJ (which also has an embedded terminal, btw).