Try the Run Configuration For External Tools-plugin.
A feature of the Totalcommander is the quicksearch, which allows you to filter for matching file and directory names. Recently I noticed that it can also match substrings, which makes it even more useful.
The configuration is
If you are using the free Community Edition of IntelliJ IDEA you probably noticed that there is no Tomcat support. The integration is included only in the commercial Ultimate Edition.
If won’t buy a license for whatever reason, you still can create some basic Tomcat integration even in the free IDEA Community Edition.
Create an ‘External Tool’ configuration for the Tomcat
The command is
catalina jpda run to start the tomcat in debug mode at the default port
Now the Tomcat can be started from several places within the IDE
and even the output of the process is printed to its run console.
Tip: If you want the External Tool to be integrated as a Run Configuration please checkout the other post and plugin.
Create a run configuration which starts a remote debugging session at
Switch to ‘Logs’ tab and configure that the log files are also integrated
After starting the run configuration, the debugger is attached to the Tomcat and the log files of the tomcat are shown within the IDE.
The steps are to run
mvn war:war first to create the WAR and then to copy it to the webapp directory of the Tomcat.
One approach is to create a ‘Maven’ run configuration with the commandline:
war:war org.codehaus.mojo:wagon-maven-plugin:upload-single -Dwagon.fromFile=FULL_PATH_TO_WAR_FILE -Dwagon.url=file://FULL_PATH_TO_TOMCAT\webapps\ (Don’t forget to change placeholders!)
This creates the WAR file and copies it to the Tomcat via the
Other approaches could be:
In legacy projects sometimes a Java class (with the same fully qualified name) exists in several projects. If you combine these projects, you will never know, which class is used at runtime. It is like Maven dependency hell.
So I wrote a plugin to find out duplicated classes in the classpath. Get it here https://plugins.jetbrains.com/plugin/9663-find-duplicates-inspection, but do not expect much support from me (because it is only a proof-of-concept).
Did you know, that you can write your post in markdown syntax? Pretty cool
For more details see: https://en.support.wordpress.com/markdown/
Some months ago I created a small useful NetBeans plugin, which allows to you to save time when pasting code samples from online tutorials. Today I used it again and I still find it very useful in this specific context. And it saves you time. That is why I want to report about it.
What is the feature? You can copy the Java source code of whole classes from a tutorial and paste it via
Menu|Edit|Paste to new file. Either the package declaration of the Java class is taken in account or the Java class is placed in the correct package. This depends on the selected node and it is documented included screencasts at https://github.com/markiewb/nb-paste-to-new-file.
That sounds familiar? Yes, this feature already exists natively in Eclipse JDT and Intellij IDEA.
Give it a try, when using NetBeans! Happy coding.
BTW: I am still looking for maintainers for my plugins! Because of time issues, I will not bugfix nor implement features anymore. Support your favorite IDE and by contribution to your favorite plugin!
You could use PSI Probe.
probe.war into the webapps folder of your Tomcat, open the probe context in the browser (f.e. localhost:8080/probe) and at “
Applications|/MYCONTEXT|Sessions|/SESSIONIDXYZ” you can see the session content of session SESSIONIDXYZ of the context MYCONTEXT.