Remote debugging in OC4J using JDeveloper

I need to remote debug into a stand-alone OC4J using JDeveloper 10.1.3.1.0. The documentation says the following:
In the <jdev_install>/jdev/lib directory, copy ojc.jar and jdev-remote.jar to <OC4J_HOME>/home/lib.
I can't find directory "<OC4J_HOME>/home/lib" in the stand-alone OC4J? That is, a "home" directory does not exist in the above location. To where should I copy ojc.jar and jdev-remote.jar ?
Thanks,
Travis

Shay,
JDeveloper gives an error when deploying my EJB after starting an OC4J for debugging. In contrast, JDeveloper does successfully deploy my EJB if I start OC4J using "D:\jdev10131\jdev\bin\start_oc4j.bat".
Note that I'm able to start my standalone OC4J successfully after setting the following in a command window:
1. Start a Microsoft Windows command window.
2. set JAVA_HOME=D:\jdev10131\jdk
3. java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -jar oc4j.jar
Below is the the deployment error that JDeveloper gives when deploying my EJB to the debug OC4J. At the bottom it mentions something about "javac.exe not found". Do you know how to fix this?
---- Deployment started. ---- Feb 1, 2007 2:55:04 PM
Target platform is Standalone OC4J 10g 10.1.3 (Standalone_AppServerConnection).
Wrote EJB JAR file to D:\jdev10131\jdev\mywork\fusion_sync\deploy\EngineEjb.jar
Wrote EAR file to D:\jdev10131\jdev\mywork\fusion_sync\deploy\EngineEjb.ear
Uploading file EngineEjb.ear ...
Application Deployer for EngineEjb STARTS.
Copy the archive to D:\jdev10131\j2ee\home\applications\EngineEjb.ear
Initialize D:\jdev10131\j2ee\home\applications\EngineEjb.ear begins...
Unpacking EngineEjb.ear
Done unpacking EngineEjb.ear
Initialize D:\jdev10131\j2ee\home\applications\EngineEjb.ear ends...
Starting application : EngineEjb
Initializing ClassLoader(s)
Initializing EJB container
Loading connector(s)
Starting up resource adapters
Processing EJB module: EngineEjb.jar
application : EngineEjb is in failed state
Operation failed with error:
javac.exe not found under C:\Program Files\Java\jre1.5.0_10, please use a valid jdk or specify the location of your java compiler in server.xml using the <java-compiler .../> tag
Deployment failed
Elapsed time for deployment: 14 seconds
#### Deployment incomplete. #### Feb 1, 2007 2:55:18 PM
Thanks,
Travis

Similar Messages

  • How to create secure EJB web service in Oc4J using JDeveloper?

    We are going to develop a EJB web service running in OC4J using JDeveloper 10.1.3.3.
    By using the JDeveloper feature, we can simply create the web service by using the "Web Service Endpoint Interface" in the session bean.
    However, unlike the web service created from Java class, I can't find any option to change the security setting of this web service. We tried adding annotation like @DenyAll for testing, but there has no effect and related method can still be called without WS-Security header.
    Now, we can only change the security setting via the web console after deployment (select the web service, then enable security in administration page, and then edit security configuration to change the inbound policies for authentication). It works in our local machine, but it may not work in the production environment as we cannot touch the em console.
    May I know if there has any way to include the security setting inside the project?
    Thanks in advance.

    If I am not wrong, you might be probably talking about this :
    http://docs.oracle.com/cd/B40099_02/books/EAI2/EAI2_WebServices33.html#wp179056
    In order to implement the SOAP header, you would have to :
    (1) Define SOAP header in the wsdl of the service.
    (2) Add a new soap binding in the wsdl, which contains soap header and soap body.
    I think, this should get you going..

  • Deploying ADF Application to OC4J Using Jdeveloper

    I tried to deploy an application to standalone OC4J using Jdeveloper, through a process similar to this:
    Deploying a Web Application
    http://www.oracle.com/technology/obe/obe1013jdev/10131/deployment/deployment.htm
    [making WAR for view-controller, JAR for model, and EAR in a new project]
    First I got some errors relating to Apache Log4J jars (org/apache/log4j/Category). The problems are talked over in this forum and oc4j forum. I had to download apache-log4j-1.2.15.zip and add the jar file manually to the project and remove the checks in the WAR file descriptor.
    The application was deployed after some attempts successfully, but, now the first page that appears after launching the application is my Home.jspx which is not the same page which comes up when I use embedded OC4J to run the application. The Home.jspx is blank and when I enter a link manually:
    http://farbod:8888/TestApp/faces/pages/Employees.jspx
    instead of http://farbod:8888/TestApp/faces/pages/Home.jspx
    I receive this error:
    500 Internal Server Error
    Servlet error: An exception occurred. The current application deployment descriptors do not allow for including it in this response. Please consult the application log for details.
    Is there anything wrong with my deployment?
    (I just mentioned my initial problem with deployment to know if that gives a clue.
    I am using JDeveloper 10.1.3.3, OC4J 10.1.3.3)
    Thank you in advance.
    Farbod

    Hi,
    hard to say from the error message. What if you create a EAR file that includes the WAR file and then deploy it through Enterprise Manager in OC4J ? Also, having a separate deployment project bears the risk fo missing dependencies. Ensure that the project has the project's dependency property set to all contributing projects
    Frank

  • Remote debugging plsql procedures in jdeveloper using J2EE container

    I have a J2EE application which is connected to an oracle database .For debugging purposes ,can i remotely debug my plsql stored procedures when an action comes from the J2EE server . That is, can i control a call from the server by using breakpoints in my plsql stored procedures so that i can see the run time parameters to the plsql procedures and so

    Yes you can. See : http://blogs.oracle.com/shay/2005/12/20#a58

  • Debugging PL/SQL using JDeveloper

    Hi all,
    I'm running JDeveloper 10.1.3.2.0 on Windows XP (32-bit) SP2 connecting to a Oracle 10g 10.2.1.0 (64-bit) on UNIX.
    I have compiled the packages and procedure using JDeveloper and can run the procedure using SQL*Plus but I when I try to run the procedure in JDeveloper
    the "Run PL/SQL" dialogue appears, the Messages window shows: "Connecting to the database oradb01". I click OK and nothing seems to happen.
    I have been told by my DBA that I have all the prerequisites to debug PL/SQL so I wonder if I am missing something. Can anyone help?
    Thanks all,
    LG

    Brilliant. Thanks Shay,
    The only thing I wasn't sure about was that I tried to use the IP address of my workstation (from ipconfig) in the DBMS_DEBUG_JDWP.CONNECT_TCP procedure and for some reason it wouldn't work, so I used the Windows full computer name instead and it worked fine.
    Leo

  • Error in remote debugging pl/sql with JDeveloper 10.1.3

    I'm doing remote debugging of some of my pl/sql packages with JDeveloper and I get the following error:
    DECLARE
    ERROR at line 1:
    ORA-00600: internal error code, arguments: [15419], [severe error during PL/SQL
    execution], [], [], [], [], [], []
    ORA-06544: PL/SQL: internal error, arguments: [2603], [], [], [], [], [], [],
    ORA-06553: PLS-707: unsupported construct or internal error [2603]
    When I run this code without the debugger, everything works fine.
    Any idea how to solve this problem?
    Thanks and kind regards
    Uwe

    Hi Lee,
    thanks for your reply.
    My java_pool_size is 32M, and I found out that this seems to be sufficient (means, the pl/sql internal error does not show up) as long as some of my pl/sql packages are not compiled in DEBUG mode.
    The pl/sql package I'm debugging are owned by user A and it calls procedures of a pl/sql package that is owned by a different user B. Calling B's procedures from within A causes the error, if the packages of B are compiled in DEBUG mode. If they are compiled ordinary, debugging A's packages works fine, even with the small java_pool_size.
    During the checks I repeately increased java_pool_size up to 256M, but the problem was persisting, as long as B's packages were compiled DEBUG.
    As I get the whole picture only if A's and B's packages are debugged together, I like to ask for further help.
    Thanks and Kind Regards
    Uwe

  • Remote debugging in JDeveloper

    Hi,
    Can you please provide the steps to do remote Debugging of source from JDeveloper
    Thanks

    are you looking for this?
    http://aboutsoa.wordpress.com/2009/03/10/remote-debugging-in-jdeveloper/
    http://jdeveloperfaq.blogspot.com/2009/12/faq-4-how-to-remote-debug-adf.html
    http://xmlandmore.blogspot.com/2010/12/using-remote-debugging-in-jdeveloper.html

  • 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 do debugging in WebLogic from JDeveloper

    Hi All,
    We in our project are just starting to use JDeveloper instead of Visual Cafe with Weblogic as App. Server. However i am facing this problem while debugging an EJB deployed from JDeveloper 9i to Weblogic 6.1.
    On Clicking Debug|Debug <Project-name> brings up a dialog. After leaving the address field blank(Weblogic running on localhost, and as per your documentation, localhost is default) and port as 5000 (transport_dt_socket set as 5000), the following message comes:
    Debugger attempting to connect to remote process at LocalHost 5000.And it doesn't do anything more.
    Awaiting for your reply on this.
    regards,
    Hiamnshu

    Hi,
    The most important thing is that you need to ensure that WebLogic is start the Java command with debugging options. This is in the JDev documentation in the topic "Starting a Java Process in Debug Mode".
    If you have JSP's and servlets you have other steps as well. I have included the generic steps for any application server. We have plans to post a 'How to remote debug JSP's deployed on Weblogic' in the near future. Keep posted.
    1. You need to replace WebLogic's JSP engine with OJSP and you need to
    setup debugging parameters for OJSP. This is not specifically in the JDev documentation, but you may be able to apply the information found in the topic "Remote Debugging in OC4J".
    Here are some tips:
    A. You'll probably need to specify the following jars in some WebLogic config file. The jar files are all located in <jdev_install>/lib/
    xmlparserv2.jar
    ojc.jar
    jdev-rt.jar
    ojsp.jar
    ojsputil.jar
    B. Add these jar files to the VM's classpath
    C. The OJSP class name is oracle.jsp.runtimev2.JspServlet. You will need to specify this class where you configure your JSP engine information.
    D. You need to pass the following debug parameters. Again this is set up in the app server configuration file(s):
    debu[i]Long postings are being truncated to ~1 kB at this time.

  • How do I connect the debugger for remotely debugging PL/SQL?

    Hi everyone,
    Remotely debugging PL/SQL from JDeveloper and SQL Developer is something I have tried unsuccessfully to do.
    The steps I took were to right-click my connection, select Remote Debug... and specify "4000" for the Port and "n.n.n.n" for the Local address which seems to correctly start the listener. (I used ipconfig to double-check the address.) Then, I run the anonymous block you see below.
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    But, I always get the following error:
    Error starting at line 18 in command:
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    Error report:
    ORA-30683: failure establishing connection to debugger
    ORA-12535: TNS:operation timed out
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 2
    30683. 00000 -  "failure establishing connection to debugger"
    *Cause:    An error was indicated when trying to establish a connection
               to a debugger. Usually a TNS error will display along with
               this message to further explain the problem, although this
               TNS error will likely be hidden if you choose to trap the error.
    *Action:   Correct the indicated parameter value and try again.
    Additionally, my firewall in Windows 7 is disabled, and I work remotely from home via VPN.
    The instructions are thatI followed: Sue's Blog... again...: Remote Debugging with SQL Developer.
    Any help would be greatly appreciated. Thanks!
    James

    I found the answer.
    Object classes are missing.
    The right insert code is down but I have a new question.
    -How can I assign Resource acces to user in PL/SQL?
    Right insert code:
    declare
    vn_retval pls_integer;
    emp_session dbms_ldap.session;
    emp_dn varchar2(256);
    emp_array dbms_ldap.mod_array;
    emp_vals dbms_ldap.string_collection ;
    vv_ldap_host varchar2(256);
    vv_ldap_port varchar2(256);
    vv_ldap_user varchar2(256);
    vv_ldap_passwd varchar2(256);
    vv_ldap_base varchar2(256);
    begin
    vn_retval := -1;
    vv_ldap_host := 'XXXXXXX';
    vv_ldap_port := '389');
    vv_ldap_user := 'LDAP_USER';
    vv_ldap_passwd:= 'LDAP_PASSWD';
    vv_ldap_base := 'LDAP_BASE';
    dbms_ldap.use_exception := true;
    -- Initialize ldap library and get session handle.
    emp_session := dbms_ldap.init(vv_ldap_host, vv_ldap_port);
    -- Bind to the directory
    vn_retval := dbms_ldap.simple_bind_s(emp_session, vv_ldap_user, vv_ldap_passwd);
    -- Process New Entry in the database
    -- Create and setup attribute array for the New entry
    emp_array := dbms_ldap.create_mod_array(4);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'cn', emp_vals);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'sn', emp_vals);
    emp_vals(1) := 'top';
    emp_vals(2) := 'person';
    emp_vals(3) := 'organizationalPerson';
    emp_vals(4) := 'orcluserv2';
    emp_vals(5) := 'orcluser';
    emp_vals(6) := 'inetOrgPerson';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'objectclass', emp_vals);
    emp_vals.delete;
    emp_vals(1) := 'NAME' || '1';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'userpassword', emp_vals);
    -- DN for Entry to be Added under 'ldap_base'
    emp_dn := 'cn=' || 'NAME' || ', ' || vv_ldap_base ;
    -- Add new Entry to ldap directory
    vn_retval := dbms_ldap.add_s(emp_session, emp_dn, emp_array);
    -- Free attribute array (emp_array)
    dbms_ldap.free_mod_array(emp_array);
    -- Unbind from ldap directory
    vn_retval := dbms_ldap.unbind_s(emp_session);
    end;

  • Step Over not working with Remote Debugging of Servlets with JRUN

    Platform: JRun 4, JDK 1.4.1, JDev 9.0.3
    using JPDA and copied jpda.jar to JDEV_HOME/java1.2/jre/lib/ext and set path to jar in app server path.
    using debug args: java.args=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000
    ok, I'm able to attach JDeveloper to JRun and remotely debug by jumping from breakpoint to breakpoint but stepover causes JDeveloper to continue execution to completion or to next breakpoint. Any idea why step over does not work? The only way to halt execution during remote debugging is by using breakpoints.
    Thanks in advance for any insight to this issue.

    Hi Bob,
    I think OTN ate the other thread. It says there are 4 replies, but it won't display them. Here's my latest reply.
    I just noticed something interesting from your original message. You say you are using JDK 1.4.1 for the app server (that's good) and you are using JDev 903. But you say you have copied jpda.jar to JDEV_HOME\java1.2. That doesn't make sense because JDev 903 didn't have a java1.2 directory; I think JDev 903 has a jdk directory which contains JDK 1.3 (actually 1.3.1_03 or something like that).
    Also, jpda.jar is really old and the directions for using jpda.jar and for putting jpda\bin on the app server path is really old. Those directions were needed for JDK 1.2 because JPDA was released AFTER the JDK 1.2 was released. Starting with JDK 1.3, jpda is built in and you don't need the jdpa.jar or the jpda\bin, etc.
    All this reminds me that in JDK 1.2, HotSpot had bugs where stepping didn't work!!! I'm almost positive that this is what you are experiencing. Here is my advice:
    1. Make absolutely sure that you are using JDK 1.4.1 (or at least JDK 1.3 or later) for running your app server. Make sure that you are not using JDK 1.2 - you may have modified your app server so that it uses JDEV_HOME\java1.2\bin\java.exe[i]Long postings are being truncated to ~1 kB at this time.

  • Remote Debugging Portlets

    Hi,
    I am a newbie to Oracle9iAS Portal and Portlets. I already posted this topic on the Jdev Forum but no reply yet. I hope someone here can help.
    I created some Java Portlets with the JDeveloper and the Portlet Wizard and would like to debug them with the JDeveloper when they are executed in the Portal.
    Any help on how to setup the remote debugging? Are there any documents somewhere?
    Any suggestion or help is much appreciated.
    Cheers,
    Erik

    The correct URL is: Remote Debugging in OC4J.
    Or if the above link doesn't work:
    http://otn.oracle.com/jdeveloper903/help/topic?inOHW=true&linkHelp=false&file=jar%3Afile%3A/u01/webapps/OHW/ohw-app/jdeveloper903/helpsets/jdeveloper903/compiling_debugging.jar!/rem_p_main_oc4j.html

  • How to use Remote Debugging in JDeveloper 3.1 ?

    I am trying to use the Remote Debugging option with EJBs in JDeveloper 3.1 with Oracle8i 8.1.6.
    I checking all steps the online walkthrough for Remote Debugging EJB in 8i and it didn't work.
    I'm using Oracle8i EJB/CORBA debug option in project properties, but it does not stop in my EJB's break points.
    I tried deploying the EJB again ( with break points) and again it didn't work.
    The error message I got in the trace file is:
    Errors in file D:\Oracle\admin\SCT\udump\sctS000.TRC:
    ORA-29516: Aurora assertion failure: Java thread deadlock detected
    Could someone please tell me how to use it?
    null

    Which platform is the database running on ??
    Other things you should check -
    when debugging the EJB, JDev
    3.1 looks through your IIOP connections to find the one to use.
    Make sure that the IIOP connection that JDev is using for the debugging matches the IIOP connection that the EJB client application is using.
    raghu
    null

  • Remote Debugging of OJVM without using JDeveloper

    I need to remotely debug a Java program running in an OJVM started with the following command line:
    java.exe -ojvm -XXdebug,detached,port4000,quiet
    Using Oracle's JDeveloper, which can connect and debug this program, is not an option. The program doing the "debugging" is a home-grown utility that will have very specialized functionality unique to the program its debugging. As of right now we would like to use the plain-vanilla Sun's Hotspot 1.4 JVM, if possible, for the "debugger's" jvm. So, if I can get Sun's jdb.exe to connect to the OJVM then I can get the home-grown "debugger" to work too.
    I know if I change the startup parameters of the debugee java program to this:
    java.exe -classic -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000 -Xdebug -Xnoagent -Djava.compiler=NONE
    I can get jdb to connect with this:
    jdb -connect com.sun.jdi.SocketAttach:hostname=myhostname,port=4000
    Changing the startup parameters is something that I absolutely, positively want to avoid.
    So what would be the jdb connect string?
    Is it required that the OJVM be installed and used by the PC where jdb is running?
    The debugger would be running under windows 2000 if that's important to know.
    Thanks.

    Hi.
    jdb uses the Java Platform Debugger Architecture (JPDA). See http://java.sun.com/products/jpda for more information. I suspect that your home-grown debugger is built on JPDA.
    Unfortunately, OJVM does not implement JVMDI (Java Virtual Machine Debugger Interface), which is the part of JPDA that a JVM must implement in order to support JPDA.
    So, you are not going to be able to debug with jdb and OJVM together.
    You can use hotspot for the debuggee's JVM by using the following arguments:
    java.exe -client -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4000
    I know you said that you positively want to avoid changing the startup parameters, but if you want to use jdb (or any home-grown debugger built on JPDA), you can't use OJVM. Sorry.
    -Liz Looney

  • Problems debugging Database Java remotely using JDeveloper 9i (9.04)

    I am currently working on a project where we are configuring a COTS product built onto a Oracle 9i database. The product has up versioned and changed its architecture considerably to support Java on the database as well as PL/SQL in the form of an API set. My team are writing custom code to meet the clients requirements and are all proficient PL/SQL developers and have experience with Java but we are having real trouble developing and testing our code in the same way we used to in PL/SQL using tools such as TOAD and PL/SQL Developer. I have invested some time in working out how to remote debug our Java code and have had some success with JDeveloper but have run into the following issues:
    1. I am unable to add Java objects or variables to the Watch but can view PL/SQL variables.
    2. The reported execution of the code seems inaccurate, i.e. often when I step into the Java code, I receive an exception that prevents me for continuing but suggests little about what has gone wrong.
    3. In general, debugging is a very hit or miss affair and does not appear to be a worthwhile tool in fixing code.
    Has anyone managed to set up Jdeveloper so that it is as proficient as TOAD or the like in debugging Java and can suggest how to resolve these issues?
    Peter
    3.

    Topic closed. Problem was with with database generated by DBCA. Resolved by TARs on Metalink

Maybe you are looking for

  • Runtime error while executing rule

    Hello All,   While executing the DTP for a cube, im facing the error as Runtime error while executing rule -> see long text .   For this source is another Cube, where im loading the data from Cube to Cube. Error Description are as follows:- Error Loc

  • How to get a int value from another class method?

    Hi, how can I get a value of another class method variable value. example, class elist         int a;      ArrayList<Event> eventArray;      void addEvent(Event e);      Event getEvent(int index);      void removeEvent(int index);      void orderEven

  • Is there a compatibility guide for SSDs in the late 2011 macbook pro model?

    Is there a compatibility guide for SSDs in the late 2011 macbook pro model? I'm looking to purchase a 15.4" Late 2011 Macbook pro and was looking a SATA3 SSD that was supported (outside of the ones provided by Apple). Does anyone have any success sto

  • MacBook Pro 13" Late 2011 Internal Speakers Issue

    Every time I use my internal speakers (especially on high voice), my speakers' strength seems to lessen after few seconds of sound. But after about 30 minutes or so, the speakers are back to normal, but the same conflict repeats again after using the

  • Webserver and UCM in different machines

    As the title said.. how do I do this? in the installation guide it's just for both in one machine but how do i install webserver in a windows server and UCM in a unix server? Is this even possible? please some advice or redirect to some solution, Tha