facebook

Debug issues using Weblogic 9.2 and myEclipse 6.5

  1. MyEclipse Archived
  2.  > 
  3. Application Servers and Deployment
Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #297243 Reply

    Two issues:

    1) When I try to run the debugger in myEclipse 6.5 under Weblogics 9.2 nothing happen. I put in the beakpoints, but when I should hit the breakpoint, the debugger never stops at the requested breakpoint. I have the Weblogics server started in debug mode. Is there a setting or an add-on that I need?

    2) If I run the debugger in myEclipse 6.5 under Weblogic 8.1, the debugger works with regard to the java code. But once it hits JSP code, the debugger no longer walks through the lines. Is there something I need to add on for the JSP code.

    #297286

    support-joy
    Member

    I don’t have weblogic 8.1 and 9.2 with me. I will have a dev team member assist you with this issue. Sorry for the inconvinience.

    #297291

    Loyal Water
    Member

    1) When I try to run the debugger in myEclipse 6.5 under Weblogics 9.2 nothing happen. I put in the beakpoints, but when I should hit the breakpoint, the debugger never stops at the requested breakpoint. I have the Weblogics server started in debug mode. Is there a setting or an add-on that I need?

    Are you debugging a project that has been created using MyEclipse?

    2) If I run the debugger in myEclipse 6.5 under Weblogic 8.1, the debugger works with regard to the java code. But once it hits JSP code, the debugger no longer walks through the lines. Is there something I need to add on for the JSP code.

    This is a WebLogic 8 tip but you can try this with 9.2
    https://www.genuitec.com/forums/topic/weblogic-8-jsp-debugging-is-broken-but-it-supports-jsr-45/

    #297474

    With regard to your question for Issue 1, yes we are trying to debug a project that has been created using myEclipse and was built using Ant.

    With regard to Issue 2, I made the changes as suggested in the link, but have had no luck in getting the debugger to work for the JSP code.

    #297493

    Loyal Water
    Member

    Please make sure with your <javac> task, your setting the debug and debuglevel arguments:
    http://ant.apache.org/manual/CoreTasks/javac.html

    Without that, the MyEclipse debugger has no information to go on from the running class

    #297667

    Here is the section from the build.xml regarding the javac. I added the debuglevel option, but the debug option was laready set to true.

    <target name=”compile”>
    mkdir dir=”${build.classes}” />
    <javac destdir=”${build.classes}” classpathref=”lib.classpath” debug=”true” debuglevel=”lines,vars,source”>
    <src path=”${src}” />
    </javac>
    </target>

    When I ran the app in debug mode, when it hit the first breakpoint, I got the following message;

    Unable to install breakpoint in com.sherwin.consumer.sfa.db.AccountHome$$EnhancerByCGLIB$$a6332a5f due to missing line number attributes. Modify compiler options to generate line number attributes. Modify compiler options to generate line number attributes.

    I looked in the Java compiler options and option “add line number attributes to generated class files” was turned on since it was using the default comipler setting.

    #297693

    support-joy
    Member
    #297733

    Loyal Water
    Member

    gjs18c,
    It looks like whatever you are using (Spring maybe?) is doing something to enhance/instrument your AccountHome class at runtime, so when you go to debug it, the version running on the server doesn’t resemble the one in MyEclipse — so the MyEclipse debugger is confused.

    I’m afraid I don’t have a solution to this issue. Sorry about that.

    #297814

    I have had some success on both of my issues. With regard to issue #1 for Weblogic 9.2 and Eclipse 6.5, I have been able to get the debugger working for the .java files. The reason that it was not working was that the debugger was using a default path which did not contain the project that I was trying to debug. So once I changed the path to my project, the breakpoints in the java files were being executed. I still have a question as to whether the debugger can debug the XHTML files? When I put a breakpoint in the XHTML file, the breakpoint seems to be ignored. Is there any way to get the debugger to debug the XHTML files?

    With regard to issue #2 for Weblogic 8 and Eclipse 6.5 not debugging the JSP code, by adding the following to the weblogic.xml file it started working:
    <jsp-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </jsp-param>

    Thanks for all your help thus far.

    #297842

    support-joy
    Member

    gjs18c,

    I am afraid debugging of XHTML files is currently not supported by MyEclipse right now. Sorry for the inconvinience.

    #297998

    Thanks for all your help. My debugger is working much better than when I started this exercise.

Viewing 11 posts - 1 through 11 (of 11 total)
Reply To: Debug issues using Weblogic 9.2 and myEclipse 6.5

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