3 Replies Latest reply on Dec 20, 2006 6:09 PM by seth_hodgson

    OC4J and FDS

    ragulgul
      I installed Flex data services in Tomcat 5.5.1 and it worked fine. But when I tried installing it in OC4J 10.1.3.1, the web app samples would get deployed but the small applications like CRM, FlexCab etc will not work. I got a "send error" (with HTTP error code 500 - internal error) when I tried invoking these applications.

      Note that I have followed the instructions for OC4J at the FDS install instructions page.

      The errors that I got from the application logs in OC4J was as follows:
      06/08/22 11:14:54.343 10.1.3.0.0 Started
      06/08/22 11:14:54.643 samples: Error initializing servlet
      java.lang.SecurityException: Unauthorized access from application: samples to MBean: flex.runtime.Flex Data Services Samples:type=MessageBroker,id=MessageBroker1
      at oracle.oc4j.admin.jmx.shared.UserMBeanServer.checkReadAccess(UserMBeanServer.java:774)
      at oracle.oc4j.admin.jmx.shared.UserMBeanServer.isRegistered(UserMBeanServer.java:540)
      at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.isRegistered(Localizatio nFilterMBeanServer.java:445)
      at flex.management.BaseControl.register(BaseControl.java:151)
      at flex.messaging.MessageBroker.<init>(MessageBroker.java:146)
      at flex.messaging.MessageBrokerServlet.init(MessageBrokerServlet.java:84)
      at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2231)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4617)
      at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4541)
      at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4730)
      at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1019)
      at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
      at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.ja va:428)
      at com.evermind.server.Application.getHttpApplication(Application.java:512)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFr omReference(HttpSite.java:1975)
      at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:18 94)
      at com.evermind.server.http.HttpSite.addHttpApplication(HttpSite.java:1591)
      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:206)
      at oracle.oc4j.admin.internal.WebApplicationBinder.bindWebApp(WebApplicationBinder.java:96)
      at oracle.oc4j.admin.internal.ApplicationDeployer.bindWebApp(ApplicationDeployer.java:541)
      at oracle.oc4j.admin.internal.ApplicationDeployer.doDeploy(ApplicationDeployer.java:197)
      at oracle.oc4j.admin.internal.DeployerBase.execute(DeployerBase.java:93)
      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:81)
      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
      at java.lang.Thread.run(Thread.java:534)

      Can someone help me?
        • 1. Re: OC4J and FDS
          seth_hodgson Level 1
          Hi,

          OC4J testing was performed against version 10.1.3.0.0.

          Can you confirm that you've done the following:
          ---------------------------------------------------------------
          To run Flex Data Services 2 on Oracle Containers for J2EE (OC4J), you must pass the -userThreads argument when starting OC4J. For example, you can modify the CMDARGS line in the oc4j.cmd file, as the following example shows:

          set CMDARGS=-config "%SERVER_XML%" -userThreads


          You may also want to check the OC4J docs to see if the version you're running has a setting to allow 3rd party MBeans to be registered without being blocked by the security manager.

          Best,
          Seth
          • 2. Re: OC4J and FDS
            ragulgul Level 1
            Yes, I had already done the changes to oc4j.cmd as you had posted. I will take a look at OC4J docs and will get back on this. Thanks.
            • 3. Re: OC4J and FDS
              seth_hodgson Level 1
              Workaround is to disable the security management for custom MBeans that Oracle imposes in their latest release:

              -Doc4j.jmx.security.proxy.off=true

              Seth