Factory-class in data-sources.xml managed-data-source

OracleAS_1\j2ee\home\config has
data-sources.xml
Using managed-data-source.
For connection-pool, connection-factory factory-class If I use OracleDriver instead of OracleDataSource, what difference would it have? In terms of performance?
Thanks.

Oops, a case issue...
class="oracle.jdbc.pool.Oracle[b]OCIConnectionPool"

Similar Messages

  • OC4J data-source.xml other data base like postgresql

    Hi i need to use a DataSource in OC4J with other database (any), i am setting the data-source.xml like:
    <\datasource
    class="com.evermind.sql.DriverManagerDataSource"
    name="DSPropiedades" location="jdbc/DSPropiedadesCoreDS"
    xa-location="jdbc/xa/DSPropiedadesXADS"
    ejb-location="jdbc/DSPropiedades"
    connection-driver="com.borland.datastore.jdbc.DataStore"
    username="sample"
    password="sample"
    url="jdbc:borland:dslocal:D:/seguridaddb/seguridad.jds"
    inactivity-timeout="300"
    />
    and i had put the database.jar in the OC4j directory's
    D:\ora10i\jdbc\lib
    D:\ora10i\j2ee\home\lib
    D:\ora10i\lib
    but i always obtain the same error
    Error initializing data-source 'jdbc/DSPropiedadesCoreDS': DriverManagerDataSource Driver 'com.borland.datastore.jdbc.DataStore' not found

    Liliana,
    From the [lack of] information you have posted, I am assuming you are using OC4J stand-alone version 10g -- but I'm not sure because I couldn't find any of those details in your post. It always helps to include version and platform information.
    If my assumption is correct, then the default location for third-party JAR files (including your JDBC driver) is the
    "j2ee/home/applib"
    subdirectory of the OC4J installation. For example, on my Windows XP machine (again, I couldn't see what platform you are using, so I am assuming it is also Windows), the actual path is:
    C:\OC4J_10_0_3\j2ee\home\applib
    If you want to see other examples of "data-sources.xml" files (apart from the one that comes with OC4J), try searching the following Web sites:
    http://www.orionserver.com
    http://www.orionsupport.com
    http://kb.atlassian.com
    Good Luck,
    Avi.

  • Data loss in Manage data in HFM 11.1.2. Advice needed

    Dear All,
    Yesterday while using the Manage data function in HFM we encountered a large amount of data loss. Let me explain.
    Our goal was to copy Non Financial accounts Entity Currency data from one budget scenario to another budget scenario. See the below screenshot. While this happened correctly an unintended consequence was that the financial accounts data got erased. So the budgeting team had to end up redoing their budgets again. My question is when we are telling the system to only copy the Non Financial data why would the system even touch the Financial data?? This does not seem right at all.
    Later when I was doing testing I changed the above Replace to a Merge and then the system only changed the Non Financial data and kept the Financial data intact. If this is indeed how it works it is very confusing to say the least and does not make sense.
    The point being that when we are specifying the account to be replaced or merged why does the system even touch the non-specified accounts? Is this a system bug or its just the way it works? Will appreciate an insight please.

    Hi there,
    Then I will agree with Eric... and I have also just noticed that you have used the Replace option in your screen which definitely has cleared all the accounts before loading the new data.
    For me the best approach is to use the clear functionality to delete any previous data from the Non-Fin accounts and then use the Copy functionality with Merge to copy the data.
    Regards,
    Thanos

  • JMS Adapter - data conversion xml- structured data has extra characters

    Further to [Using MQ / JMS adapter with legacy system to talk to SAP;, I am using the Module tab on my receiver JMS Adapter to convert the xml payload to a structured format. It converts to the mainframe ebcdic code set.  I am on PI 7.11, and the MQ Series (which JMS interacts with) is 6.0.  The code I have is comparable to the wiki:[http://wiki.sdn.sap.com/wiki/display/XI/HowTo...ContentconversionmodulewithJ2EEJMS+adapter], i.e. the example at the very bottom of that article.
    The issue we are having is that an extra character gets inserted at the end of each structure (within the message), i.e. our message contains 4 structures, but when we view the structured data on our mainframe system (that arrives from PI), the entire message is shifted by 4 characters... by 1 after the end of each structure.  On the mainframe, this extra character appears as '.'. It must be an end-of-line or something...
    Has anyone had the same issue?  If so, were you able to resolve? I could probably set up my message data type to just be one big declare (thus eliminating the use of structures within it), but that is something I'd rather not do.
    We are in the process of reviewing Note 856346, #6 but not sure if it applies.
    Regards,
    Keith

    Hi,
    check localejbs/SAP XI JMS Adapter/ConvertMessageToBinary Local Enterprise Bean convert_XI2Bin
    this is not CallJMSService.
    And also check the receiver Structure, if it is falt structure its ok, else
    see the below link if it has the complex structure , how to handle..
    See the below links
    /people/alessandro.guarneri/blog/2006/01/04/jms-sender-adapter-handling-too-short-lines
    /people/william.li/blog/2006/11/13/how-to-use-saps-webas-j2ees-jms-queue-in-exchange-infrastructure
    content conversion
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/f02d12a7-0201-0010-5780-8bfc7d12f891
    Regards
    Chilla..

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Shared-library in OC4J - load data-sources.xml throws error

    H
    To share common libraries (framework.jar, JAXB jars, axis.jar, log4j, tibco*.jars)
    across application(app1/app2/app3) in the OC4J container.
    Currently all these jars are loaded with common jars separately application, a total 3 common
    footprints of these jars.
    1 - Placed all common jars under $J2EE_HOME/shared-lib folder, updated server.xml in $J2EE_HOME/config.
    2 - Connecting Tibco queues using generic JMS resource adapter (connectors - JCA).
    3 - Connecting to databases using data-sources.xml.
    4 - With following entries in orion-application.xml
    <imported-shared-libraries>
    <import-shared-library name="my.shared.libraries" max-version="1.0"/>
    </imported-shared-libraries> ---> Entry 1
    <connectors path="oc4j-connectors.xml"/> ---> Entry 2
    <data-sources path="data-sources.xml"/> ---> Entry 3
    Getting the following error while deploying the code.
    Error occurred initializing connectors. Exception is: Exception creating Manage
    d DataSource ConnectorPropertySet. Exception: Error setting up resource adapter
    for embedded resource archive inside application 'deployGood1'. ManagedConnecti
    onFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl
    ' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML'
    for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactor
    yImpl for embedded resource archive inside application 'deployGood1'. Exception
    is: java.lang.reflect.InvocationTargetException
    However orion-application.xml
    Option A
    Entry 1 (imported-shared-libraries)
    Entry 2 (connectors)
    Works perfectly fine - however the Service complains of not finding the datasource JNDI
    5 - If all jars are loaded separately with each application
    With following entries in orion-application.xml
    <library path="C:/soft/jar/framework.jar" />
    <library path="C:/soft/jar/log4j-1.2.14.jar" />
    <library path="C:/soft/jar/axis.jar"/>
    <library path="C:/soft/jar/commons-discovery-0.2.jar"/>
    <library path="C:/soft/jar/commons-logging-1.0.4.jar"/>
    <library path="C:/soft/jar/fscontext.jar"/>
    <library path="C:/soft/jar/gjra.jar"/>
    <library path="C:/soft/jar/jax-qname.jar"/>
    <library path="C:/soft/jar/jaxb-api.jar"/>
    <library path="C:/soft/jar/jaxb-impl.jar"/>
    <library path="C:/soft/jar/jaxb-libs.jar"/>
    <library path="C:/soft/jar/jaxb-xjc.jar"/>
    <library path="C:/soft/jar/jaxrpc.jar"/>
    <library path="C:/soft/jar/jmxri.jar"/>
    <library path="C:/soft/jar/jmxtools.jar"/>
    <library path="C:/soft/jar/namespace.jar"/>
    <library path="C:/soft/jar/providerutil.jar"/>
    <library path="C:/soft/jar/relaxngDatatype.jar"/>
    <library path="C:/soft/jar/saaj.jar"/>
    <library path="C:/soft/jar/tibcrypt.jar"/>
    <library path="C:/soft/jar/tibjms.jar"/>
    <library path="C:/soft/jar/tibjmsadmin.jar"/>
    <library path="C:/soft/jar/tibjmsapps.jar"/>
    <library path="C:/soft/jar/tibrvjms.jar"/>
    <library path="C:/soft/jar/wsdl4j-1.5.1.jar"/>
    <library path="C:/soft/jar/wss4j-1.5.2.jar"/>
    <library path="C:/soft/jar/xercesImpl.jar"/>
    <library path="C:/soft/jar/xmlsec-1.4.0.jar"/>
    <library path="C:/soft/jar/xsdlib.jar"/> -------> Entry 1
    <connectors path="oc4j-connectors.xml"/> ---> Entry 2
    <data-sources path="data-sources.xml"/> ---> Entry 3
    This configuration works perfectly fine as expected, but this configuration defeats the
    purpose of shared-library
    Thanks
    sunder

    H
    To share common libraries (framework.jar, JAXB jars, axis.jar, log4j, tibco*.jars)
    across application(app1/app2/app3) in the OC4J container.
    Currently all these jars are loaded with common jars separately application, a total 3 common
    footprints of these jars.
    1 - Placed all common jars under $J2EE_HOME/shared-lib folder, updated server.xml in $J2EE_HOME/config.
    2 - Connecting Tibco queues using generic JMS resource adapter (connectors - JCA).
    3 - Connecting to databases using data-sources.xml.
    4 - With following entries in orion-application.xml
    <imported-shared-libraries>
    <import-shared-library name="my.shared.libraries" max-version="1.0"/>
    </imported-shared-libraries> ---> Entry 1
    <connectors path="oc4j-connectors.xml"/> ---> Entry 2
    <data-sources path="data-sources.xml"/> ---> Entry 3
    Getting the following error while deploying the code.
    Error occurred initializing connectors. Exception is: Exception creating Manage
    d DataSource ConnectorPropertySet. Exception: Error setting up resource adapter
    for embedded resource archive inside application 'deployGood1'. ManagedConnecti
    onFactory implementation class 'oracle.oc4j.sql.spi.ManagedConnectionFactoryImpl
    ' cannot be set up: Error setting JavaBean property 'managedDataSourceConfigXML'
    for ManagedConnectionFactory class 'oracle.oc4j.sql.spi.ManagedConnectionFactor
    yImpl for embedded resource archive inside application 'deployGood1'. Exception
    is: java.lang.reflect.InvocationTargetException
    However orion-application.xml
    Option A
    Entry 1 (imported-shared-libraries)
    Entry 2 (connectors)
    Works perfectly fine - however the Service complains of not finding the datasource JNDI
    5 - If all jars are loaded separately with each application
    With following entries in orion-application.xml
    <library path="C:/soft/jar/framework.jar" />
    <library path="C:/soft/jar/log4j-1.2.14.jar" />
    <library path="C:/soft/jar/axis.jar"/>
    <library path="C:/soft/jar/commons-discovery-0.2.jar"/>
    <library path="C:/soft/jar/commons-logging-1.0.4.jar"/>
    <library path="C:/soft/jar/fscontext.jar"/>
    <library path="C:/soft/jar/gjra.jar"/>
    <library path="C:/soft/jar/jax-qname.jar"/>
    <library path="C:/soft/jar/jaxb-api.jar"/>
    <library path="C:/soft/jar/jaxb-impl.jar"/>
    <library path="C:/soft/jar/jaxb-libs.jar"/>
    <library path="C:/soft/jar/jaxb-xjc.jar"/>
    <library path="C:/soft/jar/jaxrpc.jar"/>
    <library path="C:/soft/jar/jmxri.jar"/>
    <library path="C:/soft/jar/jmxtools.jar"/>
    <library path="C:/soft/jar/namespace.jar"/>
    <library path="C:/soft/jar/providerutil.jar"/>
    <library path="C:/soft/jar/relaxngDatatype.jar"/>
    <library path="C:/soft/jar/saaj.jar"/>
    <library path="C:/soft/jar/tibcrypt.jar"/>
    <library path="C:/soft/jar/tibjms.jar"/>
    <library path="C:/soft/jar/tibjmsadmin.jar"/>
    <library path="C:/soft/jar/tibjmsapps.jar"/>
    <library path="C:/soft/jar/tibrvjms.jar"/>
    <library path="C:/soft/jar/wsdl4j-1.5.1.jar"/>
    <library path="C:/soft/jar/wss4j-1.5.2.jar"/>
    <library path="C:/soft/jar/xercesImpl.jar"/>
    <library path="C:/soft/jar/xmlsec-1.4.0.jar"/>
    <library path="C:/soft/jar/xsdlib.jar"/> -------> Entry 1
    <connectors path="oc4j-connectors.xml"/> ---> Entry 2
    <data-sources path="data-sources.xml"/> ---> Entry 3
    This configuration works perfectly fine as expected, but this configuration defeats the
    purpose of shared-library
    Thanks
    sunder

  • Problem with embedded data-sources.xml and custom UserManager

    Hi all,
    Our application uses a custom UserManager, which is basically extended from the JDBC UserManager, declared as follows in orion-application.xml:
         <user-manager class="com.infocorpnow.a2g.security.oracle.A2GUserManager">
              <property name="table" value="pos.users" />
              <property name="userNameField" value="username" />
              <property name="passwordFiled" value="password" />
              <property name="dataSource" value="jdbc/A2GDS" />
              <property name="groupMemberShipTableName" value="pos.user_roles" />
              <property name="groupMemberShipGroupFieldName" value="role_name" />
              <property name="groupMemberShipUserNameFieldName" value="login_id" />
         </user-manager>
    Since we want to be able to deploy the application several times on the application server, and therefore have each deployment of the ear point to its own datasource (i.e. its own local "A2GDS"), we've found out how to embed data-sources.xml inside the EAR file we're deploying, and modify the orion-application.xml as follows:
         <data-sources path="./data-sources.xml" />
    And then place data-sources.xml in the same meta-inf folder as the orion-application.xml.
    This has worked fine when deploying to the standalone OC4J.
    Now when I try to deploy the exact same EAR file in Oracle 9iAS, and I get to the User Manager screen, the Custom User Manager does not show up correctly. It did show up prior to me embedding the data-sources.xml. Please help? This is fairly urgent.
    Thanks
    Jason

    I should also mention I'm using the Java Edition of 9iAS R2 (9.0.3 container) on Solaris.

  • rib-rms /application-deployments/rib-rms/data-sources.xml

    Hi,
    Support note 1314377.1 "Call To GetNextPublisher Service In RIB-RMS Fails With "Unable To Publish Message To JMS" Exception" says:
    Solution
    "The issue was resolved with the below suggestion:
    Modify $ORACLE_HOME/j2ee/<rib-rms>/application-deployments/rib-rms/data-sources.xml to have below entries and bounce the <rib-rms> instance:
    min-connections="10"
    max-connections="20"
    initial-limit="5"
    used-connection-wait-timeout="10"
    inactivity-timeout="10"
    login-timeout="0"
    connection-retry-interval="1"
    max-connect-attempts="3"
    validate-connection="true"
    validate-connection-statement="select count(*) from dual"
    num-cached-statements="10"
    time-to-live-timeout="-1"
    abandoned-connection-timeout="6"
    disable-server-connection-pooling="false"
    property-check-interval="2"
    lower-threshold-limit="20" "
    However it is not at all clear to me how to enter these elements in the data-sources.xml XML structure.
    I have searched OTN and Google for it but can't find a good/complete reference. E.g. http://download.oracle.com/docs/cd/B25016_08/doc/dl/web/B14012_02/datasrc.htm documents some of the above attributes, but not all.
    Not all attributes go into the same XML element in data-sources.xml.
    Can someone give an example of how to set this?
    Thanks,
    Erik
    Edited by: ErikYkema on Jul 19, 2011 4:29 PM

    Hi Erik,
    All of these are attributes to <connection-pool> tag.
    So it will ideally look like
    <connection-pool name="connectionPool" min-connections="10"  max-connections="20" >
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource"      user="RPM_ADAPTOR_AQ"
                   password="RPM_ADAPTOR_AQ"
                   url="jdbc:oracle:thin:@//+hostname+/RMS131K" >
              </connection-factory>
    Please modify the same are restart rib oc4j instance.
    Regards,
    PPS
    Edited by: ppskannan on Jul 19, 2011 8:19 PM
    Edited by: ppskannan on Jul 19, 2011 8:21 PM

  • Problem using JDBC (JNDI) DataSource and data-sources.xml w/ OC4J

    I have a JClient application developed in JDev X. It works fine when using a JDBC URL for the connection (which then writes the connection into the BC4J.xcfg files, one for each application module). However, I would like the app to retrieve the data source from the server's data-sources.xml file. However, when, on the configurations tab of the application module I set the connection type to JDBC DataSource, and give it the JNDI name, it does not work, either with the embedded OC4J or the stand-alone OC4J. Any suggestions???
    In the stand alone OC4J I verified that the data source exists (using java -jar admin.jar ormi://nemethzoltan3 admin welcome -application adatklinika -testDataSource -location jdbc/adatklinikaCoreDS) ... so the data source is defined in the data-sources.xml. Of course the error I get is JBO-30003.
    If I just try to "test" the data source in Jdeveloper (using the context menu of the app module, and setting it to use the adatklinikaCoreDS) I get a JNDI error: unable to lookup data source and at level 3 a "javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial". I checked, the data source is defined under tools->embedded OC4J properties->data sources.
    If I try to run the main form, simply nothing happens.
    Please help!!!

    Ok, figured out why running from jdeveloper wasn't working: the embedded OC4J server wasn't started (start it by running an html page from your project or something...and make sure you don't have a stand-alone oc4j running). AND more importantly it didn't have the library "embedded oc4j client" library included (project properties -> profiles -> development -> libraries)...which is needed for whatever reason.
    Now to try and get it working with the stand-alone OC4J...

  • How to add a data-source.xml to the project to config DB connections and to be SCM'ed

    I'd like to explicitly manage a data-sources.xml for my JSP + BC4J project.
    Any helps on getting the released Jdev to add a data-source.xml that would then
    be what the .ear deploys to OC4J?
    Thanks, curt

    I have a JSP + BC4J project:
    So far my naive experiments to explicitely add data-sources.xml to a
    project that is picked up by the deploy to .ear step and put in the
    root of the .ear have failed.
    Is this one of those gaps like the orion-application.xml file, that has no
    solution at present?
    Or is the back-door via adding an EJB component to my project, then deleting it??
    Thanks, curt

  • How to prevent data-sources.xml from being included in EAR

    I cannot get rid of the data-sources.xml file in my EAR file in the meta-inf folder.
    Deselecting the "Bundle Default data-sources.xml during deployment" in my preferences didn't have any effect. I also tried shutting down/restarting JDeveloper just in case it was cached.
    I also tried adding an exclude filter for data-sources.xml in my deploy profile for both Web files and WEB-INF/classes.

    The way I resolved this was to create the data-sources.xml, right click it, select Properties then uncheck Auto-update data sources.xml. That way it stays empty (hopefully).

  • [unixODBC][Driver Manager]Data source name not found, and no default driver

    Hi,
    I'm running
    Red Hat Linux 5, MySQL and BOXI 3.1
    I try and schedule a report in the CMC and the report fails with the error
    A database error occured. The database error text is: {Driver Manager} Data source name not found, and no default driver specified. (WIS 10901)
    I've went through the steps in the Bus Obj's Documentation outlining how to install the unixODBC (though this doco was for R2 - I'm not certain whether this install is needed for 3.1).  
    Error WIS 10901 details
    Database error: . Contact your administrator or database supplier+
    for more information. (WIS 10901)
                  The database that provides the data to this document has generated an error.
    Cause
                  Details about the error are provided in the section of the message indicated
                  +by the field code: .
                  Contact your BusinessObjects administrator with the error message
    Action
                  information or consult the documentation provided by the supplier of the
                  database.
    Any pointers suggestions on how to set up correctly the unixODBC will be looked into.
    Thanks for taking the time to view this post.
    Cheers

    Hi again Aravind,
    I hope you're not beginning to wish you had never answered that first question from me since it seems as if I'm now backing up the truck with regard to the entire question. If I'm asking too much from you let me know I don't wanna overstep the line with repect to what should and shouln't be asked in these forums'
    anyway I looked in that env.sh script. It was huge (pity I can't attach the file, I've appended it but it makes these threads somewhat lengthy)
    DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
        export DEFAULT_ODBCFILE
        +ODBC_HOME="$odbc"+
        export ODBC_HOME
    also
      # setup the mysql env variables
        if [ -d "$BOBJEDIR"/mysql ]; then
                # mysql env variables
    set up the odbc symlink to work around:*
    The DataDirect SQL Server ODBC driver on UNIX will not function properly under a*
    locale other than "en_US" due to strong dependencies on their locale files.*
                MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
                export MYSQL_UNIX_PORT
        We want to be able to source the config file multiple times.
    fi
    if [ -d "$BOBJEDIR"/tomcat ]; then
    set the JAVA_OPTS for tomcat
    I see what you were referring to earlier with
    if [ -d "$ODBC_HOME/locale" ]; then
          the javascript files are kept here
    The machine name
    The user name
    MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`The default registry
          if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
            ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
          fi
        fi
    Again cheers for your help in this matter.
    #!/bin/sh
    BOBJEDIR="/home/eberwick/BO_3_1/bobje/"
    export BOBJEDIR
    BODIR="`dirname $BOBJEDIR`/"
    export BODIR
    DEFAULTFILE="$
    check for existence of u flag, if it is there, turn it off.
    Set a flag so we don't source the environment more than once
    webi config file
    ccm.config"
    if [ -f "$DEFAULTFILE" ]; then
        . "$DEFAULTFILE"
    fi
    . "${BOBJEDIR?}setup/modify_ko_locale.sh"
    SOFTWARE=`uname -s`
    OBJECT_MODEL=`grep Platform $BODIR/setup/ProductID.txt | awk '{print $4;}'`
    [ -z "$OBJECT_MODEL" ] && OBJECT_MODEL=32
    SOFTWAREPATH=`grep SoftwarePath $BODIR/setup/ProductID.txt | awk '{print $3;}'`
    U_FLAG=0
    if [ X"$SOFTWARE" = "XHP-UX" ]; then
    unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
    raise the ulimits to max allowed
    undo that bug workaround from above
    figure out what architecture we're on
    now that we're localized, deal with unknown architecture
    we include English, as localization may have failed
    set the JDK variable
        if [ x`echo $- | grep "u"` != "x" ]; then
            set +u
            U_FLAG=1
        fi
    fi
    if [ x"$BOBJE_ENV_SOURCED" = x ]; then
        if [ -f "$setup/boconfig.cfg" ]; then
        HKEY_LOCAL_MACHINE="$setup/boconfig.cfg"
            export HKEY_LOCAL_MACHINE
        fi
        BOBJE_ENV_SOURCED="true"
        export BOBJE_ENV_SOURCED
        BOBJEVERSION="12.0"
        export BOBJEVERSION
        LANGWAS="$LANG"
        unset LANG
        LC_ALLWAS="$LC_ALL"
        unset LC_ALL
        ulimit -Sn `ulimit -Hn` # max file descriptors
        ulimit -S -c `ulimit -H -c` # max core file size
        ulimit -S -d `ulimit -H -d` # max data segment size
        ulimit -S -f `ulimit -H -f` # max file size
        ulimit -S -s `ulimit -H -s` # max stack
        ulimit -S -t `ulimit -H -t` # max CPU time
        LANG="$LANGWAS"; export LANG
        unset LANGWAS
        LC_ALL="$LC_ALLWAS"; export LC_ALL
        unset LC_ALLWAS
        case X"$SOFTWARE" in
            XLinux) SOFTWARELC="linux"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12" ;;
            XAIX)   SOFTWARELC="aix"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX=".12.0${SHAREDLIBSUFFIX?}"; CB1SYMLINKLIBSUFFIX=".12${SHAREDLIBSUFFIX?}";;
            XSunOS) SOFTWARELC="solaris"; SHAREDLIBSUFFIX=".so"; CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0"; CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
            XHP-UX)
                    SOFTWARELC="hpux";
                    if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
                            SHAREDLIBSUFFIX=".so";
                    else
                            SHAREDLIBSUFFIX=".sl";
                    fi
                    CB1LIBSUFFIX="${SHAREDLIBSUFFIX?}.12.0";
                    CB1SYMLINKLIBSUFFIX="${SHAREDLIBSUFFIX?}.12";;
        esac
        export SOFTWAREPATH
        export SOFTWARE
        export SHAREDLIBSUFFIX
        export CB1LIBSUFFIX
        export CB1SYMLINKLIBSUFFIX
        if [ "$SOFTWAREPATH" = "" ]; then
            echo "$UNKNOWNPLATFORM (unknown platform): $SOFTWARE"
            exit 1
        fi
        if [ -d "$BOBJEDIR"/jdk ]; then
          JAVA_HOME="$jdk"
          export JAVA_HOME
        fi
          JAVA_OPTS="-d$OBJECT_MODEL -Dbobj.enterprise.home=$
    fi
    setting AAHOME here so when CAD starts the value is set
    enterprise120 -Djava.awt.headless=true -Djava.net.preferIPv4Stack=false"
          if [ "$SOFTWARE" = "AIX" -o "$SOFTWARE" = "SunOS" -o "$SOFTWARE" = "Linux" -o "$SOFTWARE" = "HP-UX" ]; then
            JAVA_OPTS="$JAVA_OPTS -Xmx1024m -XX:MaxPermSize=256m"
          fi
          export JAVA_OPTS
        if [ -d "$Dashboard_Analytics_120" ]; then
            AAHOME="$Dashboard_Analytics_120"
            export AAHOME
        fi
        WCSDIR="$enterprise120/$SOFTWAREPATH/wcs/"
        export WCSDIR
        WCSBINDIR="$bin/"
        export WCSBINDIR
        WCSCOMPONENTDIR="$components/"
        export WCSCOMPONENTDIR
        BINDIR="$enterprise120/$SOFTWAREPATH/"
        export BINDIR
        LIBDIR="$enterprise120/$SOFTWAREPATH/"
        export LIBDIR
        PLUGINDIR="$enterprise120/packages/"
        export PLUGINDIR
        PLUGINDIST="$enterprise120/$SOFTWAREPATH/plugins/"
        export PLUGINDIST
        LOGDIR="$append the new valuelogging/"
        export LOGDIR
        if [ x"$BOE_LOGGER_ENVIRONMENT" = x ]; then
            BOE_LOGGER_ENVIRONMENT="-loggingPath $LOGDIR"
        else
            BOE_LOGGER_ENVIRONMENT="$BOE_LOGGER_ENVIRONMENT -loggingPath $LOGDIR"
        fi
        export BOE_LOGGER_ENVIRONMENT
        SCRIPTDIR="$enterprise120/generic/"
        export SCRIPTDIR
        JAVASCRIPTDIR="$setup/jscripts/"
        export JAVASCRIPTDIR
        MACHINENAME=`uname -n`
        export MACHINENAME
        removeUTF8SpecificsForKorean
        STRIPPEDMACHINENAME=`hostname | sed -e 's/\..*//'`
        export STRIPPEDMACHINENAME
        if [ x"$BOBJEUSERNAME" = x ]; then
          BOBJEUSERNAME=`id | sed -e "s|).\$||" -e "s|^.(||" `
          export BOBJEUSERNAME
        fi
        restoreUTF8SpecificsForKorean
        DEFAULT_REGFILE="$BOBJEDIR"setup/.defaultreg
        export DEFAULT_REGFILE
        REGFILE="$BOBJEDIR"data/.bobj
        export REGFILE
        BOE_REGISTRYHOME="$REGFILE/registry"
        export BOE_REGISTRYHOME
        DEFAULT_ODBCFILE="$BOBJEDIR"defaultodbc.ini
        export DEFAULT_ODBCFILE
        ODBC_HOME="$odbc"
        export ODBC_HOME
    the PID file location
        PIDDIR="$BOBJEDIR"serverpids
        export PIDDIR
        SQLRULEDIRECTORY="$LIBDIR"
        export SQLRULEDIRECTORY
        PATH="$BINDIR:$crpe/xvfb:$PATH"
        export PATH
        CRPEPATH="$enterprise120/$SOFTWAREPATH/crpe/"
        export CRPEPATH
        MWHOME="$mw/"
        export MWHOME
        BOBJEXVFBPATH="$xvfb/"
        export BOBJEXVFBPATH
        MWUSER_DIRECTORY="$once the crpe is in, we should exit if this file doesn't exist.
    Uncomment this to turn off Xvfb security and allow connections from
    everyone. 
    MW_XVFB_AC="1"
    export MW_XVFB_AC
    Use a seperate .Xauthority file.  Comment out this line if you want
    to use the user's .Xauthority file for storing the Xvfb authentication
    tokens.
    registry/"
        export MWUSER_DIRECTORY
        MWRT_MODE="professional"
        export MWRT_MODE
        MWREGISTRY=":$MWUSER_DIRECTORY/hklm_$
    Mainwin can deadlock unless this is set
    Prevents Mainwin from popping up dialogs in some situations, causing a deadlock
    variables merged from RAS
    XVFB Manager
    Environment Variables:
          MW_XVFB_EXE         = Name of the Xvfb exe.
                                Default is 'Xvfb'.
          MW_XVFB_DAEMON      = Name of the XvfbDaemon exe.
                                Default is 'XvfbDaemon'.
          MW_XVFB_DAEMON_PORT = Port number that Xvfb Daemon will listen too.
                                Default is 5222.
          MW_XVFB_DAEMON_HOST = Host on which the XvfbDeamon is running.
                                Default is Local host.
          MW_XVFB_DAEMON_XVFB = Number of Xvfb to run.
                                Default is '5'.
          MW_XVFB_DAEMON_DISPLAY = Starting display number for Xvfb.
                                Default is '1'.
          MW_XVFB_DAEMON_PROFILE = Path to the Security Profile for Xvfb.
                                Default is 'SecurityProfile'.
          MW_XVFB_DAEMON_TRACE = Set to turn on tracing information.
                                Default is undefined.
          MW_XVFB_DAEMON_DIE  = Turn off the exit code if no more connections.
                                Default is undefined.
          MW_XVFB_FONT = Locations from which to load font
    By this symbol being defined, the checking for a current set display is disabled.
    Set to turn on tracing info when defined.  Default is undefined.
    MW_XVFB_DAEMON_TRACE=defined
    export MW_XVFB_DAEMON_TRACE
    RAS Home
    .bin"
        export MWREGISTRY
        MWCORE_PRIVATE_DATA="$MWUSER_DIRECTORY/core_data"
        export MWCORE_PRIVATE_DATA
        if [ -f "$MWHOME"setmwruntime ]; then
            . "$MWHOME"setmwruntime
        fi
        MWNT_OLE_DOCS=true
        export MWNT_OLE_DOCS
        MWPRINTER_DPI=600
        export MWPRINTER_DPI
        MWVISUAL_CLASS="TrueColor"
        export MWVISUAL_CLASS
        if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
            MWTHREAD_STACK="200000"
        else
            MWTHREAD_STACK="FA000"
        fi
        export MWTHREAD_STACK
        MWFONT_DIR_PATH="$fonts/"
        export MWFONT_DIR_PATH
        MW_XVFB_DAEMON_FONT="$misc/"
        export MW_XVFB_DAEMON_FONT
        XAUTHORITY="$xvfb/.Xauthority"
        export XAUTHORITY
        MWDEBUG_LEVEL=0
        export MWDEBUG_LEVEL
        MWINVISIBLE_DISPLAY=1
        export MWINVISIBLE_DISPLAY
       MWNO_SIGCHLD_IGNORE=1
       export MWNO_SIGCHLD_IGNORE
       MWLOOK=motif
       export MWLOOK
            MW_XVFB_DAEMON_PROFILE="$BOBJEXVFBPATH/SecurityPolicy"
            export MW_XVFB_DAEMON_PROFILE
            MW_XVFB_DAEMON_IGNORE_DISPLAY="true"
            export MW_XVFB_DAEMON_IGNORE_DISPLAY
            if [ "$SOFTWARE" = "HP-UX" ]; then
                MW_XVFB_DAEMON_XVFB=10
            else
                MW_XVFB_DAEMON_XVFB=5
            fi
            export MW_XVFB_DAEMON_XVFB
            MWNO_FILE_LOCKING=true
            export MWNO_FILE_LOCKING
            MWNO_SIGNAL_CATCHING=true
            export MWNO_SIGNAL_CATCHING
        RASHOME="$enterprise120/$SOFTWAREPATH/ras/"
        export RASHOME
        LIBRARYPATH="$LIBDIR:$WCSCOMPONENTDIR:$PLUGINDIST/auth/secEnterprise:$enterprise120/$SOFTWAREPATH/crpe:$:$PLUGINDIST/desktop/CrystalEnterprise.Report:$enterprise120/$SOFTWAREPATH/ras:$
    May optionally be set to MALLOCMULTIHEAP=heaps:n[,considersize]
    where n is scaled to the number of CPUs (usually 2x).
    Setting to MALLOCMULTIHEAP=1 enables system defaults.
    setting MALLOCMULTIHEAP to 'considersize' fixes an AIX memory leak and significantly reduces the memory footprint.
    env variable to fix the default cpu affinity
    env variable to fix dlopen/dlclose behaviour to be more like ELF-based systems
    aix thread stack overflow guarding : won't catch if overflow is more than 4k, but better than nothing
    aix specific ulimit changes
    unset the LANG so that we don't get the localized version of 'unlimited' if the localized system messages are installed.
    undo that bug workaround from above
    set the aix thread scope to system (1:1)
    better core naming for aix 5
    Check if memory windows is enabled in the kernal parameters
    We will support memory windows, either through the "BOE120_HP_MEMWIN_ID" environment variable,
    or through the "BusinessObjectsEnterprise120" memory window key in /etc/services.window
    Use memory windows if available on HP-UX.
    For both HPUX Itanium and PA-RISC
    Reduce the number of arenas from 8 (default) to 1 (min) which solves memory blowup issue.
    Enable the thread local cache to compensate.
    http://www.docs.hp.com/en/B2355-60130/malloc.3C.html
    mysql/lib"
        if [ "$SOFTWARE" = "AIX" ]; then
            LIBPATH="$LIBRARYPATH:$LIBPATH"
            export LIBPATH
            if [ x"$MALLOCMULTIHEAP" = x ]; then
                CRConfig env variable for DCP
                MALLOCMULTIHEAP="considersize"
                export MALLOCMULTIHEAP
            fi
            RT_GRQ=ON
            export RT_GRQ
            LDR_CNTRL=IGNOREUNLOAD
            export LDR_CNTRL
            AIXTHREAD_GUARDPAGES=1
            export AIXTHREAD_GUARDPAGES
            LANGWAS="$LANG"
            unset LANG
            LC_ALLWAS="$LC_ALL"
            unset LC_ALL
            ulimit -S -m `ulimit -H -m` # max memory
            LANG="$LANGWAS"; export LANG
            unset LANGWAS
            LC_ALL="$LC_ALLWAS"; export LC_ALL
            unset LC_ALLWAS
            AIXTHREAD_SCOPE="S"
            export AIXTHREAD_SCOPE
            Version=`uname -v`
            Release=`uname -r`
            if [ "$Version" -gt 4 ]; then
                CORE_NAMING=ON
                export CORE_NAMING
            fi
            AIXTHREAD_MUTEX_DEBUG=OFF
            export AIXTHREAD_MUTEX_DEBUG
            AIXTHREAD_COND_DEBUG=OFF
            export AIXTHREAD_COND_DEBUG
            AIXTHREAD_RWLOCK_DEBUG=OFF
            export AIXTHREAD_RWLOCK_DEBUG
        elif [ "$SOFTWARE" = "HP-UX" ]; then
            if [ "$SOFTWAREPATH" = "hpux_ia64" ]; then
                SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/IA64W.0/server"
            else
                SHLIB_PATH="$LIBRARYPATH:$SHLIB_PATH:$JAVA_HOME/jre/lib/PA_RISC2.0/server"
            fi
            export SHLIB_PATH
            MAX_MEM_WINDOW=`/usr/sbin/kctune | grep max_mem_window | awk '{print $2}'`
            if [[ "$MAX_MEM_WINDOW" != "0" ]]; then
                if [[ "$BOE120_HP_MEMWIN_ID" = "" && -r "/etc/services.window" && -x "/usr/bin/getmemwindow" ]]; then
                  BOE120_HP_MEMWIN_ID="`/usr/bin/getmemwindow BusinessObjectsEnterprise120`"
                  export BOE120_HP_MEMWIN_ID
                fi
                if [[ -x "/usr/bin/setmemwindow" ]]; then
                    if [[ "$BOE120_HP_MEMWIN_ID" != "" ]]; then
                        CE_CMDLINE_PREFIX="/usr/bin/setmemwindow -f -i $BOE120_HP_MEMWIN_ID "
                    fi
                fi
                export CE_CMDLINE_PREFIX
            fi
            export MARENA_OPTS=1:8
            export MCACHE_OPTS=100:8:0
        elif [ "$SOFTWARE" = "Linux" ]; then
            LD_LIBRARY_PATH="$LIBRARYPATH:$perl/lib/5.8.0/i386-linux-thread-multi/CORE:$LD_LIBRARY_PATH"
            export LD_LIBRARY_PATH
        else
            LD_LIBRARY_PATH="$LIBRARYPATH:$LD_LIBRARY_PATH"
            export LD_LIBRARY_PATH
        fi
        CRCONFIGFILE="$java/CRConfig.xml"
        if [ -f "$CRCONFIGFILE" ]; then
          CRConfig11="$CRCONFIGFILE"   
          export CRConfig11
        fi
        if [ -d "$ODBC_HOME/locale" ]; then
    set up the odbc symlink to work around:
    The DataDirect SQL Server ODBC driver on UNIX will not function properly under a
    locale other than "en_US" due to strong dependencies on their locale files.
          MYLOCALE=`locale | grep LC_MESSAGES | sed -e 's|LC_MESSAGES="||g' -e 's|"$||g'`
          if [ ! -d "$ODBC_HOME/locale/$MYLOCALE" ]; then
            ln -s "$ODBC_HOME/locale/en_US" "$ODBC_HOME/locale/$MYLOCALE"
          fi
        fi
    This was originally called TMPDIR, but now MainWin supports MW_TMPDIR, so we export MW_TMPDIR
    ADAPT00506764 tracks the original issue with TMPDIR/Essbase Connectivity
    MySQL now sets its TMPDIR in mysqlstartup.sh
    set the tmp dir locally, if the value is not already set.
        if [ x"$MW_TMPDIR" = x ]; then
          if [ ! -d "$BOBJEDIR"/tmp ]; then
            mkdir -p "$BOBJEDIR"/tmp
          fi
          MW_TMPDIR="$BOBJEDIR"/tmp
          export MW_TMPDIR
        fi
    Comment this out to turn off custom Solaris memory allocator
        if [ "$SOFTWAREPATH" = "solaris_sparc" ]; then
            LD_PRELOAD="libhoard.so.1"
            export LD_PRELOAD
    Need to set up 64-bit specific library path so that 64-bit processes will
    preload the 64-bit version of the memory allocator, and not the 32-bit version
            LD_LIBRARY_PATH_64="$enterprise120/solaris_sparcv9"
            export LD_LIBRARY_PATH_64
        fi
    setup the mysql env variables
        if [ -d "$BOBJEDIR"/mysql ]; then
    mysql env variables
                MYSQL_UNIX_PORT="$BOBJEDIR"mysql/mysql.sock
                export MYSQL_UNIX_PORT
        fi
    call env.sh from sub-directories (presumably from add-on installs)
        for dir in "${BOBJEDIR?}/setup"/*
        do
            if [ -r "${dir?}/env.sh" ]; then
                . "${dir?}/env.sh"
            fi
        done
    fi
    if [ X"$SOFTWARE" = "XHP-UX" ]; then
    check for existence of u_flag, if it is, turn it back on.
        if [ "$U_FLAG" = 1 ]; then
            set -u
        fi
    fi

  • Data-source.xml -  BaseResourceException - two phase commit

    Hi,
    I am seeing the following exception.   Please let me know how to fix this.
    thanks
    Sunita
    com.sap.engine.services.connector.exceptions.BaseResourceException: The resource "xxx" does not support two-phase commit and cannot be enlisted in the current transaction, because another non supporting two-phase commit resource is already enlisted for component "webContainer/applications/JavaEE/YY-TPRO/YYr-TPRO" in application "JavaEE/YY-TPRO". Only one of the enlisted resources is allowed to be non two-phase commit compliant.
    I am using JDBC 1.x datasource, and the .xml looks like this:
    <?xml version='1.0' encoding='UTF-8'?>
    <!DOCTYPE data-sources SYSTEM 'data-sources.dtd'>
    <data-sources>
      <application-name>JavaEE/yy-TPRO</application-name>
      <data-source>
        <data-source-name>xxx</data-source-name>
        <alias>jdbc/xxyyDB/TPRO</alias>
        <driver-name>OracleThin</driver-name>
        <init-connections>1</init-connections>
        <max-connections>20</max-connections>
        <max-time-to-wait-connection>60</max-time-to-wait-connection>
        <sql-engine>vendor_sql</sql-engine>
        <jdbc-1.x>
          <driver-class-name>oracle.jdbc.driver.OracleDriver</driver-class-name>
          <url>jdbc:oracle:thin:@sol-mercury:1521:hermes</url>
          <user-name>abcd</user-name>
          <password>abcd</password>
        </jdbc-1.x>
      </data-source>
    </data-sources>

    HI,
    Thanks for the response, I already went through these threads.
    My exception seems to be related to this - Problem with connection sharing if J2EE transaction is running
    and suggested solutions seems to be:
    The problem is caused when there is an inappropriate attempt to open a second connection in an active JTA transaction. There is either an attempt to get a second connection from an un-shareable non-XA DataSource or an attempt to get it from another non-XA DataSource. You have to:
    &#9679;     Use no more than one connection from this data source while the JTA transaction is active or
    &#9679;     Declare the data source as shareable, depending on your application logic.
    Question is, How can I make data source as shareable?? 
    This application worked fine in JBoss, weblogic and now we are trying to port it to NetWeaver.
    Is any of the above options are configurable in data-sources.xml?
    Thanks for your guidance and response.
    Surekha

  • Data-source.xml location

    Hi.
    I have a web application, so I included the file data-source.xml and orion-application.xml in the project.
    If I run the application through JDeveloper every thing is ok.
    But if I make a deploy in the server, I get the following error:
    javax.naming.NameNotFoundException: jdbc/smCoreDS not found
    I was checking the ear and war file and I realized that the data-sources and orion-appications.xml were in the war file instead of the ear file.
    How can I make to JDeveloper puts the file in the path META-INF in the ear.file instead of in the path WEB-INF\classes\META-INF in the war file
    regards

    To the web.xml of the web application add
    <resource-ref>
      <res-ref-name>jdbc/smCoreDS</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
    </resource-ref>

Maybe you are looking for

  • Cannot resize CS2 objects, please help!

    Hello, I'm new to this forum, hopefully someone here can help me.  I have worked with every other version of Photoshop and have never had this issue.  I just installed (and updated) Photoshop CS2 for Windows.  When I attempt to do a simple resize of

  • FM to create external document(URL)   FBL1n transaction

    Hi! I'm trying to create a URL link in FBL1n but I'm not been able to do it. I checked this link[ FM to create external document(URL)|FM to create external document(URL)] but I'm not getting the URL in the link list. I can create the link manually as

  • Sourcing and source of supply - when does it happen?

    Hi Experts, Can anybody tell me how the sourcing / source of supply assignment works in standard classic scenario? This is the situation; Classic scenario. Price and vendor (and maybe even info record nr) are known in the internal catalog. Is the sta

  • Javascript: Can't get background source

    I'm trying to create script that will allow the user (on mouse over) to choose from one of a several banners to appear while they are on site. First I'm not sure if my logic is correct, and that is a simpler way. but here is what I got the CSS loads

  • When I try to print to the 'xps' printer the system hangs

    I have tried to print a screen to 'xps' printer but the system seems to hang at the 'preparing to print stage