- This topic has 3 replies, 2 voices, and was last updated 21 years, 5 months ago by
susangheath.
-
AuthorPosts
-
susangheathMemberOS: Windows 2000 Server
WLS: 7.0 SP4
Eclipse: 2.1.1
MyEclipse: 2.6.2I have installed WLS 7.0 and created a “WLS Domain” using the BEA “Domain Configuration Wizard”. I setup the WLS server for MyEclipse under “Window, Preferences, MyEclipse, Application Servers, Weblogic 7”. I believe it is configured correctly. Then I created a new “J2EE Web Module Project”. To that I added a new JSP using the JSP Wizard. I did not modify the JSP created by the wizard. I started the Weblogic server from the MyEclipse menu bar. I was able to access my JSP through the browser.
Then, I tried to set a breakpoint and debug the JSP. When I tried to access it again, the browser just hung-up & the JSP was never displayed. The breakpoint was never reached in the code. It looked like Weblogic was attempting to load the server (based on -verbose output from JVM), but it never made it back to the breakpoint.
I am able to successfully debug JSPs with MyEclipse & Tomcat 5.
Any ideas what might be happening with Weblogic, or how I can troubleshoot this?
This is output from the server when it starts in Eclipse:
<Sep 18, 2003 4:22:01 PM EDT> <Notice> <WebLogicServer> <000331> <Started WebLog
ic Admin Server “myserver” for domain “localdomain” running in Development Mode><Sep 18, 2003 4:22:02 PM EDT> <Notice> <WebLogicServer> <000365> <Server state c
hanged to RUNNING>
<Sep 18, 2003 4:22:02 PM EDT> <Notice> <WebLogicServer> <000360> <Server started
in RUNNING mode>Does that look correct? I was using Weblogic 6.x in the past so I’m not sure if the “started in RUNNING mode” message just means the server is running -or- it’s not in Debug mode any more.
Scott AndersonParticipantWe’ve seen this “hanging” behavior a couple of times in the past and it’s typically been an Eclipse / JDK interaction issue. What JDK are you using to launch Eclipse and what JDK are you using to launch Weblogic? Is this the same one you’re using for Tomcat? Are there any errors in the Eclipse log file (<workspace>/.metatdata/.log)?
The other threads on this are:
https://www.genuitec.com/forums/topic/tomcat-ide-hangs-when-break-point-is-set-closed/&highlight=hangs
https://www.genuitec.com/forums/topic/debugging-weblogic-6-1/&highlight=hangs–Scott
MyEclipse Support
susangheathMemberI was using jdk 1.3.1 to start eclipse & jdk 1.4.1_02 to start Weblogic. I changed it so I was using jdk 1.4.1_02 for both.
The good news is that after I made the change, it quit hanging up & the JSP is now displayed in the browser. The bad news it that it doesn’t stop at the breakpoint – just displays the page.
I tried upgrading to jdk 1.4.1_05 with the same result. I also tried 1.4.2 on a completely separate machine with the same result.
Tomcat 5 still works with 1.4.1_05. JBoss 4.0.0 is doing the same thing as Weblogic 7.0 (displaying the page, but not stopping at the breakpoints).
There are no errors in the log file. MyEclipse is configured to start Weblogic in Debug mode. Is there anything else I might be missing?
susangheathMemberOops, please disregard my message below. I found a previous post that explained how to fix my “not stopping at the breakpoints” problem & everything is working now. You may consider this issue closed. Thanks so much for your help!!
FYI, below are the instructions from Scott in a previous post that fixed my second problem:
With MyEclipse 2.1.1 EA2, full JSP debugging with WebLogic 7 & 8 is possible. The only thing you have to do to enable it is to tell WebLogic that you’d like debug information placed in your JSP files when they’re compiled. You do this by providing a META-INF/weblogic.xml file in your web project that looks like the following:
<!DOCTYPE weblogic-web-app PUBLIC “-//BEA
Systems, Inc.//DTD Web Application 7.0//EN”
“http://www.bea.com/servers/wls700/dtd/weblogic700-web-jar.dtd”>
<weblogic-web-app>
<description>WebLogic Descriptor</description>
<jsp-descriptor>
<jsp-param>
<param-name>debug</param-name>
<param-value>true</param-value>
</jsp-param>
</jsp-descriptor>
</weblogic-web-app>Once you add the descriptor and deploy your project, you should be able to set breakpoints on the Java code embedded in your JSP’s and step through it just like you do regular Java files.
Enjoy!
–Scott
MyEclipse Support -
AuthorPosts