JSP Debugging using IntelliJ V7 with WebLogic 8.1.6

Hi,
I've installed WebLogic 8.1.6 locally on my PC. I've built my Java EE Application using IntelliJ v7.

The application has a number of JSP pages each with an associated Java bean using (for example)
<jsp:useBean id="merchantStatus" />

I've successfully setup an IntelliJ debug configuration that allows me to debug my java beans.

I can set a breakpoint in my JSP source files. However, when I go to debug, my JSP breakpoints are ignored.

It would be SO useful to be able to debug the JSP code....any help much appreciated.

Paul

Edited by: Paul OReilly on Nov 19, 2008 2:32 PM

6 comments
Comment actions Permalink

Which type of run configuration are you using?

Hi,
I've installed WebLogic 8.1.6 locally on my PC. I've built my Java EE Application using IntelliJ v7.

The application has a number of JSP pages each with an associated Java bean using (for example)
<jsp:useBean id="merchantStatus" />

I've successfully setup an IntelliJ debug configuration that allows me to debug my java beans.

I can set a breakpoint in my JSP source files. However, when I go to debug, my JSP breakpoints are ignored.

It would be SO useful to be able to debug the JSP code....any help much appreciated.

Paul



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Nikolay,
I'm attaching some screen shots of my configuration...which are screen dumps written to a Word document.

btw...I have an 'ant' build.

Any help greatly appreciated.

Paul



Attachment(s):
intelliJconfiguration.doc
0
Comment actions Permalink

Are your jsp files located under Web Resource directories (Project Structure dialog -> web facet -> "Web Resource directories")?

Hi Nikolay,
I'm attaching some screen shots of my configuration...which are screen dumps written to a Word document.

btw...I have an 'ant' build.

Any help greatly appreciated.

Paul

---
Original message URL: http://www.jetbrains.net/devnet/message/5230138#5230138



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Nikolay,

my JSP sources are located in a sub-directory of the 2nd content root (aka Windows resource)....

c/f attached screen dump of

a.     explorer list of my JSP's and their location.
b.     Project Settings dialog showing content root paths points to parent directory of jsp location.

IntelliJ is picking up the JSP's (I can see it loading the JSP's and parsing them).

regards,

Paul



Attachment(s):
jspdebugging.doc
0
Comment actions Permalink

On order to be able to debug JSP files you need to add a Web facet to your module (using "+" button in Project Settings dialog) and add directories
with JSP files as Web Resource directories in settings of the Web facet.

Hi Nikolay,

my JSP sources are located in a sub-directory of the 2nd content root (aka Windows resource)....

c/f attached screen dump of

a. explorer list of my JSP's and their location.
b. Project Settings dialog showing content root paths points to parent directory of jsp location.

IntelliJ is picking up the JSP's (I can see it loading the JSP's and parsing them).

regards,

Paul

---
Original message URL: http://www.jetbrains.net/devnet/message/5230746#5230746



--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Nikolay,
unfortunately it's still not working.

I'm attaching screen shots of 2 the facets I have and my Run/Debug configuration for each of them

The first facet is a Web facet whose Windows Resource directory points at
the directory where the JSP source files are held.

The second facet isa JEEApplication facet which points to my EAR distribution directory.
Remember that I can debug the EAR classes....it's merely the JSP's that I can't debug
(even though I can set a breakpoint which shows as a valid red button).

Finally, I'm also attaching each of

....WEB-INF/web.xml
....WEB-INF/weblogic.xml
...META-INF/application.xml
...META-INF/weblogic-application.xml

Your help is much appreciated.

Paul



Attachment(s):
weblogic.xml
web.xml
weblogic-application.xml
application.xml
facet_screenshots.doc
0

Please sign in to leave a comment.