Can't debug with jbuilder on a remote s1as

Hi,
I'm trying to run or debug an application on a remote sun one application server from a jbuilder 8 ee. The thing is that the ide deploys the web application without any problem, but when it doesn't run it, and if you try to debug it, you get this error:
-- Cannot start Java debug process VM --
com.sun.jdi.connect.VMStartException: VM initialization failed for: D:\JBuilder8\jdk1.4\bin\java.exe -classpath "D:\Sun\AppServer7\lib\appserv-admin.jar;D:\Sun\AppServer7\lib\appserv-cmp.jar;D:\Sun\AppServer7\lib\appserv-ext.jar;D:\Sun\AppServer7\lib\appserv-jstl.jar;D:\Sun\AppServer7\lib\appserv-rt.jar;D:\Sun\AppServer7\lib\appserv-tags.jar;D:\Sun\AppServer7\lib\jhall.jar;D:\Sun\AppServer7\lib\sun-appserv-ant.jar;d:\JBuilder8\lib\ext\appsrvSUNJB8.jar" -DFILETODEPLOY="D:/pruebas/jbuilder8/pruebasS1AS7/pruebasS1AS.war" com.sun.appserv.jbuilder.server.Main Debug
In the manual says that this could be caused by the admin server not running, but it is not the case, because it is running, and has just been used to deploy the application.
If i do the same operation on tomcat, there are no problems.
Thanks for the help and regards,
Juan

In case you need to debug an application on a remote Sun ONE Server Instance. Go to Admin Tool of Sun ONE Application Server 7 and Start Default Server Instance in the Debug Mode. You need to look for port at which Sun ONE debugger has started. For this find the following Entry in server.xml of Default Server instance.
server.xml is located in config folder in the default server instance folder in that particular domain under the domains directory in <INSTALL_DIR> of Sun ONE Application 7 e.g. if default server instance is server1 in domain1 then server.xml will be located in <INSTALL_DIR>/domains/domain1/server1/config
<java-config java-home="C:/Appservers/Sun/AppServer7/jdk" server-classpath="C:/Appservers/Sun/AppServer7/lib/appserv-rt.jar; " env-classpath-ignored="true" debug-enabled="true" javac-options="-g" rmic-options="-iiop -poa -alwaysgenerate -keepgenerated -g" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=1186 -Xnoagent -Djava.compiler=NONE">
Note the value of address in the debug-options attribute value
specification. In this example the address is 1186.
Now in JBuilder Go To Run->
Configurations and edit Run Time Configuration for your JSP. Go To Debug Tab and Enable Remote Debugging and check Attach Option. In the Host name text field enter the hostname of the Default Server Instance. In the transport select dt_socket from the Type List and in the Address field enter the value of address from the debug-options attribute specified in the server.xml file.
Now try to Debug the application.
For more information on Remote Debugging, check out section 5.8.2 Remote Debugging in User Documentation of the Plugin.

Similar Messages

  • Both AIRSDK 13/14 can't debug with iOS simulator !

    XCode 5.1.1 / Mac OSX 10.9.2 / iOS Simulator 7.1 or 7.0 or 6
    AIRSDK 13/14
    all can't debug in iOS Simulator
    error message:
    Unable to dvtFoundationBundle. Error:

    when you debug your ipa, run the application, and it will show the adobe alert
    but it did not show on iOS 7.03,iPhone 5s,just crashed
    my objective code:
    #import "FlashRuntimeExtensions.h"
    FREObject tryCall(FREContext ctx, void* funcData, uint32_t argc, FREObject argv[])
        FREObject retStr;
        FRENewObjectFromUTF8(1, (const uint8_t*)"", &retStr);
        return retStr;
    void ANEContextInit(void* extData, const uint8_t* ctxType, FREContext ctx, uint32_t* numFunctionsToTest, const FRENamedFunction** functionsToSet)
        *numFunctionsToTest = 1;
        FRENamedFunction* func = (FRENamedFunction*) malloc(sizeof(FRENamedFunction) * *numFunctionsToTest);
        func[0].name = (const uint8_t*) "tryCall";
        func[0].functionData = NULL;
        func[0].function = &tryCall;
        *functionsToSet = func;
    void ANEInit(void** extDataToSet, FREContextInitializer * ctxInitializerToSet, FREContextFinalizer * ctxFinalizerToSet)
        *extDataToSet = NULL;
        *ctxInitializerToSet = &ANEContextInit;
    i think it just a empty and,what should i do?how can i fix this? thank you

  • Can't debug with gdb - avm2-remote times out

    I'm trying to debug a FlasCC SWF that's loaded by our main SWF, but can't get it working and could use some help and/or advice.
    This is on OS X, Firefox 20, Flash debug player 11.7.700.169
    I put flascc/sdk/usr/bin at the front of my path
    I created /Library/Application Support/Macromedia/mms.cfg and added the line "ScriptStuckTimeout=600"
    I exported FLASCC_GDB_RUNTIME=/Applications/Firefox.app
    I launch gdb, but cannot get it to attach to the loaded SWF. I always get a timeout error:
    $ gdb
    GNU gdb (GDB) 7.3
    Copyright (C) 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
    This is free software: you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
    and "show warranty" for details.
    This GDB was configured as "--host=x86_64-apple-darwin10 --target=avm2-elf".
    For bug reporting instructions, please see:
    <http://www.gnu.org/software/gdb/bugs/>.
    (gdb) break main
    No symbol table is loaded.  Use the "file" command.
    Make breakpoint pending on future shared library load? (y or [n]) y
    Breakpoint 1 (main) pending.
    (gdb) run
    Starting program: 
    /xxxxxxx/tools/flascc/1.0.1/sdk/usr/bin/../../usr/share/flascc-run.gdb:1: Error in sourced command file:
    localhost:6666: Operation timed out.
    Looking at flascc-run.gdb, it contains one line:
    target avm2-remote localhost:6666
    So, it seems like something should be listening on port 6666 but isn't? What am I missing here?
    Thanks,
    --brian

    Solved for me
    FlasCC/sdk/usr/bin/g++ -c -g -O0 main.cpp ## additional flags
    FlasCC/sdk/usr/bin/g++ main.o -emit-swf -o main.swf ## additional flags
    changet to
    FlasCC/sdk/usr/bin/g++ -g -O0 main.cpp -emit-swf -o main.swf ## additional flags

  • Debugging with JBuilder...

    Hi,
    When I use the Step Into or Step Over functions of the debugger in JBuilder, it gets into all kinds of "strange" methods implemented by the Java Standard Library. How can I make it pass through my implementations only?
    Thank You,
    Maya.

    Run -> View clases with tracing disabled, in that window you can tell JB which classes shoul be ignored when debugging.
    Abraham

  • What can i do with jbuilder design?

    When i write the followed code in the jbuilder.
    import javax.swing.*;
    import com.appeon.vbapnjava.controls.*;
    import java.awt.*;
    import java.awt.event.*;
    import com.borland.jbcl.layout.*;
    public class Page extends JLayeredPane{
    private String[] layerStrings = { "Yellow (0)", "Magenta (1)",
    "Cyan (2)", "Red (3)",
    "Green (4)" };
    private Color[] layerColors = { Color.yellow, Color.magenta,
    Color.cyan, Color.red,
    Color.green };
    //This is the origin of the first label added.
    Point origin = new Point(10, 20);
    //Adjustments to put Duke's toe at the cursor's tip.
    //This is the offset for computing the origin for the next label.
    int offset = 35;
    private JButton jButton1 = new JButton();
    private JButton jButton2 = new JButton();
    private JButton jButton3 = new JButton();
    public Page() {
    try {
    jbInit();
    catch(Exception e) {
    e.printStackTrace();
    //Create and set up a colored label.
    private JLabel createColoredLabel(String text,
    Color color,
    Point origin) {
    JLabel label = new JLabel(text);
    label.setVerticalAlignment(JLabel.TOP);
    label.setHorizontalAlignment(JLabel.CENTER);
    label.setOpaque(true);
    label.setBackground(color);
    label.setForeground(Color.black);
    label.setBorder(BorderFactory.createLineBorder(Color.black));
    label.setBounds(origin.x, origin.y, 140, 140);
    return label;
    private void jbInit() throws Exception {
    JButton1.setBounds(new Rectangle(62, 77, 130, 64));
    JButton1.setText("eonJButton1");
    this.setOpaque(true);
    eonJButton2.setBounds(new Rectangle(31, 137, 141, 61));
    eonJButton2.setText("eonJButton2");
    eonJButton2.setZIndex(1);
    eonJButton3.setBounds(new Rectangle(254, 65, 103, 29));
    eonJButton3.setText("eonJButton3");
    jButton1.setBounds(new Rectangle(-12, 5, 207, 57));
    jButton1.setDoubleBuffered(true);
    jButton1.setText("jButton1");
    jButton3.setBounds(new Rectangle(32, 117, 303, 44));
    jButton3.setText("jButton3");
    this.add(eonJButton2, DRAG_LAYER,1);
    this.add(jButton1, DRAG_LAYER,-1);
    this.add(jButton3, null);
    when i drag and the button in jbuilder designer view by mouse. the button is not visiable. I think it is a bug of jbuilder , can anyone tell me how can i fixed the bug.
    I think catch the mouse event ,and repaint it ,maybe a solution.

    I'm a bit confused as to what your problem is. If it is a JBuilder issue then it is not a programming issue so no need to look at your code...
    I know your not supposed to mess with the jbinit method as that is what JBuilder uses to build the GUI. You can look for a patch on Borland's website, but if you have added your own code and are hoping JBuilder can utilize that in its designer you are better off starting over and using JBuilder to create the GUI and only modify it once its complete. Keep a backup in case you have to go back.
    when i drag and the button in jbuilder designer view by mouse. the button is not visiable. I think it is a bug of jbuilder , can anyone tell me how can i fixed the bug.
    I think catch the mouse event ,and repaint it ,maybe a solution.

  • Can't debug with mac-intel, firefox and FB2

    Here is the message I get when trying to debug:
    <start>
    Failed to connect; session timed out.
    Ensure that:
    1. You compiled your Flash application with debugging on.
    2. You are running the debug version of the Flash Player.
    <end>
    I assume the flash player 9.0.45 does not have a debug
    version for the intel mac. Has anyone got this to work? In the mean
    time, I'll go back to using FB2 on windows (in parallels).

    Was this ever resolved? Because I am having the same problem.
    I can install the flash player debug version but then the flash
    player won't work in the browser AT ALL.
    When I installed FlexBuilder I was told that I didn't have
    sufficient permission to install the debug flash player even though
    I am an Admin on this computer. I have read that because I am not
    the original root user, that this is the problem, but if I install
    using sudo from the command line, the debug will install, but again
    no flash player will work in the browser.

  • I can't debug with java studio creator (jsf) :

    when i type F5 occur this message :
    Exception while starting debugger:Cannot connect to remote VM
    Wath can i do ?
    Thank you.

    Hi,
    Can we consider this a duplicate thread of
    http://swforum.sun.com/jive/thread.jspa?threadID=52199&tstart=0
    Thanks,
    Creator Team.

  • How can i debug with field(rbkpv-xblnr) wise in MIRO

    Hi Experts,
    i would like to debug field wise, and how can i assign the value in the middle of the debugging for the particular field. please give me the steps.
    thanks in advance.
    Hari

    Hi Hari,
    Use /h to start the debugging.
    use F5 to go single step by step
    double click any of the variable. Then you can change the values.
    Regards
    Arun

  • Debugging with JDeveloper 2 with JDK 2

    Oracle Jdev team,
    I am running jdeveloper 2 (JDK 1.2), build 343. Whenever I
    attempt to debug an app i get this error dialog:
    Cannot debug project with Target JDK 'java
    version "JDK1.2_JDEVELOPER'", can only debug with Target
    JDK 'java version "1.2"'.
    My Project Properties Target JDK Version is pointing to the java
    1.2 java.exe that came with Jbuilder.
    Path of java.exe
    D:\Tools\JDeveloper20\java1.2\jre\bin\java.exe
    Classpath
    D:\Tools\JDeveloper20\java1.2\jre\lib\rt.jar
    Sourcepath
    [D:\Tools\JDeveloper20\java1.2\src.jar]\src\
    I've attempted to use various 1.2 jdks to get the debugger to
    work, but always with the same version.
    The project began as a JDK 1.2 project (did not attempt to
    switch from a jdk 1.1.x project).
    I;m sure you've seen this before, what am I doing wrong???
    THanks in advance, Peter
    null

    I have the same problem but even wierder.
    When I try to debug my project JDeveloper says
    Cannot debug project with Target JDK 'java version
    "JDK1.1.7_JDeveloper'", can only debug with Target JDK 'java
    version "1.1.8'".
    I do indeed have such a Target JDK defined, but I have not
    compiled anything in the current project with that. In fact I
    haven't switched JDKs at all in this project, nor in this
    workspace.
    What gives?
    Markus Burle (guest) wrote:
    : JDeveloper Team (guest) wrote:
    : : Hi
    : : JDeveloper allows to use different JDK's but the debugger
    only
    : : works with JDK's that come with JDeveloper. If you are
    pointing
    : : to a JDK outside it will still work but the debugger will be
    : : disabled.
    : : regards
    : : raghu
    : The original poster (see below, marked with an X) IS using the
    : JDK that comes with JDeveloper. I'm also using it and have the
    : same problem.
    : Markus
    : : Peter (guest) wrote:
    : : : Oracle Jdev team,
    : : : I am running jdeveloper 2 (JDK 1.2), build 343. Whenever I
    : : : attempt to debug an app i get this error dialog:
    : X : Cannot debug project with Target JDK 'java
    : X : version "JDK1.2_JDEVELOPER'", can only debug with Target
    : X : JDK 'java version "1.2"'.
    : X : My Project Properties Target JDK Version is pointing to
    the
    : X java
    : X : 1.2 java.exe that came with Jbuilder.
    : : : Path of java.exe
    : : : D:\Tools\JDeveloper20\java1.2\jre\bin\java.exe
    : : : Classpath
    : : : D:\Tools\JDeveloper20\java1.2\jre\lib\rt.jar
    : : : Sourcepath
    : : : [D:\Tools\JDeveloper20\java1.2\src.jar]\src\
    : : : I've attempted to use various 1.2 jdks to get the debugger
    to
    : : : work, but always with the same version.
    : : : The project began as a JDK 1.2 project (did not attempt to
    : : : switch from a jdk 1.1.x project).
    : : : I;m sure you've seen this before, what am I doing wrong???
    : : : THanks in advance, Peter
    null

  • Remote Debugging with SQL-Developer (APEX)

    Hello all,
    I have a problem with the Remote Debugging functionality in SQL Developer.
    I want to debug a fuction that generate a SQL-Statement. This SQL is the basic of a report in APEX.
    I grant the  privilege DEBUG CONNECT SESSION and DEBUG ANY PROCEDURE for the user.
    This is the PL/SQL in the report region:
    declare
      v_sql varchar2(32767);
    begin
      dbms_debug_jdwp.connect_tcp('192.168.2.1', 4200);
      v_sql := generate_sql(:P1_TABLENAME);
      dbms_debug_jdwp.disconnect;
      return v_sql;
    end;
    When I run the page i get this error:
    ora-30677: session is already connected to a debugger
    But I can`t debug it in SQL-Developer.
    Can you help me please?

    Hi Scott,
    Yes my call to this is in a on submit after computations and validations page process. Below is the code in which I get the insufficient privileges error:
    BEGIN
      IF :DEBUG = 'YES' THEN
        dbms_debug_jdwp.connect_tcp('10.200.37.223',4000);
      END IF;
      species_upload.load_tsv_file(:APP_USER, :P302_SURVEY_BROWSE, 'survey');
      --null;
      IF :DEBUG = 'YES' THEN
        dbms_debug_jdwp.disconnect;
      END IF;
    END; I tried running it in SQL workshop in Apex as
    begin
       dbms_debug_jdwp.connect_tcp('10.200.37.223',4000);
    end;and I still get the insufficient privileges error message.
    My parsing schema is: SNHLIVE
    And the APEX user is: APEX_PUBLIC_USER I got this by doing select USER from dual in the SQL Commands in APEX.
    I have done the following:
    grant DEBUG ANY PROCEDURE to SNHLIVE
    grant DEBUG ANY PROCEDURE to APEX_PUBLIC_USER
    grant DEBUG ANY PROCEDURE to ANONYMOUS
    grant DEBUG CONNECT SESSION to SNHLIVE;
    grant DEBUG CONNECT SESSION to APEX_PUBLIC_USER;
    grant DEBUG CONNECT SESSION to ANONYMOUS
    grant DEBUG on SNHLIVE.species_upload TO SNHLIVE;
    grant DEBUG on SNHLIVE.species_upload TO APEX_PUBLIC_USER;
    grant DEBUG on SNHLIVE.species_upload TO ANONYMOUS;What I followed was David's article: Link: [http://www.oracle.com/technology/oramag/oracle/08-may/o38browser.html?_template=/ocom/print]
    Now i can get remote debugging work on the same database using SQL Plus and Java application but not in Apex.
    Any ideas why?
    Thanks in advance,
    Paul.

  • Using debug mode with jbuilder 4 (or other tool) and wl 6.0

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

    Hello,
    I would like to know if there is a way to use jbuilder environnement to
    debug ejb deployed on WL. I would like to be able to set break points into
    my source code and be able to display variables values.
    If it is not possible with jbuilder, is it possible with an other tool ?
    If not, how can you debug ejb ? For exemple if I want to be sure a specific
    line has been callde, do I need to stop my server, insert a system.out,
    redeploy my ejb and restart my WL or is there a more simple way to do it ?
    Thank's.
    Nicolas.

  • Does WLS support Debugging Servlets with JBuilder 3 ?

    I have read all the news groups and it appears that WLS 4.5.1 does not
    support debugging Servlets with Jbuilder 3.0.
    I am using the trial version, does this matter ?
    Or should I just buy another web server ?
    Joe

    I think below documents will be helpful to you.
    http://docs.oracle.com/cd/E23943_01/apirefs.1111/e13952/taskhelp/webservices/webservicesecurity/CreateDefaultWSSConfig.html
    This document tell you that you can attach a weblogic webservice configuration using weblogic admin console.
    After creating this configuration you need to updated this configuration as per the steps given under :
    Use X.509 certificates to establish identity
    Thanks,
    sandeep

  • Apex 4.1 remote debugging with dbms_debug_jdwp - breakpoints not working

    Hi all,
    I'm using remote debugging with sqldeveloper like described here:
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/remote-debug/index.html
    http://sueharper.blogspot.com/2006/07/remote-debugging-with-sql-developer_13.html
    It works great with my sqldeveloper 3.0 and Apex 4.0.2
    Now i tried the same on two other servers with Apex 4.1
    The debugger is connecting. I can see the connect and diconnect message in the debug windows in the sqldeveloper.
    But the breakpoints are not working.
    Is the debugging working in Apex 4.1 for anyone here?
    Any ideas why the breakpoints are not working?
    BR,
    Björn

    Hi Björn,
    In your APEX application, have you tried updating the URL to include the parameter REMOTE, in order to initiate the remote debug connection? e.g.
    f?p=100:1:&SESSION.::REMOTE::Using the REMOTE parameter cuts out the need to specify debug code surrounding statements in the APEX PL/SQL.
    The steps are as follows:
    1) In SQL Developer, set break points in the the PL/SQL code, and compile using the "Compile for debug" option
    2) Execute the following two grants
    grant DEBUG CONNECT SESSION to <PARSE USER>;
    grant debug on <PROC> to public;  <-- might not need public but just whoever the DAD is running as.5) In SQL Developer, right-click on your connection and select the "Remote Debug..." context menu item. This will launch the "Listen for JPDA" dialog.
    5) Run the APEX Application page containing/activating the code you wish to debug, and update its URL with REMOTE in the debug parameter of the URL, and then hit Enter.
    6) Carry out the action on the page to trigger the breakpoint in your code e.g. submit the page, or click a button on the page, and you should be redirected to the breakpoint in the code in SQL Developer.
    Although I'm running with the latest release of SQL Developer, version 3.2.2 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html), and APEX 4.2, the 'REMOTE' parameter was introduced with our 3.1 release so will also be available for you to use in 4.1.
    Regards,
    Hilary

  • Remote debug with gdb

    Can anybody help?
    I try to use remote debug with gdb-5.0 on Solaris8 x86. When I issue "target cisco ..." I get "No such file or directory" message.
    What is the problem.
    Thanks.

    Solved for me
    FlasCC/sdk/usr/bin/g++ -c -g -O0 main.cpp ## additional flags
    FlasCC/sdk/usr/bin/g++ main.o -emit-swf -o main.swf ## additional flags
    changet to
    FlasCC/sdk/usr/bin/g++ -g -O0 main.cpp -emit-swf -o main.swf ## additional flags

  • Debugging Servlet with JBuilder 6

    Does anyone know how to debug a servlet with JBuilder version 6?
    I have created the servlet without the wizard.
    Thanks.
    -Amar

    You can use ServletExecDebugger from NewAtlanta.
    You can download ServletExecDebugger at
    http://www.newatlanta.com/products/servletexec/download.jsp
    1. Extract ServletExecDebugger files to your local folder
    2. Import ServletExecDebugger.jar file into you JBuilder
    workspace
    3. There will be ServletExecDebuggerMain.java file
    Import that also.
    4. Set ClassPath, Project Path , etc and off you go.
    ServletExecDebugger comes with good documentation
    for a free debugger.
    I have been using it for sometime now (in both JBuilder and Visual Age) and find it relatively simple to setup and good for debugging servlets.
    You cannot debug JSPs that much easier though !
    Hope this helps..
    KD

Maybe you are looking for

  • CX623 external monitor stopped working

    Hello everyone, we have a CX623 which has worked fine for years.   This week the external DELL monitor stopped working.  It just goes into power save mode. The monitor and cable work if plugged into a different laptop. A different monitor which is ok

  • Problem Stopping Tomcat 6.0.18

    I’m not sure if this is the right forum for my problem. I already tried the JavaRanch/Tomcat and NetBeans forums but no one responded. If you can help, I’ll be sure to let them know the answer and that the Sun forum is de man. I now know I can use CT

  • How to shuffle albums in nano 7?

    New to apple and need step by step, please.

  • Upgrade query

    Suppose I have a single license Master Collection CS5.5 suite. Can I purchase 3 upgrades to CS6(one in Home, second in Office and third on my Laptop)? I know that Upgrade from retail version to Volume Licensing is valid, but can I upgrade under Retai

  • How can I take an item from one image and move it to another image?

    How can I take an item from one image and add it to another image, and rotate it to fit?