Answer the question
In order to leave comments, you need to log in
Multiple modules in one Tomcat instance for Intellij IDEA?
Config: Tomcat 7.0.54, Idea 12.1.4 (version required by architecture)
So, there are M0, M1, M2, M3
modules. connected as needed. M0 itself monitors the connection of other Ms.
In order not to restart M0, M1 each time when assembling the MP (it takes a long time), two configs were made in the IDE for launch (Tomcat locale): K1) M0, M1 at runtime K2) MP to debug. Those. I run K1, and if necessary I rebuild K2.
But the following situation turns out: K1 and K2 seem to raise each of their Tomcat instances and each one devours its own memory + in K1 there is a manager from Tomcat, and K2 does not appear in it.
What do you want to get:
Make such a config so that in a raised Tomcat instance with JNDI parameters (memory, configs, etc., since they are common to all M), you can load the necessary M from the IDE
Tried:
1) Make K1, K2 via Tomcat remote
Constantly port conflict (debug?), etc. + the main log from the module does not go to the IDE (Server tab), only tracking Tomcat files (catalina, access, etc.).
2) raise a permanent Tomcat instance with M0, M1 loaded into it. But it turns out that the log from these M goes to the Tomcat window, it's not critical, but I would like to see it in the IDE. All the same, the problem remains, MP is loaded into its instance.
I hope I explained the essence clearly :)
Maybe I want a lot from such a bunch? Googled it, nothing comes up. there was an article about Tomcat remote debug from IDE (was it useful? debug works)
As I understand it 1) the option is what you need (manager sees everyone) - but how to tighten the log of modules in the IDE (Server)?
The log, if I understand correctly, works on slf4j + jboss , I started
developing on IDEA + Tomcat recently (a month), so don't kick it too hard.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question