OC4J 11 and EM

Is there an admon utility like Em in OC4J11?
And during deployment (using admin_client.jar) i get several error messages that the war file can not be deployed.
So is there any guidance on the differences TomCat vs OC4J regarding that? Because in TomCat the deployment did work.

i get the following errors
D:\PROGRAMME\02_SPICE_DEVELOPMENTS\OC4J\OC4J_11\j2ee\home>rem java -Doc4j.jmx.se
curity.proxy.off=true -Djava.util.logging.config.file=logging.properties -jar ad
min_client.jar deployer:oc4j:localhost oc4jadmin trustno1 -deploy -file D:\ipc.e
ar -deploymentName ipc -bindAllWebApps
D:\PROGRAMME\02_SPICE_DEVELOPMENTS\OC4J\OC4J_11\j2ee\home>java -Doc4j.jmx.securi
ty.proxy.off=true -Djava.util.logging.config.file=logging.properties -jar admin.
jar ormi://localhost:23791 oc4jadmin trustno1 -deploy -file D:\ipc.ear -deployme
ntName ipc
Deploy error: deploy failed!: ; nested exception is:
oracle.oc4j.admin.internal.DeployerException: java.lang.InstantiationExc
eption: Application: ipc is in failed state as initialization failed
D:\PROGRAMME\02_SPICE_DEVELOPMENTS\OC4J\OC4J_11\j2ee\home>pause
Press any key to continue . . .

Similar Messages

  • Oc4j, jdeveloper and apache, port conflicts ?

    Hi all,
    I am currently in the process of deploying my first EJB on Oracle 9i AS.
    I have successfully installed oc4j.zip and set the login credentials.
    I am however, unable to connect to the index page of the OC4J server from any computer besides the server.
    My URL is http://prams_nt_03:6666 and this works on the server. The reason for it being 6666 is that I have changed it to avoid conflicts with the oc4j server. I have changed it in the default-web-site.xml file. There is a danger of conflict because I want to access the OC4J server behind Apache.
    I have also created the oc4j.conf file, which httpd.conf looks at :
    <IfModule mod_proxy.c>
    ProxyRequests On
    ProxyPass /servlet/ http://prams_nt_03:6666/servlet/
    ProxyPassReverse /servlet/ http://prams_nt_03:6666/servlet/
    </IfModule>
    Does anyone have any suggestions as to what else I need to do ? Maybe I need to specify somewhere else that I am using port 6666 ?
    Also, another point is that I am unable to deploy from JDeveloper, the connection test to the application server fails with the error message : Disconnected.
    My server is Win NT sp6, my AS is 1.0.2.2.2a.
    Thanks in advance for any help you can give.

    Hiya Debu,
    1) Are OHS and OC4J running on the same server ?
    - Yes, along with 9i DB rel 1
    2) What ports are used by OHS and OC4J ?
    The ports are 8888 for both, I have removed the setting for the OC4j Server, which means the OC4J server is not working behind Apache.
    3) Can you go to OC4J's homepage directly i.e. http://myhost:6666 ?
    I cannot go using hostname, but can using I.P address
    4) Can you go to OHS (aka Apache)'s homepage directly ?
    Yes, using I.P and hostname
    5) Do you get any errors during startup of OC4J or OHS ? You will an error port already in use error when a port is used by someone else ?
    None that I can think of.
    I think you hit the nail on the head when you said it could be a DNS problem ! I will configure that now. Thanks for your help, you're a star !

  • Error while working on OC4J installation and Configuration

    Hi i am using DB(9.2.0.6.0) and APPS(11.5.10.2).  Now i have cloned a new instance and it runs on port 8050. Now i want to install and configure OC4J with it. I have done the OC4J Installation Successfully. Here i used the OC4J Version 9.0.3.I have changed the http-web-site.xml port number to 8890 and rmi.xml port to 23793 as per the document i got.To create the starting script, file name called “.start_oc4j” I issued cd $OC4J_TOP/j2ee/home/ then
    java -jar oc4j.jar and
    it throws the error
    [applpdev@oraapps ~]$ cd $OC4J_TOP
    [applpdev@oraapps home]$ pwd
    /pdev/p01/oracle/pixappl/pwr/11.5.0/oc4j/
    [applpdev@oraapps oc4j]$ cd j2ee/home/
    [applpdev@oraapps home]$ java -jar oc4j.jar
    Error starting JMS-Server: Unable to bind socket: Address already in use
    Error starting ORMI-Server.  Unable to bind socket: Address already in use
    [applpdev@oraapps home]$

    Hi,
    It looks like there is a conflicts with the ports you are using.
    These ports seems to be already in use.
    please check 8890 , 23793 , 8050 ports are in use or not .
    Thanks,
    Sharmela

  • Can I use OC4J only and not the full Oracle AppServer?

    When I install Oracle SoaSuite then the full Oracle Application Server including the little brother OC4J
    is installed. Can I somehow (at least theoretically) only install/use the OC4J server and omit the full Oracle ApplicationServer?
    Peter

    SOA Suite is certified only against the Oracle Application Server. You need to have/run on this, or on WebLogic.
    Marc
    http://orasoa.blogspot.com

  • Single SOA Suite Install with multiple oc4j instances and java processes

    We right now have 5 BPEL processes and 5 ESB processes all running under one java.exe process. We would like to seperate some of
    them out into their own java.exe processes without having to install more
    %ORACLE_HOME% instances of SOA Suite. I can create an oc4j instance but of
    course it doesn't have any SOA Suite stuff deployed to it. I tried to see what
    the install would do with this new oc4j instance but it wants to create a new
    %ORACLE_HOME% with an entire installation of SOA Suite.
    Is there some sort of way to clone oc4j instances that have SOA Suite deployed to them so that you
    don't need multiple %ORACLE_HOME% instances?
    ### How is this Issue Impacting Your Business ###
    We really don't want to have a lot of %ORACLE_HOME% instances to have to maintain. We are
    migrating projects over from our current integration server product and we'll
    have potentially dozens more BPEL and ESB projects. We definitely want to
    group and isolate projects so that outages of one project do not bring down
    others that are unrelated.
    We are currently experiencing periodic problems with one BPEL project that requires recycling but all the other BPEL and ESB
    projects get recycled also. If we could put this project into it's own java
    process without creating another SOA SUITE instance, it would be a big
    help.
    ANSWER
    =======
    You can create multiple domains in BPEL or create multiple systems/groups in ESB to group different projects.
    MY REPLY:
    =========
    We have been using systems/groups in ESB but they all run under the save java.exe process. I would assume that having a seperate domain in BPEL would also run in that same java.exe process.
    Right now, the one BPEL project we have a problem with will gobble up all the JDBC connections from time to time and that requires a recycle of SOA Suite, which means all BPEL and ESB projects that run in that java.exe process get recycled also. We're working that issue in a different ticket.
    It would be nice if the SOA Suite installation would install against a new oc4j instance and not assume it has to create a complete %ORACLE_HOME% instance. The components of SOA Suite seem to be J2EE based components.
    Scenario: I already have an oc4j instance called oc4j_soa and a complete %ORACLE_HOME% installation of soa suite. I then create a new oc4j instance from Enterprise Manager. Then I would deploy the esb-dt, esb-rt, orabpel, etc. components of SOA Suite to that new oc4j instance and modify the necessary config file so that it can work with OHS and the SOA Suite Databases. Is this possible?
    Does anyone have any experience with this or do people typically install multiple complete installation of SOA Suite with mulitple Oracle Homes?

    Hi,
    yes, on metalink you get in touch with real experts....
    You have to install serveral application servers to get different ORACLE_HOMEs.
    For each one, you can install a BPEL PM.
    But: For each BPEL PM you need your own database instance, or you have to configure them as a clustered BPEL installation.... (but i do not know if this work with non RAC DBs)

  • Can OC4J 10 and OC4J11 support jdk 1.6?

    Can OC4J 10 and OC4J11 support jdk 1.6?

    No not really. You will have to check above mentioned Oracle's certification matrix to make sure Oracle Application Server supports desired JDK on the platform you have.
    Thanks
    Shail

  • OC4J, fop, and 11g

    I see some post on this though nothing is totally clear.
    I need to enable PDF printing.
    I am using the HTTP Server downloaded from Oracle
    I am going to install the latest version of oc4j since the default looks like 10.1.3.0 instead of 10.3.1.x.
    Has anyone had success with this?

    Marc,
    Thanks for the reply.
    I was able to do somethings to see if the installation was operational.
    I entered into a browser
    http://myserver:8080/ and the XDB server asked for a login. This is where Apex 3.1 resides on the 11g installation.
    I also put in http://myserver:8080/f?p:202:9003:sesionid:FLOW_XLMP_OUTPUT_R4541901588105877_en-us
    I had to sign into the application and the File Download box appeared. I clicked Save and get the 404 Not Found error.
    I looked at the Shared Components>Report Layouts and there are no layouts. Is the base template missing?
    I created a template and selected it in the Report Layout of the Print Attributes and the same error was written to the output file.
    I wonder if there is a permissions issue with the FOP installation. Is that possible? Is there a way to check? I assume Annonymous needs to have r/w permissions to whatever directories are being used by FOP.
    TIA,
    Sam

  • OC4J EJBQL and EJB 2.0 features

    Hello Debu Panda and All
    I've got all howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle --------------------------
    Luis Soeiro <mailto:[email protected]> <mailto:[email protected]>Type : Question Date : Apr 11, 2002 15:15 PT Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    HI,
    I worked out CMR and EJB-QL with single bean.
    Using CMR, it is possible to get one bean reference through other bean, but
    When I tried EJB-QL with bean to bean navigation then I run into problem.

  • OC4J problem and End of TNS data channel

    We are using Oralce 9iAS with OC4J to host our java application. Recently, we kept having problem with the application. The problem is when user enters username and password to login, the application doesn't do anything until we restart OC4J instance. After tracking down all the error log files, it looks like problem happened whenever the application get "SQL Exception: End of TNS data channel" error. I don't know why are we getting this "End of TNS data channel" error. I don't think it is the application's problem.
    1)Does anybody have any idea why?
    2)Does OC4J server need to be restarted every once a while.
    Thanks in advance.

    Hi Liya -
    "End of TNS data channel" is usually a message sent by the database when something erroneous is occuring.
    What version of the database, JDBC, and JDK are you using?
    Are you getting any dump files from the database?
    Can you describe a little more about what the application code is doing?
    There is some good information on this error message at the following URL
    http://forum.java.sun.com/thread.jsp?thread=280338&forum=48&message=1090056
    -steve-

  • Spring DefaultMessageListener, OC4J , AQ and XA

    Greetings:
    We are accessing our XA connection Factory through a JCA Resource Adaptor in order to read from a queue residing in AQ.
    The difference is that we are using the SpringDefaultMessage Listener instead of a MessageDrivenBean
    Each time the listener polls we get:
    javax.jms.JMSException: Not supported in XA-backed session outside global transaction
    Also, when we set the DML property "concurrentConsumers" to a value higher than one, we get this error:
    javax.jms.JMSException: J2EE 1.4 does not allow multiple JMS sessions per connection
    We have had this configuration working through the Oracle Filebased Resource Adaptor (OracleASjms) but the trouble started when we switched to AQ.
    Any help would be appreciated.
    We are using OC4J 10.1.3.4
    Database 10.1.5
    Spring 2.5.6
    Edited by: user5390357 on Jan 13, 2009 11:47 AM

    I am not familiar with Spring, but I can comment from the JMS standpoint:
    Each time the listener polls we get:
    javax.jms.JMSException: Not supported in XA-backed session outside global transactionThis is probably because Spring uses unmanaged threads that are not infected with the current transaction information. Starting OC4J with "-userThreads" might solve this problem.
    Also, when we set the DML property "concurrentConsumers" to a value higher than one, we get this error:
    javax.jms.JMSException: J2EE 1.4 does not allow multiple JMS sessions per connectionOracle JMS Connector aka generic Resource Adapter implements J2EE/JCA. Resource Adapter concept deals with different transaction resources such as JDBC and JMS. In JDBC, transaction context is a Connection. In JMS, it is a Session. As the greatest common denominator J2EE allows one transactional context per Connection. Which means for a JMS RA: at most one session per managed connection, which is aparently violated when you use "concurrentConsumers" &gt; 1 (i.e. more than one concurrent session on the same connection). This is not different for OC4J JMS (OracleASjms), but you probably bypassed the resource adapted and used resource provider instead. You can do the same with AQ, make sure you use JDBC URL instead of datasource.
    This is the example from my colleague Qiang:
    &lt;resource-provider name="ourAqXaResourceProvider" class="oracle.jms.OjmsContext"&gt;
    &lt;property name="url" value="jdbc:oracle:thin:@ourHost:1521:ourSid /&gt;
    &lt;property name="username" value="AQ_USER"&gt;&lt;/property&gt;
    &lt;property name="password" value="password1"&gt;&lt;/property&gt;
    &lt;/resource-provider&gt;
    {code}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Unable to create oc4j istance and oc4jgroup (OAS 10.1.3.3)

    Hi to all.
    I am unable to create an oc4j istance or an oc4jgroup with OAS 10.1.3.3. I never got this error until now.
    When I try to create an oc4j istance with EM I get this error:
    Creation of OC4J instance "prova" failed due to the error: Caught exception calling invoke on oc4j:name=Singleton,type=OpmnConfig
    In $ORACLE_HOME/j2ee/home/log/ascontrol.log I see this error:
    2009-10-27 12:10:29,218 [SystemThreadGroup-12] ERROR cluster.JMXExtendedGroupAdminBean createOC4J.469 - Exception thrown in RequiredModelMBean while trying to invoke operation createOc4jGroup
    javax.management.MBeanException: Exception thrown in RequiredModelMBean while trying to invoke operation createOc4jGroup
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1098)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:953)
         at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.invoke(LocalizationFilterMBeanServer.java:579)
         at oracle.sysman.ias.studio.jmx.spi.JMXConnectorImpl.invoke(JMXConnectorImpl.java:389)
         at oracle.sysman.ias.studio.cluster.JMXExtendedGroupAdminBean.createOC4J(JMXExtendedGroupAdminBean.java:412)
         at oracle.sysman.ias.studio.cluster.CreateOC4JHelper$OC4JCreateProcessingBean.doWork(CreateOC4JHelper.java:418)
         at oracle.sysman.ias.studio.util.ProcessingBean$ProcessingThread.run(ProcessingBean.java:273)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: oracle.j2ee.admin.jmx.exception.config.ConfigMBeanException: Caught exception calling invoke on oc4j:name=Singleton,type=OpmnConfig
         at oracle.oc4j.admin.management.farm.util.OpmnProxyUtil.invoke(OpmnProxyUtil.java:204)
         at oracle.oc4j.admin.management.farm.util.OpmnProxyUtil.invokeSingle(OpmnProxyUtil.java:129)
         at oracle.oc4j.admin.management.farm.mbeans.OpmnConfigAgr.createOc4jGroup(OpmnConfigAgr.java:327)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1071)
         ... 13 more
    Caused by: javax.management.MBeanException: Exception thrown in RequiredModelMBean while trying to invoke operation invoke
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1098)
         at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:953)
         at oracle.oc4j.admin.jmx.server.mbeans.model.DefaultModelMBeanImpl.invoke(DefaultModelMBeanImpl.java:700)
         at com.sun.jmx.mbeanserver.DynamicMetaDataImpl.invoke(DynamicMetaDataImpl.java:213)
         at com.sun.jmx.mbeanserver.MetaDataImpl.invoke(MetaDataImpl.java:220)
         at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:815)
         at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:784)
         at oracle.oc4j.admin.jmx.server.state.LocalizationFilterMBeanServer.invoke(LocalizationFilterMBeanServer.java:579)
         at oracle.oc4j.admin.management.farm.util.OpmnProxyUtil.invoke(OpmnProxyUtil.java:202)
         ... 25 more
    Caused by: java.io.IOException: RuntimeException thrown by the invoke method of the Dynamic MBean
         at oracle.oc4j.admin.jmx.client.RemoteMBeanServer.invoke(RemoteMBeanServer.java:824)
         at oracle.oc4j.admin.management.farm.mbeans.JVMAgr.invoke(JVMAgr.java:1481)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:36)
         at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:243)
         at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1071)
         ... 33 more
    [ on so on ... ]
    I am not able to understand what happen. Nothing googling....
    Can anyone help me, please?
    Thanks in advance.
    Francesco.

    No one???
    I did more tests and I can say that I am non able to create groups because I can create oc4j istance with existing groups.
    Please helps.
    Thanks.
    Francesco.

  • OC4J, JavaSSO and standard Linux authentication

    Having "fixed" my earlier "problem" (<Problems using JavaSSO in simple scenario I've now been able to get JavaSSO working as expected using the default file-based security provider.
    What I would really like to do, however, is have the authentication performed against the users and groups known to the Linux O/S on which OC4J is running - i.e. by having the user provide their standard Linux username/password.
    I had initially thought that I could achieve this through use of com.sun.security.auth.module.UnixLoginModule - but soon(ish) realised that this was actually carrying out authentication of the user running the application server, rather than the user trying to log in.
    It looks like ShadowJAAS (<http://freshmeat.net/projects/shadowjaas/>) might be what I'm after... Does anybody have any experience of using this with OC4J? Or can anybody recommend any alternatives?
    Cheers,
    Alistair.

    Having not had much luck with ShadowJAAS, I thought I'd try a PAM based authentication module called JAAS-PAM:
    <http://jaas-pam.sourceforge.net/index.html>
    This took considerably more effort to get up and running than ShadowJAAS, but I seem to be suffering from essentially the same problem. Adding some debug output into the JAAS-PAM source provided me with the following, when I attempt to log in via JavaSSO:
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 INITIALIZE method has been invoked
    07/05/23 13:52:32 subject is Subject:
    07/05/23 13:52:32 options is {service=login}
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 LOGIN method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 HANDLE method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 HANDLE method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 Got a passwordcallback
    07/05/23 13:52:32 Password is supplied as [C@c7539
    07/05/23 13:52:32 Prompt is supplied as Password:
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 status is 0 which is Success
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 COMMIT method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 FREEPAM method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 INITIALIZE method has been invoked
    07/05/23 13:52:32 subject is Subject:
    07/05/23 13:52:32 options is {service=login}
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 LOGIN method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 HANDLE method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 HANDLE method has been invoked
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 Got a passwordcallback
    07/05/23 13:52:32 Password is supplied as null
    07/05/23 13:52:32 Prompt is supplied as Password:
    07/05/23 13:52:32 ******************************************************************
    07/05/23 13:52:32 java.lang.NullPointerException
    07/05/23 13:52:32       at java.lang.String.<init>(String.java:173)
    07/05/23 13:52:32       at java.lang.String.valueOf(String.java:2591)
    07/05/23 13:52:32       at ch.odi.jaaspam.PamLoginModule$JaasPamCallback.answer(PamLoginModule.java:300)
       :As with ShadowJAAS before it, it looks as though authentication is taking place twice: once with the password I've supplied, and then again with a null password.
    It's worth noting that the sample (Java SE) applications provided with both authentication modules work as expected - it's only when I try to use them with JavaSSO that I see these problems.
    This leads me to believe that the problem lies with JavaSSO (or, at least, the way I'm configuring it), rather than in the authentication modules themselves.
    I'm running out of ideas here, so if anybody has a nugget of useful information, please share!
    Many thanks,
    Alistair.

  • OC4J 904 and Unicode(AL16UTF16) in NVARCHAR2 column

    I have:
    OC4J 904 standalone runs on Windows2000 AdvancedServer.
    Oracle 9i
    JDBC thin driver shipped with OC4J
    NLS_NCHAR_CHARSET = AL16UTF16
    (NLS_CHARACTERSET = VN8VN3)
    I have a table with a NVARCHAR2 column. I created a CMP EJB from the table but I can't use the EJB to retreive data from Database. I was success in using Oracle JDBC connection to connect manually to database and save/retreive Unicode data.
    I read somewhere that EJB use thin driver, so the getter/setter of CMP-Fields should work normally.
    I think that may be the problems is the function OraclePreparedStatement.setFormOfUse(1,OraclePreparedStatement.FORM_NCHAR);
    was not called in the EJB Contenner or things like that - so it's a bug of OC4J, right?.
    This is the Exception I received on the browser.
    javax.ejb.NoSuchObjectLocalException: ? ?ÂY CÓ CH? HOA CÓ D?U!!!!!
         at TestLocal_EntityBeanWrapper0.reActivateNew(TestLocal_EntityBeanWrapper0.java:1668)
         at TestLocal_EntityBeanWrapper0.reActivateNewLocal(TestLocal_EntityBeanWrapper0.java:1636)
         at TestLocal_EntityBeanWrapper0.getUnicode(TestLocal_EntityBeanWrapper0.java:108)
         at test.showparam._jspService(_showparam.java:100)
         [SRC:/test/showparam.jsp:65]
         at com.orionserver[Oracle9iAS (9.0.4.0.0) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:56)
         at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:348)
         at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:498)
         at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:402)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:293)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:602)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:308)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:779)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:264)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:107)
         at com.evermind[Oracle9iAS (9.0.4.0.0) Containers for J2EE].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:536)
    Can anybody help or give me some information or workaround?
    Thank you very much.

    Hi Nghia,
    Can anybody help or give me some information or
    workaround? I suggest using BMP and a non-emulated data source. More details are available in the documentation which can be downloaded from here:
    http://technet.oracle.com/tech/java/oc4j/904/documentation_preview.html
    Good Luck,
    Avi.

  • OC4J classpath and JAZN

    In my project we're using the DBTableOraDataSourceLoginModule login module in order to store usernames and passwords to the database. I've created a customized SHA1 encoder that extends DBLoginModuleEncodingInterface for database password hashing. When I attempt to use the class I've created the embedded OC4J cannot find it.
    The error message I'm seeing in log.xml is:
    <MSG_TEXT>[DBTableOraDataSourceLoginModule]No class found for name mypackage.AESSHA1Encoder. Please check JAAS configuration option</MSG_TEXT>
    This is the relevant portion of system-jazn-data.xml:
    <option>
         <name>pw_encoding_class</name>
         <value>mypackage.AESSHA1Encoder</value>
    </option>
    I'm including my library in application.xml:
    <library path="C:\jdevstudio10133_B\jdev\lib\AESSecurity.jar"/>
    The contents of the jar are as follows:
    C:\jdevstudio10133_B\jdev\lib>jar -tf AESSecurity.jar
    META-INF/MANIFEST.MF
    mypackage/AESSHA1Encoder.class
    I've sprinkled the jar file around various lib directories I've found under <JDEV_HOME>\j2ee\home and <JDEV_HOME>\jdev\system\oracle.j2ee.10.1.3.41.57 but I continue to get the same error.
    How should I point OC4J to my custom encoding module?

    Hi,
    in my origin implementation of this LoginModule - before OC4J development put the code into their production line - I had the class within the same JAR file that stored the LoginModule. However, I always tested this with a stand alone OC4J instead of the embedded. In there I Used the lib directoy of the OC4J "home" (which would be a subdirectory of the JDeveloper home) when using the embedded OC4J stand alone.
    The applications.xml would have
    <library path="../../home/lib/my_jar.jar"/>
    Frank

  • Can admin.jar create oc4j users and connection pools that use those users

    Hi
    I have an ADF BC application written in jdev 10.1.3.3 deployed to standalone oc4j 10.1.3
    When I deploy the application I use the enterprise manager to create the users on the security provider/realms tab. I then set up the connection pools in jdbc resources to use those users via the username and indirect password fields. I also set the minimum number of connections on the attributes tab.
    I have read the following document but I cannot find any reference to setting up users, connection pools with indirect passwords or minimum number of connections.
    http://download-uk.oracle.com/docs/cd/B31017_01/web.1013/b28950/adminclient.htm#BABHJAFE
    Is it possible to do using admin.jar?
    thanks
    paul schweiger

    I'm not sure about setting indirect passwords on the connection pool creation -- never tried it. It's probably treated purely as a lexical string, so may well be able to to issue the CP creation command with the "->USER" entry as the password.
    To create realms, users, groups, etc. you need to use the $ORACLE_HOME/j2ee/home/jazn.jar utility: http://download.oracle.com/docs/cd/B25221_04/web.1013/b14429/admintool.htm#g1022417
    The options for connection pool parameters such as min/max connections aren't directly expressable in the command. I'll need to look at the code and see if they can be passed in as non checked options via the factoryproperties. If not, then you can create a JMX client to use the MBeans that are created for the CP post deployment to change its behaviour.
    -steve-

  • [HELP] CRL in standalone OC4J SSL and ws-security x.509 token profile?

    Dear all,
    i have a question about setting up the OC4J server to check against a cert revocation list (CRL) when:
    1. SSL in standalone OC4J (no oracle http server) (i.e. using secured-web-site.xml)
    2. ws-security x.509 token profile (authenticate user by cert)
    ***i can create a crl list, but i don't know how can i import this list into the keystore
    ***and setup the system to validate cert against the crl.
    i can't find the information in oracle's manual/documentation.
    could anyone give me the solution under the 2 situations??
    thank you.
    lsp
    Message was edited by:
    lsp

    Hi,
    i have a question about setting up the OC4J server to
    check against a cert revocation list (CRL) when:
    1. SSL in standalone OC4J (no oracle http server)Probably not supported.
    2. ws-security x.509 token profile (authenticate user by cert)OC4J + WS_SECURITY doesn't support CRL-s, sorry.
    Hubert M.

Maybe you are looking for

  • My Mid-2010 MacBook Pro 13" 7,1 shuts down randomly...?

    Alright, so I just started having this problem today. There's no apparent cause (it just happens randomly) but it seems to happen more often if I make some sort of rapid movement with the computer it happens more often. Occasionally, the "shut down"

  • How do you shuffle genre with iOS7 on iPhone5?

    How do you shuffle genre with iOS7 on iPhone5?

  • Two up Display Won't Open in Precision Editor

    Even though I have "Show Detailed Trimming Feedback" checked in Preferences, the two up display never appears in the Viewer when I am in Precision Editor and on a transition between clips.  Also, the two up display never appears under any condition i

  • Multicam clip displays as missing

    I duplicated my event/project to an external drive, but when I work from the external drive my multicam clip lists as missing.  I fixed this once, but I can't remember how. Help please

  • Upgrade to 32-bit or 64-bit Windows 7 ??

    I'm upgrading my Thinkpad T61 from 32-bit Vista to Windows 7.  Is there any reason I should stick with 32-bit? I plan to do a clean install either way. As far as I can tell, I'm compatible with 64-bit. Most of my software these days is web-based and