facebook

Can not set jsp breakpoints in weblogic 8.1 at run time.

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

    rkurin
    Member

    Guys, let me briefly describe my problem.
    Our application has a non standard directory structure so i could not create a normal deployment of our application to the weblogic server, but we do have all of our jsps in the web root directory. Normally we start our application using a batch file and weblogic runs right out of the application’s directory with all the required jars on the weblogic’s system classpath.
    We do have all of our jsps in the single directory, so when I added a web nature to the project this is the directory that i specified for the web root directory. I configured a weblogic integration in a way that it takes a config.xml that we use for our application, all the system attributes and all the jars. All of it is configured in the appserver integration. config.xml points to the ear file that is our application.
    So i can start the application fine using this weblogic integration. I added required parameters to the weblogic.xml so line numbers are fine in the generated class files. I can put breakpoints in my jsps, but only before starting weblogic.
    I can not install breakpoints in my jsps at the run time, i dont see checkmarks next to them in the breakpoints view. I only see checkmarks next to the jsps that i set prior to starting the appserver and these checkpoints are being hit fine.
    How does myEclipse resolve jsp name to classnames that it needs to use to tell JVM where to set a breakpoint?

    Anyways i tried to describe our problem as well as i could, i hope it all makes sense. Help would be really appreciated.
    I can provide more information if needed.

    Thanks,
    Roman

    #239322 Reply

    Riyad Kalla
    Member

    Roman,
    The checkmark actually indicates that the class was found in the running VM… so the fact that you are seeing a checkmark next to your breakpoints BEFORE starting the server really makes a red-flag go up in my mind that something is amiss here. Is it possible that WebLogic is already running on a different port? Can you check the System Services to make sure WebLogic wasn’t installed as one and is already running?

    #239353 Reply

    rkurin
    Member

    checkmarks are not there before i start weblogic, sorry for the confusion. I am just saying that if i put breakpoints in the jsp before i start weblogic and then start weblogic, checkmarks appear when servlet that was generated from the jsp is loaded, which makes sense. On the other hand if i try to set breakpoints when weblogic is already running, checkmarks dont appear next to the new breakpoints. weird thing is the same breakpoints will work and will have checkmarks next to them if i stop and start weblogic.

    Roman

    #239364 Reply

    Riyad Kalla
    Member

    Roman,
    Oh alright I understand the problem better, thank you for the clarification.

    Let me ask you, if you have a page, say Home.jsp, and you set a breakpoint in it, then run WebLogic, and the break point is hit. If you then try and add another breakpoint in the same page, does it have a checkmark? What about trying to set a breakpoint in a page that hasn’t been compiled yet, like Contact.jsp, does that work or no?

    I’m trying to narrow down if this could be a caching issue with how weblogic compiles it’s JSP pages, or if it just a flat out bug.

    #239374 Reply

    rkurin
    Member

    If the breakpoint is hit and you try to set another breakpoint in the same page where breakpoint is located then breakpoint is not gonna have a checkmark next to it unless you restart weblogic.
    It also doesnt work for the page that hasnt been compiled and loaded, i just verified that. Of course everything works fine once you restart.
    Could that be related to my configuration, i mean that seems to be a pretty common use case and i dont see anybody else reporting this.

    I am running windows XP with eclipse 3.1.1 and MyEclipse 4.0.2. Weblogic 8.1 SP4
    Eclipse is being run with JDK 1.5 and Weblogic is run using JDK 1.4.2

    Roman

    #239376 Reply

    Riyad Kalla
    Member

    Roman,
    Try and run Eclipse (using the -vm c:\path to jdk\bin\javaw.exe) with the same VM you are running weblogic and see if that fixes it. The debugger interactions can be flaky sometimes.

    #239383 Reply

    rkurin
    Member

    nope, that didnt work. Is there a way to record interactions between JVM and JDI client? I was trying to use TCP/IP monitor that comes with MyEclipse but that didnt work.

    #239385 Reply

    Riyad Kalla
    Member

    Not at the moment there isn’t, I’m out of suggestions at this point and have asked someone else to take a look at this issue, please hang in there.

    #239557 Reply

    rkurin
    Member

    I was trying to debug this problem and there is a method in the ReferenceTypeImpl called getSourceDebugExtension(). it throws AbsentInformationException and i think it should not when run against a compiled jsp servlet. this class is in the org.eclipse.jdi.internal package.
    I would think that weblogic includes this debug extension when i put “debug” parameter in the weblogic.xml
    Any insight on why JVM doesnt return Debug Extension? could that be a weblogic bug?

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: Can not set jsp breakpoints in weblogic 8.1 at run time.

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