facebook

JSP debugging in production

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #287158 Reply

    modjoe23
    Member

    Hi,

    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!
    J

    #287177

    Loyal Water
    Member

    1. 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.

    #287198

    modjoe23
    Member

    Thank 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.
    J

    #287200

    modjoe23
    Member

    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,
    J

    #287206

    Loyal Water
    Member

    Your unable to set a breakpoint or the debugger is not stopping at breakpoints?

    #287284

    max1234
    Member

    @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,
    J

    Sorry 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

    #287286

    max1234
    Member

    Answering 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,
    J

    Sorry 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

    #287293

    modjoe23
    Member

    I am unable to set a breakpoint.

    @support-nipun wrote:

    Your unable to set a breakpoint or the debugger is not stopping at breakpoints?

    #287294

    modjoe23
    Member

    Again 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.

    #287362

    Loyal Water
    Member

    Again 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?

    #287599

    modjoe23
    Member

    Hi. I don’t have the code for the project, just the JSP. Is this at all possible?

    #287667

    Loyal Water
    Member

    Hi. I don’t have the code for the project, just the JSP. Is this at all possible?

    Im sorry thats not possible.

Viewing 12 posts - 1 through 12 (of 12 total)
Reply To: JSP debugging in production

You must be logged in to post in the forum log in