For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 11 replies, 3 voices, and was last updated 17 years, 8 months ago by
Loyal Water.
-
AuthorPosts
-
modjoe23MemberHi,
My company has ME licenses so I decided to try to hook it up for JSP debugging. We used WebLogic 8.1. I don’t have access to the source code as I am a consultant and not a developer. However, there are many times when the JSPs cause issues that I can fix myself so I don’t need to wait for the developers.
I was successful in running WL 8.1 from ME in debug mode. The only thing I need your help with is how to tell ME to find the source code for the JSP I want to debug.
I would greatly appreciate your help with this!
Thanks!
JJuly 16, 2008 at 8:46 am #287177
Loyal WaterMember1. You can create a Launch Configuration for your app server by going to Windows > Preferences > MyEclipse > Application Server > (app server) > Launch > Create Launch Config.
2. Then you can go to the Debug menu, then click the “Open Debug Dialog…” and find your configuration and on the Source tab, add all the projects that you’ll need to debug there and then hit OK
From then on, you can use that Launch Configuration to launch the app server.
July 16, 2008 at 5:40 pm #287198
modjoe23MemberThank you for the explanation. I am only pointing the source tab to my one JSP I am trying to debug. I am still unable to set a breakpoint on my JSP file…my guess is that’s because I got this message “Server started in RUNNING mode”.
Thanks for your help.
JJuly 16, 2008 at 5:50 pm #287200
modjoe23MemberPlease note that I did add the following to weblogic.xml
<jsp-param>
<param-name>compileFlags</param-name>
<param-value>-g</param-value>
</jsp-param>Thanks,
JJuly 16, 2008 at 6:25 pm #287206
Loyal WaterMemberYour unable to set a breakpoint or the debugger is not stopping at breakpoints?
July 18, 2008 at 12:02 pm #287284
max1234Member@modjoe23 wrote:
Please note that I did add the following to weblogic.xml
<jsp-param>
<param-name>compileFlags</param-name>
<param-value>-g</param-value>
</jsp-param>Thanks,
JSorry to butt-in, but I have the same problem.. I have the debugging enabled in weblogic.xml, and I can set breakpoints in the .jsp file just fine and it stops at the breakpoint.
But instead of displaying the .jsp file, top of the stack trace shows pagename__jspService(HttpServletRequest, HttpServletResponse) line :8
Running the file access monitor shows that it tries to find the auto-generated .java file name (the one that weblogic generates from the .jsp) instead of the .jsp file itself.
This is the same behavior that I’m getting from normal Eclipse. I thought that myeclipse has some kind of fix for this, thats why I downloaded it, but so far there seems to be no change from regular eclipse.
I’m running WebLogic on sun jdk 1.4.2, JVM is started with the following params: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:1234 and then I’m debugging remote application giving it port 1234
July 18, 2008 at 12:18 pm #287286
max1234MemberAnswering my own question, it works fine if I change to running WebLogic thru MyEclipse perspective by doing a Configure in the Servers tab, and enabling weblogic 8.1 server there, and launching it from there.
Apparently MyEclipse inserts some kind of interceptor there that help it find .jsp source file correctly.
@max1234 wrote:
@modjoe23 wrote:
Please note that I did add the following to weblogic.xml
<jsp-param>
<param-name>compileFlags</param-name>
<param-value>-g</param-value>
</jsp-param>Thanks,
JSorry to butt-in, but I have the same problem.. I have the debugging enabled in weblogic.xml, and I can set breakpoints in the .jsp file just fine and it stops at the breakpoint.
But instead of displaying the .jsp file, top of the stack trace shows pagename__jspService(HttpServletRequest, HttpServletResponse) line :8
Running the file access monitor shows that it tries to find the auto-generated .java file name (the one that weblogic generates from the .jsp) instead of the .jsp file itself.
This is the same behavior that I’m getting from normal Eclipse. I thought that myeclipse has some kind of fix for this, thats why I downloaded it, but so far there seems to be no change from regular eclipse.
I’m running WebLogic on sun jdk 1.4.2, JVM is started with the following params: -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,suspend=y,address=localhost:1234 and then I’m debugging remote application giving it port 1234
July 18, 2008 at 3:07 pm #287293
modjoe23MemberI am unable to set a breakpoint.
@support-nipun wrote:
Your unable to set a breakpoint or the debugger is not stopping at breakpoints?
July 18, 2008 at 3:28 pm #287294
modjoe23MemberAgain maybe I wasn’t clear. How can I add an already deployed project? When I try to import it, I get nothing. All I want to do is debug one JSP in that already deployed folder.
July 21, 2008 at 4:37 pm #287362
Loyal WaterMemberAgain maybe I wasn’t clear. How can I add an already deployed project? When I try to import it, I get nothing. All I want to do is debug one JSP in that already deployed folder.
This JSP is a part of the project that your debugging? You running a project with the JSP ? You need to run the project against a server to debug the JSP. Are you doing that?
July 27, 2008 at 8:00 pm #287599
modjoe23MemberHi. I don’t have the code for the project, just the JSP. Is this at all possible?
July 28, 2008 at 4:37 pm #287667
Loyal WaterMemberHi. I don’t have the code for the project, just the JSP. Is this at all possible?
Im sorry thats not possible.
-
AuthorPosts
