17 comments
Comment actions Permalink

Hello Michael,

Yes.

Does IntelliJ support remote debugging of JSP's on Weblogic?

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


0
Comment actions Permalink

Hmm, I don't seem to have any success with it.

I am remote debugging Servlets just fine but when I try with a JSP I get a breakpoint with an X in it and the error reads:


"Breakpoint is invalid: Breakpoint does not belong to any class"

The Run/Debug Configuration dialog is quite different in 5.1 than it appears in Chapter 11 of IntelliJ in Action and the embedded help. Looks like it went through a redesign between 4.x and 5.x and the documentation wasn't updated to match.

Does remote JSP debugging require any extra setup?

0
Comment actions Permalink

Hello Michael,

Hmm, I don't seem to have any success with it.

I am remote debugging Servlets just fine but when I try with a JSP I
get a breakpoint with an X in it and the error reads:

"Breakpoint is invalid: Breakpoint does not belong to any class"

The Run/Debug Configuration dialog is quite different in 5.1 than it
appears in Chapter 11 of IntelliJ in Action and the embedded help.
Looks like it went through a redesign between 4.x and 5.x and the
documentation wasn't updated to match.

Does remote JSP debugging require any extra setup?


No, it doesn't. Which versions of WebLogic and JVM are used?

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


0
Comment actions Permalink

Sorry for the delayed response. I didn't feel like working Friday so I took the day off.

We are running Weblogic 8.1 service pack 5 with jrockit81sp5_142_08.

0
Comment actions Permalink

Hello Michael,

Which run configuration type are you using to debug: WebLogic or generic
JSR45 compatible?

Do you have tag
<jsp-descriptor>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
in weblogic-web-app tag in your weblogic.xml descriptor? IDEA should check
existence of this tag but perhaphs it wasn't for some reason.

Sorry for the delayed response. I didn't feel like working Friday so I
took the day off.

We are running Weblogic 8.1 service pack 5 with jrockit81sp5_142_08.

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


0
Comment actions Permalink

I didn't have that in my weblogic.xml file (I don't use IntelliJ's web modules, just package up a war file with ANT, so I am sure I lose IntelliJ's checking of this file).

I added that to my weblogic.xml file and the breakpoint is now recognized but now it just doesn't stop at it.

IntelliJ 5.x doesn't have a Weblogic (or Tomcat) tab on the Run/Debug Configurations dialog anymore so I just specified my Weblogic server on the "Remote" tab.

I will try pre-compiling my JSP's and see if that does anything for me.

0
Comment actions Permalink

Hello Michael,

IntelliJ 5.x doesn't have a Weblogic (or Tomcat) tab on the Run/Debug

Looks like "WebLogic Integration" plugin have been removed from your IDEA.
Do you have "weblogicIntegration" folder in ]]>\plugins?

Configurations dialog anymore so I just specified my Weblogic server
on the "Remote" tab.


JSP debugging doesn't work with "Remote" configuration. "WebLogic" or "JSR45
Compatible Server" configuration must be used.

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


0
Comment actions Permalink

Ok, I didn't have the Weblogic Plugin installed (I must have deleted it some time ago in a quest for faster startup times). I re-installed it.

Now I can't figure out how to setup a remote instance of Weblogic through the Weblogic tab. When I try to configure an application server it asks me for BEA Home. I don't have weblogic installed on my local machine. Do I need to install weblogic on my local machine? I, of course, have the weblogic.jar file on my machine.

If I am trying to setup a remote instance of weblogic why is it asking me for BEA Home on my local machine? Really doesn't make sense to me.

0
Comment actions Permalink

Hello Michael,

Ok, I didn't have the Weblogic Plugin installed (I must have deleted
it some time ago in a quest for faster startup times). I re-installed
it.

Now I can't figure out how to setup a remote instance of Weblogic
through the Weblogic tab. When I try to configure an application
server it asks me for BEA Home. I don't have weblogic installed on my
local machine. Do I need to install weblogic on my local machine? I,
of course, have the weblogic.jar file on my machine.

If I am trying to setup a remote instance of weblogic why is it asking
me for BEA Home on my local machine? Really doesn't make sense to me.


WebLogic on your local machine is necessary for deploying applications to
remote instance.

You can use "JSR45 Compatible Server" configuration (from "jsr45debug" plugin)
to remote debugging of jsp without having local instance of WebLogic. In
that case you should deploy your applications by hand and specify package
for JSP used by application server ("jsp_servlet" for WebLogic).

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


0
Comment actions Permalink

Hello!

The jsp debugging with Weblogic 8.1 is working for the root dir of the web application, but not for jsps in subdirectories. Is there any setting to make this work also?

I'm using the 5321 build of IDEA.

Thank you!
Razvan

0
Comment actions Permalink

Hello Razvan Mihailescu-Baltag,

What version of JDK is used to run WebLogic?

Hello!

The jsp debugging with Weblogic 8.1 is working for the root dir of the
web application, but not for jsps in subdirectories. Is there any
setting to make this work also?

I'm using the 5321 build of IDEA.

Thank you!
Razvan



0
Comment actions Permalink

Could you describe what setup you used to even get that far? I simply have had no luck getting remote JSP debugging working with Weblogic 8.1 SP5.

Works great for Servlets, just not JSPs.

Ufortuntely we have lost four people people off our team in the last 6 weeks so there are 3 of us doing the work that 7 people were doing so I haven't had a lot of time to continue working on getting remote JSP debugging to work.

0
Comment actions Permalink

Sorry for the late answer - I'm trying not to work during the week-ends.

The environment is as follows:
WindowsXP sp2, last version of IDEA, jrockit81sp5_142_08. The setup for debug was something like:
set JPDA_TRANSPORT=dt_socket
set JPDA_ADDRESS=5005
set JAVA_OPTIONS=-Xdebug -Djava.compiler=NONE -Xrunjdwp:transport=%JPDA_TRANSPORT%,address=%JPDA_ADDRESS%,server=y,suspend=n -Dw
eblogic.jsp.windows.caseSensitive=true
(this is for the script that starts weblogic managed server)
AND
jsp_servlet
JAVA_OPTIONS
in IDEA (also the port 5005 for debug in Startup/Connection zone)

I can easily see the generated servlets in the jsp_servlet dir, but the jsp debugging is working only for the jsps from the root of the deployment dir. For example, I have a test.jsp (with some java code inside) and I use this file in the root and in a subdir. In the root, the debugger is stopping at breakpoints and is showing the invalid ones for test.jsp, for the test/test.jsp does not.

Message was edited by:
Razvan Mihailescu-Baltag
copy/paste from the console, sorry

0
Comment actions Permalink

Hello Razvan Mihailescu-Baltag,

WebLogic adds underscore to names of directories before returning source
paths of JSP's through debugging interface so source path
for a breakpoint in 'test/test.jsp' will be returned as '_test/test.jsp'
and IDEA cannot find corresponding file. Such behaviour is specific for WebLogic
so IDEA cannot correctly handle such breakpoints in case of generic JSR45
run configuration. You should use WebLogic run configuration in order to
work with such breakpoints.

Sorry for the late answer - I'm trying not to work during the
week-ends.

The environment is as follows:

WindowsXP sp2, last version of IDEA, jrockit81sp5_142_08. The setup
for debug was something like:

set JPDA_TRANSPORT=dt_socket

set JPDA_ADDRESS=5005

set JAVA_OPTIONS=-Xdebug -Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,address=5005,server=y,suspend=n -Dw

eblogic.jsp.windows.caseSensitive=true

(this is for the script that starts weblogic managed server)

AND

jsp_servlet

JAVA_OPTIONS

in IDEA (also the port 5005 for debug in Startup/Connection zone)

I can easily see the generated servlets in the jsp_servlet dir, but
the jsp debugging is working only for the jsps from the root of the
deployment dir. For example, I have a test.jsp (with some java code
inside) and I use this file in the root and in a subdir. In the root,
the debugger is stopping at breakpoints and is showing the invalid
ones for test.jsp, for the test/test.jsp does not.



0
Comment actions Permalink

The problem is that if I use the Weblogic type config, the jsp debug isn't working and if I use the JSR45 type config, the jsp debugging is working, but only for the files in the root of the webapp.
I'm looking right now in the bea server console, in Deployments/Web Application Modules/mywebapp/Monitoring/Servlets section, and I can see that Weblogic is putting out the paths without the "_" sign fot the generated servlets.

There is any way to make this work?


Thank you for your support!

0
Comment actions Permalink

Hello Razvan Mihailescu-Baltag,

The problem is that if I use the Weblogic type config, the jsp debug
isn't working


What does mean 'isn't working'? Please describe your problems in detail.

and if I use the JSR45 type config, the jsp debugging is
working, but only for the files in the root of the webapp.I'm looking right now in the bea server console, in Deployments/Web
Application Modules/mywebapp/Monitoring/Servlets section, and I can
see that Weblogic is putting out the paths without the "_" sign fot
the generated servlets.

There is any way to make this work?


Of course, WebLogic is aware about these "_" so a correct paths can be shown
in WebLogic. But when IDEA calls method 'sourcePaths' from Java Debug Interface
WebLogic will return paths with "_".



0
Comment actions Permalink

I tested the Weblogic Remote Debug option, with 4267 build of IDEA (5.1.2 version) and it's working just fine with jsp debugging. It seems that I was testing on an earlier version this option and only the JSR45 option with this one.

Thank you very much for your help!

0

Please sign in to leave a comment.