- This topic has 8 replies, 2 voices, and was last updated 19 years, 1 month ago by rkurin.
-
AuthorPosts
-
rkurinMemberGuys, 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
Riyad KallaMemberRoman,
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?
rkurinMembercheckmarks 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
Riyad KallaMemberRoman,
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.
rkurinMemberIf 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.2Roman
Riyad KallaMemberRoman,
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.
rkurinMembernope, 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.
Riyad KallaMemberNot 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.
rkurinMemberI 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? -
AuthorPosts