This Question is Answered

1 "correct" answer available (4 pts)
4 Replies Last post: Jan 13, 2014 11:29 PM by Bridger Dyson-Smith  
Bridger Dyson-Smith Newbie 4 posts since
Jan 12, 2014
Currently Being Moderated

Jan 13, 2014 1:57 AM

IDEA + Tomcat application integration questions

Hi all,
Background: I'm a completely new IDEA user (new to IDEA, as well as new to just about all development work at this level), and I'm wondering if the following is possible: I'm working with a webapp that runs in a Tomcat servlet. The application (XTF [1]) is a document search/display that dynamically converts XML to HTML via XSLT. I'd like to be able to debug the XSL stylesheets & their output in the running Tomcat instance - something I haven't been able to do with other IDEs.
I can start a local Tomcat instance in IDEA, but I'm not sure how to point IDEA towards the actual application (or to get it to load & run the application, etc etc etc). I understand that there are a number of additional steps towards a solution here and I don't mind noodling over some of them myself, but I'm not even sure where to start.
As I mentioned, I'm faced with a number of new tools. Is what I'd like to do possible?
Thanks in advance for your time & trouble - your help is greatly appreciated.
Cheers!
[1] http://xtf.cdlib.org/
Alexander Chernikov JetBrains 1,227 posts since
Jan 11, 2007
Currently Being Moderated
Jan 13, 2014 10:28 PM in response to: Bridger Dyson-Smith
Re: IDEA + Tomcat application integration questions

Hello.

 

I'm not familiar with XTF, so asking additional question. Do you mean you have access to a java code performing XSLT conversion, and this code is a part of web application, and you'd like to debug the java code?

 

I'm asking because IDEA has XSLT debugger plugin (and it does not work for web applications). You don't talk about that plugin, right?

 

Thank you,

Alexander.

Alexander Chernikov JetBrains 1,227 posts since
Jan 11, 2007
Currently Being Moderated
Jan 13, 2014 11:25 PM in response to: Bridger Dyson-Smith
Re: IDEA + Tomcat application integration questions

Basic steps for debugging web application is:

 

1. Make sure the module you have has Web facet. See: http://www.jetbrains.com/idea/webhelp/web-applications.html

(Referred page probably explains some points from below, but anyway...)

2. Make sure the web application artifact is configured in Project Structure dialog / Artifacts section. See link above plus artifact conception: http://www.jetbrains.com/idea/webhelp/artifact.html

3. Create a Tomcat run configuration in Run/Debug configuration dialog. See: http://www.jetbrains.com/idea/webhelp/run-debug-configuration-tomcat.html

Then start debugging the created configuration.

 

Have I got the question right?

 

Regards,

Alexander.

More Like This

  • Retrieving data ...