facebook

Debugging on WebSphere 6

💡
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 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #244345 Reply

    kumarsn
    Member

    I am trying to debug JSPs deployed in WebSphere 6.0 and wondering if this is supported by MyEclipse 4.0.3. As far as I know, WebSphere 6.0 is JSR-045 compliant for native JSP debugging. I followed the instructions on IBM developerworks to include debug info in the JSPs:

    http://www-128.ibm.com/developerworks/websphere/techjournal/0403_johnson/0403_johnson.html

    Has anyone successfully done this?

    Thanks for your help.

    MyEclipse configuration:

    *** Date: Wed Jan 11 11:22:18 CST 2006

    *** System properties:
    OS=WindowsXP
    OS version=5.1
    Java version=1.4.1_02

    *** MyEclipse details:
    MyEclipse Enterprise Workbench

    Version: 4.0.3 GA
    Build id: 20051025-4.0.3-GA

    *** Eclipse details:
    Eclipse SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Platform

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse RCP

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Java Development Tools

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Plug-in Development Environment

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse Project SDK

    Version: 3.1.0
    Build id: I20050627-1435

    Eclipse startup command=-os
    win32
    -ws
    win32
    -arch
    x86
    -launcher
    C:\eclipse\eclipse.exe
    -name
    Eclipse
    -showsplash
    600
    -exitdata
    d74_64
    -vm
    C:\j2sdk1.4.1_02\jre\bin\javaw.exe

    #244348

    Riyad Kalla
    Member

    kumarsn,
    Have a look at our Guide specifically for WebSphere 6: http://www.myeclipseide.com/images/tutorials/quickstarts/websphere6/

    #244370

    kumarsn
    Member

    I followed the WebSphere 6 section of the developer guide that you pointed out but still can’t get the debuuger to break in the JSP pages. Debuging of regular Java code works fine. Are IBM’s instructions on building JSPs with debug info correct – I didn’t see anything regarding that in the MyEclipse tutorial.

    Thanks

    #244371

    Riyad Kalla
    Member

    Are you using the same JDK to run MyEclipse and WebSphere? Are you running WebSphere from MyEclipse in debug mode? (double check your connector settings)

    #244373

    kumarsn
    Member

    I know I am starting WebSphere in debug mode since normal Java debugging works. My default JRE in Preferences->Java->Installed JREs and the JRE in Preferences->MyEclipse->ApplicationServers->WebSphere 6->JDK both point to C:\Program Files\IBM\WebSphere\AppServer\java

    #244388

    kumarsn
    Member

    I was also wondering if there is any way to get JSP debugging working with WebSphere 5.0 since that didn’t support JSR-045. Is anyone aware of a fix pack that can be used with WebSphere 5.0 for this.

    Thanks

    #244406

    Scott Anderson
    Participant

    My guess would be that the WebSphere domain may not really be coming up in full debug mode. You can verify debugging is on by checking
    in profiles\default\config\cells\[your cell name]Node01Cell\nodes\[your node name]Node01\servers\server1\server.xml
    and look for the jvmEntries line – the debugMode entry should be set to true and have a similar debugArgs setup:
    <jvmEntries xmi:id=”JavaVirtualMachine_1099753628812″ … debugMode=”true” debugArgs=”-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7777″ …/>

    If that’s not the case, you need to start WebSphere one time and then use the administration console to turn on debugging for the domain.

    Did you install the application through the WAS administartion console as shown in the WebSphere 6 tutorial ?

    If so, the issue might be the location of the particular breakpoint. Can you create a simple web project that contains only a JSP page based on our standard JSP template and then deploy that wrapped in an EAR? Can you set a breakpoint in the Java code in that page and have it work after installation in the server?

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: Debugging on WebSphere 6

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