JMX for OC4J ?

Hi, I saw JMX jar support file in OC4J distribution. Any clue how I could get use of it?
Thank you,
Andrejus

I had to set the scurity setting it in JDEV and deploy the Web Service. Then I was able to update the settings in EM. However, if you remove the setting from then you will need to redeploy the Web Service again before you can change it.

Similar Messages

  • Admin_client.jar 10.1.3.1.0 and changing JVM settings for OC4J in opmn.xml

    Just now briefly looked at admin_client.jar 10.1.3.1.0. It appears that there is new functionality to create/alter and interrogate (J2EE) resources in this utility. This partially answers my other question, as stated in Jython support in Oracle Application Server 10g R3 (10.1.3)
    (Would be nice to get a definitive answer on scripting though)
    Anyway...
    As a follow-up question. Will there also be functionality (or is there already functionality) which lets me change JVM settings of OC4J components as they are declared in the opmn.xml, using only command line (and/or scripting) tools?
    Thanks

    Jan -- there is no out of the box command line utility that can amend the JVM settings for an OC4J instance.
    As Deepak alluded to, it is possible to do this using JMX because all the OPMN configuration elements are all reachable from JMX. This means you can create whatever Java JMX client you desire to modify the settings, or use a scripting environment which provides nice support for JMX (for example Groovy with its GroovyMBean) to access and use the OpmnConfig MBean set to change the OPMN configuration values.
    Asanka -- the 10.1.3.1 release has lots of capability in ASC to manage the OPMN settings from a browser -- including modifying all the JVM settings (things like heap, System properties, etc.) as well as OC4J switches (-userThreads, etc.)
    cheers
    -steve-

  • JSP Primer for OC4J

    1) Has the tag libraries and references been published yet
    as per the qustion on this ref:
    http://forums.oracle.com/forums/message.jsp?id=502762
    2) You have a major problem with your samples in the JSP
    Primer for OC4J. Reference pg 1-15 sqltagquery.jsp is
    non functional. I will assume the output of this is
    displayed on page 1-18. ref:
    http://web06-02.us.oracle.com/tech/java/oc4j/pdf/jspPrV1.pdf
    Error I found.
    a) how can it even output when there where no
    methods to query the result and print them? All this
    has is dbQuery and dbClose tags.
    b) I get an exception error, missing catch on line
    143 __ej2e(i didnt get to right the spelling correctly
    as i was doing my test last night). The
    sqptagquery.jsp is only 17 lines and referring to line
    143? I assume its on one of the libraries mentioned
    to be put under j2ee/home/lib.
    3)Further question,
    Which version of OJSP is assumed on this sample?
    I choosed the osjp_11320.zip.
    --ap

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Steve Button ([email protected]):
    gday Barry -
    I'll check into this for you. The various doc pieces we have for OC4J are all in the process of being being created and we're pushing completed pieces out whenever they are ready.
    This might be one of those situation where we've 'forward declared' the docs you mentioned but they're not completed yet.
    I'll post back here when I get an answer for you.
    cheers!
    -steve-<HR></BLOCKQUOTE>
    Barry,
    The docs you mentioned are in the final phase of review. They wiil be posted soon. thanks
    -Prasad

  • How to use JMX with oc4j

    is there any document about how to use JMX with OC4J? the intention is that I would like to create an application, using JMX to manage OC4J, such dynamiclly adding connection pool, create data source. potentially, restart server, application ...
    is there any document about this?
    Thanks

    In addition to that, the documentation also has a section on accessing OC4J JMX/MBeans:
    http://otndnld.oracle.co.jp/document/products/as10g/101300/B25221_03/web.1013/b14433/mbeans.htm#sthref163
    The blog below also has examples, albeit from a Groovy perspective, but nonetheless, examples of how it can be done easily translated into Java:
    http://buttso.blogspot.com/search?q=jmx
    -steve-

  • JAXB 2.0 Support for OC4J 10.1.3.3

    http://java2go.blogspot.com/2008/01/jaxb-10-vs-20-in-jdeveloper-10g.html
    This blog entry talks about how to get JAXB 2.0 in JDeveloper 10g. I want to know whether JAXB 2.0 is supported or not for OC4J 10.1.3.3, before i start using it in JDeveloper.
    Chandresh.

    Has anyone ever tried using spring web services with oc4j? I tried using JAXB 2.0. But it gives lot of errors while deploying the example.
    Operation failed with error: Error creating bean with name 'messageReceiver' defined in class path resource [org/springframework/ws/samples/airline/ws/applicationContext-ws.xml]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.server.endpoint.adapter.GenericMarshallingMethodEndpointAdapter#0': Cannot resolve reference to bean 'marshaller' while setting bean property 'marshaller'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'marshaller': Invocation of init method failed; nested exception is org.springframework.oxm.jaxb.JaxbSystemException: Provider com.sun.xml.bind.ContextFactory_1_0_1 not found; nested exception is javax.xml.bind.JAXBException: Provider com.sun.xml.bind.ContextFactory_1_0_1 not found - with linked exception: [oracle.classloader.util.AnnotatedClassNotFoundException: Missing class: com.sun.xml.bind.ContextFactory_1_0_1 Dependent class: javax.xml.bind.ContextFinder Loader: oracle.xml:10.1.0_2 Code-Source: /C:/oc4j/lib/xml.jar Configuration: (ignore manifest Class-Path) in META-INF/boot.xml in C:\oc4j\j2ee\home\oc4j.jar This load was initiated at airline.web.airline:0.0.0 using the loadClass() method. The missing class is not available from any code-source or loader in the system.]

  • Specifying system properties/security manager for OC4J

    I have a couple of related questions regarding OC4J/orion.jar:
    1. Generically, how can we specify system properties to orion.jar? Being an executable JAR, simply using -D does not work.
    2. Specifically, I need to launch the OC4J app server with a Java security manager (with associated security policies, etc.) Java's way of doing this is via -Djava.security.manager=... but this does not work with executable JARs it seems. I tried specifying these parameters via -D and I got a security exception:
    Exception in thread "main" java.security.AccessControlException: access denied (java.util.PropertyP
    rmission java.protocol.handler.pkgs write)
    at java.security.AccessControlContext.checkPermission(Unknown Source)
    at java.security.AccessController.checkPermission(Unknown Source)
    at java.lang.SecurityManager.checkPermission(Unknown Source)
    at java.lang.System.setProperty(Unknown Source)
    at com.evermind.server.ApplicationServer.initProtocolHandlers(ApplicationServer.java:652)
    at com.evermind.server.ApplicationServer.launchCommandline(ApplicationServer.java:319)
    at com.evermind.server.ApplicationServer.main(ApplicationServer.java:314)
    So, how do I install the Java security manager with orion.jar? Is there any other way to specify system properties to this, or is there any other way to install the Java security manager for OC4J?
    Any help much appreciated.
    ..Hrishi

    Thanks, that seemed to work. However it seems that spawned another little problem. I was using the -Xbootclasspath/a option while firing up orion.jar because I needed to append something to OC4J's default classpath (that is specified in orion.jar's Manifest). Now, when I start OC4J with the -D options for the security policy, it seems to ignore the -Xbootclasspath argument. I have not yet been able to confirm this fact, but based on the ClassNotFoundError I'm running into, that does seem to be the problem.
    So I guess my question is, could specifying the -D options to the executable JAR cause it to ignore any other options you may be passing to it (such as -Xbootclasspath)? Is there any sequence in which these args need to be passed?
    Thanks.
    ..Hrishi
    Hi,
    You can try this :
    - Check if you have a file java2.policy in <OC4J_HOME>\config\policy and check if the permission java.util.PropertyPermission "read,write" is granted to <OC4J_HOME>.
    if there is no file, you can create one based on <JAVA_HOME>\lib\security\java.policy and grant the approriate privileges.
    - Launch OC4J :
    java -Djava.security.manager -Djava.security.policy=<OC4J_HOME>/config/java2.policy -jar orion.jar
    OR java -Djava.security.manager -Djava.security.policy=<PATH_TO_FILE_POLICY>/<YOUR_FILE>.policy -jar orion.jar
    Maher

  • Installing BPEL PM 10.1.2.0.2 for OC4J Developers on AIX

    Hi
    I'm trying to install BPEL PM 10.1.2.0.2 for OC4J Developers on AIX. I downloaded the as_aix5l_power_bpel_101202.cpio and ran the "./runInstaller" from the "bpel_oc4j" directory. As per the installation instructions(it did not specifically have instructions for AIX, only Windows and Unix), i should get a screen in which i can choose the Type of Installation as "BPEL Process Manager for Developers", but this option never showed up, instead after accepting the path this dialog came up.,
    Error :
    BPEL Process Manager for OracleAS Middle Tier will run on top of a supported Oracle Application Server 10.1.2 j2ee and Web Cache orPortal and Wireless instance. This location does not contain this instance. Please refer to the installation Guide for supported versions.Please select a new Oracle Home that contains a supported instance.
    Has anyone installed the Developer's version of the BPEL PM on AIX?
    Or is the download available is actually only for Middletier?
    Alll help is appreciated.
    Thanks
    Sam

    I also have a customer who is running BPEL on AIX / WAS 4.0. He has reported some issues while running some specific Java codes (JDK 1.5). Has anyone faced any issues with BPEL deployed on WAS having issues due to compatibility?
    Any help is appreciated.

  • Any sample for Message with Attachment  for OC4J-10.1.3?

    Does any one know where I can find sample for Message with Attachment for oc4j 10.1.3. ORacle web service site how-to pages has no any sample for this. I saw this a new chapter is added to Oracle Web Service USer Guide, but no sample to test.
    Thanks
    TZhang

    Does any one know where I can find sample for Message with Attachment for oc4j 10.1.3. ORacle web service site how-to pages has no any sample for this. I saw this a new chapter is added to Oracle Web Service USer Guide, but no sample to test.
    Thanks
    TZhang

  • How to implement Startup class for OC4J

    I'm in the process of converting my current J2EE application from weblogic 5.1 to OC4J.
    I have startup class that would set application specific properties by reading property file. In addition, this class would also check for certain resource availability (like database) during weblogic startup. I could not find similar option in OC4J.
    Any help to convert this startup class for OC4J would be highly appreciated.
    Thanks
    Sankaran.

    Hi Sankaran,
    Your eMail address suggests you work for Oracle. Do you? Can't someone
    at Oracle help you?
    I imagine that Oracle would have some kind of agreement with Ironflare
    as well. Can't someone at Ironflare help you?
    But remember, with application servers (as with RDBMSs), no two are the
    same. Each one offers the same functionality, but using different methods
    to achieve that functionality. I don't know how to do it, but I'm sure
    you can check database availability when starting up OC4J -- just not
    the same way you do it in Weblogic.
    Good Luck,
    Avi.

  • Wiki for OC4J and JDeveloper

    Hi,
    I'm not sure this is the correct place for this question. But here it goes:
    Is there an Wiki engine that is designed especially for oc4j? or does any of you have and wiki engine that works on oc4j?

    We don't have one specifically designed for OC4J but there are several I have seen running it:
    - Confluence - we are using/evaluating this a little internally for some projects at Oracle. It is a commercial offering here: http://www.atlassian.com/software/confluence/. Seems very high quality.
    - Yawiki (Java version, not PHP) - we are shipping this as a free pre-certified Wiki with WebCenter, our interaction platform ala Portal for ADF developers. http://yawiki.jzonic.org/page/show.jz - we didn't want to force a commercial license on our WebCenter customers so this one is a free, reasonably solid engine.
    - JSPWiki - http://www.jspwiki.org/Wiki.jsp - again I have seen this used internally at Oracle and it is running on OC4J. Again, works like a champ.
    Some ideas - hope one of them works for you - hard for me to say good or bad about any as they all seem to work fine though I haven't mucked administratively with any.
    Mike.

  • Applying Patch for OC4J to update JDBC Driver

    I've downloaded a patch (3335848) for OC4J in order to update the JDBC drivers from metalink for windows. The Readme file says its generic for all OS but got to execute a shell script for unix OS. Im using Windows. How to update the patch in Windows. Pls help. The Readme file doesn't explain this.
    Thanks
    Manoj

    I'm not sure why it only contains a shell script if its tagged as generic.
    One thing you could do it to read the shell script and see what it does, then replicate that manually.
    -steve-

  • HTTPS mode for OC4J - Very Urgent

    Hi,
    I am trying to implement HTTPS mode with OC4J for our internal application. The Server Configuration and how I tried to implement is detailed below.
    The Server Configuration :
    Operating System     :     Linux 7.1
    Java Development Kit     :     j2sdk1.3 with j2sse 1.0.3
    Web Server          :     Oracle9iAS Containers for J2EE (OC4J) OC4J build# 020712.1645.
    The command for generating the CSR (for test certificate from Entrust)
    1. keytool -genkey -keyalg "RSA" -keystore keystore -storepass 123456 -keysize 512
    2. keytool -certreq -keyalg "RSA" -file gisl-dev -keystore keystore
    I had generated a CSR from the server and submitted the CSR online for a test certificate. On submission freecert.entrust.com had issued the web server certificate and the CA certificate successfully.
    After this I tryed to import the Web Server Certificate with this command:
    3. keytool -keystore -keyalg "RSA" -import -trustcacerts -file gisl-dev.cer
    I am getting an error:
    keytool error: java.security.cert.CertificateException: Unsupported encoding
    Is there anyway to come out of this problem, I think I can use Apache Server and tunnel the request for OC4J through Apache. But the sad thing is that I don't know how do it.
    Please help me out to solve this problem

    1/ try to add a LF to your reply certicate. (there is a bug on keytool import)
    2/ Also you need to check if your CA provider certicate is known on cacerts file. If not you need to import it.
    Hope this help

  • Deployment for OC4J 11g doesn't work

    Jdeveloper 11g ADF runtime installer for standalone OCJ4 11 doesn't find the following file: - Input File doesn't exist "adfcm.jar".
    So, when i deploy an application (ear or war) on standalone OC4J, i have the following error:
    2007-06-26 11:54:14.328 NOTIFICATION Exception : NoClassDefFoundError:
    Classe manquante : oracle.adf.share.logging.handler.InternalADFHandler
    Classe dÚpendante : oracle.adf.share.logging.internal.perf.ADFPerfSensor
    Chargeur : adf.oracle.domain:11.1.1
    Source de code : /E:/oc4j/BC4J/lib/adf-share-base.jar
    Configuration : <code-source> (ignore manifest Class-Path) in /E:/oc4j/j2ee/home/config/se
    rver.xml
    La classe manquante est disponible Ó partir des emplacements suivants :
    1. Source de code : /E:/oc4j/j2ee/home/lib/adflogginghandler.jar (from <code-source> (ignore
    manifest Class-Path) in META-INF/boot.xml in E:\oc4j\j2ee\home\oc4j.jar)
    Cette source de code est disponible dans le chargeur oracle.mds:11.0.
    2007-06-26 11:54:14.359 NOTIFICATION L'opÚration Application Deployer sur GregWar a ÚchouÚ.
    2007-06-26 11:54:14.375 NOTIFICATION L'opÚration Application UnDeployer sur GregWar est dÚmarrÚe.
    2007-06-26 11:54:14.375 NOTIFICATION Suppression de toutes les liaisons de l'application GregWar dan
    s tous les sites Web
    2007-06-26 11:54:14.796 NOTIFICATION L'opÚration Application UnDeployer sur GregWar est terminÚe.
    07/06/26 11:54:14 ATTENTION: DeployerRunnable.run NoClassDefFoundErrororacle.oc4j.admin.internal.Dep
    loyerException: NoClassDefFoundError
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:140)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.OC4JDeployerRunnable.doRun(OC4JDeployerRunnabl
    e.java:52)
    at oracle.oc4j.admin.jmx.server.mbeans.deploy.DeployerRunnable.run(DeployerRunnable.java:82)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Classe manquante : oracle.adf.share.logging.handler.InternalADFHandler
    Classe dÚpendante : oracle.adf.share.logging.internal.perf.ADFPerfSensor
    Chargeur : adf.oracle.domain:11.1.1
    Source de code : /E:/oc4j/BC4J/lib/adf-share-base.jar
    Configuration : <code-source> (ignore manifest Class-Path) in /E:/oc4j/j2ee/home/config/se
    rver.xml
    La classe manquante est disponible Ó partir des emplacements suivants :
    1. Source de code : /E:/oc4j/j2ee/home/lib/adflogginghandler.jar (from <code-source> (ignore
    manifest Class-Path) in META-INF/boot.xml in E:\oc4j\j2ee\home\oc4j.jar)
    Cette source de code est disponible dans le chargeur oracle.mds:11.0.
    at oracle.classloader.PolicyClassLoader.handleClassNotFound(PolicyClassLoader.java:2059)
    at oracle.classloader.PolicyClassLoader.internalLoadClass(PolicyClassLoader.java:1623)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1579)
    at oracle.classloader.PolicyClassLoader.loadClass(PolicyClassLoader.java:1564)
    at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
    at oracle.adf.share.logging.internal.perf.ADFPerfSensor.<clinit>(ADFPerfSensor.java:92)
    at oracle.adf.model.servlet.ADFBindingFilter.<clinit>(ADFBindingFilter.java:55)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Class.java:242)
    at com.evermind.server.http.deployment.WARAnnotationParser.getFilterClasses(WARAnnotationPar
    ser.java:189)
    at com.evermind.server.http.deployment.WARAnnotationParser.parseAnnotations(WARAnnotationPar
    ser.java:103)
    at com.evermind.server.http.HttpApplication.parseMetaData(HttpApplication.java:8929)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1210)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:833)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.ja
    va:433)
    at com.evermind.server.Application.getHttpApplication(Application.java:693)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr
    omReference(HttpSite.java:2039)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:19
    58)
    at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1652)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:235)
    at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
    at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:554)
    at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:205)
    at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:98)
    ... 5 more

    User,
    There is a specific forum for JDev 11: JDeveloper and OC4J 11g Technology Preview
    However, the specific issue you mention is documented in the release notes addendum for 11: http://www.oracle.com/technology/products/jdev/htdocs/11tp/11gtechpreviewaddendum.html#dep2
    John

  • JMS Exception for oc4j 9.0.3 with 9.0.1.1.1 database (Urgent)

    When I enqueue message into the AQ, I got the following error message
    oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'AQ$_JMS_ENQUEUE_TEXT_MESSAGE'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    at oracle.jms.AQjmsProducer.enqueue(AQjmsProducer.java:1161)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1371)
    at oracle.jms.AQjmsProducer.publish(AQjmsProducer.java:1221)
    Please help, this is very urgent! Should I apply any patch to my database? Or something is wrong with the oc4j 9.0.3 container. From 9.0.2 container, I am able to publish a message into the queue from a standalone JMS client.
    Thanks

    When I enqueue message into the AQ, I got the following error message
    oracle.jms.AQjmsException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'AQ$_JMS_ENQUEUE_TEXT_MESSAGE'Chunming -- just replace the ../j2ee/home/lib/aqapi.jar with your $oracle_home/rdbms/jlib/aqapi13.jar ... remember to rename it :). This worked for me.
    have you been able to get an MDB to dequeue from aq? I can enqueue fine (msgs show up in the queue_table) .
    good luck!
    z

  • How to set the timezone for oc4j/beeapp log

    Hi all,
    The timezone of my beehive server host is set as PST.
    But in the oc4j/beeapp log of beehive server, I found the timezone is different from my host server.
    It is inconvenient for me to trace log.
    How can I set to make the time record in log of the same timezone with my host?
    Regards,
    vivian

    Hi,
    What is the timestamp showing? Esp wrt/TZ. It is in ISO form, and should have the TZ offset as the last part of the string.
    Is it off by an hour or many (ie is it a daylight savings issue)?
    Thanks.

Maybe you are looking for