10g session.xml etc.

In a project with my TopLink mappings and where I have generated sessions.xml and toplink-deployment-descriptor.xml, I use code like this:
SessionManager.getManager().getSession("Avega")
to get a session, and then try readAllObjects(Someclass.class).
First, I get "The session.xml resource [sessions.xml] was not found on the resource path." sessions.xml (should it be singular or plural?) is in the META-INF folder generated by the IDE. If I copy it to the top of the classes directory and try again, I get this:
"A parsing fatal error was thrown while parsing the XML file. It occurs at line 2 and column -1 in the XML document.
Internal Exception: org.xml.sax.SAXParseException: Relative URI "sessions_9_0_4.dtd"; can not be resolved without a base URI."
So I edit the file to add "http://" in front of the dtd name. Now JDev tells me it can't find toplink-deployment-descriptor.xml, at which point I notice that sessions.xml has the absolute path to the location where that file was generated /on another machine/ (I checked this project out of CVS.) How does this work when the application is deployed?
Along the way, I'm also getting errors of libraries not found -- why doesn't a project with TopLink in the "Technology Scope" automatically add at least the XMLParser to the library path?
Once I get all this working, I'm getting various errors regarding the mapping, although the 'Mapping Status Report' says there are no errors, and my toplink-deployment-descriptor.xml is freshly generated. The errors are of two types:
"The table [USER_PANEL_DEFAULTS] is not present in this descriptor." -- although the table is actually present and mapped in the same project.
and
"A non-read-only mapping must be defined for the sequence number field." -- although none of my mappings are read-only.
Am I missing something? Is there a tutorial or reference that goes through all this? I haven't found anything useful in the online help about actually obtaining a session. Would I be better off dropping back to JDev 9.0.3 and the un-integrated TopLink?

Hi John,
As I am sure you are already aware, the "Oracle XML Parser v2" library was not added to your classpath. This resulted in the both the "can not be resolved without a base URI" problem, as well as some of the other classpath problems you were experiencing. Given that the XMLParser library is added, you should not have to change the DTD URI. I have filed an bug denoting that the XMLParser library should be added to the Project classpath along with the TopLink library when a TopLink Mappings project is created.
Other library problems you are experiencing are likely due to the correct JDBC drivers not being added to your classpath. As multiple database types can be supported, this is something that the user will have to do manually for their given database.
In terms of the absolute path being specified in the session.xml. When a new session is created, the path of the toplink-deployment-descriptor.xml is specified by default if it exists as it is assumed that that is the deployment descriptor that will be used. The user can change this path to be relative in the Sessions Editor or point it to a different file. Still, the default behavior should be more intelligent and use a relative path if possible. I have filed a bug indicating this behavior.
As for the actual deployment problems you are experiencing. Could you provide me with more information, including the actual exceptions (w/ stack traces) that are thrown as well as the Project and associated resources?
Thanks for all of your feedback.
Best Regards,
John Bracken
[email protected]

Similar Messages

  • Need help ASAP : Exception with EJB 3.0 while session.xml

    Hi,
    Kindly help on below exception, which i am getting the exception while changing the mine EJB 2.1 to 3.0.
    Exception raised while loading the session.xml, which is reffering to map file which is used by Toplink.
    **Mine EJB:**
    public class CaseSessionEJBBean implements CaseSessionEJB {
    String inBean="[CaseSessionEJBBean] ";
    private SessionFactory sessionFactory;
    public CaseSessionEJBBean() {
    this.sessionFactory =new SessionFactory("META-INF/sessions.xml", "moj");
    *private SessionFactory getSessionFactory() {*
    return this.sessionFactory;
    *}* public PagedResultList<CasedetailsDTO> searchPayment(SearchCriteriaDTO searchCriteriaDTO,Integer startIndex,Integer endIndex) throws MOJException{
    String inMethod="[searchPayment] ";
    PagedResultList pagedCaseDetailsDTOList=null;
    try{
    System.out.println("[CaseSessionEJBBean] !!!! ENTERED !!!!!");
    Session session = getSessionFactory().acquireSession();
    CaseFacade caseFacade = new CaseFacade();
    pagedCaseDetailsDTOList=caseFacade.searchPayment(session, searchCriteriaDTO,startIndex,endIndex);
    System.out.println("pagedCaseDetailsDTOList.size()="+pagedCaseDetailsDTOList.size());
    }catch(Exception e){
    e.printStackTrace();
    System.out.println("[Exception] While getting payment details:"+e);
    throw new MOJException("1001", e.getMessage(),
    "Exception occured",
    "Exception in searchPayment()",
    "searchPayment", "CaseSessionEJBBean",
    "searchPayment", e);
    return pagedCaseDetailsDTOList;
    Exception:
    Exception Description: Several [1] SessionLoaderExceptions were thrown:
    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.3.0) (Build 070608)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: *An exception was thrown while loading the <project-xml> file [META-INF/MOJMap.xml].*
    Internal Exception: oracle.classloader.util.AnnotatedLinkageError: duplicate class definition: oracle/toplink/indirection/IndirectList
    Invalid class: oracle.toplink.indirection.IndirectList
    Loader: current-workspace-app.root:0.0.0
    Code-Source: /D:/MOJ_SVN/Lib/toplink.jar
    Configuration: <library> in /D:/Temp/MOJ_EJB_3.0/CMS-oc4j-app.xml
    Dependent class: oracle.toplink.internal.helper.ConversionManager
    Loader: oracle.toplink:10.1.3
    Code-Source: /D:/jdevstudio/toplink/jlib/toplink.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in D:\jdevstudio\j2ee\home\oc4j.jar
    The original class instance was also defined in oracle.toplink:10.1.3.
    Thanks in Advance:
    Need in urgent
    Edited by: user636100 on Feb 6, 2009 7:44 AM

    You have two copies of toplink.jar visible to the application classloader - D:/MOJ_SVN/Lib/toplink.jar should be removed.
    For compilation of the application use toplink.jar provided by the server: D:/jdevstudio/toplink/jlib/toplink.jar

  • Session.xml-The Network Adapter could not establish the connection

    I am using Oracle TopLink 10g Release 3 (10.1.3.1.0) and Weblogic 9.2.
    TopLink Configurations in session.xml are as follows:
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g Release 3 (10.1.3.1.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>default</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">BharosaTLMappings.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <user-name>bharosa</user-name>
    <password>orclam</password>
    <sequencing>
    <default-sequence xsi:type="native-sequence">
    <name>Native</name>
    <preallocation-size>1</preallocation-size>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@10.77.199.114:1521:orcl</connection-url>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    When I start the server I, the log shows the following errors list:
    [TopLink Info]: 2007.10.19 03:11:37.391--ServerSession(4922317)--TopLink, version: Oracle TopLink - 10g Releas
    e 3 (10.1.3.1.0) (Build 061004)
    [TopLink Severe]: 2007.10.19 03:11:58.485--ServerSession(4922317)--Local Exception Stack:
    Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptio
    ns.DatabaseException
    Internal Exception: java.sql.SQLException: Io exception: The Network Adapter could not establish the connectio
    nError Code: 17002
    at oracle.toplink.exceptions.DatabaseException.sqlException(DatabaseException.java:276)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:64)
    at oracle.toplink.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:147)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:197)
    at oracle.toplink.internal.databaseaccess.DatabaseAccessor.connect(DatabaseAccessor.java:220)
    at oracle.toplink.internal.databaseaccess.DatasourceAccessor.connect(DatasourceAccessor.java:273)
    at oracle.toplink.threetier.ConnectionPool.buildConnection(ConnectionPool.java:82)
    at oracle.toplink.threetier.ConnectionPool.startUp(ConnectionPool.java:304)
    at oracle.toplink.threetier.ServerSession.connect(ServerSession.java:435)
    at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:503)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:379)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:184)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getDefaultSession(SessionManager.java:98)
    at com.bharosa.common.toplink.TopLinkDBMgr.<init>(TopLinkDBMgr.java:54)
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.initializeDBMgr(VCryptDataAccessMgr.java:132
    at com.bharosa.vcrypt.dataaccess.util.VCryptDataAccessMgr.<init>(VCryptDataAccessMgr.java:58)
    at com.bharosa.common.actions.AuthRequestProcessor.<init>(AuthRequestProcessor.java:49)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
    at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27
    at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
    at java.lang.Class.newInstance0(Class.java:350)
    at java.lang.Class.newInstance(Class.java:303)
    at org.apache.struts.util.RequestUtils.applicationInstance(RequestUtils.java:145)
    at org.apache.struts.action.ActionServlet.getRequestProcessor(ActionServlet.java:573)
    at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1162)
    at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:283)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:175)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.jav
    a:3214)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:1983)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:1890)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1344)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:209)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:181)
    Caused by: java.sql.SQLException: Io exception: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:146)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:255)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:387)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:414)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:165)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:35)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:801)
    at java.sql.DriverManager.getConnection(DriverManager.java:525)
    at java.sql.DriverManager.getConnection(DriverManager.java:140)
    at oracle.toplink.sessions.DefaultConnector.connect(DefaultConnector.java:62)
    ... 39 more
    <Oct 19, 2007 3:11:58 PM GMT+05:30> <Error> <HTTP> <BEA-101105> <[weblogic.servlet.internal.WebAppServletConte
    xt@10285d8 - appName: 'oarm', name: 'oarm', context-path: '/oarm'] error-page location: "/FA_error404.jsp" for
    the error-code: "404" does not exist. Serving the default error page.>
    What should I do? And when the server starts and I run the application, I get the following error:
    Error 404--Not Found
    From RFC 2068 Hypertext Transfer Protocol -- HTTP/1.1:
    10.4.5 404 Not Found
    The server has not found anything matching the Request-URI. No indication is given of whether the condition is temporary or permanent.
    If the server does not wish to make this information available to the client, the status code 403 (Forbidden) can be used instead. The 410 (Gone) status code SHOULD be used if the server knows, through some internally configurable mechanism, that an old resource is permanently unavailable and has no forwarding address.
    Can anybody help me...?????

    Can you try writing a testcase that allows you to connect to the database by going through JDBC ?

  • Jdev10g + toplink + sessions.xml

    I am trying to develop an app entirely in JDev 10g
    and would like to describe database connection details via the J2EE datasources. If I am using toplink this means using the session.xml file. Placing the sessions.xml file at the root of the class path WORKS for a java application but the same code FAILS when running within the standalone application i.e.
    ServerSession session = (ServerSession)SessionManager.getManager().getSession("Connection1")
    even
    ServerSession session = (ServerSession)SessionManager.getManager().getSession("Connection1", this.getClass().getClassLoader());
    fails. I can code:
    InputStream stream = this.getClass().getResourceAsStream("/sessions.xml");
    and read the contents of the file running in the embedded OC4J. Is it possible to run a top link web app within the embedded OC4J container accessing a sessions.xml file.

    If you are using jdev to create your toplink mappings and sessions.xml in the same project, you should be able to specify the location of the toplink-deployment-descriptor in the sessions.xml as follows:
    /META-INF/Model/toplink-deployment-descriptor.xml
    This issue (3583952) was fixed in Jdev 9.0.5.2. Please make sure you are using JDev 9.0.5.2 and 9.0.5.1.
    Thanks,
    Anuj Jain

  • QUESTION: Where do I find the sessions.xml file?

    I am using JD 10.1.3. I used CMP entity beans from tables to create my EJBs. I also created a local client for my entity bean. When I try to run my local client I get a bunch of errors. I have a sample of the errors, below. I have the following questions:
    1. How do you resolve these?
    2. I tried to uncomment the code from the local client that refers to sessions.xml. I am unable to locate this file. Where can I get a sample of this file?
    3. Can anyone point me to a sample code of CMP entity beans from tables and sessions.xml file?
    Many thanks.
    Kannan
    Local Exception Stack:
    Exception [TOPLINK-59] (Oracle TopLink - 10g release 3 (10.1.3.0.0) (Build 050912)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The instance variable [demandClassCode] is not defined in the domain class [model.OeTransactionTypesAllBean], or it is not accessible.
    Internal Exception: java.lang.NoSuchFieldException: demandClassCode
    Mapping: oracle.toplink.mappings.DirectToFieldMapping[demandClassCode-->OE_TRANSACTION_TYPES_ALL.DEMAND_CLASS_CODE]
    Descriptor: RelationalDescriptor(model.OeTransactionTypesAllBean --> [DatabaseTable(OE_TRANSACTION_TYPES_ALL)])
         at oracle.toplink.exceptions.DescriptorException.noSuchFieldWhileInitializingAttributesInInstanceVariableAccessor(DescriptorException.java:1058)
         at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.initializeAttributes(InstanceVariableAttributeAccessor.java:78)
         at oracle.toplink.mappings.DatabaseMapping.preInitialize(DatabaseMapping.java:954)
         at oracle.toplink.mappings.foundation.AbstractDirectMapping.preInitialize(AbstractDirectMapping.java:468)
         at oracle.toplink.publicinterface.Descriptor.preInitialize(Descriptor.java:2355)
         at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:350)
         at oracle.toplink.publicinterface.DatabaseSession.initializeDescriptors(DatabaseSession.java:331)
         at oracle.toplink.publicinterface.DatabaseSession.login(DatabaseSession.java:512)
         at model.OeTransactionTypesAllBeanClient.main(OeTransactionTypesAllBeanClient.java:35)
    Caused by: java.lang.NoSuchFieldException: demandClassCode
         at java.lang.Class.getDeclaredField(Class.java:1854)
         at oracle.toplink.internal.security.PrivilegedAccessController.findDeclaredField(PrivilegedAccessController.java:33)
         at oracle.toplink.internal.security.PrivilegedAccessController.findDeclaredField(PrivilegedAccessController.java:39)
         at oracle.toplink.internal.security.PrivilegedAccessController.getDeclaredField(PrivilegedAccessController.java:231)
         at oracle.toplink.internal.helper.Helper.getDeclaredField(Helper.java:771)
         at oracle.toplink.internal.descriptors.InstanceVariableAttributeAccessor.initializeAttributes(InstanceVariableAttributeAccessor.java:76)
         ... 7 more

    Hi,
    create a session bean and run this bean with the embedded OC4J or external OC4J. Create a local client for the session ben
    Frank

  • Sessions.xml to point to a data-source

    Hi,
    I'm trying to have the sessions.xml file point and use a data source that is defined in the data-sources.xml file.
    I have checked that the data-source entires are fine(I've used the test-connection feature in AS, to check this).
    Below is the content of my sessions.xml file; Can you please let me know if I am missing some entires in this file.Also sending my data-sources.xml file incase you want to have a look at it.
    Sessions.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g release 2 (10.1.3.0.0DP4)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>oracle.epcis.common.model</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">EPCIS_OXM.xml</primary-project>
    <login xsi:type="xml-login">
    <password>5C4C6924B1B14E16</password>
    </login>
    </session>
    <session xsi:type="server-session">
    <name>oracle.epcis.common.model.orm</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log"/>
    <primary-project xsi:type="xml">EPCIS_ORM.xml</primary-project>
    <login>
    <datasource>jdbc/epcisDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <user-name/>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>EPCIS Connection Pool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>EPCIS Connection Pool</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    Data-sources.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1">
    <managed-data-source connection-pool-name="EPCIS Connection Pool" jndi-name="jdbc/epcisDS" name="epcisDS"/>
    <connection-pool name="EPCIS Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/ORCL"/>
    </connection-pool>
    </data-sources>
    Thanks in Advance,
    Mahima

    Thanks! That helped.
    I have a project-orm.xml file which also has the database username, pwd, url.How can I get this to point to the same datasource too?
    The project orm.xml file is as below: How can I modify it to point to the datasource jdbc/epcisDS?
    project-orm.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>EPCIS_ORM</opm:name>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>oracle.epcis.common.model.TransactionEvent</opm:class>
    <opm:alias>SdmTransactionEvent</opm:alias>
    <opm:primary-key>
    <opm:field table="SDM_TRANSACTION_EVENT" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>action</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="ACTION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizLocation</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_LOCATION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizStep</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_STEP" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizTransactionListId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_TRANSACTION_LIST_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>disposition</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="DISPOSITION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>eventTime</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="EVENT_TIME" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>rawXmlEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="RAW_XML_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>readpoint</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="READPOINT" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>transactionEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="SDM_TRANSACTION_EVENT"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>oracle.epcis.common.model.TransactionEventMap</opm:class>
    <opm:alias>SdmTransactionEventMap</opm:alias>
    <opm:primary-key>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="CHILD_EPC_ID" xsi:type="opm:column"/>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>childEpcId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="CHILD_EPC_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>transactionEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="SDM_TRANSACTION_EVENT_MAP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>admin</toplink:user-name>
    <toplink:password>77F9BCD65FABB4501B550455987A268F</toplink:password>
    <toplink:sequencing>
    <toplink:default-sequence xsi:type="toplink:native-sequence"/>
    </toplink:sequencing>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@localhost:1521:EPCIS</toplink:connection-url>
    </toplink:login>
    </toplink:object-persistence>
    Thanks,
    Mahima

  • Which Web Client Framework? BC4J-JSP, UIX-JSP, UIX-XML, etc

    Trying to determine which, if any of the JDeveloper frameworks, to use for do web browser (HTML) clients.
    What are the pros/cons of BC4J-JSP, UIX-JSP, UIX-XML, etc?
    What are some common things you might rule out using one or more of the frameworks?
    I plan to be using BC4J, updating, inserting data (currently MS-SQL) and the apps will run on WebLogic 7 or Caucho Resin (webapps no EJB) in a cluster. I would like to be as RAD as possible and still be able to do what I need to do. One main concern is being able to add custom HTML/JavaScript for things like client side validation. I didn't see a way to do this when doing BC4J-JSP. Is that right?
    If I define any validation in the BC4J, will UIX utilized any of this to define a JavaScript validator or must it be redudantly defined?
    One other concern is what the framework requires in terms of architecture, like do I have to have sticky sessions in my web cluster or can it work fine stateless or stateful?
    For UIX-XML, how is this architected for performance? Specifically, is the XML effectively compiled and converted into something more efficient and performant or does it do XML parsing all the time? Is there any significant performance differences between the frameworks?
    Is there any significant difference in dealing with security? Anything in the framework to make it easier to handle certain users being able to see/edit different set of data?
    I have things like some groups can edit only certain entities (product info but not pricing), others only certain types of products (possibly subclass entities) and others situations where what fields than can edit varies. Obviously I can handle this programmatically, but I was wondering what the frameworks had to offer, especially in terms of having different views of the same data.
    Steve

    ...I am little confused then about how BC4J works and what is meant by "session" here.
    When you talk about appmodules in the plural, does this mean that there are potentially multiple instances of the same data on a single server or there is a common datastore with pending data and client specific stuff varying?
    The common datastore is the database. Each client (momentarily, during the span of their request) uses an instance of an application module from the pool. The pool can grow and shrink with load on your system and all of the various tuning parameters. Our doc on the AM Pool covers all the parameter settings and their users.
    What kind of "session" is this?
    It is an abstract notion of a session for a user. The implementation used for Web clients uses the HTTP Session Key as the session key. However, we have other session implementations (and you can provide your own to do custom stuff for more sophisticated needs). We don't store anything else in the HTTP Session to the best of my knowledge. This way in a cluster, the web container doesn't have to waste time propagating all of your serialized HTTP Session state among cluster members. This session key also include an id for the application module and together those provide the key to store your pending state in the database for the "Stateful == Managed State" feature.
    I assume that if I have a cluster which doesn't use session-to-same-server-affinity but uses JDBC for http-session persistance or distributed in-memory http-sessions then I cannot use stateful BC4J even though I can use http-sessions.
    You can use BC4J in this way because the browser will send a cookie that contains the key to your database-stored pending state. In this way, we work great in a server farm for failover and/or scalability reasons.
    Even if I use stateless BC4J, are there issues with round-robin'ng all requests to different servers in a cluster?
    As I said, both our Stateless and Stateful features are designed to be used in Server farms, no problem.
    BTW I wouldn't necessarily say you picked the wrongs terms for the modes, but I know what you mean. There's problems with these terms. I am trying to explain to my mgrs/engineers that there is some state in stateless transactions - that simply making everything "stateless" doesn't mean don't lose anything in a disastrous failure. I am arguing to get support for sessions in our cluster, that the performance gain and simplified development is worth it as long as you put intelligent limits on what you store in the session. Right now, they are insisting on randomly sending requests into two entirely different data centers, with two different clusters.
    Amen. I have seen too many developers make the mistake of trying to be totally stateless, only to completely complicate their development environment with having to peristent partially-completed transaction data to the database. I've seen this done with sets of "Shadow" tables (yuck!) or using hand-written techniques similar to what BC4J provides a robust implementation of in the box.
    We've tuned our "Stateless With Affinity for Server Farms" model over several releases of carefully studying the performance of the Web apps built by our internal Oracle Applications teams using BC4J (over 20 of them now, and growing!) so compared with a hand-written strategy for your web-tier state management, using BC4J's implementation will be much more productive for you.
    We're tuning and tweaking and enhancing it even more for the 9.0.3 release as new needs are highlighted with continued use by our customers (both Oracle internal and external).

  • Problem getting sessions from sessions.xml

    I have been having difficulty getting a sessions.xml file deployed on our web application. I've found that if the file is not on the classpath, I do get an error indicating that the sessions.xml or Toplink properties file can not be found. But when I put the sessions.xml in the classpath and have checked to ensure that the projects referenced by the file are also in the classpath, I no longer get the error but for some reason sessions don't get populated by the SessionsManager. I've tried the code below both from within the webapp and also just from a main method in my IDE:
         SessionManager manager = SessionManager.getManager();      
         Hashtable sessions = manager.getSessions();
         System.out.println(sessions.size());
    And when I run it I get 0 as my answer. Is there anything more I need to do than set the sessions.xml as well as the projects (we're using compiled Java classes) in the classpath?
    Thanks in advance,
    Mark

    Ok, since the sessions are loaded lazily, I changed my code to the following below, but am now getting null when I specifically ask for 'ODSSession' in the code below.
    SessionManager manager = SessionManager.getManager();
    Session session = manager.getSession("ODSSession");
    System.out.println("session = " + session);
    Also, below is my sessions.xml with the database and login information changed for privacy purposes. The sessions.xml was setup using the workbench and I was able to map tables to the project using it. Am I missing something as to why I can't load the session?
    Thanks,
    Mark
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <toplink-sessions version="10g Developer Preview 3 (10.1.3.0 )" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>ODSSession</name>
    <server-platform xsi:type="oc4j-1013-platform"/>
    <event-listener-classes/>
    <primary-project xsi:type="class">sample.TestProject</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle9Platform</platform-class>
    <user-name>user</user-name>
    <password>password</password>
    <external-connection-pooling>true</external-connection-pooling>
    <external-transaction-controller>true</external-transaction-controller>
    <sequencing>
    <default-sequence xsi:type="table-sequence">
    <name>Default</name>
    </default-sequence>
    </sequencing>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <connection-url>jdbc:oracle:thin:@111.111.111.111:1521:ods</connection-url>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>ReadConnectionPool</name>
    <max-connections>2</max-connections>
    <min-connections>2</min-connections>
    </read-connection-pool>
    <write-connection-pool>
    <name>default</name>
    <max-connections>10</max-connections>
    <min-connections>5</min-connections>
    </write-connection-pool>
    </connection-pools>
    </session>
    </toplink-sessions>

  • How do I create a session with the datasource set in code not sessions.xml

    I want to create a session where I specify the J2EE datasource name dynamically in code. Normally, I would hard-code a J2EE datasource name in sessions.xml e.g.
    <login>
    <datasource>jdbc/MyApplicationDS</datasource>
    <platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    </login>
    However, we don't want to use a hard-coded string "jdbc/MyApplicationDS". We want to be able to set this at runtime.
    I found this in the App Developer's Guide:
    Configuring an External Connection Pool in Java
    To configure the use of an external connection pool in Java:
    1. Configure the DataSource on the server.
    2. Configure the Login to specify a DataSource and the use of an external connection pool:
    login.setConnector(
    new JNDIConnector(new InitialContext(), "jdbc/MyApplicationDS"));
    login.setUsesExternalConnectionPooling(true);
    and this:
    Configuring Sessions with the sessions.xml File
    OracleAS TopLink provides two ways to preconfigure your sessions: you can export and compile Java source code from the OracleAS TopLink Mapping Workbench, or use the OracleAS TopLink Sessions Editor to build a session configuration file, the sessions.xml file.
    It seems like I should export and compile Java code that calls login.setConnector(), but I can't find out any information on how to do this. I looked at the MW user guide and I didn't see anything on this.
    I also found this by searching this discussion forum:
    To create a server session completely from code given a project you can use,
    project.getLogin().setConnector(new JNDIConnector(new InitialContext(), "your-datasource-url"));
    project.getLogin().setUserName("");
    project.getLogin().setPassword("");
    Server server = project.createServerSession();
    server.login();
    However, I don't know how to get the project.
    Thanks,
    Vicki

    If you are using a sessions.xml file, you can get your project from your session. Ensure that when you access your session from the SessionManager, that you do not have it login.
    Session session = SessionManager.getManager().getSession("my-session", false);
    session.getProject().setConnector(...);
    session.login();
    If not using a sessions.xml, you can either read your Project from the XMLProjectReader, or instantiate your Project class directly.

  • Org.xml.sax.SAXParseException in sessions.xml

    Hello,
    Recently I migrated a 10.1.3.4 project to 11.1.1.3 and than to 11.1.2.4. When I deploy the project to the IntegratedWeblogicServer org.xml.sax.SAXParseException exceptions are thrown regarding elements in the sessions.xml.
    session.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="11g Release 1 (11.1.1.5.0)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>default</name>
    <primary-project xsi:type="xml">META-INF/kiMap.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.Oracle11Platform</platform-class>
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <datasource>jdbc/AlfaDS</datasource>
    <bind-all-parameters>false</bind-all-parameters>
    <byte-array-binding>false</byte-array-binding>
    <optimize-data-conversion>false</optimize-data-conversion>
    <trim-strings>false</trim-strings>
    <jdbc-batch-writing>false</jdbc-batch-writing>
    </login>
    </session>
    </toplink-sessions>
    Exceptions
    org.xml.sax.SAXParseException: <Line 9, Column 22>: XML-24534: (Fout) Element 'datasource' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 10, Column 31>: XML-24534: (Fout) Element 'bind-all-parameters' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 11, Column 30>: XML-24534: (Fout) Element 'byte-array-binding' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 12, Column 36>: XML-24534: (Fout) Element 'optimize-data-conversion' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 13, Column 24>: XML-24534: (Fout) Element 'trim-strings' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 14, Column 30>: XML-24534: (Fout) Element 'jdbc-batch-writing' is niet verwacht.
    org.xml.sax.SAXParseException: <Line 15, Column 15>: XML-24521: (Fout) Element is niet voltooid: 'login'
    Translation
    is niet verwacht = not expected
    is niet voltooid = not complete
    Please help me with this configuration.
    With kind regards
    Martin
    Edited by: Martin Schaap on May 17, 2013 2:52 AM
    Edited by: Martin Schaap on May 20, 2013 10:31 PM

    In the session.xml schema it is a choice between driver-class/url and datasource, so you need to remove the driver-class tag as you are using a datasource.
    <driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
    <datasource>jdbc/AlfaDS</datasource>
    replalce with,
    <datasource>jdbc/AlfaDS</datasource>

  • Using session.xml file from WorkB in  a Session Facade based on another xml

    Hi
    I have the follwing scenario.
    Need to read data from a set of tables and convert them into an XML file based on an XSD.
    I am planning to use Toplink POJO in JDeveloper to create a SessionFacade to read the values.
    I tested the SessionFacade using a client and I was able to read the values correctly.
    Based on my xsd, I created a project in Workbench and mapped the classes created earlier, I was able to test this mapping using a test xml data file.
    I was able to read the file, Unmarshall it, manipulate it and generate an XML.
    Now the question is how do I call this Marshalling from my SessionFacade ?
    Since two session.xml files are in different format, I could not copy the content from one file into another.
    How do I create a JAXBContext based on a different session.xml?
    Thanks
    Sambath
    Oracle Consulting

    Hi Doug,
    Thanks for the response. I did the same and I was able to make it work, soon after I posted. I should have updated it :-)
    I used two sessions file.
    The OXM expected the name of the file to sessions.xml and I have to keep it that way. I created a ormsession.xml using JDeveloper and referred the ORM Project created in the Workbench to use it for ORM . In fact I created a dummy ormsession.xml file in JDeveloper wiht a session named "default". I started by creating an entry manually by copying the contents of the session definition and renamed to "MySession"
    Once again thanks for following up
    Thanks
    Sambath

  • Sessions.xml data source not working using toplink

    I'm having some difficulty getting a data source to work. I have an ADF selectOneChoice component and I want the list of values available to be bound to a database given by the JNDI name and controlled at the j2ee container level.
    I have created a sessions.xml file
    <toplink-configuration>
    <session>
    <name>PIMSSession</name>
    <project-xml>META-INF/PIMS_ADF_TLMap.xml</project-xml>
    <session-type>
    <server-session/>
    </session-type>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    <connection-pool>
    <is-read-connection-pool>true</is-read-connection-pool>
    <name>default</name>
    <login>
    <datasource>jdbc/PIMSDS</datasource>
    <platform-class>Oracle10g</platform-class>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    </login>
    </connection-pool>
    </session>
    </toplink-configuration>
    The sessions.xml points to the toplink mapping file PIMS_ADF_TLMap.xml, which contains information about the database view that is used to populate the drop down list. It also contains a deployment connection:
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>pimsdev</toplink:user-name>
    <toplink:password>BB742416276274A494F7008B3AE0FB10</toplink:password>
    <toplink:driver-class>oracle.jdbc.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@yvworad01:1521:PIMSD</toplink:connection-url>
    </toplink:login>
    The problem I'm having is that my ADF application always binds the selectOneChoice to the connection-url in the toplink mapping file instead of the datasource in the sessions.xml.
    If I remove the deployment connection from the mwp file, recompile and deploy I get a JBO-29000 error about not having a suitable driver.
    Does anyone know how to get the selectOneChoice to bind to a datasource instead of the toplink mapping connection-url?

    Hi Aaakar,
    From the error message, please try to change the setting of Credential type for the data source on report manager as follows:
    Go to the Data Sources properties page.
    For the Connect Using option, select Credentials stored securely in the report server.
    In User Name and Password, type credentials that can be used to access the database. If you are using SQL Server as the data source, the user name must be valid for both logging on to the server and for accessing the database that contains the data for
    the report.
    If the user name and password are credentials for a Windows account, select Use as Windows Credentials.
    If you want the report server to pass the credentials of the user accessing the report to the server hosting the external data source, click Windows Integrated Security. In this case, the user is not prompted to type a user name or password.
    For more details about Configure Data Source Properties, please see:
    http://technet.microsoft.com/en-us/library/ms155882.aspx
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • In one sessions.xml file can i include more than one project

    Hi Folks,
    I got a requirement to create more projects by using the same sessions.xml file if it is possible please let me know.
    thanks
    Venkatram R. Veerareddy

    Hi Venkatram,
    It is possible to have more than one session in sessions.xml. Have the sessions.xml like this
    <toplink-configuration>
    <session>
    <name>Session1</name>
    </session>
    <session>
    <name>Session2</name>
    </session>
    </toplink-configuration>
    Use session broker for handling both the sessions simultaneously. For more details see examples in toplink under directory broker.

  • Toplink Warning: session name not found in session.xml file!!!!

    Hi,
    I have been trying to run a JSF page to see whether or not my toplink implementation has worked and it appears that it hasn't. I am trying to pull an LOV from my database and have it reflect on my page as a drop down list. When I run, the drop down list component shows but it is empty. Please help. Below is the following errors/warnings I receive.
    BTW.. I am using JDeveloper V. 10.1.3.1
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Short,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Short)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Byte,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Byte)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Integer,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Integer)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Long,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Long)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Float,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Float)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Double,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(null,java.lang.Double)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ValidatorRule end
    WARNING: [ValidatorRule]{faces-config/validator} Merge(javax.faces.LongRange)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.DateTime,null)
    Sep 26, 2007 1:07:02 PM com.sun.faces.config.rules.ConverterRule end
    WARNING: [ConverterRule]{faces-config/converter} Merge(javax.faces.Number,null)
    Sep 26, 2007 1:07:02 PM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    Sep 26, 2007 1:07:03 PM oracle.adf.share.security.providers.jazn.JAZNContextHelper setLoginConfigSystemProperty
    FINE: Setting JAZN Config property ...
    Sep 26, 2007 1:07:03 PM oracle.adf.share.security.providers.jazn.JAZNSecurityContext getUserPrincipal
    INFO: ---- JAZNSecurityContext.getUserPrincipal(): NULL
    Sep 26, 2007 1:07:04 PM oracle.adfinternal.view.faces.application.ViewHandlerImpl _checkTimestamp
    INFO: ADF Faces is running with time-stamp checking enabled. This should not be used in a production environment. See the oracle.adf.view.faces.CHECK_FILE_MODIFICATION property in WEB-INF/web.xml
    [TopLink Warning]: 2007.09.26 01:07:07.029--Could not find the session with the name [default] in the session.xml file [META-INF/sessions.xml]
    Sep 26, 2007 1:07:07 PM com.evermind.server.ejb.logging.EJBMessages logException
    SEVERE: [DRPublicFacade:public java.util.List oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
    javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
    java.lang.NullPointerException
         at oracle.toplink.util.SessionFactory.acquireSession(SessionFactory.java:158)
         at oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov(DRPublicFacadeBean.java:570)
         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.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         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.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         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 DRPublicFacade_LocalProxy_6mgkpk6.findAllSystemLov(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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
         at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
         at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
         at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:160)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:542)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
         at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
         at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
         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:231)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         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:298)
         at java.lang.Thread.run(Thread.java:595)
    javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
         at com.evermind.server.ejb.EJBUtils.getLocalUserException(EJBUtils.java:317)
         at com.evermind.server.ejb.interceptor.system.AbstractTxInterceptor.convertAndHandleMethodException(AbstractTxInterceptor.java:67)
         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 DRPublicFacade_LocalProxy_6mgkpk6.findAllSystemLov(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 oracle.adf.model.binding.DCInvokeMethod.invokeMethod(DCInvokeMethod.java:507)
         at oracle.adf.model.binding.DCDataControl.invokeMethod(DCDataControl.java:1795)
         at oracle.adf.model.generic.DCGenericDataControl.invokeMethod(DCGenericDataControl.java:248)
         at oracle.adf.model.binding.DCInvokeMethod.callMethod(DCInvokeMethod.java:219)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.doIt(JUCtrlActionBinding.java:1289)
         at oracle.adf.model.binding.DCDataControl.invokeOperation(DCDataControl.java:1802)
         at oracle.adf.model.generic.DCGenericDataControl.invokeOperation(DCGenericDataControl.java:266)
         at oracle.adf.model.adapter.AdapterDCService.invokeOperation(AdapterDCService.java:318)
         at oracle.jbo.uicli.binding.JUCtrlActionBinding.invoke(JUCtrlActionBinding.java:627)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.invokeMethodAction(JUMethodIteratorDef.java:160)
         at oracle.jbo.uicli.binding.JUMethodIteratorDef$JUMethodIteratorBinding.initSourceRSI(JUMethodIteratorDef.java:542)
         at oracle.adf.model.binding.DCIteratorBinding.callInitSourceRSI(DCIteratorBinding.java:1421)
         at oracle.adf.model.binding.DCIteratorBinding.getRowSetIterator(DCIteratorBinding.java:1404)
         at oracle.adf.model.binding.DCIteratorBinding.setRangeSize(DCIteratorBinding.java:2642)
         at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:2487)
         at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2260)
         at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:99)
         at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:73)
         at oracle.adf.controller.v2.lifecycle.Lifecycle$8.execute(Lifecycle.java:210)
         at oracle.adf.controller.v2.lifecycle.Lifecycle.executePhase(Lifecycle.java:116)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:33)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener$4.after(ADFPhaseListener.java:331)
         at oracle.adf.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:94)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:254)
         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:231)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl._doFilterImpl(AdfFacesFilterImpl.java:200)
         at oracle.adfinternal.view.faces.webapp.AdfFacesFilterImpl.doFilter(AdfFacesFilterImpl.java:122)
         at oracle.adf.view.faces.webapp.AdfFacesFilter.doFilter(AdfFacesFilter.java:106)
         at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:162)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:619)
         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:298)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.lang.NullPointerException
         at oracle.toplink.util.SessionFactory.acquireSession(SessionFactory.java:158)
         at oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov(DRPublicFacadeBean.java:570)
         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.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         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.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         ... 56 more

    Hi,
    I would concentrate on
    SEVERE: [DRPublicFacade:public java.util.List oracle.drat.datamodel.DRPublicFacadeBean.findAllSystemLov()] exception occurred during method invocation: javax.ejb.EJBException: java.lang.NullPointerException; nested exception is: java.lang.NullPointerException
    Alternatively, there is TopLink forum
    TopLink/JPA
    Frank

  • How to update session.xml file

    any body have an idea about how to update the session.xml file using Toplink workbench Editor.
    I have an Jar file which contains the session.xml file , so i am trying to update the session.xml file with me database details.

    any body have an idea about how to update the
    session.xml file using Toplink workbench Editor.
    For 10.1.3, see "Sessions Configurations and the sessions.xml File" in the TopLink Developer's Guide: http://www.oracle.com/technology/products/ias/toplink/doc/10131/main/_html/sesun002.htm#CACIGEBC
    For 10.1.2, see "OracleAS TopLink Sessions Editor" in the TopLink Mapping Workbench Guide: http://download.oracle.com/docs/cd/B14099_16/web.1012/b15900/tscedit.htm

Maybe you are looking for