facebook

Weblogic JSP Debug

💡
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 IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #232594 Reply

    Barry McLeer
    Member

    I know this has been asked before, but I have gone through the previous posts and nothing has worked yet.

    Yesterday I tried to set up remote debugging from myeclipse to weblogic. At the time I was using eclipse 3.0 with myeclipse 3.8.4. I managed to get it set up but couldn’t get jsp debugging to work. I could stop/start weblogic from myeclipse, and debug servlets and pojo’s. I read over the support forum, but everything I tried didn’t work.

    This morning I uninstalled eclipse and myeclipse, and installed eclipse 3.1 (Build id: I20050627-1435) and myeclipse 3.9.210 (Build id: 20050627-4.0-Milestone-2). I am using sun jdk 1.5.0_01. Weblogic 8.1 (sp4) is installed on the same machine using sun jdk 1.4.2_05.

    I set up a new project called WLJSPDebugTest with one jsp and one servlet. Again, I can debug the servlet no problem, but cannot debug the jsp. The error I get is “Source not found”. The project is deployed to “C:\bea\mydomain\applications\WLJSPDebugTest”. The debug parameter is set to true in the weblogic.xml file and the source is on the ‘Source lookup path’ in myeclipse.

    Here are the general questions answered:

    – What operating system and version are you running?
    XP Pro

    – What Eclipse version and build id are you using?
    3.1 (Build id: I20050627-1435)

    – Was Eclipse freshly installed for MyEclipse?
    Yes

    – If not, was it upgraded to its current version using the update manager?
    n/a

    – Are any other external plugins installed?
    Nope.

    – How many plugins in the <eclipse>/plugins directory
    are like org.eclipse.pde.*
    org.eclipse.pde.build_3.1.0
    org.eclipse.pde.doc.user_3.1.0
    org.eclipse.pde.junit.runtime_3.1.0
    org.eclipse.pde.source_3.1.0

    – What MyEclipse version are you using?
    3.9.210 (Build id: 20050627-4.0-Milestone-2)

    – What JDK version are you using to run Eclipse?
    1.5.0_01

    – What JDK version are you using to launch your application server?
    1.4.2_05

    – What steps did you take that resulted in the issue?
    Tried to debug weblogic jsp

    – What application server are you using?
    weblogic 8.1 (sp4)

    – Are there any exceptions in the Eclipse log file?
    (<workspace>/.metadata/.log)
    nope.

    Any help would be much appreciated.

    thanks

    barry

    #232601

    Scott Anderson
    Participant

    Barry,

    There are only a couple of things you need to ensure here:
    1) Make sure you’re launching WebLogic with one of the JDK’s it ships with.
    2) Make sure your web application has a WEB-INF/weblogic.xml file in it that looks like this:

    
    <!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>
    

    I’d also suggest that you configure weblogic for launch with our connector first, then try debugging the application to make sure you can get that working. You can see an example config in the FAQ here:
    http://www.myeclipseide.com/FAQ+index-myfaq-yes-id_cat-18.html

    That will let us determine if it’s an application configuration problem or a server configuration issue. For a test application, please simply generate a Web Project and the default JSP from our JSP wizard. Place a breakpoint on one of the two lines in the scriptlet at the top of the file. Does that work for you?

    Once local debugging works, give remote debugging a try using the remote debugging tutorial here:
    http://myeclipseide.com/enterpriseworkbench/help/index.jsp?topic=/com.genuitec.myeclipse.doc/html/quickstarts/remotedebugging/index.html

    #232703

    Barry McLeer
    Member

    Make sure you’re launching WebLogic with one of the JDK’s it ships with.

    i am.

    Make sure your web application has a WEB-INF/weblogic.xml file in it that looks like this:

    it does.

    configure weblogic for launch with our connector first

    This is what i was doing originally. Again, I can debug servlets and regular classes, but not JSP’s. (source not found)

    barry

    #232714

    Scott Anderson
    Participant

    For a test application, please simply generate a Web Project and the default JSP from our JSP wizard. Place a breakpoint on one of the two lines in the scriptlet at the top of the file. Does that work for you?

    And what about this from my previous post?

    #232716

    Barry McLeer
    Member

    Yes, I am using the default JSP in a new web project.

    #232753

    Scott Anderson
    Participant

    Barry,

    Can you zip your small test project and send it to us so we can test with it? Please reference the URL for this thread in the email to suppport@… so we can tie the two together. This way we can be sure we’re talking about exactly the same thing.

Viewing 6 posts - 1 through 6 (of 6 total)
Reply To: Weblogic JSP Debug

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