JDeveloper 11 Running OC4J + EJB

Folks I´m having this problem .
C:\Java\jdevstudio1111\jdk\bin\javaw.exe -client -classpath C:\Java\jdevstudio1111\j2ee\home\oc4j.jar -javaagent:lib/java/internal/toplink-agent.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false -Djava.security.policy=C:\Java\jdevstudio1111\system11.1.1.0.20.46.84\o.j2ee\embedded-oc4j\config\java2.policy oracle.oc4j.loader.boot.BootStrap -config C:\Java\jdevstudio1111\system11.1.1.0.20.46.84\o.j2ee\embedded-oc4j\config\server.xml
[waiting for the server to complete its initialization...]
Error occurred during initialization of VM
agent library failed to init: instrument
Error opening zip file: lib/java/internal/toplink-agent.jar
I can´t fix this, I start my jdeveloper with jdevw -su and nothing happens, how can I fix this problem ?
Thanks a lot.

Hi,
go to JDeveloper home and delete the system xxx directory. Its a rough therapy but after that the embedded OC4J is fully reset
Frank

Similar Messages

  • Orion-ejb-jar ignored by JDeveloper deploying to OC4J

    orion-ejb-jar.xml is ignored by JDeveloper 903 when deploying to external OC4J 903. Specific mappings like those below are lost:
    <entity-deployment name="RequestEJB" copy-by-value="false" data-source="jdbc/OracleDS" exclusive-write-access="false" table="REQUEST">
    <primkey-mapping>
    <cmp-field-mapping name="requestid" persistence-name="REQUESTID" persistence-type="NUMBER(9)"/>
    </primkey-mapping>
    <cmp-field-mapping name="requestid" persistence-name="REQUESTID" persistence-type="NUMBER(9)"/>
    <cmp-field-mapping name="requestuser" persistence-name="REQUESTUSER" persistence-type="VARCHAR2(30)"/>
    <cmp-field-mapping name="requestlabel" persistence-name="REQUESTLABEL" persistence-type="VARCHAR2(12)"/>
    <cmp-field-mapping name="requestdate" persistence-name="REQUESTDATE" persistence-type="DATE"/>
    <cmp-field-mapping name="isurgent" persistence-name="ISURGENT" persistence-type="VARCHAR2(1)"/>
    </entity-deployment>
    Instead, JDeveloper creates a new orion-ejb-jar.xml with different table name:
              <entity-deployment name="RequestEJB" location="RequestEJB" local-wrapper="RequestHome_EntityHomeWrapper421" table="RequestEJB_modulab_Proj_n76ccv" data-source="jdbc/OracleDS" exclusive-write-access="false" locking-mode="optimistic" update-changed-fields-only="true" delay-updates-until-commit="true" min-instances-per-pk="0" max-instances-per-pk="50" disable-wrapper-cache="true">
                   <primkey-mapping>
                        <cmp-field-mapping name="requestid" persistence-name="requestid" />
                   </primkey-mapping>
                   <cmp-field-mapping name="requestuser" persistence-name="requestuser" />
                   <cmp-field-mapping name="requestlabel" persistence-name="requestlabel" />
                   <cmp-field-mapping name="requestdate" persistence-name="requestdate" />
                   <cmp-field-mapping name="isurgent" persistence-name="isurgent" />
                   <finder-method query="">
                        <!-- Generated SQL: "select RequestEJB_modulab_Proj_n76ccv.requestid from RequestEJB_modulab_Proj_n76ccv -->
                        <method>
                             <ejb-name>RequestEJB</ejb-name>
                             <method-name>findAll</method-name>
                             <method-params>
                             </method-params>
                        </method>
                   </finder-method>
              </entity-deployment>
    orion-ejb-jar is placed at the META-INF folder. Why does JDeveloper ignore it? It does not ignore orion-application.xml nor orion-web.xml. Must I configure project or deployment profiles not to overwrite orion-ejb-jar?

    I believe that it is not JDeveloper issue but OC4J one. It does not pick up new orion-ejb-jar.xml if you re-deploy bean(s). It should deploy your orion-ejb-jar.xml when you're deploying yor application for the first time (so there is not orion-ejb-jar.xml in deployments directory). If you want OC4J to pick changes up remove orion-ejb-jar.xml from $OC4J_HOME/application-deployments/<application>/<Bean>.jar/ and then deploy it either manually or with JDeveloper. I hope it will help.

  • OC4J: EJB FREEZING IN FINDER METHOD

    I HAVE VARIOUS EJB BASED ON VIEWS, AND ALL EXCEPT ONE FREEZES WHEN I INVOQUE IT'S FINDER METHODS. I HAVE CHECKED EVERYTHING AND FOUND THE FOLLOWING MESSAGES:
    Thr[thread 5]-DriverManagerPooledConnection.close(): begin---this.nextConnectionNumber=1
    Thr[thread 5]-DriverManagerPooledConnection.close(): begin---this.closed=false
    AND IT LOOPS FOREVER WITH THE FOLLOWING MESSAGES:
    Thr[thread 5]-ApplicationServerTransaction.setRollbackOnly(message, Throwable_Obj): begin--message=timed out
    Thr[thread 5]-ApplicationServerTransaction.setRollbackOnly(message, Throwable_Obj): begin--Throwable_Obj=null
    Thr[thread 5]-ApplicationServerTransaction.setRollbackOnly(message, Throwable_Obj): end
    Erika.

    Hi Erika,
    It looks like you are running OC4J in "debug" mode. I don't know whether this will help you, but I have found that sometimes, running in debug mode can cause problems, but these problems will "disappear" when not running in debug mode. So have you tried running OC4J in "normal" (i.e. not debug) mode?
    Good Luck,
    Avi.

  • How to run the ejb project in j2ee server

    How to run the EJB project.
    I give like
    java conveterClient converterClient.jar
    here conveterClient is class file name and converterClient.jar is deployed file
    like wise i give some exception is come
    give some help pls friends

    Navigate to the "DBOrders" module in the catalog, right click on the "ORDERS" database below and click "Export Schema Stucture". That will produce a file containing the DML needed to create the database

  • Steps to deploy an ejb application and running an ejb client in weblogic server6.1

    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet

    Hi.
    Check out the beanManaged example that ships with WLS and read the accompanying docs. This
    is a simple EJB with a servlet that invokes it.
    Michael
    shekhar sachdev wrote:
    steps to deploy an ejb application and steps to run an ejb client in weblogic server6.1
    if the client is an simple java application and if the client is a servlet--
    Michael Young
    Developer Relations Engineer
    BEA Support

  • Running OC4J on Linux in the background?

    I am relatively new to Linux and have been trying to start OC4J either automatically or as a background process (so that I do not have to keep the terminal window open). I tried "$nohup java -jar oc4j.jar &", but OC4J still shuts down when I logout or exit the terminal. Does anyone know of a good way to start OC4J automatically or as a background process?

    You've two choices:
    - install public domain 'screen' program followed by
    running oc4j in a 'screen' session and detach from
    the 'screen'. BTW, 'screen' allows you to reattach
    to an existing session of 'screen'
    - Write a one line shell script and launch this script
    in the background. Now when you exit from your shell
    your oc4j will continue to run.
    -Anantha-

  • OracleAS Patchset 10.1.2.3 Fails running oc4j  Configuration Assist

    Hi,
    We are upgrading our 12.0.4 EBS to 12.1.1.
    As part of pre -upgrade steps, i am applying 10.1.2.3 patch on 10.1.2.0.2.
    It is failing while running oc4j configuration assistant with below error.
    oracle.ons.SubscriptionException: Subscription request timed out after 120000 millseconds. Possible causes: OPMN may not be running, you may have an OPMN running in an alternate ORACLE_HOME using duplicate port values, or OPMN may be misconfigured.
    at oracle.ons.SubscriptionNotification.waitForReply(SubscriptionNotification.java:82)
         at oracle.ons.ONS.addSubscriber(ONS.java:336)
         at oracle.ons.Subscriber.realStartup(Subscriber.java:92)
         at oracle.ons.Subscriber.<init>(Subscriber.java:80)
         at oracle.ons.ONS.createNewSubscriber(ONS.java:690)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    ERROR: Caught exception while initializing DCM.
    Oc4jDeploy tool completed, but with errors.
    Please help.
    Thanks,

    Hussein,
    After successful completion of setup, while running configuration assistants, i got this error.
    This is the complete output.
    ================================================================================================================
    Output generated from configuration assistant "Application Server website Configuration Assistant":
    Configuration assistant "Application Server website Configuration Assistant" succeeded
    ================================================================================================================
    Output generated from configuration assistant "OC4J Instance Configuration Assistant":
    Reading ini file - '/u01/TST4ZA/apps/tech_st/10.1.2/j2ee/deploy.ini'Adding web-app 'webapp.war' for app 'BC4J'.
    OC4J instance 'home': Adding property 'jbo.server.in_oc4j=true'
    Adding web-app 'IsWebCacheWorkingWeb.war' for app 'IsWebCacheWorking'.Initializing DCM..oracle.ons.SubscriptionException: Subscription request timed out after 120000 millseconds. Possible causes: OPMN may not be running, you may have an OPMN running in an alternate ORACLE_HOME using duplicate port values, or OPMN may be misconfigured.
         at oracle.ons.SubscriptionNotification.waitForReply(SubscriptionNotification.java:82)
         at oracle.ons.ONS.addSubscriber(ONS.java:336)
         at oracle.ons.Subscriber.realStartup(Subscriber.java:92)
         at oracle.ons.Subscriber.<init>(Subscriber.java:80)
         at oracle.ons.ONS.createNewSubscriber(ONS.java:690)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.TaskMaster.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.sysInit(Unknown Source)
         at oracle.ias.sysmgmt.task.InstanceManager.init(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.doDeploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.execute(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.deploy(Unknown Source)
         at oracle.j2ee.tools.deploy.Oc4jDeploy.main(Unknown Source)
    ERROR: Caught exception while initializing DCM.
    Oc4jDeploy tool completed, but with errors.
    Configuration assistant "OC4J Instance Configuration Assistant" failed
    =====================================================
    I stopped all apps services before starting the patch, but when it failed during relink phase, i cancelled the installation and did necessary steps and restarted installation.
    If at this stage i need to re apply the patch do i have to recover the 10.1.2 oracle home from backup?
    Thanks,

  • Running OC4J as a service in Windows 2000

    I've been trying to have OC4J run as a service in Windows 2000, as having to be logged in isn't very flexible.
    I've searched the net, and I found a tool by Microsoft called srvany.exe/instsrv.exe, which should install any program as a service. It works, but the service shuts down whenever I log off, which defeats the purpose.
    What I've done is run the command line
    instsrv "Oracle Application Server" C:\Progs\Service\srvany.exe
    and then edit the registry settings under the newly created folder to
    Application=C:\Progs\Oracle 9i AS\j2ee\home\java
    AppParameters=-jar oc4j.jar
    AppDirectory=C:\Progs\Oracle 9i AS\j2ee\home
    Does anyone know this tool well enough to tell me what I'm doing wrong, or know something else I can use?
    Brigt Olav Vik

    Hi
    Have managed to run oc4j as a service as follows under xp pro
    Download runexescv from http://www.judoscript.com/goodies/index.html
    Unpack and run
    Create service say OracleOc4j
    Needs basic parameters setup
    Cmdline and Home
    My setup is
    debug=false
    cmdline=c:\ora9ias\jdk\bin\java - Dorg.omg.CORBA. ORBClass=com.inprise.vbroker.orb.ORB -Dorg.omg.CORBA.ORBSingletonClass=com.inprise.vbroker.orb.ORB -Doracle.security.jazn.config=c:\ora9ias\j2ee\Oracle9iDS\config\jazn.xml -Doracle.home=c:\ora9ias -DORACLE_HOME=c:\ora9ias -jar c:\ora9ias\j2ee\home\oc4j.jar -userThreads -config c:\ora9ias\j2ee\Oracle9iDS\config\server.xml
    ( all from startinst.bat )
    home=C:\ora9ias\j2ee\home\
    Save and close
    Oracleoc4j will now be set up as service
    Change service to auto and start service !!
    Appears to be neat and easy way of setting up an OC4J service
    Ian

  • Running OC4J as a Windows service

    Hi
    Does anyone know if it is possible to run OC4J as a Windows service?
    Are there any tools I could use besides Microsoft’s SVRANY?
    Best regards
    Ole

    &gt; Hi
    &gt;
    &gt; Does anyone know if it is possible to run OC4J as a
    &gt; Windows service?
    &gt;
    &gt; Are there any tools I could use besides Microsoft’s
    &gt; SVRANY?
    &gt;
    &gt; Best regards
    &gt; Ole
    Hi
    We have found the product for the job. If anyone have the same problem, you can find the program Service+ at nicoware.net
    It is running OC4J as a service very well. It even logs console output to a text file. We are now using it in our production system.
    Ole

  • How to retrieve the node on which is running an ejb ?

              Hi all,
              I need to retrieve on which node is running and EJB that is deployed
              on the cluster. Since the cluster is made up of logical addresses on
              the same machine, I cannot get it with InetAddress.getHostName().
              It always return the phisical address of the machine.
              So I wonder if it's possible to retrieve with some Weblogic Api
              the node on which is running an ejb.....
              Thanks a lot
              Francesco
              

              You can get the server name by reading the system property "weblogic.Name" :
              System.getProperty("weblogic.Name")
              or using the wls Mbeans :
              import weblogic.management.MBeanHome;
              import weblogic.management.configuration.ServerMBean;
              String serverName = null;
              Context ctx = new InitialContext();
              MBeanHome mBeanH = (MBeanHome)ctx.lookup(MBeanHome.LOCAL_JNDI_NAME);
              java.util.Set serverMbeanSet = mBeanH.getMBeansByClass(weblogic.management.configuration.ServerMBean.class);
              Iterator iterat = serverMbeanSet.iterator();
              ServerMBean serverMb = (ServerMBean)iterat.next();
              serverName = serverMb.getName();
              Sergi
              "Francesco" <[email protected]> wrote:
              >
              >Hi all,
              >I need to retrieve on which node is running and EJB that is deployed
              >
              >on the cluster. Since the cluster is made up of logical addresses on
              >the same machine, I cannot get it with InetAddress.getHostName().
              >It always return the phisical address of the machine.
              >So I wonder if it's possible to retrieve with some Weblogic Api
              >the node on which is running an ejb.....
              >Thanks a lot
              >Francesco
              

  • How to run Session ejb client program?

    Hi
    I am using weblogic server8.1 . I was running an ejb session client program it throws exception like below. Can any one tell me how to run a client in weblogic server. give the syntax for running ejb client.
    D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB\stateful>jav
    a -cp .;c:\j2ee\j2ee.jar;c:\weblogic\classes;D:\Weblogicserver\weblogic81\server
    \lib\weblogic.jar PortfolioClient
    Exception in thread "main" java.lang.NoClassDefFoundError: PortfolioClient (wron
    g name: stateful/PortfolioClient)
    at java.lang.ClassLoader.defineClass0(Native Method)
    at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
    at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:12
    3)
    at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
    at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
    at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
    bye

    If stateful is the package for the client application, you should be executing from
    D:\Weblogicserver\user_projects\domains\mydomain\applications\MyEJB
    on the command line. The command should look like -
    java -classpath <whatever should be here> stateful.MyClient

  • Can extensions made in JDeveloper also run in SQL Developer?

    Hi Guys,
    Just wanted to ask,
    can extensions made in JDeveloper also run in SQL Developer?
    Also would like to ask, if you would like to sell your extension, does Oracle provide payment gateways, of some sort?
    Thanks for all your replies in advance.
    4 Eyes.

    This is a non-authoritative answer to your first question. I've used the extension developer kit in JDeveloper to create an extension for SQL Developer. I have not written an extension for JDeveloper, but I have looked at the sample programs that came with the kit. As far as I can see, the main difference is a few changes that need to be made in the extension.xml file - these mostly tell the IDE where to hook your extension.
    So I believe that it is theoretically possible to write an extension that works in either tool, but you will have to package the two extensions slightly differently. That said, I have to note that the documentation for either sort of extension is mostly in the form of examples. Until Oracle documents this better, it is probably going to take a good deal of trial and error to get it working.

  • Can't Run OC4J

    Yes, I need some help and there's no documentation regarding what exactly one must do.
    I installed OC4J on my win 2000 machine at work. I went ahead and execute the following command:
    java -jar oc4j.jar -install
    That went well. Now, I must run oc4j by issuing:
    java -jar oc4j.jar
    When I do this, I get an error message saying that it can't find javac.exe. The default location for retrieving javac.exe is in the program files\j2... Basically, it's looking through the directory where the Java installation installs the JRE.
    When you install the JDK, the installer installs the JRE in the Program Files\Java\<Java Version> directory. However, the JRE does not and I'm sure never has came with Javac.exe. The JRE is used to run software, not compile it! Now, it tells me to please use a valid jdk or specify the location of your java compiler in server.xml using the <java-compiler .../> tag
    I then add:
    <java-compiler path="/j2sdk1.4.2_03/bin" /> to the server.xml file in the config directory, but nothing works.
    Please help if you can.
    Thanks!

    352208,
    The JDK is not the same as the JRE. If you have installed the JDK, then you will hava a "javac.exe" file in the same directory as the "java.exe" file.
    Also, any path that appears in any of the XML configuration files (like "server.xml") must be either full paths, or relative to the location of the XML file that they appear in. From what you have posted, I don't think "/j2sdk1.4.2_03/bin" fits those criteria. I imagine it should be (but I'm not sure because my OC4J runs on Solaris and I don't need to specify the location of "javac" in my "server.xml" file):
    C:\j2sdk1.4.2_03\bin\javac.exeGood Luck,
    Avi.

  • Run OC4J in the background

    Is there anyway I can run OC4J in the background as an NT service?
    Thanks in advance.

    I took the approach above, and my experience was only partially successful. With some scrounging around newsgroups, orionsupport.com, and Sun's website, I came up with the following solution:
    Creating an NT Service for OC4J
    OC4J by default runs as a command shell application, so it is bound to a user's login session and will die if the user who called the start command logs off of the system. Oracle has not provided a version of OC4J that runs as a service on Windows-based servers, so here is a process to create a service using the freeware utility, RunExeSvc (http://www.winwinsoft.com/goodies/RunExeSvc/index.html). This utility is more user-friendly and flexible than tools such as srvany.exe and instsrv.exe in the NT Resource Kit.
    Dependencies
    1. RunExeSvc is installed
    (Unzip the runexesvc.zip file to a directory)
    2. Sun's JDK 1.3.1 is installed.
    (JDK 1.3.1 is required because a bug in prior versions of Sun's JVM for Windows killed any JVMs initiated by a user in that login session.)
    Installation Procedure
    1. Run the RunExeSvcAdmin.exe application
    2. Create a new service by copying the example script below into the Script window of RunExeSvcAdmin.exe. Some changes to drives and/or paths may of course be needed.
    3. Save the new entry and exit the application.
    4. The service should now appear in the services control panel. Changes may be required for its startup options.
    Example Script#########################
    # This script runs OC4J
    # RunExeSvc variables
    # if true, RunExeSvc will show internal status
    debug=false
    # the starting dir of the service
    home=e:\oc4j\j2ee\home
    # Running as an http server.
    cmdline=e:\jdk1.3.1\bin\javaw.exe -Xrs -jar orion.jar -out e:\oc4j_out.log -err e:\oc4j_err.log
    null

  • How run OC4J in the background

    Hello!
    How can I run oc4j in the background(without a window open) on a solaris box?
    I have tried 'nohup java -jar oc4j.jar &' but the startup seems to hang when I do this.
    Any ideas?

    Make sure you can write to nohup.out in the current directory.
    Also, I typically start my OC4J in /etc/init.d from my solaris machine and that seems to work nicely.
    Also try putting the 2>&1 at the end instead of in the middle.
    Of you could try using CSH vs. SH, some google hits mention that makes life easier.
    Rob

Maybe you are looking for

  • Best way to set up AirPort Extreme with NetGear CG3100D-2

    Hi All, I Just purchased a Airport Extreme and what to use it on my current cable broadband network. But i have a few issues with doing this, due to my exsisting setup. Here is my current set up. NetGear CG3100D-2 which i have 2 Port forwards set up

  • How to update host username/password in RMAN - 10g Enterprise manager bkp

    Hi, We have RMAN - 10g Enterprise manager scheduled. Last week we changed OS - Oracle password. Now backups are failing. Please let me know where to update Host username/password details in 10g Enterprise manager...

  • Webdings font used infopath list form not displaying in firefox

    We are using expand and collapse functionality in infopath 2010 using section along with buttons. We are using button text as webdings font to display up and down arrow mark. This works fine on IE. But not on firefox instead of arrow its displaying n

  • How can i enable the contact photo in message/phone?

    Hi, i have a few contacts with a picture but i can't see the photo in Message or in Phone Calls, what i have to do? I need to enable something?, thanks!!.

  • Location Services

    When I first got my iPad I kept getting the error message "Could Not Determine Your Location" when trying to get it to find my position with the Maps app. I had not activated an AT&T data account yet and was using WIFI. My iPhone, using WIFI only, wo