Run maven web project with JSP debugging on tomcat with IntelliJ Idea

Sarevok

I'm transitioning from Eclipse to IntelliJ Idea and having some trouble getting my Maven Web project running as I'd like. In Eclipse, I ran it using mvn tomcat:run, which worked fine with JSP debugging. In IntelliJ, I created a run configuration to use this command, and it works, but JSP debugging doesn't work.

I tried to find info on getting JSP debugging to work on IntelliJ, and the only info I found involved setting up a Tomcat server in IntelliJ, not using Maven's tomcat with mvn tomcat:run. The problem is, I can't figure out how to do this without IntelliJ using it's own builder instead of building the project with Maven. I can add Maven goals like "mvn compile", but when I set it to deploy exploded war, and adds 'build myproject:war exploded artifact' to the build queue, which calls IntelliJ's builder.

IntelliJ's builder takes forever to build my project. I've never even let it finish. To be fair, the project is huge, but Maven builds to fairly quickly. Also, everyone in my company is using Maven to build it, so I need to use Maven as well.

Can anyone help me either get JSP debugging working using mvn tomcat:run, or on an Intellij managed Tomcat with the project built by Maven?

Keith

In IntelliJ you can easily debug a "remote" tomcat instance (one running in a different JVM than IntelliJ):

Run -> Edit Configuration -> "+" -> Tomcat Server -> Remote 

That will create a new run configuration. Look at the information on the "Startup/Connection" tab for the parameters to add to the tomcat JVM. Mine are:

-Xdebug -Xrunjdwp:transport=dt_socket,address=57813,suspend=n,server=y

Finally, start tomcat by launching the required maven command. Then run the above run configuration (click debug button).

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

intellij idea - cannot run "Tomcat" project on linux

From Dev

Run a Maven Project using IntelliJ IDEA

From Dev

How to import existing Maven + Spring MVC + Tomcat project on Intellij IDEA?

From Dev

Maven tomcat7:run for multi-module project in IntelliJ

From Dev

tomcat run configurations in intellij IDEA

From Dev

IntelliJ IDEA run AngularJS project

From Dev

Gradle Java debugging project in IntelliJ IDEA

From Dev

Not able to run a service on tomcat via IntelliJ Idea

From Dev

Run JSP from netbeans project in Tomcat Server

From Dev

No option to import MAVEN project IntelliJ Idea

From Dev

Exclude logs folder in Maven/Intellij Idea project

From Dev

idea intellij maven project can't make

From Dev

How to create a JavaFX Maven project in IntelliJ IDEA?

From Dev

Javafx maven project deployment with Intellij IDEA

From Dev

IntelliJ IDEA groovy console in Java maven project

From Dev

Run app in tomcat using maven with IntelliJ

From Dev

How do I deploy maven dependencies in a web application project in IntelliJ IDEA?

From Dev

Intellij IDEA how to run a class not the entire project?

From Dev

IntelliJ IDEA failing to run a Grails 2.3.0 project

From Dev

Does Intellij IDEA support debugging a project built with ant?

From Dev

8192 limit, when debugging a Haxe project in IntelliJ IDEA

From Dev

Debugging in IntelliJ Idea 12

From Dev

Debugging at IntelliJ IDEA 14.1.3

From Dev

Debugging ActiveJDBC with IntelliJ IDEA

From Dev

IntelliJ IDEA from Maven project doesn't build with Maven

From Dev

IntelliJ IDEA from Maven project doesn't build with Maven

From Dev

Eclipse Dynamic Web Project with maven is throwing error on mvn tomcat7:run

From Dev

Tomcat or Spring Suite Tool's default server does not run in Simple Spring Web Maven project

From Dev

Tomcat or Spring Suite Tool's default server does not run in Simple Spring Web Maven project

Related Related

  1. 1

    intellij idea - cannot run "Tomcat" project on linux

  2. 2

    Run a Maven Project using IntelliJ IDEA

  3. 3

    How to import existing Maven + Spring MVC + Tomcat project on Intellij IDEA?

  4. 4

    Maven tomcat7:run for multi-module project in IntelliJ

  5. 5

    tomcat run configurations in intellij IDEA

  6. 6

    IntelliJ IDEA run AngularJS project

  7. 7

    Gradle Java debugging project in IntelliJ IDEA

  8. 8

    Not able to run a service on tomcat via IntelliJ Idea

  9. 9

    Run JSP from netbeans project in Tomcat Server

  10. 10

    No option to import MAVEN project IntelliJ Idea

  11. 11

    Exclude logs folder in Maven/Intellij Idea project

  12. 12

    idea intellij maven project can't make

  13. 13

    How to create a JavaFX Maven project in IntelliJ IDEA?

  14. 14

    Javafx maven project deployment with Intellij IDEA

  15. 15

    IntelliJ IDEA groovy console in Java maven project

  16. 16

    Run app in tomcat using maven with IntelliJ

  17. 17

    How do I deploy maven dependencies in a web application project in IntelliJ IDEA?

  18. 18

    Intellij IDEA how to run a class not the entire project?

  19. 19

    IntelliJ IDEA failing to run a Grails 2.3.0 project

  20. 20

    Does Intellij IDEA support debugging a project built with ant?

  21. 21

    8192 limit, when debugging a Haxe project in IntelliJ IDEA

  22. 22

    Debugging in IntelliJ Idea 12

  23. 23

    Debugging at IntelliJ IDEA 14.1.3

  24. 24

    Debugging ActiveJDBC with IntelliJ IDEA

  25. 25

    IntelliJ IDEA from Maven project doesn't build with Maven

  26. 26

    IntelliJ IDEA from Maven project doesn't build with Maven

  27. 27

    Eclipse Dynamic Web Project with maven is throwing error on mvn tomcat7:run

  28. 28

    Tomcat or Spring Suite Tool's default server does not run in Simple Spring Web Maven project

  29. 29

    Tomcat or Spring Suite Tool's default server does not run in Simple Spring Web Maven project

HotTag

Archive