Oracle TopLink in OC4J

Hi,
I've got the problem deploying EJB 3.0 persistent entites to OC4J, I asked for help
in the TopLink forum Need help with EJB3.0 persistence
but nobody knows how to resolve it. If somebody knows how to resolve it please let me know

See active crosspost in Developer Tools » TopLink/JPA
Re: How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials
TopLink/JPA
/michael
www.eclipselink.org

Similar Messages

  • How to verify OC4J uses Oracle Toplink 10.x and not Toplink Essentials

    Hi,
    We dont want to use the default JPA provider "Toplink *Essentials*" that comes with OC4J. Rather we want to use Oracle Toplink 10.x
    I downloaded [Oracle Toplink 10.x|http://www.oracle.com/technology/software/products/ias/htdocs/1013topsoft.html] and followed the installation instructions:- http://www.oracle.com/technology/products/ias/toplink/doc/10131/install/install.html#CHDBBIFB
    When i deploy my EJB 3.0 appliation and invoke a JPA Entity, i can see the server log:- NOTIFICATION TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Do i have to do any other configuration/setting to ensure that i use Oracle Toplink and not Toplink Essentials in OC4J?
    Thanks in Advance,
    Prashant Tejura
    Edited by: user1186295 on May 26, 2009 10:33 AM

    rashant,
    Hi, there are currently the following providers to choose from - you may want to consult your rep for any details on moving from 10.1.3.4 to 10.1.3.5.
    1) TopLink or EclipseLink using EclipseLink JPA - the RI for JPA for WebLogic, OC4J and GlassFish
    - EclipseLink JPA is focus of all current JPA development as part of EclipseLink and TopLink
    2) Another open-source JPA implementation like OpenJPA or Hibernate
    Deprecated:
    3) TopLink using TopLink JPA - replaced by (1) TopLink using EclipseLink JPA
    4) TopLink using TopLink Essentials JPA - replaced by (1) TopLink using EclipseLink JPA
    Changes to server.xml as follows:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Modify_server.xml
    <shared-library name="oracle.persistence" version="1.0" library-compatible="true">
              <code-source path="../../../eclipselink/eclipselink.jar"/>
              <code-source path="../../../eclipselink/javax.persistence_*.jar"/>
              <import-shared-library name="oracle.jdbc"/>
         </shared-library>
    Changes to persistence.xml as follows: (container-managed JTA datasource)
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Persistence.xml
    <persistence version="1.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd">
    <persistence-unit name="example" transaction-type="JTA">
    <provider>org.eclipse.persistence.jpa.PersistenceProvider</provider>
    <jta-data-source>jdbc/OracleDS</jta-data-source>
    <class>org.eclipse.persistence.example.jpa.server.business.Cell</class>
    <properties>
    <property name="eclipselink.target-server" value="OC4J"/>
    <property name="eclipselink.logging.level" value="FINEST"/>
    </properties>
    </persistence-unit>
    </persistence>
    You should see output similar to the following in your server log:
    http://wiki.eclipse.org/EclipseLink/Examples/JPA/OC4J_Web_Tutorial#Console_Output
    [EL Finest]: 2009-02-26 14:04:34.464--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Begin deploying Persistence Unit example; state Predeployed; factoryCount 1
    [EL Info]: 2009-02-26 14:04:34.542--ServerSession(8634980)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--EclipseLink, version: Eclipse Persistence Services - ***
    [EL Fine]: 2009-02-26 14:04:35.213--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Detected Vendor platform: org.eclipse.persistence.platform.database.oracle.Oracle10Platform
    [EL Config]: 2009-02-26 14:04:35.26--ServerSession(8634980)--Connection(5230779)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--Connected: jdbc:oracle:thin:@//1y.yyy.yy.yy:1521/ORCL
         User: SCOTT
         Database: Oracle Version: Oracle Database 11g Release 11.1.0.0.0 - Production
         Driver: Oracle JDBC driver Version: 10.1.0.5.0
    [EL Finest]: 2009-02-26 14:04:35.385--UnitOfWork(5746770)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--PERSIST operation called on: org.eclipse.persistence.example.jpa.server.business.Cell@9107088( id: null state: null left: null right: null parent: null references: null).
    [EL Fine]: 2009-02-26 14:04:35.807--ClientSession(5748500)--Connection(6653899)--Thread(Thread[HTTPThreadGroup-4,5,HTTPThreadGroup])--INSERT INTO EL_CELL (ID, STATE, TSEQ, RIGHT_ID) VALUES (?, ?, ?, ?)
         bind => [551, null, null, null]
    thank you
    /michael
    www.eclipselink.org

  • Replacing Oracle Toplink with TopLink Essentials

    Is it possible to force OC4J to use TopLink Essentials by default
    instead of Oracle TopLink?

    Hi
    Replace your toplink jars in your server with the new
    jars. it should pick up automatically
    Regards,
    RaghavendraHi,
    I am trying to use the latest version of Toplink Essentials with the embedded OC4J in JDeveloper 10.1.3.
    Can you please be more specific?
    Which JAR files must be replaced?
    Thanks in advance,
    George

  • Toplink 11g + OC4J 10.1.3 + Spring

    Hi all,
    As Spring 3.0 will not support native Toplink 11g API (but Spring 2.5.x supports Toplink 10g due to API change, e.g. no toplink/publicinterface/unitOfWork), I would like to ask if I need to migrate my project from Toplink 10g to 11g, what configuration/code change should I need to apply?
    I've installed Toplink 11g in <OC4J_HOME>/toplink folder and checked that OC4J has pointed the 11g JAR file correctly, which can be checked during OC4J startup (p.s. I am using standalone OC4J 10.1.3.1). Actually, I just replace the Toplink 10g JAR files (i.e. toplink-oc4j.jar, toplink.jar and its dependent JAR antlr.jar) with Toplink 11g ones (i.e. toplink-oc4j.jar, toplink.jar and its dependent JAR com.bea.core.antlr.runtime_2.7.7.jar) @ same location.
    When the OC4J is starting, the following error message is shown:
    Application.setConfig Application: javasso is in failed state as initialization failed.
    java.lang.VerifyError: (class: oracle/ias/container/persistence/NonTransactionalInternalPM, method: getDatabaseTimeStamp signature: ()Ljava/sql/Timestamp;) Incompatible argument to function
    2009-02-09 15:16:37.982 WARNING J2EE OJR-00013 Exception initializing deployed application: javasso. Application: javasso is in failed state as initialization failed
    Also, when I am performing query in the application, the following error message is shown:
    Caused by: java.lang.NoSuchMethodError: oracle.toplink.sessions.Session.acquireUnitOfWork()Loracle/toplink/publicinterface/UnitOfWork;
         at org.springframework.orm.toplink.AbstractSessionFactory$ManagedClientInvocationHandler.<init>(AbstractSessionFactory.java:127)
         at org.springframework.orm.toplink.AbstractSessionFactory.createManagedClientSession(AbstractSessionFactory.java:63)
         at org.springframework.orm.toplink.TopLinkTransactionManager.doBegin(TopLinkTransactionManager.java:263)
         at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction
    It is obviously caused by the compatibly problem between Spring 2.5.x and Toplink 11g.
    If I need to use the Oracle TopLink JPA extensions combined with the EclipseLink JPA support, what are the steps? I've searched for a week, and still cannot find the solution yet....
    You response is much appreciated. Thanks a lot.
    Edited by: user10897455 on 2009年4月9日 上午2:37

    There is a similar discussion which may help.
    Toplink 11 and OC4J 10.1.3

  • Oracle Toplink Jaxb mapping

    Hi,
    i try to use the developer Preview 3(10.1.3.0)workbench
    and it work fine with simple java class (two xml files generation).
    But with java servlet who use the same classes nothing
    work i got some exception :
    05/03/01 08:24:33 exceptionProvider oracle.toplink.ox.jaxb.JAXBContextFactory could not be instantiated: java.lang.NoSuchMethodError: oracle.toplink.publicinterface.Session oracle.toplink.tools.sessionmanagement.SessionManager.getSession(oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader, java.lang.String, java.lang.ClassLoader, boolean, boolean)
    I have also a strange message in the log window in jdev 9052 :
    Cutting log (size: 101767, max: 100000)Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Component returned failure code: 0x80470002 (NS_BASE_STREAM_CLOSED) [nsIFileOutputStream.write]Cutting log (size: 101866, max: 100000)Error cleaning up log: Component returned failure code: 0x80004005 (NS_ERROR_FAILURE) [nsISeekableStream.seek]
    Thank you for your help.

    The version of TopLink on your application server class path may be an older version of TopLink that does not contain the method mentioned in the stack trace.
    If you are using OC4J the toplink.jar can be found in the following location:
    &lt;OC4J_HOME&gt;\toplink\jlib\toplink.jar
    The 10.1.3 DP3 version of OC4J can be found on OTN in the following location:
    http://www.oracle.com/technology/software/products/ias/preview.html

  • Oracle.toplink errors, but no toplink installed? (10G, SRDemo)

    Hello, I installed the Chapter 4 SRDemo on my machine, and I am receiving an error. (at bottom)
    However, I am able to connect to the database without any problems, have been using the same database connection for over a month, but wanted to trying doing the EJBs and following the SRDemo tutorial.
    This locks my account, so it is using the correct account name (Which is not the same as the default from the demo)
    What is really confusing me is the references to TopLink everwhere. I do not have TopLink installed. When I try to debug when I step into the line where the error is thrown it tells me "Unable to find source file for package oracle.toplink.essentials.exceptions, filename TopLinkException.java.
    Here is the error I receive on running the ServiceRequestFacadeClientEmbed.java in the SRDemo:
    Mar 16, 2009 12:05:14 PM oracle.toplink.essentials.session.file:/C:/TEMP/oratemp/SRDEMO/Model/classes/-Model
    INFO: TopLink, version: Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))
    Mar 16, 2009 12:05:14 PM oracle.toplink.essentials.session.file:/C:/TEMP/oratemp/SRDEMO/Model/classes/-Model
    INFO: Server: unknown
    Mar 16, 2009 12:05:16 PM com.evermind.server.ejb.logging.EJBMessages logException
    SEVERE: [ServiceRequestFacade:public org.srdemo.persistence.Products org.srdemo.business.ServiceRequestFacadeBean.findProductById(java.lang.Long)] exception occurred during method invocation: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    ....

    OK... so I started with a new try. (Same machine) Edit --- installed Oracle and JDev on a new machine, got the exact same results.
    Downloaded JDeveloper 10G
    Extracted to new directory.
    New application - accepted all defaults.
    New Business Tier->EJB->Entities from Tables
    Substep - New Database Connection Accepted defaults, entered user name and password, entered hostname (not on localhost) and sid. Tested connection (Success!)
    Selected only Address Table and accept all defaults.
    project1.Addresses.java is created.
    New Session Bean -> accepted all defaults
    SessionEJBBean.java is created
    New Sample Java Client -> accepted all defaults
    SessionEJBClient.java is created
    Ran SessionEJBBean.java
    [Starting OC4J using the following ports: HTTP=8989, RMI=23891, JMS=9227.]
    C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config>
    C:\Jdev10-2\jdk\bin\javaw.exe -client -classpath C:\Jdev10-2\j2ee\home\oc4j.jar;C:\Jdev10-2\jdev\lib\jdev-oc4j-embedded.jar -Xverify:none -XX:MaxPermSize=256m -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\dms.war
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\connectors\datasources\datasources.rar
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear...
    Mar 17, 2009 10:54:42 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags.ear
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war...
    Mar 17, 2009 10:54:43 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Unjar C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war in C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp
    Mar 17, 2009 10:54:46 AM oracle.oc4j.util.FileUtils autoUnpack
    INFO: Finished auto-unpacking C:\Jdev10-2\jdev\system\oracle.j2ee.10.1.3.42.70\embedded-oc4j\applications\datatags\webapp.war
    Mar 17, 2009 10:54:46 AM com.evermind.server.XMLApplicationServerConfig randomizeJtaAdminPassword
    INFO: Updating JtaAdmin account
    Ready message received from Oc4jNotifier.
    Embedded OC4J startup time: 31654 ms.
    09/03/17 10:54:51 Oracle Containers for J2EE 10g (10.1.3.4.0)  initializedRun SessionEJBClient.java
    Mar 17, 2009 10:55:30 AM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    javax.ejb.EJBException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is: oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017; nested exception is:
         Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017
    oracle.oc4j.rmi.OracleRemoteException: Exception [TOPLINK-4002] (Oracle TopLink Essentials - 2.0.1 (Build b09d-fcs (12/06/2007))): oracle.toplink.essentials.exceptions.DatabaseException
    Internal Exception: java.sql.SQLException: ORA-01017: invalid username/password; logon denied
    Error Code: 1017
         at com.evermind.server.ejb.EJBUtils.getUserException(EJBUtils.java:346)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:75)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at SessionEJB_RemoteProxy_11o700f.queryAddressesFindAll(Unknown Source)
         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 com.evermind.server.rmi.RmiMethodCall.run(RmiMethodCall.java:53)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
         Nested exception is:
    .....So I would really appreciate any help, I have no good idea where to go next. I'm going to go try wiping a machine in the next cube and installing Oracle from scratch too.
    Thanks,
    Jeff
    Edited by: jeffles on Mar 17, 2009 9:49 AM

  • Remove related entity, oracle.toplink.essentials.indirection.IndirectList

    I have two entities autogenerated by the jdev 10.1.3.1 JPA wizard, Proveedor(codprov varchar2 PK) having n Lineas(codprov varchar2 PK, Codline varchar2 PK) related as:
    in entity Proveedor:
    private List<Linea> lineas;
    @OneToMany(mappedBy="proveedor")
    public List<Linea> getLineas() {
    return lineas;
    public Linea removeLinea(Linea linea) {
    System.out.println(" is at:" + getLineas().indexOf(linea));
    getLineas().remove(linea);
    linea.setProveedor(null);
    return linea;
    in Linea:
    @Id
    @ManyToOne
    @JoinColumn(name="CODPROV", referencedColumnName="CODPROV")
    public Proveedor getProveedor() {
    return proveedor;
    the delete method on the service bean is :
    public void delLinea( String codprov,String codline){
    EntityManager em = jpaResourceBean.getEntityManager();
    try{
    em.getTransaction().begin();
    Linea linea = em.find(Linea.class, new LineaPK(codprov, codline));
    em.remove(linea);
    em.getTransaction().commit();
    linea.getProveedor().removeLinea(linea);
    finally {
    em.close();
    when i try to remove the entity linea calling delLinea on the service bean
    the List (oracle.toplink.essentials.indirection.IndirectList) is NOT removing the entity linea, the system output show that is not there:
         06/08/30 16:59:23 is at:-1
    the relationship is not lost, as linea.getProveedor().removeLinea(linea); works so it's being held ok (at least from Linea to Proveedor)
    what i'm doing wrong, is IndirectList is mantaining copies of the related entities ??

    thank you, after reading your reply i tried this:
    public void delLinea( String codprov,String codline){
    EntityManager em = jpaResourceBean.getEntityManager();
    try{
    em.getTransaction().begin();
    Linea linea = em.find(Linea.class, new LineaPK(codprov, codline));
    linea.getProveedor().removeLinea(linea);
    em.remove(linea);
    em.getTransaction().commit();
    finally {
    em.close();
    As you advised, I'm reading the Proveedor in the transaction and clearing the relation before removing the entity Linea, but em.getTransaction().commit() throws:
    GRAVE: #{ProveedorBean.linea_Del}: javax.faces.el.EvaluationException: javax.persistence.RollbackException: java.lang.NullPointerException
    javax.faces.FacesException: #{ProveedorBean.linea_Del}: javax.faces.el.EvaluationException: javax.persistence.RollbackException: java.lang.NullPointerException
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)
         at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)
         at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)
         at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)
         at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)
         at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)
         at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._invokeDoFilter(AdfFacesFilterImpl.java:367)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:336)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:196)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:105)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at oracle.oc4j.network.ServerSocketAcceptHandler.procClientSocket(ServerSocketAcceptHandler.java:239)
         at oracle.oc4j.network.ServerSocketAcceptHandler.access$700(ServerSocketAcceptHandler.java:34)
         at oracle.oc4j.network.ServerSocketAcceptHandler$AcceptHandlerHorse.run(ServerSocketAcceptHandler.java:880)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: javax.faces.el.EvaluationException: javax.persistence.RollbackException: java.lang.NullPointerException
         at com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:150)
         at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:92)
         ... 25 more
    Caused by: javax.persistence.RollbackException: java.lang.NullPointerException
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:109)
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:45)
         at services.inventario.impl.InventarioServiceBean.delLinea(InventarioServiceBean.java:473)
         at ui.ProveedorBean.linea_Del(ProveedorBean.java:152)
         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 com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 26 more
    Caused by: java.lang.NullPointerException
         at oracle.toplink.essentials.internal.identitymaps.CacheKey.computeHash(CacheKey.java:183)
         at oracle.toplink.essentials.internal.identitymaps.CacheKey.setKey(CacheKey.java:366)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMap.getCacheKey(IdentityMap.java:277)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMap.remove(IdentityMap.java:399)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.removeFromIdentityMap(IdentityMapManager.java:1036)
         at oracle.toplink.essentials.internal.sessions.IdentityMapAccessor.removeFromIdentityMap(IdentityMapAccessor.java:801)
         at oracle.toplink.essentials.internal.sessions.IdentityMapAccessor.removeFromIdentityMap(IdentityMapAccessor.java:793)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.postMergeChanges(UnitOfWorkImpl.java:2834)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:2556)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:93)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:842)
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:90)
         ... 34 more
    The following variation throws the same exception:
    public void delLinea( String codprov,String codline){
    EntityManager em = jpaResourceBean.getEntityManager();
    try{
    em.getTransaction().begin();
    Proveedor prov = em.find(Proveedor.class, codprov);
    Linea linea = em.find(Linea.class, new LineaPK(codprov, codline));
    prov.removeLinea(linea);
    em.remove(linea);
    em.getTransaction().commit();
    finally {
    em.close();
    the following variation:
    public void delLinea( String codprov,String codline){
    EntityManager em = jpaResourceBean.getEntityManager();
    try{
    em.getTransaction().begin();
    Proveedor prov = em.find(Proveedor.class, codprov);
    Linea linea = em.find(Linea.class, new LineaPK(codprov, codline));
    prov.removeLinea(linea);
    em.getTransaction().commit();
    em.getTransaction().begin();
    linea = em.find(Linea.class, new LineaPK(codprov, codline));
    em.remove(linea);
    em.getTransaction().commit();
    finally {
    em.close();
    after the second commit(); throws the same:
    Caused by: javax.persistence.RollbackException: java.lang.NullPointerException
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:109)
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.EntityTransactionImpl.commit(EntityTransactionImpl.java:45)
         at services.inventario.impl.InventarioServiceBean.delLinea(InventarioServiceBean.java:477)
         at ui.ProveedorBean.linea_Del(ProveedorBean.java:152)
         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 com.sun.faces.el.MethodBindingImpl.invoke(MethodBindingImpl.java:146)
         ... 23 more
    Caused by: java.lang.NullPointerException
         at oracle.toplink.essentials.internal.identitymaps.CacheKey.computeHash(CacheKey.java:183)
         at oracle.toplink.essentials.internal.identitymaps.CacheKey.setKey(CacheKey.java:366)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMap.getCacheKey(IdentityMap.java:277)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMap.remove(IdentityMap.java:399)
         at oracle.toplink.essentials.internal.identitymaps.IdentityMapManager.removeFromIdentityMap(IdentityMapManager.java:1036)
         at oracle.toplink.essentials.internal.sessions.IdentityMapAccessor.removeFromIdentityMap(IdentityMapAccessor.java:801)
         at oracle.toplink.essentials.internal.sessions.IdentityMapAccessor.removeFromIdentityMap(IdentityMapAccessor.java:793)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.postMergeChanges(UnitOfWorkImpl.java:2834)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.mergeChangesIntoParent(UnitOfWorkImpl.java:2556)
         at oracle.toplink.essentials.internal.ejb.cmp3.base.RepeatableWriteUnitOfWork.commitRootUnitOfWork(RepeatableWriteUnitOfWork.java:93)
         at oracle.toplink.essentials.internal.sessions.UnitOfWorkImpl.commitAndResume(UnitOfWorkImpl.java:842)
         at oracle.toplink.essentials.internal.ejb.cmp3.transaction.base.EntityTransactionImpl.commit(EntityTransactionImpl.java:90)
         ... 31 more

  • Anything fixed in Oracle TopLink 11g Release 1 (11.1.1.1.0) ?

    Was there anything fixed in Oracle TopLink 11g Release 1 (11.1.1.1.0) ?
    I don't see anything in release notes ( http://www.oracle.com/technology/products/ias/toplink/doc/11110/relnotes/toplink-relnotes.html ) regarding fixes. Anybody know where I can get that info? We have run into a couple of issues in the previous 11g release (11.1.1.0.1) and want to know if those issues have been addressed in the new release.
    Thanks!

    The two major areas of work in 11gR1 (11.1.1.1.0) are enhancements to EclipseLink included with the its 1.1.1 release as well as enhancements around TopLink Grid (JPA-Coherence integration).
    The EclipseLink 1.1.1 fixes are documented here: http://wiki.eclipse.org/EclipseLink/Release/1.1.1
    Doug

  • Migration path from 10.1.3.3.0 to Oracle TopLink 11g: Technical Preview 2 ?

    What is needed to migrate from 10.1.3.3.0 to Oracle TopLink 11g Preview 2?
    Does using Java 5 and swapping the Jar files are enough?
    Can I use as is all the configurations generated by TopLink Workbench 10.1.3.3.0?
    What is working in 10.1.3.3.0 that is not yet or will not be working in Oracle TopLink 11g?

    If you open the project in the 11g preview it will automatically update the metadata and generate the deployment XML in the new format. Alternatively you should be able to open the 10.1.3.3 metadata in the 11g preview's runtime.
    The biggest issue you may encounter in the upgrade besides replacing the libraries and ensuring you are using JDK5 is the removal of the code deprecated in previous releases.
    Doug

  • Mapping Database using Oracle Toplink 10.1.3.3.0

    Hi everybody, I'd like to use Oracle TopLink to do mapping my database and here is the database's script
    1F.sql
    ==========
    @@case1F.typ
    @@case1F.tab
    @@case1F.con
    1F.typ
    ==========
    CREATE TYPE TCUSTOMER
    CREATE TYPE TMEMORY
    CREATE TYPE TPHONE
    CREATE TYPE TNAME
    CREATE TYPE TMOTHERBOARD
    CREATE TYPE TADDRESS
    PROMPT Creating Object Type 'TNAME'
    CREATE OR REPLACE TYPE TNAME AS OBJECT
    (FIRST VARCHAR2(240)
    ,LAST VARCHAR2(240)
    SHOW ERROR
    PROMPT Creating Object Type 'TMOTHERBOARD'
    CREATE OR REPLACE TYPE TMOTHERBOARD AS OBJECT
    (KODE VARCHAR2(240)
    ,SERIES VARCHAR2(240)
    ,MERK VARCHAR2(240)
    ,VGA VARCHAR2(240)
    SHOW ERROR
    PROMPT Creating Object Type 'TMEMORY'
    CREATE OR REPLACE TYPE TMEMORY AS OBJECT
    (KODE VARCHAR2(240)
    ,MERK VARCHAR2(240)
    ,TIPE VARCHAR2(240)
    ,UKURAN VARCHAR2(240)
    SHOW ERROR
    PROMPT Creating Object Type 'TADDRESS'
    CREATE OR REPLACE TYPE TADDRESS AS OBJECT
    (STREET VARCHAR2(240)
    ,CITY VARCHAR2(240)
    SHOW ERROR
    PROMPT Creating Object Type 'TPHONE'
    CREATE OR REPLACE TYPE TPHONE AS OBJECT
    (CODE VARCHAR2(240)
    ,DIGIT VARCHAR2(240)
    SHOW ERROR
    PROMPT Creating Object Type 'TCUSTOMER'
    CREATE OR REPLACE TYPE TCUSTOMER AS OBJECT
    (USERNAME VARCHAR2(240)
    ,NAME TNAME
    ,ADDRESS TADDRESS
    ,PHONE TPHONE
    ,TYPE NUMERIC(1)
    ,EMAIL VARCHAR2(240)
    SHOW ERROR
    1F.tab
    ==========
    PROMPT Creating Table 'DTRANSAKSI'
    CREATE TABLE DTRANSAKSI
    (CPU_KODBERG VARCHAR2(6) NOT NULL
    ,HTI_NONOTA VARCHAR2(4) NOT NULL
    ,JMLBRG NUMERIC
    PROMPT Creating Table 'CPU'
    CREATE TABLE CPU
    (KODBERG VARCHAR2(6) NOT NULL
    ,NAMA VARCHAR2(240)
    ,MEMORY REF TMEMORY
    ,MOTHERBOARD REF TMOTHERBOARD
    ,HARGA NUMERIC
    ,KET CLOB
    ,VERSI VARCHAR2(240)
    PROMPT Creating Table 'HTRANSAKSI'
    CREATE TABLE HTRANSAKSI
    (NONOTA VARCHAR2(4) NOT NULL
    ,USERNAME REF TCUSTOMER
    ,TGLTRANS DATE
    ,VERSI VARCHAR2(240)
    ,CONSTRAINT HTI_PK PRIMARY KEY
    (NONOTA)
    ORGANIZATION INDEX
    PROMPT Creating Table 'MEMORY'
    CREATE TABLE MEMORY OF TMEMORY
    (KODE NOT NULL
    PROMPT Creating Table 'MOTHERBOARD'
    CREATE TABLE MOTHERBOARD OF TMOTHERBOARD
    (KODE NOT NULL
    PROMPT Creating Table 'CUSTOMER'
    CREATE TABLE CUSTOMER OF TCUSTOMER
    ALTER TABLE CPU
    ADD (SCOPE FOR (MEMORY) IS MEMORY)
    ALTER TABLE CPU
    ADD (SCOPE FOR (MOTHERBOARD) IS MOTHERBOARD)
    ALTER TABLE HTRANSAKSI
    ADD (SCOPE FOR (USERNAME) IS CUSTOMER)
    1F.conn
    ===================
    PROMPT Creating Primary Key on 'DTRANSAKSI'
    ALTER TABLE DTRANSAKSI
    ADD (CONSTRAINT DTI_PK PRIMARY KEY
    (HTI_NONOTA
    ,CPU_KODBERG))
    PROMPT Creating Primary Key on 'CPU'
    ALTER TABLE CPU
    ADD (CONSTRAINT CPU_PK PRIMARY KEY
    (KODBERG))
    PROMPT Creating Foreign Key on 'DTRANSAKSI'
    ALTER TABLE DTRANSAKSI ADD (CONSTRAINT
    DTI_HTI_FK FOREIGN KEY
    (HTI_NONOTA) REFERENCES HTRANSAKSI
    (NONOTA))
    PROMPT Creating Foreign Key on 'DTRANSAKSI'
    ALTER TABLE DTRANSAKSI ADD (CONSTRAINT
    DTI_CPU_FK FOREIGN KEY
    (CPU_KODBERG) REFERENCES CPU
    (KODBERG))
    I found an error in ORACLE TOPLINK while adding table CUSTOMER, MOTHERBOARD and MEMORY from database to workbench. Any idea how to solve that error?
    And other questions:
    1. Does Toplink support inheritance and aggregation object table modelling? If it doesn't, what should I do?
    2. Is there any example or tutorial using Toplink Foundation Library?
    Thanks a lot.

    What error do you get in the MW?
    TopLink does support object-relational data-types, but the Mapping Workbench does not have support for object-relational data-types, so you may need to define your mappings through the TopLink Descriptor and Mapping Java code API. There is a section on object-relational data-type mappings in the TopLink User Guide.
    -- James : http://www.eclipselink.org

  • Migration from conventional Oracle Toplink to Opensource..

    I heard about EclipseLink release coming in next month.
    I would like to know whether the Open-source toplink is available now.. Our company is using Oracle Toplink 10.1.3.3.. We are using Oracle's paid version of Toplink called Enterprise..As we are hearing about Oracle toplink going to opensource, We would like to switch to Opensource Toplink.. How would be the migration impacts? Could any one plz answer my question..
    Message was edited by:
    user104

    EclipseLink's home page is at,
    http://www.eclipselink.org
    You can download the latest milestone from there, and get access to the status and documentation on the Wiki.
    The API is the same, but the package names are different. You can run the Package Renamer to migrate your code to the new packages (long time TopLink users should be familiar with this :) ).

  • Exception [TOPLINK-46] (OracleAS TopLink - 10g (9.0.4) (Build 031126))

    Hi,
    I am using TopLink for simple Department-Employee relation, i have my project xml configured, But i am facing the problem with following exception
    Descriptor Exceptions:
    Exception [TOPLINK-46] (OracleAS TopLink - 10g (9.0.4) (Build 031126)): oracle.toplink.exceptions.DescriptorException
    Exception Description: There should be one non-read-only mapping defined for the primary key field [emp.empno].
    Descriptor: Descriptor(com.oracle.mssql.emp.toplink.EmpTopLinkBean --> [DatabaseTable(emp)])
    Runtime Exceptions:
    What could be the reason?
    Thanks
    Madhu

    My best guess would be that you have a 1:1 mapping from Employee to Department. This mapping represents part of the primary key.
    Make sure that your 1:1 mapping is not configured as read-only. Another issue is that you may have set the relationship as target foreign key. This has the same effect as read-only and is not applicable in the 1:1 returning from a 1:M.
    Doug

  • Bug in  oracle.toplink.internal.helper.JDK14Platform?

    It looks like JDK14Platform tries to compile the text we are searching as regular expressions...
    Yet the descriptions we are searching can contain special characters like "{" or "+"...
    Caused by: java.util.regex.PatternSyntaxException: Illegal repetition near index 15
    ceci est un test{{Text1}}
    ^
         at java.util.regex.Pattern.error(Pattern.java:1528)
         at java.util.regex.Pattern.closure(Pattern.java:2545)
         at java.util.regex.Pattern.sequence(Pattern.java:1656)
         at java.util.regex.Pattern.expr(Pattern.java:1545)
         at java.util.regex.Pattern.compile(Pattern.java:1279)
         at java.util.regex.Pattern.<init>(Pattern.java:1035)
         at java.util.regex.Pattern.compile(Pattern.java:779)
         at java.util.regex.Pattern.matches(Pattern.java:865)
         at oracle.toplink.internal.helper.JDK14Platform.conformLike(JDK14Platform.java:54)
         at oracle.toplink.internal.helper.JavaPlatform.conformLike(JavaPlatform.java:57)
         at oracle.toplink.expressions.ExpressionOperator.doesRelationConform(ExpressionOperator.java:750)
         at oracle.toplink.internal.expressions.RelationExpression.doesConform(RelationExpression.java:126)
         at oracle.toplink.internal.identitymaps.IdentityMapManager.getAllFromIdentityMap(IdentityMapManager.java:209)
         at oracle.toplink.publicinterface.Session.getAllFromIdentityMap(Session.java:1251)
         at oracle.toplink.queryframework.ReadAllQuery.conformResult(ReadAllQuery.java:314)
         at oracle.toplink.queryframework.ReadAllQuery.registerObjectInUnitOfWork(ReadAllQuery.java:684)
         at oracle.toplink.publicinterface.UnitOfWork.internalExecuteQuery(UnitOfWork.java:2217)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1086)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1038)
         at oracle.toplink.publicinterface.Session.readAllObjects(Session.java:2423)

    This is a known issue and will be fixed in the next 9.0.4 patch release.

  • CreateJaznUser: import oracle.security.jazn.oc4j.JAZNUserManager not found

    Hello!
    I need to create a function that could allow Application users to change their passwords.I use a JAZN authentication in the application. So, I decided to analyze contents of the CreateJaznUser application first. But compilation of this application breaks by the next error:
    import oracle.security.jazn.oc4j.JAZNUserManager not found
    Could you advise me, what an additional libraries I must add to the CreateJaznUser application and where can I download them from?
    Thanks in advance.

    OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
    java -jar jazn.jar -shell
    JAZN:> ls
    realms policy
    JAZN:> cd realms
    JAZN:> ls
    String index out of range: 32
    JAZN:> cd ../policy
    JAZN:> ls
    JAZN:> exit
    JAZN:>
    It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working.

  • JAZN userManager (oracle.security.jazn.oc4j.JAZNUserManager) fails to initialize

    We are testing the JAZN callInfo sample. I have OID version 3.0.1.0, and Oracle9iAS (9.0.3.0.0) Containers for J2EE. We setup the jazn to use LDAP.
    When starting oc4j we get the following:
    java -jar oc4j.jar Error instantiating application 'callerInfo' at file:/u01/app/oracle/products/9iAS/j2ee/home/jazn/demo/callerInfo/callerInfo.ear: Error initializing userManager 'oracle.security.jazn.oc4j.JAZNUserManager': java.lang.StringIndexOutOfBoundsException (String index out of range: 32)
    Oracle9iAS (9.0.3.0.0) Containers for J2EE initialized
    We see it this connect to ldap and get a reply. I feel the string back is larger than jazn is expecting.
    We check the tcp traffic and see it connecting:
    09:10:57.377851 buckwheat.jxn.wcom.com.389 > buckwheat.jxn.wcom.com.35082: P 15:2641(2626) ack 131 win 32767 <nop,nop,timestamp 26118724 26118721> (DF)
    0x0000     4500 0a76 8468 4000 4006 6450 9f62 8482     E..v.h@[email protected]..
    0x0010     9f62 8482 0185 890a 1594 0e68 15e8 7584     .b.........h..u.
    0x0020     8018 7fff 37d6 0000 0101 080a 018e 8a44     ....7..........D
    0x0030     018e 8a41 3082 0a3e 0201 0264 820a 3704     ...A0..>...d..7.
    0x0040     1063 6e3d 4f72 6163 6c65 436f 6e74 6578     .cn=OracleContex
    0x0050     7430 820a 2130 1504 0263 6e31 0f04 0d4f     t0..!0...cn1...O
    0x0060     7261 636c 6543 6f6e 7465 7874 3044 040b     racleContext0D..
    0x0070     6f62 6a65 6374 636c 6173 7331 3504 0374     objectclass15..t
    0x0080     6f70 040b 6f72 636c 436f 6e74 6578 7404     op..orclContext.
    0x0090     106f 7263 6c43 6f6e 7465 7874 4175 7838     .orclContextAux8
    0x00a0     3204 0f6f 7263 6c52 6f6f 7443 6f6e 7465     2..orclRootConte
    0x00b0     7874 3016 040b 6f72 636c 7665 7273 696f     xt0...orclversio
    0x00c0     6e31 0704 0539 3030 3030 3081 9104 116f     n1...900000....o
    0x00d0     7263 6c65 6e74 7279 6c65 7665 6c61 6369     rclentrylevelaci
    0x00e0     317c 047a 6163 6365 7373 2074 6f20 656e     1|.zaccess.to.en
    0x00f0     7472 7920 6279 2067 726f 7570 3d22 636e     try.by.group="cn
    0x0100     3d4f 7261 636c 654e 6574 4164 6d69 6e73     =OracleNetAdmins
    0x0110     2c63 6e3d 4f72 6163 6c65 436f 6e74 6578     ,cn=OracleContex
    0x0120     7422 2028 6164 6429 2062 7920 6772 6f75     t".(add).by.grou
    0x0130     703d 2263 6e3d 4f72 6163 6c65 4442 4372     p="cn=OracleDBCr
    0x0140     6561 746f 7273 2c63 6e3d 4f72 6163 6c65     eators,cn=Oracle
    0x0150     436f 6e74 6578 7422 2028 6164 6429 3082     Context".(add)0.
    0x0160     0914 0407 6f72 636c 6163 6931 8209 0704     ....orclaci1....
    0x0170     7d61 6363 6573 7320 746f 2065 6e74 7279     }access.to.entry
    0x0180     2062 7920 6772 6f75 703d 2263 6e3d 4f72     .by.group="cn=Or
    0x0190     6163 6c65 436f 6e74 6578 7441 646d 696e     acleContextAdmin
    0x01a0     732c 636e 3d47 726f 7570 732c 636e 3d4f     s,cn=Groups,cn=O
    0x01b0     7261 636c 6543 6f6e 7465 7874 2220 2862     racleContext".(b
    0x01c0     726f 7773 652c 6164 642c 6465 6c65 7465     rowse,add,delete
    0x01d0     2920 6279 202a 2028 6272 6f77 7365 2c6e     ).by.*.(browse,n
    0x01e0     6f61 6464 2c6e 6f64 656c 6574 6529 0481     oadd,nodelete)..
    0x01f0     a461 6363 6573 7320 746f 2061 7474 723d     .access.to.attr=
    0x0200     282a 2920 6279 2067 726f 7570 3d22 636e     (*).by.group="cn
    0x0210     3d4f 7261 636c 6543 6f6e 7465 7874 4164     =OracleContextAd
    0x0220     6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63     mins,cn=Groups,c
    0x0230     6e3d 4f72 6163 6c65 436f 6e74 6578 7422     n=OracleContext"
    0x0240     2028 7265 6164 2c73 6561 7263 682c 7772     .(read,search,wr
    0x0250     6974 652c 7365 6c66 7772 6974 652c 636f     ite,selfwrite,co
    0x0260     6d70 6172 6529 2062 7920 2a20 2872 6561     mpare).by.*.(rea
    0x0270     642c 7365 6172 6368 2c6e 6f77 7269 7465     d,search,nowrite
    0x0280     2c6e 6f73 656c 6677 7269 7465 2c63 6f6d     ,noselfwrite,com
    0x0290     7061 7265 2904 81dd 6163 6365 7373 2074     pare)...access.t
    0x02a0     6f20 656e 7472 7920 6669 6c74 6572 3d28     o.entry.filter=(
    0x02b0     6f62 6a65 6374 636c 6173 733d 6f72 636c     objectclass=orcl
    0x02c0     4e65 7453 6572 7669 6365 2920 6279 2067     NetService).by.g
    0x02d0     726f 7570 3d22 636e 3d4f 7261 636c 6544     roup="cn=OracleD
    0x02e0     4253 6563 7572 6974 7941 646d 696e 732c     BSecurityAdmins,
    0x02f0     636e 3d4f 7261 636c 6543 6f6e 7465 7874     cn=OracleContext
    0x0300     2220 2862 726f 7773 652c 6164 642c 6465     ".(browse,add,de
    0x0310     6c65 7465 2920 6279 2067 726f 7570 3d22     lete).by.group="
    0x0320     636e 3d4f 7261 636c 654e 6574 4164 6d69     cn=OracleNetAdmi
    0x0330     6e73 2c63 6e3d 4f72 6163 6c65 436f 6e74     ns,cn=OracleCont
    0x0340     6578 7422 2028 6272 6f77 7365 2c61 6464     ext".(browse,add
    0x0350     2c64 656c 6574 6529 2062 7920 2a20 2862     ,delete).by.*.(b
    0x0360     726f 7773 652c 6e6f 6164 642c 6e6f 6465     rowse,noadd,node
    0x0370     6c65 7465 2904 81ec 6163 6365 7373 2074     lete)...access.t
    0x0380     6f20 656e 7472 7920 6669 6c74 6572 3d28     o.entry.filter=(
    0x0390     6f62 6a65 6374 636c 6173 733d 6f72 636c     objectclass=orcl
    0x03a0     4e65 7444 6573 6372 6970 7469 6f6e 4c69     NetDescriptionLi
    0x03b0     7374 2920 6279 2067 726f 7570 3d22 636e     st).by.group="cn
    0x03c0     3d4f 7261 636c 6543 6f6e 7465 7874 4164     =OracleContextAd
    0x03d0     6d69 6e73 2c63 6e3d 4772 6f75 7073 2c63     mins,cn=Groups,c
    0x03e0     6e3d 4f72 6163 6c65 436f 6e74 6578 7422     n=OracleContext"
    0x03f0     2028 6272 6f77 7365 2c61 6464 2c64 656c     .(browse,add,del
    0x0400     6574 6529 2062 7920 6772 6f75 703d 2263     ete).by.group="c
    0x0410     6e3d 4f72 6163 6c65 4e65 7441 646d 696e     n=OracleNetAdmin
    0x0420     732c 636e 3d4f 7261 636c 6543 6f6e 7465     s,cn=OracleConte
    0x0430     7874 2220 2862 726f 7773 652c 6164 642c     xt".(browse,add,
    0x0440     6465 6c65 7465 2920 6279 202a 2028 6272     delete).by.*.(br
    0x0450     6f77 7365 2c6e 6f61 6464 2c6e 6f64 656c     owse,noadd,nodel
    0x0460     6574 6529 0481 e861 6363 6573 7320 746f     ete)...access.to
    0x0470     2065 6e74 7279 2066 696c 7465 723d 286f     .entry.filter=(o
    0x0480     626a 6563 7463 6c61 7373 3d6f 7263 6c4e     bjectclass=orclN
    0x0490     6574 4465 7363 7269 7074 696f 6e29 2062     etDescription).b
    0x04a0     7920 6772 6f75 703d 2263 6e3d 4f72 6163     y.group="cn=Orac
    0x04b0     6c65 436f 6e74 6578 7441 646d 696e 732c     leContextAdmins,
    0x04c0     636e 3d47 726f 7570 732c 636e 3d4f 7261     cn=Groups,cn=Ora
    0x04d0     636c 6543 6f6e 7465 7874 2220 2862 726f     cleContext".(bro
    0x04e0     7773 652c 6164 642c 6465 6c65 7465 2920     wse,add,delete).
    0x04f0     6279 2067 726f 7570 3d22 636e 3d4f 7261     by.group="cn=Ora
    0x0500     636c 654e 6574 4164 6d69 6e73 2c63 6e3d     cleNetAdmins,cn=
    0x0510     4f72 6163 6c65 436f 6e74 6578 7422 2028     OracleContext".(
    0x0520     6272 6f77 7365 2c61 6464 2c64 656c 6574     browse,add,delet
    0x0530     6529 2062 7920 2a20 2862 726f 7773 652c     e).by.*.(browse,
    0x0540     6e6f 6164 642c 6e6f 6465 6c65 7465 2904     noadd,nodelete).
    0x0550     81e8 6163 6365 7373 2074 6f20 656e 7472     ..access.to.entr
    0x0560     7920 6669 6c74 6572 3d28 6f62 6a65 6374     y.filter=(object
    0x0570     636c 6173 733d 6f72 636c 4e65 7441 6464     class=orclNetAdd
    0x0580     7265 7373 4c69 7374 2920 6279 2067 726f     ressList).by.gro
    0x0590     7570 3d22 636e 3d4f 7261 636c 6543 6f6e     up="cn=OracleCon
    0x05a0     7465 7874 4164 6d69 6e73 2c63 6e3d 4772     textAdmins,cn=Gr
    0x05b0     6f75 7073 2c63 6e3d 4f72 6163 6c65 436f     oups,cn=OracleCo
    0x05c0     6e74 6578 7422 2028 6272 6f77 7365 2c61     ntext".(browse,a
    0x05d0     6464 2c64 656c 6574 6529 2062 7920 6772     dd,delete).by.gr
    0x05e0     6f75 703d 2263 6e3d 4f72 6163 6c65 4e65     oup="cn=OracleNe
    0x05f0     7441 646d 696e 732c 636e 3d4f 7261 636c     tAdmins,cn=Oracl
    0x0600     6543 6f6e 7465 7874 2220 2862 726f 7773     eContext".(brows
    0x0610     652c 6164 642c 6465 6c65 7465 2920 6279     e,add,delete).by
    0x0620     202a 2028 6272 6f77 7365 2c6e 6f61 6464     .*.(browse,noadd
    0x0630     2c6e 6f64 656c 6574 6529 0481 e461 6363     ,nodelete)...acc
    0x0640     6573 7320 746f 2065 6e74 7279 2066 696c     ess.to.entry.fil
    0x0650     7465 723d 286f 626a 6563 7463 6c61 7373     ter=(objectclass
    0x0660     3d6f 7263 6c4e 6574 4164 6472 6573 7329     =orclNetAddress)
    0x0670     2062 7920 6772 6f75 703d 2263 6e3d 4f72     .by.group="cn=Or
    0x0680     6163 6c65 436f 6e74 6578 7441 646d 696e     acleContextAdmin
    0x0690     732c 636e 3d47 726f 7570 732c 636e 3d4f     s,cn=Groups,cn=O
    0x06a0     7261 636c 6543 6f6e 7465 7874 2220 2862     racleContext".(b
    0x06b0     726f 7773 652c 6164 642c 6465 6c65 7465     rowse,add,delete
    0x06c0     2920 6279 2067 726f 7570 3d22 636e 3d4f     ).by.group="cn=O
    0x06d0     7261 636c 654e 6574 4164 6d69 6e73 2c63     racleNetAdmins,c
    0x06e0     6e3d 4f72 6163 6c65 436f 6e74 6578 7422     n=OracleContext"
    0x06f0     2028 6272 6f77 7365 2c61 6464 2c64 656c     .(browse,add,del
    0x0700     6574 6529 2062 7920 2a20 2862 726f 7773     ete).by.*.(brows
    0x0710     652c 6e6f 6164 642c 6e6f 6465 6c65 7465     e,noadd,nodelete
    0x0720     2904 8201 1461 6363 6573 7320 746f 2061     )....access.to.a
    0x0730     7474 723d 282a 2920 2066 696c 7465 723d     ttr=(*)..filter=
    0x0740     286f 626a 6563 7463 6c61 7373 3d6f 7263     (objectclass=orc
    0x0750     6c4e 6574 5365 7276 6963 6529 2062 7920     lNetService).by.
    0x0760     6772 6f75 703d 2263 6e3d 4f72 6163 6c65     group="cn=Oracle
    0x0770     436f 6e74 6578 7441 646d 696e 732c 636e     ContextAdmins,cn
    0x0780     3d47 726f 7570 732c 636e 3d4f 7261 636c     =Groups,cn=Oracl
    0x0790     6543 6f6e 7465 7874 2220 2872 6561 642c     eContext".(read,
    0x07a0     7365 6172 6368 2c77 7269 7465 2c73 656c     search,write,sel
    0x07b0     6677 7269 7465 2c63 6f6d 7061 7265 2920     fwrite,compare).
    0x07c0     6279 2067 726f 7570 3d22 636e 3d4f 7261     by.group="cn=Ora
    0x07d0     636c 654e 6574 4164 6d69 6e73 2c63 6e3d     cleNetAdmins,cn=
    0x07e0     4f72 6163 6c65 436f 6e74 6578 7422 2028     OracleContext".(
    0x07f0     636f 6d70 6172 652c 7365 6172 6368 2c72     compare,search,r
    0x0800     6561 642c 7772 6974 6529 2062 7920 2a20     ead,write).by.*.
    0x0810     2872 6561 642c 7365 6172 6368 2c63 6f6d     (read,search,com
    0x0820     7061 7265 2c6e 6f77 7269 7465 2c6e 6f73     pare,nowrite,nos
    0x0830     656c 6677 7269 7465 2904 8201 1c61 6363     elfwrite)....acc
    0x0840     6573 7320 746f 2061 7474 723d 282a 2920     ess.to.attr=(*).
    0x0850     2066 696c 7465 723d 286f 626a 6563 7463     .filter=(objectc
    0x0860     6c61 7373 3d6f 7263 6c4e 6574 4465 7363     lass=orclNetDesc
    0x0870     7269 7074 696f 6e4c 6973 7429 2062 7920     riptionList).by.
    0x0880     6772 6f75 703d 2263 6e3d 4f72 6163 6c65     group="cn=Oracle
    0x0890     436f 6e74 6578 7441 646d 696e 732c 636e     ContextAdmins,cn
    0x08a0     3d47 726f 7570 732c 636e 3d4f 7261 636c     =Groups,cn=Oracl
    0x08b0     6543 6f6e 7465 7874 2220 2872 6561 642c     eContext".(read,
    0x08c0     7365 6172 6368 2c77 7269 7465 2c73 656c     search,write,sel
    0x08d0     6677 7269 7465 2c63 6f6d 7061 7265 2920     fwrite,compare).
    0x08e0     6279 2067 726f 7570 3d22 636e 3d4f 7261     by.group="cn=Ora
    0x08f0     636c 654e 6574 4164 6d69 6e73 2c63 6e3d     cleNetAdmins,cn=
    0x0900     4f72 6163 6c65 436f 6e74 6578 7422 2028     OracleContext".(
    0x0910     636f 6d70 6172 652c 7365 6172 6368 2c72     compare,search,r
    0x0920     6561 642c 7772 6974 6529 2062 7920 2a20     ead,write).by.*.
    0x0930     2872 6561 642c 7365 6172 6368 2c63 6f6d     (read,search,com
    0x0940     7061 7265 2c6e 6f77 7269 7465 2c6e 6f73     pare,nowrite,nos
    0x0950     656c 6677 7269 7465 2904 8201 1961 6363     elfwrite)....acc
    0x0960     6573 7320 746f 2061 7474 723d 282a 2920     ess.to.attr=(*).
    0x0970     2066 696c 7465 723d 286f 626a 6563 7463     .filter=(objectc
    0x0980     6c61 7373 3d6f 7263 6c4e 6574 4465 7363     lass=orclNetDesc
    0x0990     7269 7074 696f 6e29 2062 7920 6772 6f75     ription).by.grou
    0x09a0     703d 2263 6e3d 4f72 6163 6c65 436f 6e74     p="cn=OracleCont
    0x09b0     6578 7441 646d 696e 732c 636e 3d47 726f     extAdmins,cn=Gro
    0x09c0     7570 732c 636e 3d4f 7261 636c 6543 6f6e     ups,cn=OracleCon
    0x09d0     7465 7874 2220 2872 6561 642c 7365 6172     text".(read,sear
    0x09e0     6368 2c77 7269 7465 2c73 656c 6677 7269     ch,write,selfwri
    0x09f0     7465 2c63 6f6d 7061 7265 2920 6279 2067     te,compare).by.g
    0x0a00     726f 7570 3d22 636e 3d4f 7261 636c 654e     roup="cn=OracleN
    0x0a10     6574 4164 6d69 6e73 2c63 6e3d 4f72 6163     etAdmins,cn=Orac
    0x0a20     6c65 436f 6e74 6578 7422 2028 636f 6d70     leContext".(comp
    0x0a30     6172 652c 7365 6172 6368 2c72 6561 642c     are,search,read,
    0x0a40     7772 6974 6529 2020 6279 202a 2028 7265     write)..by.*.(re
    0x0a50     6164 2c73 6561 7263 682c 636f 6d70 6172     ad,search,compar
    0x0a60     652c 6e6f 7772 6974 652c 6e6f 7365 6c66     e,nowrite,noself
    0x0a70     7772 6974 6529      write)
    JAZN is setup as following
    java -jar jazn.jar -getconfig
    <jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
    oracle@buckwheat:/u01/app/oracle/products/9iAS/j2ee/home> java -jar jazn.jar -getconfig sample_subrealm
    <jazn provider="LDAP" location="ldap://buckwheat:389" default-realm="sample_subrealm" />
    <OC4J_HOME>/config/jazn.xml
    <?xml version="1.0" encoding="UTF-8" standalone='yes'?>
    <!--
    <!DOCTYPE jazn PUBLIC "JAZN Config" "http://xmlns.oracle.com/ias/dtds/jazn.dtd">
    <jazn provider="XML" location="./jazn-data.xml" />
    -->
    <jazn provider="LDAP"
    default-realm="sample_subrealm"
    location="ldap://buckwheat:389" />
    <OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/orion-application.xml
    <?xml version="1.0"?>
    <!DOCTYPE orion-application PUBLIC "-//Evermind//DTD J2EE Application runtime 1.2//EN" "http://xmlns.oracle.com/ias/dtds/orion-application.dtd">
    <orion-application deployment-version="1.0.2.2" default-data-source="jdbc/OracleDS">
    <web-module id="callerInfo-web" path="callerInfo-web.war" />
    <persistence path="persistence" />
    <!-- mapping for realm "jazn.com"
    <security-role-mapping name="sr_manager">
    <group name="administrators" />
    </security-role-mapping>
    <security-role-mapping name="sr_developer">
    <group name="users" />
    </security-role-mapping>
    -->
    <!-- mapping for realm "sample_subrealm" -->
    <security-role-mapping name="sr_manager">
    <group name="manager" />
    </security-role-mapping>
    <security-role-mapping name="sr_developer">
    <group name="developer" />
    </security-role-mapping>
    <!-- h -->
    <!-- use JAZN-XML by default
    <jazn provider="XML" location="./jazn-data.xml" />
    -->
    <!-- use JAZN-LDAP instead -->
    <jazn provider="LDAP" default-realm="sample_subrealm" location="ldap://buckwheat.jxn.wcom.com:389" />
    <!-- -->
    <log>
    <file path="application.log" />
    </log>
    <namespace-access>
    <read-access>
    <namespace-resource root="">
    <security-role-mapping name="&lt;jndi-user-role&gt;">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </read-access>
    <write-access>
    <namespace-resource root="">
    <security-role-mapping name="&lt;jndi-user-role&gt;">
    <group name="administrators" />
    </security-role-mapping>
    </namespace-resource>
    </write-access>
    </namespace-access>
    </orion-application>
    <OC4J_HOME>/j2ee/home/jazn/demo/callerInfo/etc/web.xml
    <?xml version="1.0"?>
    <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" "http://java.sun.com/j2ee/dtds/web-app_2_2.dtd">
    <web-app>
    <display-name>JAZN Demo: CallerInfo</display-name>
    <servlet>
    <servlet-name>callerInfo</servlet-name>
    <description>Servlet retrieves remote user info</description>
    <servlet-class>oracle.security.jazn.samples.http.CallerInfo</servlet-class>
    <!-- role name used in code -->
    <security-role-ref>
    <role-name>FOO</role-name>
    <role-link>sr_manager</role-link>
    </security-role-ref>
    <security-role-ref>
    <role-name>ar_manager</role-name>
    <role-link>sr_manager</role-link>
    </security-role-ref>
    <security-role-ref>
    <role-name>ar_developer</role-name>
    <role-link>sr_developer</role-link>
    </security-role-ref>
    </servlet>
    <servlet-mapping>
    <servlet-name>callerInfo</servlet-name>
    <url-pattern>/callerInfo/*</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>callerInfo</servlet-name>
    <url-pattern>/callerInfoA</url-pattern>
    </servlet-mapping>
    <servlet-mapping>
    <servlet-name>callerInfo</servlet-name>
    <url-pattern>/callerInfoB</url-pattern>
    </servlet-mapping>
    <!-- security roles -->
    <security-role>
    <role-name>sr_manager</role-name>
    </security-role>
    <security-role>
    <role-name>sr_developer</role-name>
    </security-role>
    <!-- security constraints -->
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CallerInfoA</web-resource-name>
    <url-pattern>/callerInfoA</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_developer</role-name>
    </auth-constraint>
    </security-constraint>
    <security-constraint>
    <web-resource-collection>
    <web-resource-name>CallerInfoB</web-resource-name>
    <url-pattern>/callerInfoB</url-pattern>
    </web-resource-collection>
    <!-- authorization -->
    <auth-constraint>
    <role-name>sr_manager</role-name>
    </auth-constraint>
    </security-constraint>
    <!-- authentication -->
    <login-config>
    <auth-method>BASIC</auth-method>
    </login-config>
    </web-app>

    OID 3.0.1.0 is the latest product release to public. I did add the Install data to allow it to work. I see the data in OID but when I connect with jazn I get error.
    java -jar jazn.jar -shell
    JAZN:> ls
    realms policy
    JAZN:> cd realms
    JAZN:> ls
    String index out of range: 32
    JAZN:> cd ../policy
    JAZN:> ls
    JAZN:> exit
    JAZN:>
    It does not error on policy dirictory but it does on the realm side. If I watch the tcp packets it is working.

Maybe you are looking for

  • How can I get my add-ons to display in "about:addons," and stop add-on installation from hanging upon download?

    I use firefox 9.0, on Ubuntu 10.04 Lucid Lynx. The "uname --all" shell command yields the following output, redacted : Linux ************* 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux I recently did an update to versio

  • *** glibc detected *** double free or corruption

    Hello This is an extension of the following thread but brings up problems of its own. PANIC: fatal region detected, run recovery I wrote a Python script to upload all my XML files to a container. Earlier I was adding the document without transaction

  • Duplicating a portion of Pro Res media for use in another project

    I'm working on a compilation video which is drawing from many different interviews.   I need to duplicate certain sections of 1080p 29.97 Pro Res timelines and then bring them into a new FCP 7.0.3 project.  The clips will be pulled from many differen

  • Netflix : access code for instant watch

    Sorry if this has been addressed before but I downloaded the Netflix app, and I am already a Netflix subscriber. To watch instantly, the IPAD asks for an access code and says my device will instruct me how to get that.. the IPAD? Or do I get the code

  • How to 'disable' 3D in main stage?

    Hello, I am relatively new to Adobe Flash and have been enjoying it so far!  However, I seem to have hit a stumbling block.  I am using nested movie clips to display a moving button on the main stage.  In a nutshell, the button says "play" and uses 3