8 Replies Last post: Jul 16, 2008 10:35 PM by Paul Albrecht  
Paul Albrecht Newbie 9 posts since
Sep 19, 2002
Currently Being Moderated

Jul 10, 2008 3:43 AM

Problem debugging JSP in Tomcat 6.0.16

I need help figuring out why I am unable to debug JSPs using Tomcat 6.0.16 and IDEA 7.0.3 on Vista.    I am able to put in breakpoints in the JSPs (red circle without an “x”) but the breakpoints are ignored.  Breakpoints work fine in the regular Java classes.  My webapp is not a standard configuration, and that may be related.  The Context docBase is not a subdirectory of the Host appBase.  In fact, the Host appBase points to an empty directory.

 

Is there a description somewhere of how IDEA takes the server.xml and context.xml files in $ and $ and reprocesses them?

    

It seems that IDEA creates a private base directory and creates a modified server.xml and a Catalina/localhost/ROOT.xml in it.  The name of the private base directory is something like C:\Users\MyName\.IntelliJIdea70\system\tomcat_test_G4-Project2eec5e16. 

 

IDEA then sets the CATALINA_BASE environment variable to the name of the private base directory and executes the startup command specified in its Tomcat 6 Application Server configuration.

Nikolay Chashnikov JetBrains 308 posts since
Nov 9, 2004
Currently Being Moderated
Jul 10, 2008 2:12 PM in response to: Paul Albrecht
Re: Problem debugging JSP in Tomcat 6.0.16

I need help figuring out why I am unable to debug JSPs using Tomcat 6.0.16 and IDEA 7.0.3 on Vista.    I am able to put in breakpoints in the JSPs (red circle without an “x”) but the breakpoints are ignored.  Breakpoints work fine in the regular Java classes.  My webapp is not a standard configuration, and that may be related.  The Context docBase is not a subdirectory of the Host appBase.  In fact, the Host appBase points to an empty directory.

 

Please attach your project files (iml, ipr, iws).

 

Is there a description somewhere of how IDEA takes the server.xml and context.xml files in $ and $ and reprocesses them?

    

It seems that IDEA creates a private base directory and creates a modified server.xml and a Catalina/localhost/ROOT.xml in it.  The name of the private base directory is something like C:\Users\MyName\.IntelliJIdea70\system\tomcat_test_G4-Project2eec5e16. 

 

IDEA then sets the CATALINA_BASE environment variable to the name of the private base directory and executes the startup command specified in its Tomcat 6 Application Server configuration.

 

Yes, IDEA actually perform all these steps when you run local Tomcat configuration.

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Michael Parmeley Apprentice 511 posts since
Jul 29, 2004
Currently Being Moderated
Jul 10, 2008 5:48 PM in response to: Paul Albrecht
Re: Problem debugging JSP in Tomcat 6.0.16

I have been using IntelliJ since 4.x and I have never gotten JSP debugging to work with Weblogic. The breakpoints are simply ignored. I experience the same behavior with remote and local instances of Weblogic. I finally came to the conclusion that JSP debugging simply doesn't work.

 

Is JSP debugging supposed to work?

Nikolay Chashnikov JetBrains 308 posts since
Nov 9, 2004
Currently Being Moderated
Jul 11, 2008 1:26 PM in response to: Paul Albrecht
Re: Problem debugging JSP in Tomcat 6.0.16

Paul Albrecht wrote:

Michael,

 

I've been able to get JSP breakpoints to work with Tomcat 6.0.16 in other situations, but not with the configuration that I need to use (for legacy reasons).    That configuration is described in my original post.

 

I can get JSP breakpoints to work if I create a conventional web application whose directory is a child of the directory specified by the appBase (the webapps directory) and if have IDEA deploy the web.xml,  libs and class files into its WEB_INF subdirectory.  

 

My "problem" is that I have a  web application directory that is fully formed but lives outside the webapps directory in a directory with many other files and directories in it.  The docBase is an absolute path reference.   There may be an additional factor related to the failure of JSP breakpoints - there is nothing for IDEA to deploy.  All the files that need to be in my webapp directory are there already.  This may be a problem for IDEA which seems to have a need to "deploy" the application.  The Tomcat Application will not allow the debugging to start unless it has a Facet to deploy.

 

Please attach your project files (ipr, iml and iws).

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

Nikolay Chashnikov JetBrains 308 posts since
Nov 9, 2004
Currently Being Moderated
Jul 14, 2008 10:07 AM in response to: Paul Albrecht
Re: Problem debugging JSP in Tomcat 6.0.16

Web roots aren't specified for G4 Web facet. Try to add MODULE_DIR/site as a Web Resource directory (G4 Web Facet settings, "Web Settings" tab).

 

I did attach them in the post of  Posted: Jul 10, 2008 5:20 PM (see above)

 

 

--

Nikolay Chashnikov

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

 

More Like This

  • Retrieving data ...