facebook

[Closed] Debugging Weblogic 8.1 Server

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

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

    Postbank
    Member

    Hello,

    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

    #241081

    Scott Anderson
    Participant

    Harmut,

    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.html

    If 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.html

    #241101

    Postbank
    Member

    Hello 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

    #241196

    Scott Anderson
    Participant

    Hartmut,

    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/

    #241281

    Postbank
    Member

    Scott,

    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

    #274734

    how to configure weblogic8.1 into myeclipse

    #274748

    Riyad Kalla
    Member

    phanikanth,
    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/

    #276555

    adnan_s
    Member

    I 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.html

    Even 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

    #276559

    Riyad Kalla
    Member

    Adnan,
    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.

Viewing 9 posts - 1 through 9 (of 9 total)
Reply To: [Closed] Debugging Weblogic 8.1 Server

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