How to hotswap .xhtml files in Intellij with WebSphere - intellij-idea

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?

Related

Deploy ear file to weblogic 12.1.3 from IntelliJ IDEA 2018.2.5 x64

I have a java EE 5 project. I'm building a project with maven. I use IntelliJ IDEA 2018.2.5 x64.I use weblogic 12.1.3. In the Department of deployment( edit configuration -> Deployment ) specify the ear file. Why doesn't IDEA put ear file in localhost:port/console -> deployments when running ?
Make sure the Runtime Server is added correctly in IntelliJ. Once Added Correctly,You should see the Application servers Tab, where you could Add/Remove Applications effectively.
The Status of the deployment can be seen as Module with a tick Mark in Application Servers Tab.
The answer was simple, the ear file did not deploy due to the fact that I did not enter the domain name and password in the configuration

Hot code deploy in intellij with websphere

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?

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.

Tomcat support on WebStorm

I am JavaScript developer, and currently working on project where Tomcat server is used.
I am familiar with IntelliJ idea but recently read about another JetBrains product specially for web-development - WebStorm. I've found some cool features in WebStorm(especially related to AngularJS autocompletion) but it seems that there is no Tomcat server support and I have to build server side of project into *.war-file and run it manually through terminal each time.
So is there any Tomcat/Java support in WebStorm?
(Or I should continue to use IntelliJ idea and forget about WebStorm and its cool functionality =) )
You can do one thing.
First start your apache tomcat server with startup.bat/startup.sh. (Suppose your project directory name is "AngularJSTest" in WebStorm.)
Right click on that > Refactor > Move .
Give the path to webapps directory of Apache tomcat.
So from now on whatever changes you make in the project from WebStorm, it will get reflected in the webapps directory. You can access it from the link http://localhost:8080/AngularJSTest/yourHtml.html.

How is Tomcat handled by IntelliJ IDEA 10.5

I am a newbie to IntelliJ IDEA. I was trying to deploy a web app in Tomcat.
It failed to deploy and i was not able to see any errors in the log console.
After much searching, I was able to find out the log files at
~/Library/Caches/IntelliJIdea10/tomcat/_p1/logs/ folder.
There were a bunch of log files here and one of the files contained the error. I then could solve the issue and proceed.
I was a user of eclipse and this error would have come directly in the log console in eclipse. However this is not the case in IntelliJ IDEA. Can somebody please explain what I am missing here?
Also, it would be nice if somebody could point out how the integration with Tomcat is done in IDEA (for better understanding). Note: I am using IntelliJ IDEA 10.5.2 Ultimate edition on Mac OS 10.6.8.
IntelliJ IDEA instructs Tomcat to use temporary directory as CATALINA_BASE where it places context configuration with the Artifact path from your project settings, it doesn't copy your web application into webapps directory.
In the Tomcat Run/Debug configuration there is Logs tab where you can specify custom logs to show in IDEA console, it should work out of the box, but probably you have customized logging in Tomcat configuration or in the application itself. Or maybe Tomcat 7 logging configuration is different and doesn't work with IDEA in which case you should submit a bug.
Here's some info for Windows users....if you check the boxes for 'Show console when stdout/stderr change', you may find that the Output tab does not show up even if stdout/stderr change.
For me, this was due to directory structure for the project containing spaces.
When I renamed the directory structure so that it did not contain spaces the Output tab showed up.
Found solution here: Cannot deploy project to tomcat inside intellij IDEA 14. Applications Context was incorrect.
Run/Debug Configurations -> Deployment tab -> Applications Context