IntelliJ Idea 15 - How to "update resources" without restarting server? - intellij-idea

When I click to the debug button after the server is started to update resources with/without classes, the prompt that I shared below is displayed. How can I update resources without restarting server?
ps. I am using Tomcat as a server.
Edit: I have already set the option update resources in the server preferences.

Use 'Update application' action, by default Ctrl + F10.

You're explicitly trying to restart the server (via clicking on "Debug" while the server is running).
Instead of that you can either use "Update" action from "Run > Update ... application" (which you've already configured to update resources) or re-deploy the artifact.
Btw updating of resources is somehow tricky, if it's not working see my other post on this topic:
https://stackoverflow.com/a/33344839/5060066

Steps:
In IDEA 2020, edit configuration -> running application update policies ->
on 'update' action, change to: Update classes and resources
on frame deactivation, change to: Update classes and resources
Start in debug mode.
Then each time change code, it will try to redeploy, it may take a second.

Yes, there is a way can update resources without restart server.
In Server -> Development you can see the project, with the name your_project_name.war.
There are 3 buttons. Push the Deploy button to Redeploy the project.Like the pic follow:
Then refresh the page. You will see the change.

Related

MYSQL8 Permanently change password policy requirements

I am trying to change the password policy requirements in MYSQL8 (Note not MYSQL 5.7). I am using Ubuntu 20.04 server (so no GUI).
I can change them within mysql-8 by using lines such as SET GLOBAL validate_password.policy=LOW; and I can see the changes using SHOW VARIABLES LIKE 'validate_password%';, however when I restart mysql using service mysql restart they return the their default settings.
The Stack Overflow article 36301100 alludes to adding lines to mysqld.cnf file however there is no mysqld.cnf file just the mysql.cnf file under the /etc/mysql/ directory. When I add any lines such as SET GLOBAL validate_password.policy=LOW; it causes the mysql server to fail after the service mysql restart command.
Another suggestion given is to remove the password plugin with UNINSTALL COMPONENT 'file://component_validate_password';, however this strikes me as a bit harsh.
Any suggestions? Thanks, Greg

SQL Server Browser won't start

I want to start playing around with databases in Java to help with my university work however I can't get SQL Server to work properly. I've installed it using the wizard and selecting 'Basic' the installing SSMS. However when launching SSMS I get Error 26. When researching this it says to make sure that the SQL Server Browser service is running. Unfortunately this is the issue, every time I try to start the service it fails.
All the fixes I've seen about this topic have been related to servers on another machine where as I am trying to run the server on my own PC. I've tried them anyway but nothing has worked so far. The only thing I can find that might give you a clue in helping me is that in the log file it says that it failed to register the SPN.
When working on my local machine, I don't usually need SQL Server browser - but my SQL Server itself isn't set up to run automatically.
You can go to services (either via window and search for 'services', or in Windows 10 open the task manager, go to the last tab 'services'). Find the 'SQL Server' service (it helps to sort by description column) and right click -> start.
If you take note of the name (default is 'MSSQLSERVER') you can start the service (e.g., in a batch file, from command line) using sc start "MSSQLSERVER" (or whatever your server instance is called).

Disable MobaXterm file browser sidebar from opening automatically

This seems like a simple question but I can't find an answer. I use MobaXterm free edition to SSH into my machines. Every time I SSH into a machine the side bar automatically expands with the paths on the remote machine. I don't need this side bar and every time I have to collapse it. Is there a way to permanently disable the side bar or at least not automatically expend it when SSH-ing?
Here is a picture (linked) of the expaned sidebar:
Under settings there are these 2 settings that control this that I typically turn off.
While instructing users through the GUI settings is an option it is often desirable to implement the application with an already usable default configuration. These settings are stored in the MobaXterm.ini file.
Hints for locating this file can be found here: Mobaxterm configuration settings
I'm using windows and mine was in my Documents/Mobaxterm folder
Here are the configuration settings I use to remove the sidebar and set the app to compact mode:
[WindowPos_xxxxxxxxxxxxx]
...
CompactMode=0
SidebarVisible=0
...
[SSH]
...
AutoStartSSHGUI=0
EnableSFTP=0
...
In newer versions of MobaXterm (v21.3 as of this writing), as an alternative to adjusting MobaXterm.ini file as mentioned in the other answer, it could be disabled by changing Session settings 🡺 Advanced SSH settings 🡺 SSH-browser type from SFTP Protocol 🡺 None

How to perform a command in a shell on remote server immediately after deploying some code from intellij idea?

I have a web server running on a virtual machine and I need some actions (e.g. "service apache2 reload") to be performed there automatically after I'll deploy my code from Idea
Automatically -- no way AFAIK.
https://youtrack.jetbrains.com/issue/WI-3344 -- watch this ticket (star/vote/comment) to get notified on any progress.
You may also watch related tickets:
https://youtrack.jetbrains.com/issue/WI-23938
https://youtrack.jetbrains.com/issue/WI-3239
The only manual solutions I may suggest right now are:
either keep SSH console opened (IDE has it built-in) and execute such command manually once deployed
or create "Remote SSH External Tools" entry that will do such job (connect and issue specified command) manually after deployment (once created you can assign custom shortcut to it so it can be run more easier).
In both cases -- check this manual.

IBM Worklight 6.0 - application uses an incorrect Server URL

I am trying to create a Worklight application that uses SQL adapters to retrieve data. In development it all works well but when I deploy it onto the server it can't connect to the server as it has an incorrect server URL.
I then have to go to the iOS settings and update the Custom Server URL field and set the flag to use this and then it all works.
I can see that this set in the Settings.bundle -> Root.plist file. However if I change this value it gets overwritten each time I rebuild. Where can I set these values so that the WL studio will set this value correctly each time it builds?
From reading your question, this has got nothing to do with adapters.
You really need to describe how exactly you've built the application, in steps.
Right now it sounds to me like you may be doing the following:
Build for Remote Server
Run As >> Build All and Deploy / Run As >> Xcode project
These actions currently overwrite each other.
If you are using Build for Remote Server, then do not use Build All / Xcode project afterwards; this will overwrite the connection details again with the local ones instead of the remote ones.
Also covered in the following IBM technote: http://www-01.ibm.com/support/docview.wss?uid=swg21642937