JSP changes arent loading at runtime with intelliJ and WAS combination

Answered

Hello,

We are evaluating to migrate our legacy application from  RSA to intelliJ. this application is a multi module heavy monolithic application. we uses the WAS ( websphere ) application server for deployment. right now everything is working as expected except  JSP changes. i couldn't able to  see the jsp changes  on the fly and had to restart the server to see the changes on web page.

Same application is working fine with RSA+ web sphere combination. even for intelliJ we had used the same web sphere configuration but not seeing the changes at run time. we initially thought the issue could be with WAS but it does not looks like..

i researched and couldn't find any option in the intelliJ idea so wondering if you guys can throw me an idea .. thanks

 

 

 

0
24 comments
Avatar
Permanently deleted user

thanks for quick reply.. i read this page before but the problem i had was, not seeing the options that was there in the page.

 

 

  • n 'Update' action. The Update action refers to clicking /help/img/idea/2017.2/update_icon.png in the Run or the Debug tool window (alternatively, Ctrl+F10 or Run | Update '<app name>' application).

    Use the list to select the default update option. See Application update options.

    Show dialog. If this check box is not selected, the default update option is used. Otherwise, a dialog is shown that displays all the available update options, and you'll be able to select the necessary option prior to actually updating your application.

    /help/img/idea/2017.2/UpdateAppOptions.png
  • On frame deactivation. Frame deactivation means switching from IntelliJ IDEA to a different application (e.g. a Web browser). Use the list to specify what IntelliJ IDEA should do in such cases.

 

what i see is this below.. so just wonder is that a version issue. I'm using 2017.1

 

0
Avatar
Permanently deleted user

I found it why the "Update resources and classes" option is not showing .. it is only showing when you deploy the exploded war or ear in the deployment tab.. since my  case i have problems with exploded ear so have used the external maven generated files. so wondering is there any option that i can use to see my web changes without restart ??

 

 

0
Avatar
Permanently deleted user

hello guys any update on my previous questions really appreciate your help !!!

0

You can't see the changes without restart if the artifact is not exploded or is built by Maven.

0
Avatar
Permanently deleted user

This doesn't work most of the time. JSP files don't get updated on WS no matter if you Restart, Redeploy, Update, Clean, Rebuild, Restart and Invalidate Caches, delete target folder. Simple text on a JSP page doesn't get updated most of the time regardless how you deploy in Intellij. Please fix this defect. lmk if you need more details.

0

Please report at https://youtrack.jetbrains.com/issues/IDEA with the sample project and the steps to reproduce.

0

My development team is experiencing this issue on Weblogic 12.2.1.3 

I assumed it was the server but I now suspect Intelli J. This could be a deal breaker for our development team as it takes too much time with large apps to not see these changes. Class reloading works just fine.

We did not encounter this issues on previous versions of Intelli J when we purchased our (20+) licenses. 

This needs to be resolved ASAP. We are not part of Jetbrain's debug team and do not have the time to help debug these issues as requested by Serge. 

Most dev teams are now building with Gradle/Maven and Intelli-J should intelligently recognize this, take the war and explode it as necessary during a debug run. 

0

Hot reload is not possible with war. You need to use IntelliJ IDEA exploded artifact that it already imports automatically from your Maven or Gradle project.

0

We have tried this and can reload classes but JSPs do not refresh. We have tried with both an exploded WAR and exploded EAR. One application that is legacy and was using an ANT script is now being built entirely by IntelliJ as an exploded .EAR and JSPs do not refresh during debugging. This just started happening around a month or so ago. Previous to this the same application/server pairing was refreshing just fine. 

0
Avatar
Permanently deleted user

Go to Internet Explorer | Settings | General | Browser History | Settings | View Files.

Delete everything in there. My JSPs were not refreshing for a long time until I deleted the files in this folder. Deleting browsing history through the browser won't work.

0

Intelli J is writing the files to target/out just fine but WL is not copying them to the domain. How does the integration work on update resources? Is Intelli J writing to the target/out folder and that's it or is IJ sending some kind of WSTL script to reload resources in the background? 

So far this is looking like a WL issue.

 

 

0
Avatar
Permanently deleted user

Hi Eric,

Im having the same issue currently as we migrated from eclipse to Intellij. I made a jsp change and refreshing my browser, updating resources, restarting server all dont work. I have to rebuild the project and redeploy the server every time which is time consuming for jsp changes.

If you found a solution to refreshing jsp changes, could you please share?

I would greatly appreciate the help.

0

Hello,

Did any one find a resolution or workaround for this issue?

We've followed all the steps to integrate intelligent with application server and UPDATE CLASSES is working as expected.

The problem is with RESOURCE updates .Though we update JSPs , the message we see is 'Loaded classes are up to date.Nothing to reload'

 

 

 

0
Avatar
Permanently deleted user

Hi Satya
Hot swap for me started working when i ran the build in debug mode AND ran the server in debug mode. Without both in debug mode my resources/jsps werent being updated during hot swap.

0
Avatar
Permanently deleted user

Hi Majditashman, how do you 'build in debug' mode. I have used Intellij for years and never had this issue and now I am having same issue. Thanks.

0

He probably means that he uses Debug configuration instead of Run.

0
Avatar
Permanently deleted user

Thanks Serge. He specifically called out running the build in debug AND running server in debug specifically so wasn't sure what he meant. I think my issue may be related to the IDE using Maven for the build... still troubleshooting. I've used Intellij for 10+ years with no issues hot swapping. I've tried all the obvious things (I think :) ) but am open to any ideas.

0

See https://www.jetbrains.com/help/idea/updating-applications-on-application-servers.html . You need to use exploded war artifact built by IntelliJ IDEA for the JSP hot deployment to work. Maven war artifact will not hot reload.

0
Avatar
Permanently deleted user

Thanks Serge. I only have the exploded artifact.

0

Thanks guys, this is good info. Using exploded wars is the key to get "hot deployment" to work.

0

hey guys, how could websphere deploy by using exploded wars?

I do deploy by create a war archive in a ear archive ,so that server can work except jsp refresh.

If I change the inner war to the exploded how could I modified application.xml

0

unfortunately currently IDE does not allow to use WARs for WebSphere deployments. Please vote for this issue: https://youtrack.jetbrains.com/issue/IDEA-116949

0

Please sign in to leave a comment.