facebook

Debug Java classes in an web application

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #287022 Reply

    antro.peter
    Member

    I have a Web Project in MyEclipse 6.5 (infact I was having this problem even in 6.0), I start my Application Server (WebLogic) from MyEclipse.

    When I have a break-point in any of my java file and start the server in Debug mode. Everytime it asks me to select a source.

    It displays message like “Source not found” and “Edit Source Lookup Path”. Even if I select the project that I need to debug, next time when I start the server again, it asks for this message (dont remember or store this information).

    I do not have it as auto-deployed as we are using Split-dir to deploy our java files using Ant script.

    Is this a known issue?? How do I fix it??

    Thanks!!

    #287031 Reply

    Loyal Water
    Member

    This is a known issue and here is a quick workaround for the issue

    Workaround:
    1. Create a Launch Configuration for WebLogic by going to Window > Prefs >MyEclipse > App Servers > WebLogic > <Vesion you are using> > Launch, click the button.
    2. Hit Apply/OK
    3. Go to the Run menu, then Open Run Dialog
    4. Find your Run Configuration for WebLogic. Go to the Source tab, click Add, add all your projects to it and hit OK.
    5. Now use this run Configuration to start/stop WebLogic, you shouldn’t have the “Source Not Found” problem any more.

    #287035 Reply

    antro.peter
    Member

    I followed the steps. It works fine when I Run or Debug the server from Run -> menu but it still asks me for “Source not found” error when I Run or Debug the server from my Servers view in My Eclipse.

    Is there a way, the weblogic server icon in Servers view be linked to the same as the one that get invoked when I Run it from Run menu?

    #287112 Reply

    Loyal Water
    Member

    Is there a way, the weblogic server icon in Servers view be linked to the same as the one that get invoked when I Run it from Run menu?

    Im sorry thats not possible.

Viewing 4 posts - 1 through 4 (of 4 total)
Reply To: Debug Java classes in an web application

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