OC4J Setup

Hi forum, my first post as a Mac user so please be patient w me.
I installed OC4J (Oracle's J2EE Server) on Tiger 10.4.8 (just got my Mac Pro on Thursday last and ran all the updates).
I do a lot of J2EE development and needed to setup a J2EE server. We use Oracle's OC4J which is a simple zip archive. You simply unzip it and you're good to go.
I first tried in /Applications/Java/oc4j and couldn't get the server to work in any fashion (base demo servlets worked but nothing else). I tried chown -R root:admin and did a chmod -R a+rw on the oc4j folder with no luck.
Then through a bit of digging I noticed that JBoss and Tomcat install in /Library...
I unzipped my OC4J intallation to /Library, did a chown -R oc4j and a chmod -R a+rw on a couple of folders inside the oc4j folder and now it appears to work very well.
Could someone explain to me why this would be pls.
Thanks,
Happy

Thanks for the reply Kappy, but there are absolutely no instructions on how to install OC4J on Mac OSX. I looked for a long while. There are few mentions on the Oracle forums of "I got it to work" but nothing concrete.
It's a Pure Java server and consequently is supposed to work on any platform which supports Java 1.4 or 1.5 (such as Mac OSX) and ultimately does, just wondering why it had to go into /Library.
Appears to be something to do with write rights in specific folders of the Mac OSX installation.

Similar Messages

  • Jakarta Tomcat Connectors (JK) + OC4J setup questions

    hi
    i'd like to use Apache 2.0 for dispatching requests to OC4J. i've been doing some experimenting and i was able to setup Apache and Jakarta Tomcat Connectors (JK) v1.2 to route requests to OC4J. this seems to be working fine in my development environment but how well supported or reliable is this setup?
    the requests are now being dispatched to JDeveloper 10.1.3 embedded OC4J instance. the only way i managed to do this was by modifying the embedded-oc4j/config/default-web-site.xml file and changing the web-site element protocol attribute value to "ajp13". this setup has the drawback that now direct http connections don't work anymore. is there a way to have both ajp13 and http connectors working simultaneously in the embedded OC4J?

    Sure there is. Add another web site configuration file, say, myHttp-web-site.xml, which is a copy > of the original default-web-site.xml with http protocol and a different port.
    ..after retrying this it seems to be working now. thanks.
    Can you share how you use the Jakarta Tomcat Connectors v1.2 here?sure, here you go:
    build JK
    # download JK v1.2.15 from http://tomcat.apache.org/download-connectors.cgi
    tar zxf jakarta-tomcat-connectors-1.2.15-src.tar.gz
    cd jakarta-tomcat-connectors-1.2.15-src/jk/native
    ./configure --with-apxs=/foo/bar/apache2055/bin/apxs
    make
    make install
    Configure Apache + JK
    # add the following lines to Apache httpd.conf
    LoadModule jk_module modules/mod_jk.so
    JkWorkersFile conf/workers.properties
    JkMount /<myctxroot>/* oc4j
    JkLogFile logs/mod_jk.log
    JkLogLevel debug
    # create conf/workers.properties with the following lines
    worker.list=oc4j
    worker.oc4j.port=8009
    worker.oc4j.host=localhost
    worker.oc4j.type=ajp13
    configure JDev OC4J
    cd $OC4J_HOME/embedded-oc4j/config
    cp default-web-site.xml ajp-web-site.xml
    # modify web-site element protocol attribute value to "ajp13" in ajp-web-site.xml
    # add the following line in embedded-oc4j/config/server.xml
    <web-site default="false" path="./ajp-web-site.xml" />
    # restart OC4J
    # restart Apache

  • Deploy a war file in oc4j

    hy guys
    i have a problem with my a *.war file. in tomcat the xplanner.war file works fine and the xplanner-application is ok and i can use it. but when i use the same xplanner.war file in oc4j i always get in the browser the message "500 Internal Server Error" although the file was loaded successful.
    is there something to consider in the oc4j setup?
    have anybody an idea about this problem?

    i tried all possibilities.
    war file: manually (by altering the xml files) and with the admin tool.
    ear file: manually and admin tool.
    i always get the this message (browser). though the file application loads successfully. it must be a setup problem i think.
    500 Internal Server Error
    org.apache.commons.dbcp.DbcpException: java.sql.SQLException: E/A-Exception: Connection refused(DESCRIPTION=(TMP=)(VSNNUM=153092352)(ERR=12500)(ERROR_STACK=(ERROR=(CODE=12500)(EMFI=4))(ERROR=(CODE=12560)(EMFI=4))(ERROR=(CODE=530)(EMFI=4))(ERROR=(BUF='32-bit Windows Error: 2: No such file or directory'))))
         at org.apache.commons.dbcp.DriverManagerConnectionFactory.createConnection(DriverManagerConnectionFactory.java:101)
         at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)
         at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(GenericObjectPool.java:722)
         at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:108)
         at cirrus.hibernate.connection.DBCPConnectionProvider.getConnection(DBCPConnectionProvider.java:39)
         at cirrus.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:149)
         at cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory(DatastoreImpl.java:380)
         at cirrus.hibernate.impl.DatastoreImpl.buildSessionFactory(DatastoreImpl.java:369)
         at com.technoetic.xplanner.actions.XPlannerInitializationPlugin.initializeHibernate(XPlannerInitializationPlugin.java:86)
         at com.technoetic.xplanner.actions.XPlannerInitializationPlugin.init(XPlannerInitializationPlugin.java:36)
         at com.technoetic.xplanner.actions.XPlannerInitializationPlugin.init(XPlannerInitializationPlugin.java:29)
         at org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:1158)
         at org.apache.struts.action.ActionServlet.init(ActionServlet.java:473)
         at javax.servlet.GenericServlet.init(GenericServlet.java:258)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.loadServlet(HttpApplication.java:1956)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.findServlet(HttpApplication.java:4355)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2484)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:617)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:259)
         at com.evermind[Oracle9iAS (9.0.3.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:106)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:797)
         at java.lang.Thread.run(Unknown Source)

  • Oc4J resource problems...

    Apologies for raising vendor specific question here.
    Actually I am trying to configure a resource similar to one defined in my Tomcat server.xml
    as follows to my Oc4J setup:
    <DefaultContext debug="0" reloadable="true">
    <Resource name="xxx/yyy" auth="Container"
    type="javax.sql.DataSource"/>
    <ResourceParams name="ABC/PQR">
         <parameter>
         <name>factory</name>          
    <value>
    org.apache.commons.dbcp.BasicDataSourceFactory
    </value>
    I am facing problems in the same due the fact that equivalent structure in OC4J is not very clear to me.Any pointers will be very helpful.
    Thanks.

    I'm trying to do the same thing. I found that you can configure 3rd party data sources with the "property" element. So, your data-sources.xml should look something like:
    <data-source
    name="MyTableDS"
    location="jdbc/MyTableDS"
    class="org.apache.commons.dbcp.BasicDataSource"
    >
    <property name="driverClassName" value="oracle.jdbc.driver.OracleDriver" />
    <property name="url" value="jdbc:oracle:thin:@server:1521:sid" />
    <property name="username" value="user" />
    <property name="password" value="pass" />
    <property name="maxActive" value="20" />
    <property name="maxIdle" value="10" />
    <property name="maxWait" value="2000" />
    </data-source>
    This seems to work with my EJB. But my JSP fails. It either cannot find the data source or doesn't get a valid data source.
    I'm also using Castor for my database access.
    I hope this is of some help. If you find out more, I'd appreciate a response.
    Thanks.
    Chrisjan

  • Deploying applications to virtual hosts and root contexts on OC4J

    Hi
    Does anyone out there know how to use hostnames other than the default to talk to an OC4J application (live virtual hosts in Apache). I have a server called web.mydomain.com but for a particular website I want to access it as shop.otherdomain.com - the same machine just 2 different DNS entries. I want OC4J to accept requests for both these machines and display a different site depending on which is accessed. This functionality is provided in Tomcat by the &lt;host&gt; construct - but how do you do it in OC4J?
    A secondary question related to this is how to deploy an application to the root context of one of these virtual hosts? The Enterprise Manager interface won't let you map anything to the '/' URL.
    I have read a lot of documentation and found little of relevance (fairly typical). I hope this is just a simple option I have overlooked.
    Thanks,
    Anthony.

    Sorry... Forgot to mention:
    I have read the post about using URL rewriting but this seems like a bit of a fudge. I was wondering if there was a way to do this from the OC4J setup. Preferably through the Enterprise Manager?
    Anthony.

  • Java Applet fails loading JAR files

    I'm using the OC4J setup with my Oracle forms (10g) install, this was working but no longer.
    I get the message below when running the test.fmx from the Oracle Forms Services test page for each of the JAR files attempting to load.
    I comment out the ARCHIVE statement but it still fails with
    'java.lang.ClassNotFoundException:oracle.forms.engine.Main' on the applet window.
    =====================
    java.io.IOException: Connection failure with 504
         at sun.plugin.protocol.jdk12.http.HttpURLConnection.getInputStream(Unknown Source)
         at oracle.jre.protocol.jar.HttpUtils.followRedirects(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.isUpToDate(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.loadFromCache(Unknown Source)
         at oracle.jre.protocol.jar.JarCache$CachedJarLoader.load(Unknown Source)
         at oracle.jre.protocol.jar.JarCache.get(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.connect(Unknown Source)
         at oracle.jre.protocol.jar.CachedJarURLConnection.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.getJarFile(Unknown Source)
         at sun.misc.URLClassPath$JarLoader.<init>(Unknown Source)
         at sun.misc.URLClassPath$2.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getLoader(Unknown Source)
         at sun.misc.URLClassPath.getResource(Unknown Source)
         at java.net.URLClassLoader$1.run(Unknown Source)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.net.URLClassLoader.findClass(Unknown Source)
         at sun.applet.AppletClassLoader.findClass(Unknown Source)
         at sun.plugin.security.PluginClassLoader.findClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadClass(Unknown Source)
         at java.lang.ClassLoader.loadClass(Unknown Source)
         at sun.applet.AppletClassLoader.loadCode(Unknown Source)
         at sun.applet.AppletPanel.createApplet(Unknown Source)
         at sun.plugin.AppletViewer.createApplet(Unknown Source)
         at sun.applet.AppletPanel.runLoader(Unknown Source)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)
    WARNING: error reading http://nzmdgrenfell01.asiapacific.hpqcorp.net:8889/forms/java/frmwebutil.jar from JAR cache.
    Downloading http://nzmdgrenfell01.asiapacific.hpqcorp.net:8889/forms/java/frmwebutil.jar to JAR cache
    java.io.IOException: Connection failure with 504
    Any suggestions?
    Regards......Derek

    I found this Metalink that solved my problem.
    Note:171159.1

  • Do I have to use opmn:ormi in the JNDI Service Provider URL?

    Trying to create a new Enterprise Message Source (JMS) and it's not updating the Data Object. Tested the OC4J queue using a Java POJO listener ... sending and receiving text message seems okay. I created a basic Plan (there's only one data element for now) and it is running.
    Any suggestions would be appreciated!

    Here is a document from Ranga on how to connect BAM to OJMS (hope it helps):
    Database Trigger - OJMS - BAM Integration Sample
    Last updated 07/27/05 Ranga
    OJMS setup
    Step 1 - Oc4j setup
    •     Install Standalone/Developer 10g OC4J or production version Application server.
    Developer version download -http://www.oracle.com/technology/software/htdocs/devlic.html?/technology/software/products/ias/htdocs/utilsoft.html#1012 or from http://bamqa.us.oracle.com/bamqaWiki/attach?page=Downloads%2Foc4j1012_extended.zip
    •     Modify following configuration files
    o     Add entry in <OC4J_Install_location>\j2ee\home\config\data-sources.xml for your database, use below sample replacing HOST, PORT and SERVICE_NAME in url tag
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="TTTDS"
    location="jdbc/OracleTTTDS"
    xa-location="jdbc/xa/OracleXaBamDS"
    ejb-location="jdbc/OracleEjbBamDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott"
    password="tiger"
    url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=stank04)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=db10g)))"
    inactivity-timeout="30"
    />
    o     Add a resource provider entry in <OC4J_Install_location>\j2ee\home\config\application.xml
    <resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
    <description>BAM for Generic</description>
    <property name="datasource" value="jdbc/OracleTTTDS"/>
    </resource-provider>
    Step 2 - Database setup
    •     Install 10g or 9i database, below steps will setup AQ in sample schema scott.
    •     Connect to database as sys and grant AQ permissions to scott user
    connect sys/welcome1@db10g as sysdba
    grant SELECT_CATALOG_ROLE to scott;
    GRANT EXECUTE ON DBMS_APPLY_ADM TO scott;
    GRANT EXECUTE ON DBMS_AQ TO scott;
    GRANT EXECUTE ON DBMS_AQADM TO scott;
    GRANT EXECUTE ON DBMS_CAPTURE_ADM TO scott;
    GRANT EXECUTE ON DBMS_FLASHBACK TO scott;
    GRANT EXECUTE ON DBMS_STREAMS_ADM TO scott;
    execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY', 'scott', TRUE);
    grant aq_administrator_role to scott;
    grant execute on dbms_lock to scott;
    grant execute on sys.dbms_aqin to scott;
    grant execute on sys.dbms_aqjms to scott;
    •     Connect to database as scott user and create AQ
    connect scott/tiger@db10g
    execute dbms_aqadm.stop_queue( queue_name => 'bam_ttq' );
    execute dbms_aqadm.drop_queue( queue_name => 'bam_ttq');
    execute DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'bam_ttq_tab');
    execute dbms_aqadm.create_queue_table( queue_table => 'bam_ttq_tab', queue_payload_type => 'sys.aq$_jms_text_message', multiple_consumers => true );
    execute dbms_aqadm.create_queue( queue_name => 'bam_ttq', queue_table => 'bam_ttq_tab' );
    execute dbms_aqadm.start_queue( queue_name => 'bam_ttq' );
    Database Trigger setup
    Run the following sql connected to database as scott user, it creates a trigger on EMP table.
    create or replace trigger send_recs_Employee AFTER INSERT OR Update ON EMP
    FOR each row
    declare
    xml_complete varchar2(8000);
    v_enqueue_options dbms_aq.enqueue_options_t;
    v_message_properties dbms_aq.message_properties_t;
    v_msgid raw(16);
    temp sys.aq$_jms_text_message;
    v_recipients dbms_aq.aq$_recipient_list_t;
    Begin
    temp:=sys.aq$_jms_text_message.construct;
    v_recipients(1) := sys.aq$_agent('istante',null,0);
    v_recipients(2) := sys.aq$_agent('test',null,0);
         v_message_properties.recipient_list := v_recipients;
    xml_complete :=
              '<?xml version="1.0"?><row>' ||
              '<EMPNO>' || :new.EMPNO || '</EMPNO>' ||
              '<ENAME>' || :new.ENAME || '</ENAME>' ||
              '<JOB>' || :new.JOB || '</JOB>' ||
              '<MGR>' || :new.MGR || '</MGR>' ||
              '<HIREDATE>' || :new.HIREDATE || '</HIREDATE>' ||
              '<SAL>' || :new.SAL || '</SAL>' ||
              '<COMM>' || :new.COMM || '</COMM>' ||
              '<DEPTNO>' || :new.DEPTNO || '</DEPTNO>' ||
              '</row>' ;
              temp.set_text(xml_complete);
    dbms_aq.enqueue(queue_name => 'bam_ttq',
              enqueue_options => v_enqueue_options,
              message_properties => v_message_properties,
              payload => temp,
              msgid => v_msgid );
    End ;
    BAM Setup
    •     Administrator - Fix the classpaths for oc4j jar files for Oracle (AS JMS and OJMS) Message source type using the OC4J_Install_location. If you are using production App Server you need to add extra classpath entry <App Server Location>\opmn\lib\optic.jar
    •     Architect - Create a new Enterprise message source of type Oracle (AS JMS and OJMS)
    Initial Context Factory:      com.evermind.server.rmi.RMIInitialContextFactory
    JNDI Service Provider URL:      o     For Standalone oc4j: ormi://machine name/
    Where machine name is OC4J installed host
    o     For Production App Server: opmn:ormi://<machine name>:<opmn request port>:home
    Where machine name is App server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
    TopicConnectionFactory Name:      java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
    Topic Name:      java:comp/resource/BAMTTT/Topics/bam_ttq
    JMS Message Type:      TextMessage
    Durable Subscriber Name (Optional):      Istante
    Message Selector (Optional):      
    Client ID (Optional):      ClientID
    Name     Flow name     Type     Max size     Formatting
    row.     row.     String     4000     (none).
    •     Enterprise Link Design Studio – create a basic plan with
    o     Oracle BAM Enterprise Message Receiver, selecting the message source you created in above step.
    o     Display sink Grid
    •     Create file jndi.properties in C:\Program Files\Oracle BAM\j2re1.4.1_01\lib with entries
    java.naming.security.principal=admin
    java.naming.security.credentials=welcome1 (App server/Oc4j password)
    Running
    •     Start OC4J
    •     To enqueue messages update or insert records in EMP table connected to database as scott user
    Insert into emp values (&empno,'FORD','ANALYST',7566,sysdate,60000,3000,20);
    •     Run update on the enterprise plan
    In above sample no parsing of the data is done, its got as one single string.
    OJMS setup
    Configuring JMS
    http://www.oracle.com/technology/books/pdfs/2352_Ch06_FINAL.pdf
    Oracle® Application Server Containers for J2EE Services Guide 10g Release 2 (10.1.2) for Windows or UNIX
    http://iasdocs/iasdl/101200doc/web.1012/b14012/toc.htm

  • JNDI lookup/properties

    Hi
    Is there anobody that has got this figured out totally. From all the question on Sun and Oracles forums it seemst that the Lookup with JNDI is a massive problem for everybody.
    Is there some utility written by someone that can actually be run agains OC4J to tell you what is available in the JNDI lookup tree? This will make it a lot easier to find answers to all these questions.
    I 'm now trying to get the MDB environment going but can't get the JSP from the messagelogger example to look up the queue. NameNotFound exception. a Utility that will tel you what is available and what not will make a stunning tool. Now I havent got any idea if the problem is in hte OC4J setup or the JSP.
    Tks
    Andre

    Hi
    Is there anobody that has got this figured out totally. From all the question on Sun and Oracles forums it seemst that the Lookup with JNDI is a massive problem for everybody.
    Is there some utility written by someone that can actually be run agains OC4J to tell you what is available in the JNDI lookup tree? This will make it a lot easier to find answers to all these questions.
    I 'm now trying to get the MDB environment going but can't get the JSP from the messagelogger example to look up the queue. NameNotFound exception. a Utility that will tel you what is available and what not will make a stunning tool. Now I havent got any idea if the problem is in hte OC4J setup or the JSP.
    Tks
    Andre

  • Ojspc : cannot execute

    Hello,
    I' posted this question in Identity management forum but didn't get any reply so I thought this could be the right forum. I'm trying to upgrade OIM 9.1.0 to BP2 but patch_oc4j doesn't run successfully. When I checked the log file, I found the following error:
    BUILD FAILED
    file:/u01/oim/xellerate/setup/oc4j-setup.xml:115: Execute failed: java.io.IOException: java.io.IOException: /u01/oas/10.1.3/j2ee/home/jsp/bin/ojspc: cannot execute
    at org.apache.tools.ant.taskdefs.ExecTask.runExec(ExecTask.java:371)
    at org.apache.tools.ant.taskdefs.ExecTask.execute(ExecTask.java:250)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:397)
    at org.apache.tools.ant.taskdefs.CallTarget.execute(CallTarget.java:143)
    at org.apache.tools.ant.Task.perform(Task.java:341)
    at org.apache.tools.ant.Target.execute(Target.java:309)
    at org.apache.tools.ant.Target.performTasks(Target.java:336)
    at org.apache.tools.ant.Project.executeTarget(Project.java:1339)
    at org.apache.tools.ant.Project.executeTargets(Project.java:1255)
    at org.apache.tools.ant.Main.runBuild(Main.java:609)
    at org.apache.tools.ant.Main.start(Main.java:196)
    at org.apache.tools.ant.Main.main(Main.java:235)
    and a long list of similar errors.
    I can manually run ojspc without errors. $ORACLE_HOME is the OAS directory and $JAVA_HOME is the jdk directory under the OAS. The system is RHEL4 with Oracle 10g2 and OAS 10.1.3
    Thank you for your help

    We can't advise with some system information. As an alternative, also consider this:
    Direct Download Links for Adobe Software
    Mylenium

  • Set SECURITY_PRINCIPAL,SECURITY_CREDENTIALS in sample EJB client to what?

    Hi!
    I'm getting an:
    javax.naming.NamingException: Lookup error: java.net.ConnectException: Connection refused: connect; ...
    from a sample client class that JDeveloper generated from an Entity Bean that it generated from a Table.
    I haven't successfully been able to the Oracle 9i IAS on a separate machine, so I'm using JDeveloper's embedded OC4J for now.
    In the Database Connection is specified the DB user and passwd, in ejb.jar and orion-ejb.jar i created a role "serious-user" and specified that it can access all the Bean's methods.
    I'm not sure if the DB access is refused because something is wrong or missing about those role definitions or because I'd need to instanciate some session or the like..
    so far, I only have: Entity Bean, sample client generated from it, ejb-jar.xml and orion-ejb-jar.xml .
    the generated sample code says this:
                   Hashtable env = new Hashtable();
                   env.put(Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory");
                   env.put(Context.SECURITY_PRINCIPAL, "admin");
                   env.put(Context.SECURITY_CREDENTIALS, "welcome");
                   env.put(Context.PROVIDER_URL, "ormi://localhost:23895/current-workspace-app");
    Is the security principal supposed to be changed to the role I've defined? What about the security credentials?
    challenged,
    Lukas
    Btw: Something might be wrong with my Jdeveloper/OC4J setup ..
    In a different project, trying to retrieve the ServletContext from a Servlet's init() method gets me a null pointer exception.

    I'm having the exact same error message with my Sample Client. And I get this error even though I have made sure to run the Entity Bean, and the Session Bean. When I run these EJBs, i get no errors and it looks like the embedded OC4J is getting launched.
    So there must be something else going on, at least for me. But What??
    Also, where do you specify whether you want to Run the client against a standalone OC4J instance or the Embedded OC4J instance?
    Thanks and whoever answers my question will receive my undying gratitude as well as a few good karma points.

  • Urgent : Problem with Client when OC4J has been setup in 2 way SSL mode

    This is the output that is generated in the JDeveloper console on running the example from b14429.pdf. Examle :
    ====================================================
    import HTTPClient.HTTPConnection;
    import HTTPClient.HTTPResponse;
    import javax.security.cert.X509Certificate;
    import oracle.security.ssl.OracleSSLCredential;
    import java.io.IOException;
    import javax.net.ssl.SSLPeerUnverifiedException;
    public class SSLSocketClientWithClientAuth {
    public static void main(String[] args) {
    if (args.length < 4) {
    System.out.println("Usage: java HTTPSConnectionTest [host] [port] " +
    "[wallet] [password]");
    System.exit(-1);
    String hostname = args[0].toLowerCase();
    int port = Integer.decode(args[1]).intValue();
    String walletPath = args[2];
    String password = args[3];
    HTTPConnection httpsConnection = null;
    OracleSSLCredential credential = null;
    try {
    httpsConnection = new HTTPConnection("https", hostname, port);
    } catch (IOException e) {
    System.out.println("HTTPS Protocol not supported");
    System.exit(-1);
    try {
    credential = new OracleSSLCredential();
    credential.setWallet(walletPath, password);
    } catch (IOException e) {
    System.out.println("Could not open wallet");
    System.exit(-1);
    httpsConnection.setSSLEnabledCipherSuites(new String[]{"SSL_RSA_WITH_3DES_EDE_CBC_SHA"});
    httpsConnection.setSSLCredential(credential);
    try {
    httpsConnection.connect();
    } catch (IOException e) {
    System.out.println("Could not establish connection");
    e.printStackTrace();
    System.exit(-1);
    // X509Certificate x509 = new X509Certificate();
    //javax.servlet.request.
    X509Certificate[] peerCerts = null;
    try {
    peerCerts =
    (httpsConnection.getSSLSession()).getPeerCertificateChain();
    } catch (javax.net.ssl.SSLPeerUnverifiedException e) {
    System.err.println("Unable to obtain peer credentials");
    e.printStackTrace();
    System.exit(-1);
    String peerCertDN =
    peerCerts[peerCerts.length - 1].getSubjectDN().getName();
    peerCertDN = peerCertDN.toLowerCase();
    if (peerCertDN.lastIndexOf("cn=" + hostname) == -1) {
    System.out.println("Certificate for " + hostname +
    " is issued to " + peerCertDN);
    System.out.println("Aborting connection");
    System.exit(-1);
    try {
    HTTPResponse rsp = httpsConnection.Get("/");
    System.out.println("Server Response: ");
    System.out.println(rsp);
    } catch (Exception e) {
    System.out.println("Exception occured during Get");
    e.printStackTrace();
    System.exit(-1);
    ================================================================
    C:\j2sdk1.4.2_09\bin\javaw.exe -client -classpath "D:\eclipse\workspace\OC4JClient\OC4JClient\classes;D:\eclipse\workspace\jdev\extensions\.jar;C:\Documents and Settings\nilesh_bafna\Desktop\Nitin\lib\jssl-1_1.jar;E:\product\10.1.3.1\OracleAS_1\j2ee\home\lib\http_client.jar;E:\product\10.1.3.1\OracleAS_1\jlib\javax-ssl-1_1.jar" -Djava.protocol.handler.pkgs=HTTPClient -Djavax.net.debug=ssl -Djavax.net.ssl.keyStore=F:/oc4jcert/client.keystore -Djavax.net.ssl.keyStorePassword=welcome1 -Djavax.net.ssl.trustStore=F:/oc4jcert/client.keystore -Djavax.net.ssl.trustStorePassword=welcome1 -DOracle.ssl.defaultCipherSuites=SSL_RSA_WITH_RC4_128_MD5 SSLSocketClientWithClientAuth ps4372.persistent.co.in 443 F:/oc4jcert/client.keystore welcome1
    keyStore is : F:/oc4jcert/client.keystore
    keyStore type is : jks
    init keystore
    init keymanager of type SunX509
    found key for : oracle-client
    chain [0] = [
    Version: V3
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: SunJSSE RSA public key:
    public exponent:
    010001
    modulus:
    87fcc8e9 0ffcef8e 61f3be10 be7c9715 2792849b 3bbdeb1c cc76b337 4b82bbab
    86972c63 9af3adfd 35b5df99 9078a0d1 6dc760d8 0549a95a bfa7648a 9eadd326
    a6bc4b61 d8f8b42f 44e0b178 ff1dee20 db8406cd d800c26a 9c5a6ed9 4d6f2aef
    bc919814 3b46be39 e129280c e83afe12 c9d4e3d7 fb5787b1 d98bed4a 4f0833d5
    Validity: [From: Thu Jan 18 21:18:14 GMT+05:30 2007,
                   To: Wed Apr 18 21:18:14 GMT+05:30 2007]
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    SerialNumber: [    45af96be]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 41 47 35 41 90 10 E3 77 A7 F3 F5 81 37 49 4F 57 AG5A...w....7IOW
    0010: 01 11 82 A2 FB 69 46 E8 18 6C EE 11 23 A6 67 2E .....iF..l..#.g.
    0020: 68 4D D6 A6 E7 09 45 24 58 18 9A E5 44 49 10 9B hM....E$X...DI..
    0030: F1 EC 99 4A 45 5F A4 4F 71 3F 05 3D 45 29 42 CD ...JE_.Oq?.=E)B.
    0040: 11 87 DA 0C AA DC 55 4E CF 22 4A 94 85 CB E5 EB ......UN."J.....
    0050: BA E1 10 D2 C8 80 2C 6B 65 94 13 01 1F 6E 18 C3 ......,ke....n..
    0060: 87 33 8C 65 C7 03 16 03 24 FB 0D B0 6D D8 E7 AA .3.e....$...m...
    0070: A1 A5 48 90 0D D6 8C 47 50 2A AA 7C 7B 14 E5 B7 ..H....GP*......
    trustStore is: F:\oc4jcert\client.keystore
    trustStore type is : jks
    init truststore
    adding as trusted cert:
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Algorithm: RSA; Serial number: 0x45af96be
    Valid from Thu Jan 18 21:18:14 GMT+05:30 2007 until Wed Apr 18 21:18:14 GMT+05:30 2007
    adding as trusted cert:
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Algorithm: RSA; Serial number: 0x45af95dc
    Valid from Thu Jan 18 21:14:28 GMT+05:30 2007 until Wed Apr 18 21:14:28 GMT+05:30 2007
    init context
    trigger seeding of SecureRandom
    done seeding SecureRandom
    %% No cached client session
    *** ClientHello, TLSv1
    RandomCookie: GMT: 1152299454 bytes = { 41, 212, 166, 48, 109, 77, 185, 232, 204, 95, 158, 141, 60, 96, 196, 172, 49, 19, 49, 22, 222, 234, 47, 76, 27, 130, 5, 176 }
    Session ID: {}
    Cipher Suites: [SSL_RSA_WITH_RC4_128_MD5, SSL_RSA_WITH_RC4_128_SHA, TLS_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_RSA_WITH_AES_128_CBC_SHA, TLS_DHE_DSS_WITH_AES_128_CBC_SHA, SSL_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA, SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA, SSL_RSA_WITH_DES_CBC_SHA, SSL_DHE_RSA_WITH_DES_CBC_SHA, SSL_DHE_DSS_WITH_DES_CBC_SHA, SSL_RSA_EXPORT_WITH_RC4_40_MD5, SSL_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_RSA_EXPORT_WITH_DES40_CBC_SHA, SSL_DHE_DSS_EXPORT_WITH_DES40_CBC_SHA]
    Compression Methods: { 0 }
    main, WRITE: TLSv1 Handshake, length = 73
    main, WRITE: SSLv2 client hello message, length = 98
    main, READ: TLSv1 Handshake, length = 839
    *** ServerHello, TLSv1
    RandomCookie: GMT: 1152299454 bytes = { 206, 186, 162, 116, 179, 72, 44, 198, 189, 25, 70, 227, 170, 235, 83, 186, 152, 49, 194, 222, 248, 3, 191, 170, 248, 95, 134, 35 }
    Session ID: {69, 175, 178, 190, 47, 141, 131, 115, 241, 226, 39, 29, 241, 65, 235, 165, 57, 40, 52, 85, 68, 85, 68, 84, 108, 141, 1, 125, 193, 191, 158, 208}
    Cipher Suite: SSL_RSA_WITH_RC4_128_MD5
    Compression Method: 0
    %% Created: [Session-1, SSL_RSA_WITH_RC4_128_MD5]
    ** SSL_RSA_WITH_RC4_128_MD5
    *** Certificate chain
    chain [0] = [
    Version: V3
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: SunJSSE RSA public key:
    public exponent:
    010001
    modulus:
    6f24d75b 96919725 ad6ea93a cab0bd96 a49d2f3c e14f5c09 0e228e36 de64e0f2
    f2b82740 1653bdb4 5024d281 21ed8c4c 89bc322b 4dc9ffb2 0e97cd95 16e6fe1e
    380340c9 f3c67e2c 18d06461 f4f30eaf 4394716e 7bc66d80 810a9cb5 9c168b36
    cdd99919 67074ebc edebf02e ebf0accb 2193bc38 7ae1cdda af5ff300 ed0e7763
    Validity: [From: Thu Jan 18 21:14:28 GMT+05:30 2007,
                   To: Wed Apr 18 21:14:28 GMT+05:30 2007]
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    SerialNumber: [    45af95dc]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 05 4E EE 12 5B DD 7F 26 92 37 67 C9 D0 73 46 4D .N..[..&.7g..sFM
    0010: 7E A5 1E 67 38 06 D9 5F 9F B7 2F E8 F6 9E BF 88 ...g8.._../.....
    0020: 01 31 7D EA 42 5E 4F 9E D7 8F DA 9F 94 A5 EF 47 .1..B^O........G
    0030: E3 E9 BA DE 94 15 C6 03 DE C9 C0 7D CE 58 C0 27 .............X.'
    0040: 0F 1A 66 EC 73 53 5D 1D DE 7E FA 35 15 E0 2A CC ..f.sS]....5..*.
    0050: C9 74 CC 58 E9 B6 2F 68 A0 89 2B F3 E6 61 7D E1 .t.X../h..+..a..
    0060: 21 AF BE E8 83 49 B1 BD 36 C5 2D 1B 0D A1 0E 63 !....I..6.-....c
    0070: 02 4A 82 71 B0 E1 9C AD 55 67 F9 17 A5 96 18 EB .J.q....Ug......
    Found trusted certificate:
    Version: V3
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: SunJSSE RSA public key:
    public exponent:
    010001
    modulus:
    6f24d75b 96919725 ad6ea93a cab0bd96 a49d2f3c e14f5c09 0e228e36 de64e0f2
    f2b82740 1653bdb4 5024d281 21ed8c4c 89bc322b 4dc9ffb2 0e97cd95 16e6fe1e
    380340c9 f3c67e2c 18d06461 f4f30eaf 4394716e 7bc66d80 810a9cb5 9c168b36
    cdd99919 67074ebc edebf02e ebf0accb 2193bc38 7ae1cdda af5ff300 ed0e7763
    Validity: [From: Thu Jan 18 21:14:28 GMT+05:30 2007,
                   To: Wed Apr 18 21:14:28 GMT+05:30 2007]
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    SerialNumber: [    45af95dc]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 05 4E EE 12 5B DD 7F 26 92 37 67 C9 D0 73 46 4D .N..[..&.7g..sFM
    0010: 7E A5 1E 67 38 06 D9 5F 9F B7 2F E8 F6 9E BF 88 ...g8.._../.....
    0020: 01 31 7D EA 42 5E 4F 9E D7 8F DA 9F 94 A5 EF 47 .1..B^O........G
    0030: E3 E9 BA DE 94 15 C6 03 DE C9 C0 7D CE 58 C0 27 .............X.'
    0040: 0F 1A 66 EC 73 53 5D 1D DE 7E FA 35 15 E0 2A CC ..f.sS]....5..*.
    0050: C9 74 CC 58 E9 B6 2F 68 A0 89 2B F3 E6 61 7D E1 .t.X../h..+..a..
    0060: 21 AF BE E8 83 49 B1 BD 36 C5 2D 1B 0D A1 0E 63 !....I..6.-....c
    0070: 02 4A 82 71 B0 E1 9C AD 55 67 F9 17 A5 96 18 EB .J.q....Ug......
    *** CertificateRequest
    Cert Types: RSA, DSS,
    Cert Authorities:
    <CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US>
    *** ServerHelloDone
    matching alias: oracle-client
    *** Certificate chain
    chain [0] = [
    Version: V3
    Subject: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    Signature Algorithm: MD5withRSA, OID = 1.2.840.113549.1.1.4
    Key: SunJSSE RSA public key:
    public exponent:
    010001
    modulus:
    87fcc8e9 0ffcef8e 61f3be10 be7c9715 2792849b 3bbdeb1c cc76b337 4b82bbab
    86972c63 9af3adfd 35b5df99 9078a0d1 6dc760d8 0549a95a bfa7648a 9eadd326
    a6bc4b61 d8f8b42f 44e0b178 ff1dee20 db8406cd d800c26a 9c5a6ed9 4d6f2aef
    bc919814 3b46be39 e129280c e83afe12 c9d4e3d7 fb5787b1 d98bed4a 4f0833d5
    Validity: [From: Thu Jan 18 21:18:14 GMT+05:30 2007,
                   To: Wed Apr 18 21:18:14 GMT+05:30 2007]
    Issuer: CN=ps4372.persistent.co.in, OU=Marketing, O=Oracle, L=Atlanta, ST=Georgia, C=US
    SerialNumber: [    45af96be]
    Algorithm: [MD5withRSA]
    Signature:
    0000: 41 47 35 41 90 10 E3 77 A7 F3 F5 81 37 49 4F 57 AG5A...w....7IOW
    0010: 01 11 82 A2 FB 69 46 E8 18 6C EE 11 23 A6 67 2E .....iF..l..#.g.
    0020: 68 4D D6 A6 E7 09 45 24 58 18 9A E5 44 49 10 9B hM....E$X...DI..
    0030: F1 EC 99 4A 45 5F A4 4F 71 3F 05 3D 45 29 42 CD ...JE_.Oq?.=E)B.
    0040: 11 87 DA 0C AA DC 55 4E CF 22 4A 94 85 CB E5 EB ......UN."J.....
    0050: BA E1 10 D2 C8 80 2C 6B 65 94 13 01 1F 6E 18 C3 ......,ke....n..
    0060: 87 33 8C 65 C7 03 16 03 24 FB 0D B0 6D D8 E7 AA .3.e....$...m...
    0070: A1 A5 48 90 0D D6 8C 47 50 2A AA 7C 7B 14 E5 B7 ..H....GP*......
    JsseJCE: Using JSSE internal implementation for cipher RSA/ECB/PKCS1Padding
    *** ClientKeyExchange, RSA PreMasterSecret, TLSv1
    Random Secret: { 3, 1, 236, 206, 185, 158, 75, 201, 230, 16, 170, 40, 193, 70, 188, 134, 36, 134, 14, 20, 191, 121, 246, 8, 7, 2, 137, 66, 166, 10, 185, 246, 104, 154, 27, 82, 161, 133, 11, 130, 11, 130, 71, 84, 155, 165, 239, 227 }
    main, WRITE: TLSv1 Handshake, length = 763
    SESSION KEYGEN:
    PreMaster Secret:
    0000: 03 01 EC CE B9 9E 4B C9 E6 10 AA 28 C1 46 BC 86 ......K....(.F..
    0010: 24 86 0E 14 BF 79 F6 08 07 02 89 42 A6 0A B9 F6 $....y.....B....
    0020: 68 9A 1B 52 A1 85 0B 82 0B 82 47 54 9B A5 EF E3 h..R......GT....
    CONNECTION KEYGEN:
    Client Nonce:
    0000: 45 AF B2 BE 29 D4 A6 30 6D 4D B9 E8 CC 5F 9E 8D E...)..0mM..._..
    0010: 3C 60 C4 AC 31 13 31 16 DE EA 2F 4C 1B 82 05 B0 <`..1.1.../L....
    Server Nonce:
    0000: 45 AF B2 BE CE BA A2 74 B3 48 2C C6 BD 19 46 E3 E......t.H,...F.
    0010: AA EB 53 BA 98 31 C2 DE F8 03 BF AA F8 5F 86 23 ..S..1......._.#
    Master Secret:
    0000: CA 5C BA B3 D0 C9 26 A9 3A 06 08 8F 27 2E CE 17 .\....&.:...'...
    0010: 93 98 BC DF EF 78 2A 99 DB 3E 50 3B 01 D1 84 5F .....x*..>P;..._
    0020: 28 80 CE 7C 7C C1 12 A4 11 F6 33 9B 2E D9 6F BE (.........3...o.
    Client MAC write Secret:
    0000: 80 FF CE 99 7C 45 4C D8 60 FA 40 79 A2 A4 36 7C .....EL.`[email protected].
    Server MAC write Secret:
    0000: 2D F1 A0 A8 ED A1 7B DD 89 A5 01 90 43 BF F1 19 -...........C...
    Client write key:
    0000: E1 3F 33 54 D3 C5 3A 26 4A 41 65 DA AC 44 3B 28 .?3T..:&JAe..D;(
    Server write key:
    0000: C5 08 52 AE A9 0A 4F D0 AD 54 49 C6 4E 2F 9C 4E ..R...O..TI.N/.N
    ... no IV for cipher
    JsseJCE: Using JSSE internal implementation for cipher RSA/ECB/PKCS1Padding
    *** CertificateVerify
    main, WRITE: TLSv1 Handshake, length = 134
    main, WRITE: TLSv1 Change Cipher Spec, length = 1
    main, handling exception: java.net.SocketException: Software caused connection abort: socket write error
    main, SEND TLSv1 ALERT: fatal, description = unexpected_message
    main, WRITE: TLSv1 Alert, length = 2
    Exception sending alert: java.net.SocketException: Software caused connection abort: socket write error
    main, called closeSocket()
    IOException in getSession(): java.net.SocketException: Software caused connection abort: socket write error
    Unable to obtain peer credentials
    javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated
         at com.sun.net.ssl.internal.ssl.SSLSessionImpl.getPeerCertificateChain(DashoA12275)
         at SSLSocketClientWithClientAuth.main(SSLSocketClientWithClientAuth.java:56)
    Process exited with exit code -1.
    =====================================================
    I think this is the problem with ciphers. So can anybody please help me with this!!!. This is very urgent!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
    Thanks in advance
    Nilesh

    Thanks for your prompt reply I was able to make it run. Actually I am using the same keystore and truststore at both the client and the server end. I added those properties in opmn.xml as startup parameters.
    I have another query I am using JDev to create a client proxy for my webservice that is deployed in OC4J. I have setup OC4J in 2 way SSL (mutual authentication)
    When I invoke my client proxy with these system properties set
    System.setProperty("javax.net.ssl.keyStore",keyStore);
    System.setProperty("javax.net.ssl.keyStorePassword", keyStorePassword);
    System.setProperty("javax.net.ssl.trustStore", trustStore);
    System.setProperty("javax.net.ssl.trustStorePassword",trustStorePassword);
    System.setProperty("javax.net.ssl.keyStoreType","JKS");
    System.setProperty("javax.net.ssl.trustStoreType","JKS");
    I get an exception in the log.xml which is
    <MSG_TEXT>IOException in ServerSocketAcceptHandler$AcceptHandlerHorse:run</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[javax.net.ssl.SSLProtocolException: handshake alert: no_certificate
                at com.sun.net.ssl.internal.ssl.ServerHandshaker.handshakeAlert(ServerHandshaker.java:1031)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.recvAlert(SSLSocketImpl.java:1535)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:863)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1025)
                at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1038)
                at oracle.oc4j.network.ServerSocketAcceptHandler.doSSLHandShaking(ServerSocketAcceptHandler.java:250)
                at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:868)
                at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
                at java.lang.Thread.run(Thread.java:595)
    ]]></SUPPL_DETAIL>
    Isn't setting these properties enough for sending a client certificate. Please help!!!!
    Thanks,
    Nilesh.

  • How to Setup a JSP to Run on Different Physical Location than OC4J Defaul

    I am trying to setup a development environment for jsp application development in Oracle 9ias Release 2 for a development group. I followed the steps outlined in NOTe:167960.1 using both EM Website (creating a OC4J and editing server.xml and defau*.xml files) and DCMCTL (Doc ID: 185635.1) utility. OC4J app is coming up only partially which does not work.
    Is this possible to "Setup a JSP to Run on Different Physical Location than OC4J Default Home" in Oracle 9ias Release 2 ?
    Appreciate insight
    Thanks
    Subu

    I was finally able to get it up and running... I commented out all the apple specific lines in smb.conf until I was able to successfully finish the driver copy process via the Windows driver wizard. The line in the /etc/smb.conf which was causing this weird problem was:
         vfs objects = notify_kqueue,darwinacl,darwin_streams
    I have no idea what this line is about. However after commenting it out the driver installation immediately started to work. I cross checked it by adding the line again and viola the problem was back - so it can be broken down to this line...
    As I've found some other comments to this line in the internet I guess I will go for the smb.conf changes described in this article:
    http://blog.djmnet.org/2009/02/09/macs-needing-unix-network-geekery/
    Cheers
    jogi4mac

  • Automating OC4J Container Setup

    Hi All,
    I was wondering if anyone would be able to help with a simple query? Our company has recently upgraded to using OAS 10.1.3.4.0 for the latest version of our product. We distribute this to all our customers, and so have many installations to do as part of this upgrade. I've written scripts and response files to enable the installation to be quicker, but I'm looking at using the admin_client.jar to do the setup of OC4J containers for the application.
    In the documentation I have found how to set up shared libraries, JMS queues, etc, but I have some questions:
    1. Is it possible to include server properties anywhere in an automated script, or deployment plan (i.e -D parameters, heap size, etc)?
    2. Is it also possible to specify JSP properties, and transaction manager properties in a deployment plan?
    3. I can specify adding JMS queues as part of an admin_tool.jar script, but is it possible to put these in the deployment plan or EAR file too? This would make it easier to change them with subsequent releases.
    I hope this is clear, and someone may be able to help with these questions.
    thanks,
    Chris
    Database Administrator, Corelogic Ltd.

    Chris,
    In response to 1. :
    We use ant for automating deployment and I can describe this if you like, but it may not be an option for your customers since ant must be installed on their servers or on a server that can access and control their machines. In any event, the startup options for the JVM (Max Heap Size etc.) can be placed in a batch file (Windows) or shell script (*nix) that you could exec during your install. This is a great idea if you need to be certain that the target server can accomodate your application's needs but there is a caveat - you should check that the target server can accomodate your settings without being overtaxed. These (custom JVM args) may raise legitimate concerns and be something that their server admin may prefer to control.
    -Michael

  • Automating OC4J Instance Setup

    Hi All,
    I was wondering if anyone would be able to help with a simple query? Our company has recently upgraded to using OAS 10.1.3.4.0 for the latest version of our product. We distribute this to all our customers, and so have many installations to do as part of this upgrade. I've written scripts and response files to enable the installation to be quicker, but I'm looking at using the admin_client.jar to do the setup of OC4J containers for the application.
    In the documentation I have found how to set up shared, libraries, JMS queues, etc, but I have some questions:
    1. Is it possible to include server properties anywhere in an automated script, or deployment plan (i.e -D parameters, heap size, etc)?
    2. Is it also possible to specify JSP properties, and transaction manager properties in a deployment plan?
    3. I can specify adding JMS queues as part of an admin_tool.jar script, but is it possible to put these in the deployment plan or EAR file too? This would make it easier to change them with subsequent releases.
    I hope this is clear, and someone may be able to help with these questions.
    thanks,
    Chris
    Database Administrator, Corelogic Ltd.

    You might want to post in OC4J forum too:
    OC4J

  • Error message in opmn OC4J log for my BPEL cluster setup

    I am settings up my 2 nodes BPEL cluster in the same subnet, i prepared my jgroups-protocols.xml as:
    <config>
    <UDP mcast_send_buf_size="32000"
    mcast_port="45788"
    ucast_recv_buf_size="64000"
    mcast_addr="228.8.15.24"
    receive_on_all_interfaces="true"
    loopback="true"
    mcast_recv_buf_size="64000"
    max_bundle_size="48000"
    max_bundle_timeout="30"
    use_incoming_packet_handler="false"
    use_outgoing_packet_handler="false"
    ucast_send_buf_size="32000"
    ip_ttl="32"
    enable_bundling="false"/>
    <PING timeout="2000"
    num_initial_members="3"/>
    <MERGE2 max_interval="10000"
    min_interval="5000"/>
    <FD timeout="2000"
    max_tries="3"
    shun="true"/>
    <VERIFY_SUSPECT timeout="1500"/>
    <pbcast.NAKACK max_xmit_size="8192"
    use_mcast_xmit="false"
    gc_lag="50"
    retransmit_timeout="600,1200,2400,4800"/>
    <UNICAST timeout="1200,2400,3600"/>
    it is same as the default file, the configuration is same in both nodes, however, in OC4J log, i found it return the address is already in use:
    zed adaptors for platform 'ias_10g'
    Feb 22, 2008 2:58:17 PM org.collaxa.thirdparty.jgroups.protocols.UDP createSockets
    INFO: sockets will use interface 0.0.0.0
    08/02/22 14:58:17 java.lang.Exception: exception caused by UDP.start(): java.net.SocketException: Address already in use
    08/02/22 14:58:17 at org.collaxa.thirdparty.jgroups.stack.Protocol.handleSpecialDownEvent(Protocol.java:600)
    08/02/22 14:58:17 at org.collaxa.thirdparty.jgroups.stack.DownHandler.run(Protocol.java:117)
    <2008-02-22 14:58:18,453> <INFO> <collaxa> <ServerManager::uninit> Shutting down all domains
    <2008-02-22 14:58:18,453> <INFO> <collaxa> <ServerManager::uninit> Done shutting down all domains
    <QuartzPublisherInit::init> Notification Retry publisher scheduled at every 15 minute(s)
    08/02/22 14:59:18 Oracle Containers for J2EE 10g (10.1.3.3.0) initialized
    what is the problem ? how to fix it ?
    thanks.

    Hi,
    Remove "receive_on_all_interfaces" and set bind_to_all_interfaces=false i think.
    It might not be exactly what you want to do, but read up on those parameters on the internet on Jgroups.

Maybe you are looking for