For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 8 replies, 5 voices, and was last updated 18 years, 6 months ago by
Riyad Kalla.
-
AuthorPosts
-
PostbankMemberHello,
I tried to launch the local Weblogic 8.1 server from inside the MyEclipse IDE for remote debugging.
When I configure the settings
-Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=9999,suspend=n
in the “Default VM Arguments” for the application server, I get the following error:
A configuration error occured during startup. Please verify the preference field with the promt: Invalid listen port number: localhost:4457 Transport dt_socket failed to initialize, rc = -1.
Where and how have I to configure it?
I got an email from support with links to some tutorials but it does not really help me. The weblogic server is well configured and running but I cannot connect with the debugger.
As far as I understand, I have to configure the project in the eclipse debug page as Remote Java Application. In the connection properties I have to specify a port number for the debugger connection. Where can I tell the weblogic server which port he has to use?
Or am I wrong and have to do something totally different to debug my applications in weblogic server?
Hartmut Trüe, AWD
November 8, 2005 at 6:18 pm #241081
Scott AndersonParticipantHarmut,
There are two ways to launch and debug WebLogic 8.1 with MyEclipse. If
WebLogic is installed on a different machine than your development
environment, you can use our remote debugging facility, which is detailed in
the Remote Debugging tutorial in the Documentation section here:
http://www.myeclipseide.com/ContentExpress-display-ceid-67.htmlIf WebLogic 8.1 is installed on the same machine as MyEclipse, you can more
easily use our WebLogic 8 application server connector. How to configure
and use application servers in general is described in the Using Application
Servers tutorial, which is also in the Documentation section. For an
example of configuring the WebLogic 8 connector specifically, there’s an FAQ
entry here: http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.htmlNovember 9, 2005 at 1:57 am #241101
PostbankMemberHello Scott,
thankyou for your reply. It got this already by email from you, but it doesn’t help me.
Ok, step by step:
– your first topic, remote debugging with weblogic server on another machine, works fine.
– your second topic: I can start the local weblogic server from inside the ide, it works fine, too.
But how can I switch the ide (not the server – it is in running in debug mode) to debugging?
Have I to configure my Application as “Java Application” or as “MyEclipse Externally Launched Server” or as “remote Java Application” in the eclipse menu “Run->Debug”?
This question is not covered by you manual in the second link.
Hartmut
November 9, 2005 at 5:56 pm #241196
Scott AndersonParticipantHartmut,
But how can I switch the ide (not the server – it is in running in debug mode) to debugging?
Launching using the MyEclipse server connector (second topic) will launch in debug mode by default based on the setting of the debug preference on the connector preference page. The first option launches in debug mode automatically, since you specify it on the commandline.
What makes you think you’re not in “debug mode”? If it’s setting JSP breakpoints the issue is likely that you haven’t included a weblogic.xml file in your application as described here: https://www.genuitec.com/forums/topic/jsp-debugging-with-weblogic-7-amp-8-closed/
November 11, 2005 at 2:56 am #241281
PostbankMemberScott,
I was not in debug mode because after switching to the debug perspective there was no connection to the weblogic server.
I think there was something wrong with the installation, because after a re-installation of MyEclipse it is now working as expected.
Thankyou.
Hartmut
August 29, 2007 at 5:45 am #274734
phanikanth.mallemnagaMemberhow to configure weblogic8.1 into myeclipse
August 29, 2007 at 8:44 am #274748
Riyad KallaMemberphanikanth,
After you have WebLogic installed, configuring it will look a lot like this:
https://www.genuitec.com/forums/topic/weblogic-8-what-does-a-configured-connector-look-like/October 5, 2007 at 10:42 am #276555
adnan_sMemberI had tried every single instruction in this post and I was still not able to get my Weblogic 8 server to stop at a breakpoint on my JSP. Even this link didn’t help:
http://www.myeclipseide.com/PNphpBB2-printview-t-18388-start-0.htmlEven rigorous searching on internet didn’t help.
Since I was stepping my way through the “Working With Web Projects – Quickstart” tutorial in MyEclipse Help, I had expected that this step would be included but unfortunately it wasn’t. This was confusing.
I needed to turn ON the options “Activate Debug View when a breakpoint is hit”, and “Activate Workbench when a breakpoint is hit”. Here are the steps:
1. click Window in the menu
2. click Preferences
3. Highlight Run/Debug option
4. Now turn ON the option “Activate Debug View when a breakpoint is hit”
5. then turn ON the option “Activate Workbench when a breakpoint is hit”
6. Click Apply, and OK.Hope this helps somebody.
-Adnan
October 5, 2007 at 10:49 am #276559
Riyad KallaMemberAdnan,
Thank you for following up for other folks that may be working in workspaces with these settings turned off, would certianly be frustrating trying to figure out why it wasn’t triggering the debug view or jumping to the breakpoint. -
AuthorPosts
