Remote debug struts Tomcat 4.1

I'm trying to setup jdeveloper 10g to remote debug a struts application which is located in the web apps of the tomcat directory. I called myself setting up everything by using the help documentation. I'm doing something wrong, I need some help.

Hi.
For remote debugging, the Virtual Machine setting on the Runner options panel is not used. That Virtual Machine setting is used for local running/debugging, when JDev will be launching the debuggee process.
For remote debugging, you need to select the correct Remote Debugging Protocol. In the most recent JDev (the preview that came out in November/December 2004), that setting is in the Tools Preferences dialog box, on the Debugger - Remote panel. In previous versions of JDev, that setting is in the Project Properties dialog, on the Debugger - Remote panel (it's right under the Remote Debugging checkbox).
If you will be starting up Tomcat with ojvm (with -XXdebug,detached,port8080 option), then you want to select the "Attach to OJVM" radio button.
If you will be starting up Tomcat with Hotspot (with -Xdebug -Xrunjdwp:<blah blah blah> options), then you want to select the "Attach to JPDA" (or perhaps, but less likely, the "Listen for JPDA") radio button.
-Liz

Similar Messages

  • Remote Debugging Jdev11 and Tomcat 5.5 ?

    Hi,
    How could i make remote debugging Jdevelopper11 and Tomcat5 ?
    Where could i configure remote Tomcat option ?
    Regards
    Philippe

    Here are some steps with JDev 10g
    http://technology.amis.nl/blog/1984/java-platform-debugger-architecture-jpda-with-tomcat-oc4j-eclipse-intellij-idea-and-jdeveloper
    JDev 11g should be basically the same.

  • How to remote debug JSPs on Tomcat 5.0 from JDev 10.1.2

    I can remote debug Java applications and servlets. But I can not make it stop within any JSP pages while doing remote debug. I have no problem if I debug locally within the built-in OC4J server.
    I set my project properties with remote debugging -> Attaching to JPDA. I start my tomcat using catalina jpda start after setting environment variables JPDA_ADDRESS=8000 and JPDA_TRANSPORT=dt_socket.
    Please help,
    TIA

    Ashraf, thanks for sharing your experience. I would like to comment on your precedure.
    Jdeveloper 10.1.2
    Tomcat 4.1.31 ( version 5.x.x won't work as it needs jdk 1.5 at least, and jdev is configured to run with 1.4 )I was able to use Jdeveloper 9.0.5 to debug a servlet running in Tomcat 5.5.9 with jdk 1.5.0. I would belive there is no fundamental obstacle for Jdeveloper 10.1.2 to debug Tomcat 5.x.x, thanks to the nature of JPDA.
    a- backup $TOMCAT$\bin\catalina.bat.
    b- edit $TOMCAT$\bin\catalina.bat to include the following:
    set JAVA_OPTS=%JAVA_OPTS% -Xdebug -Xnoagent -Djava.compiler=NONE
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000Another way is to set your environment variable JAVA_OPTS. There is then no need to modify catalina.bat.

  • Remote Debug in eclipse

    Hello!
    I am new to eclipse...Can someone tell me how to use remote debug? I thought it is done by running "Debug..." after selecting the java file...Sorry for being so ignorant about this...I will really appreciate your help. Thank you.

    You do not have to have a main() method in the application. In fact you can have a breakpoint in any Java component. It just has to be in debugger's scope and it'll get visited.
    Example: Let's say you're rinning a Tomcat app. You can have a breakpoint inside a servlet's doGet() methof and when you invkoke the servlet from Firefox, Eclipse will pause the excution and will bring the debugger perspective up.
    From the article "Eclipse Debug window should automatically pop-up with the stack pointer on your first breakpoint (See Figure 3: Breakpoint hit in Eclipse's debugger). After that, you can use all the various functions that the debugger has to offer, namely variable assignments, step-into, drop to frame, etc."
    If you're not seeining anything, chances are that you're not executing that piece of code. Double check that and let me know.
    Levent Gurses

  • Remote Debug in oas 4.0.8.2 using JDeveloper3.1

    Now I can do remote debug using JDeveloper3.1 in Tomcat or WebLogic!
    But I can not do remote debug in Oralce Application Server 4.0.8.2.
    Who knows how to remote debug in OAS, mainly for how to configure OAS to support remote debug, please tell me as quickly as possible!
    I appreciate ... very much!!!!!!
    We are using JDeveloper3.1 and OAS for our business application. So we must know how to remote debug in OAS with JDeveloper3.1.

    In the JAva Environment settings for your OAS Application you should add the remote debugging name-value pairs using
    X_OPTION
    X_OPTION
    runjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    X_OPTION debug
    X_OPTION noagent
    JAVA_COMPILER NONE
    INITIAL_HEAP 32m
    MAX_HEAP 32m
    After adding the configuration start the OAS and try to connect to remote OAS VM for JDeveloper
    raghu

  • JVM options for remote debugging

    I'm run Tomcat 5.0.28 using service wrapper and i need help with set the required JVM options for remote debugging from ECLIPSE 3.0.0.

    Where can I find a complete list of available JVM options for WLS?
    For example -Dweblogic.security.SSL.protocolVersion is not listed anywhere
    That is NOT a JVM options as I just explained in your other thread - see that thread for details.
    JVM options
    That "-Dxxx" syntax means you are specifying a system property on the Java command-line when launching Java.
    That property can now be accessed in the Java app
    You can make up and use ANYTHING you want when you write your own apps - those command line entries will just get added to the standard/default System properties as I explain in your other thread.
    Consult the WebLogic documentation (or onliine help if WLS has such a thing) for info on the system properties that have been defined for WLS.

  • Netbeans remote debugging

    Hi everyone!..
    I'm starting an enterprise application, and I've decided to move the app server to another host. The application has one EJB remote and run very well on localhost, but I can't manage to get it working on the another machine !..
    I succesful deploy the enterprise application, the EJB project, and the client, but when I try debug or run it from Netbeans, I get this error message:
    /mnt/dev/java/mxtest/nbproject/build-impl.xml:262: The following error occurred while executing this line:
    /mnt/dev/java/mxtest/nbproject/build-impl.xml:300: Warning: Could not find file /opt/glassfish/domains/domain1/generated/xml/j2ee-apps/mxtest/testClient.jar to copy.
    I got confused, should I deploy the client ? if I don't, how could I run or debug it throw the Netbeans IDE ?
    Also, I used to run app clients by java webstart, and the it shows deployed in the server console, but I get:
    Oct 25, 2007 12:24:14 PM com.sun.enterprise.appclient.MainWithModuleSupport prepareSecurity
    INFO: Security Manager is ON.
    Oct 25, 2007 12:24:15 PM com.sun.enterprise.appclient.MainWithModuleSupport setTargetServerProperties
    INFO: ACC001:Using ClientContainer file: [tmp/sunacc34155.xml].
    Oct 25, 2007 12:24:15 PM com.sun.enterprise.appclient.MainWithModuleSupport <init>
    INFO: ACC024: IIOP endpoint(s) = bahamas:3700
    Oct 25, 2007 12:24:18 PM com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
    WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType: IIOP_CLEAR_TEXT; hostname: 127.0.0.1; port: 3700"
    org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
    I'm using Netbeans 5.5.1 and Glassfish v2-b58. Security Manager according server console is not enabled, and the log show like it does.
    I appreciate your help!
    Edited by: sebaxtz on Oct 25, 2007 11:14 AM

    Originally posted by: scheglov_ke.nlmk.ru
    George Mills <[email protected]> wrote:
    If you use my profiler from SourceForge, then you can or save statistics
    in project (button in "Threads" view) and open it later to view using Eclipse,
    or you can export it in HTML (button export in statistics view's).
    Also it supports remote profiling, look in documentation for Tomcat
    remote profiling description.
    > I'm using the eclipse profiler. However, I am trying to profile a NetBeans
    > Module (sort of like a plug-in). To debug a NetBeans module I use remote
    > debugging. Is it possible to "remote profile" something. Is there a way I
    > can "batch" the statistics to a file like -Xrunhrpof does and analyze it
    > after. Does the eclipse profiler user -Xrunhprof for data collection.
    > I hope this is the run news group. This is really an eclipse IDE question
    > but this was the closet news group I could find on the server.
    > Thanks for any help.
    SY, Konstantin.
    Advanced Eclipse SWT Designer (http://www.swt-designer.com)

  • Remote Debugging in Eclipse

    hi,
    I am using Eclipse3.1 and Tomcat 5.
    While doing remote debugging ,i got a message Failed to connect to remote VM.i searched for forum about this.i got solution but i couldn't rectify this.can any one tell where to insert the line in the tomcat's start.bat ? How to start the tomcat? and remaining settings in Eclipse .I need step by step process.
    my task is to connect to the remote unix server.i dont know how to connect to the server with giving the values of hostname,userid and password .
    Kindly help me ,I spent 2 weeks in this.
    thanking you.

    You need to start the remove VM in debug mode. For that you need to start with following options
    java -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    Then try connecting to Remote VM with IP/Port number 4000.

  • How can i put debug in tomcat

    how can i set debug in my tomcat plz suggest me.
    iam running my aplication in eclipse3.1

    1. How do I configure Tomcat to support remote debugging?
    2. How do I remotely debug Tomcat using Eclipse?
    3. ... well, you get the idea ...
    http://tomcat.apache.org/faq/development.html

  • Remotely debugging JWS

    I have deployed WAR file in Tomcat. Now I am accessing this application through the Java Web Start. I want the debug my code (In Eclipse) while accessing the application through the JWS.
    I did the following:
    1) I started Tomcat in debug mode in port 8000.
    2) I configured this port in Eclipse under Debug option --> Remote Java Application.
    3) I set the env variable JAVAWS_VM_ARGS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket, address=8200,server=y,suspend=n
    4) I accessed the JNLP application. URL used for accessing the application is http://localhost:8080/SAC/webstart/launch.jnlp
    But the application is not launching in the debug mode. I am not getting any hits at my breakpoing in the Eclipse.
    Please help me whether I am doing any mistakes. Also give me some reference how remote debugging works.

    Start webstart from the command line like this:
    JAVAWS_VM_ARGS="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=8070" javaws <url-to-jnlp-file>

  • Remote Debugging w/9iAS  not working !

    I tried posting this in the app server area but apparently, it's too difficult for anyone to answer. No replies.
    We need to debug a deployed jsp that uses java beans.
    The jsp/java beans app is in jdevleoper 9.0.3.1 (windows 2000).
    I have deployed the application to Oracle 9ias java edition (9.0.3) on Red Hat Linux.
    I know how to modify the project settings in jdeveloper for remote debugging.
    when I start debug mode in jdeveloper I am prompted for the host name and port number for the remote debug session. What port do I use ?
    Do I need to do something to start 9ias at a certain port ? If so, how do I do this ?
    I have seen conflicting information on this that mainly refers to a standalone oc4j, not the oc4j in 9ias.
    Frank

    Hi,
    We have gotten many requests for collateral that details these steps. We are currently working on such a document. Keep posted to the JDeveloper OTN website http://otn.oracle.com/products/jdev for updates on this.
    -Stuart

  • How to enable remote debugging for a session other than the current one

    Hi all,
    I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
    More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
    The docs indicate that I should be able to do so:
    dbms_debug_jdwp.connect_tcp(
    host IN VARCHAR2,
    port IN VARCHAR2,
    session_id IN PLS_INTEGER := NULL,
    session_serial IN PLS_INTEGER := NULL,
    debug_role IN VARCHAR2 := NULL,
    debug_role_pwd IN VARCHAR2 := NULL,
    option_flags IN PLS_INTEGER := 0,
    extensions_cmd_set IN PLS_INTEGER := 128);
    But when I try (even as sys), I get the following:
    exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    00022. 00000 - "invalid session ID; access denied"
    *Cause:    Either the session specified does not exist or the caller
    does not have the privilege to access it.
    *Action:   Specify a valid session ID that you have privilege to access,
    that is either you own it or you have the CHANGE_USER privilege.
    I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
    Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

    Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
    I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
    Regards,
    K.

  • (PC and Surface 8.1)bad pool header error: remote debugging using ARM device

    Tools used:
    Microsoft Visual Studio Professional 2013
    Remote Debugger Monitor (Surface RT 8.1)
    I have successfully activated the developer license as administrator.
    I have attempted to run the test app on remote device but my pc crashes before or when reaching certification.
    So far, I have attempted to run an app software for the ARM device; however, ever since I have upgraded the surface to 8.1, I constantly get the bad pool header crash, even after successfully connecting the pc to rt device.
    is there any way I can resolve the issue so I can successfully to remote debugging?
    any help is appreciated.

    Hi,
    Considering that the issue should be related to Windows RT 8.1, and  Since we have limited testing environment, I suggest you submit a new case on Windows RT forum as they will be more professional on your issue:
    This is the Windows RT 8.1 forum link.
    http://answers.microsoft.com/en-us/windows/forum/windowsrt8_1?sort=lastreplydate&dir=desc&tab=Threads&status=&mod=&modAge=&advFil=&postedAfter=&postedBefore=&threadType=All&tm=1392101458999
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us.  Thank you for your understanding.
    Regards,
    Kelvin hsu
    TechNet Community Support

  • Cannot remote debug from JDev 10.1.3 on AS 10.1.2 running hotspot

    Hi,
    I've set up an embedded OC4J instance in an application server as described in the help topic, "Remote Debugging in OC4J" (with a few changes, such as the fact that I added startup options using the OC4J instance Admin page of EM, rather than at the command line (since the instance is embedded in a full AS). I followed the directions specifically for HotSpot, because that's the JVM the instance was set up to use, and I can't change it (I know OJVM enables lots more features, but that's the situation I'm in).
    I've also configured my project for remote debugging, ensuring the host name and port matches, and trying both "Attach to JDPA" and "Attach to OJVM" (these being the only two options, except for starting a listener, which I don't think will help with a web application).
    When I try to debug, though, I get:
    Debugger unable to connect to remote process.
    Should I be doing something differently?
    Thanks much,
    Avrom

    I had the delete key quit working after accidentally pressing a key sequent that included the delete key. I don't know what keys were involved, but the delete key from that point on did nothing.
    I am running JDeveloper 10.1.3.0.4 on Window XP.
    To resolve the problem, I set the keyboard Accelerators back to 'Default' in JDeveloper.
    I selected... Tools->Preferences->Accelerators
    then click on 'Load preset' then I chose 'Default'
    You may need to select something other than default for your platform, but that did the trick for me.

  • How to start listener in sql developer for remote debug

    how to start listener in sql developer for remote debug ? Since the new version 1.1.0.23 is different with the old version for remote debug, I don't know how to start the listener on the new version for remote debug.
    even follow the user guide below and not work . Experts on sql developer please help me with this.
    Remote Debugging
    To debug a procedure or function for a connection where the database is on a different host than the one on which you are
    running SQL Developer, you can perform remote debugging.
    Remote debugging involves many of the steps as for local debugging; however, do the
    following before you start the remote debugging: Use an Oracle client such as SQL*Plus to issue the debugger connection command. Whatever
    client you use, make sure that the session which issues the debugger connection commands is the same session which executes your PL/SQL
    program containing the breakpoints.
    For example, if the name of the remote system is remote1, use the following SQL*Plus command to open a
    TCP/IP connection to that system and the port for the JDWP session:
    EXEC DBMS_DEBUG_JDWP.CONNECT_TCP('remote1', '4000'); The first parameter
    is the IP address or host name of the remote system, and the second parameter is the port number on that remote system on which the debugger
    is listening.
    Right-click the connection for the remote database, select Remote Debug, and complete the information in the Debugger - Attach
    to JPDA dialog box. Then, follow the steps that you would for local debugging (for example, see Debugging a PL/SQL Procedure).
    Debugger - Attach to JPDA This dialog box is displayed when you right-click a database connection name and select Remote Debug.
    Use this
    dialog box if you are using the Sun Microsystem's Java Platform Debugger Architecture (JPDA) and you would like the debugger to listen so
    that a debuggee can attach to the debugger.
    For more information about remote debugging, see Remote Debugging.
    Host: Name or IP address of
    the remote host on which SQL Developer should listen for the database to connect.
    Port: Listening port number on the remote host. You can
    choose any valid port number that is not in use by another process.
    Timeout: The number of seconds that SQL Developer will wait for the
    remote database to make a debugging connection. Don't Show Dialog Box Before Connecting: If this option is checked, this dialog box will not
    be displayed before future connections for remote debugging

    You're not the only one:
    Not able to start remote debug listener
    Re: remote debug question at version 1.1.0.23 64

Maybe you are looking for