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

Similar Messages

  • How do I edit data source when opening Lumira project on a new PC?

    I have been working on a project in Lumira for a client of the company I work for. The idea is that I build the Lumira project for them (with the goal of them being able to analyse data from their logistics department), and I then hand the completed project over to them, from which point they are able to update the data on a weekly basis.
    I have been updating the data (which is derived from an excel spreadsheet) for a number of weeks with no issue at all, and the client is thoroughly impressed with it, and with the capabilities of Lumira. The problem is that when I want to share the project with the client, ie. by allowing them to open it and edit it on their own computers I am unable to do so.
    This is the procedure I follow:
    From My Documents, I open the folder named SAP Lumira Documents, select the project in question, and email it to the intended recipients.
    From there, I instruct the recipients to open SAP Lumira, select File>Import to folder, and then select the project.
    When the project is open, it works and interacts perfectly, but at this point, I want the client to be able to do the following:Select Data>Edit; to allow them to specify a new data source (which is identical to the one upon which the project is built), and therefore be able to update the data as and when necessary, without my help.
    When I do this, however, I receive the following error:
    Unable to find file "File Name & Location"
    How do I work my way around this? I could rebuild the project on a computer at the client’s premises, but the idea is that many people are able to use this project, and refresh the data. So it is obviously impractical for me to rebuild this multiple times. I would really appreciate your assistance with this.

    To elaborate on Tammy's idea, you could use for instance C:\Users\Public at the place where you initially put your Excel file to make sure this is found on the target computer. I would consider this a workaround though.
    Or for Lumira documents that you already designed, change the location of the Excel file and use Data/Edit from your computer, then save the Lumira documents before sending them to the target audience. 
    From my humble opinion, the product should allow to use Data/Edit and change the source file even if the initial file path is no longer found. This should be possible for your target audience.
    Antoine

  • We couldn't refresh the connection 'OData Assignements Data' Error : While access the project overveiw report in brower and in Excel 2013.

    Hello All,
    Facing this issue while opening the ProjectOverview report in Browers or in Excel 2013.
    Snapshot is attached for furthur reference.
    Error in Excel when clicking on Refresh All, it shows the information to retieving the data but after few moments it prompt this error.
    Second snapshot occurs while opening the report in browser.
    Kindly help.
    REGARDS DANISH DANIE

    Dear Paul,
    1st Query,
    Ans: As I'm using Project Server Permission mode and im logged with the user who is the member of admin group and in administrator group 'Access
    Project Server Reporting Service' is ticked on. So, the concern regarding permission is resolved.
    2nd Query,
    Ans: Im unable to find Project Web App Permission for Excel Web App Refresh' feature in site setting
    of PWA. 
    Snapshot is attached when trying to open report in browser.
    to resolve this followed below mentioned URL but unsuccessfull result
    http://support.microsoft.com/kb/2769345/en-us
    Still facing same issue, issue is not resolved kindly help/suggest.
    Note: Im using Project Server 2013 not Project Online 2013. 

  • 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.

  • ConnectionCacheName not read from data-sources.xml

    I created a simple web application to test the use of the ConnectionCacheBean (from the jdbc 3.0 examples page). I read through the code and some other articles regarding data sources and noted that you "should" be able to set the connection cache name and caching enabled, as well as failover support, even in oc4j 9.0.4 and 10.1.2. I tried this (at least the first two), and it would NOT set the cache name.
    The data-sources.xml entry was the same as in the one documented here:
    http://www.oracle.com/technology/tech/java/newsletter/articles/oc4j_data_sources/oc4j_ds.htm
    What gives?
    Also, I tried to simulate the database going down - I killed all the sessions rather than doing a shutdown, but anyway... even with a connection cache property of validatelogin (i think that's the name) to true, and a refresh of invalid connections (they'd all be invalid if I killed them), it would only reactivate ONE SESSION. If I refreshed ALL Sessions, then it would do 9 of the 10 sessions (10 being my initial cache limit).
    Any ideas?
    I can post the code if that is an issue.

    A response I got back from Frances Zhao regarding the two issues that I experienced was:
    Issue#1: Cannot set the connectionCacheName via data-sources.xml
    1. This is very likely because of an OC4J bug that affects the actual order of
        setting each <property> specified in data-sources.xml.  The connection cache
        in OracleDataSource requires the cache-name property be set after the cache
        is enabled; but OC4J may not always follow this order, causing the name
        to be null.  If you really need the cache name, you have to do it in the code
        for now.
    Issue#2: Can't refresh the invalid connections
    2. These are known issues in the Oracle JDBC driver in both 10.1.0.4 and
        10.2.0.1.  The fix for the REFRESH_INVALID case will be in the next
        patch release for both 10.1.x and 10.2.x; the fix for the REFRESH_ALL
        case will come later.

  • How Get JDev to Omit data-sources.xml from every .war deployment

    I want a global data-sources.xml file to be used for all deployments. I do not want a copy of my standard data-sources.xml file to be included in every single deployment. I want my global data-sources.xml file to reside in the standard J2EE location of:
    oc4j_home/oc4j_instance_name/j2ee/config/data-sources.xml
    JDeveloper, for whatever reason, includes a data-sources.xml into every .war file. How do we configure JDev to omit the data-sources.xml? How do we set up JDev to automatically configure the .xml files (orion-application.xml, application.xml, etc) to use the global data-sources.xml? I do not want to manually do this for every deployment.
    I've been trying hard to find the answer in JDev online help and other OAS manuals. I read everywhere that I can have a "global" data-sources.xml, but I find no way to easily configure JDeveloper to do it this way.
    I would be grateful for you insights/help.
    thanks
    -Paul Janda

    I found the answer:
    In JDeveloper, Go to Tools | Preferences
    Select Deployment
    Uncheck the option for "Bundle default data-sources.xml during deployment"
    Upon the next generation of the .ear or .war file (including the next deployment), data-sources.xml will be omitted.
    -paul janda

  • 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).

  • How to make JDev leave out data-sources.xml

    Greetings
    I would like to have jdeveloper leave out data-sources.xml. I have my test server setup with all the data-sources so this isn't needed. All it does is create bunches of data sources on my server then I go in and delete them.
    Is there a way somewhere in jdeveloper or my deploy profiles were I can tell it to leave this file out so it just uses the ones I have already setup on the server?
    thanks
    troy

    I think you can control this by going to tool->Embedded OC4J Preferences->Data sourcesI think the original author meant to ask for a way to exclude data-sources.xml when deploying to an external application server.
    So far the only way I've found out to work is to manually blank the 'dataSourcesPath' field in "Configure Application" dialog before actual deployment takes place.

  • How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)

    How to set JDBC Data Sources in Oracle MapViewer for Oracle database 12c Release 1 (12.1.0.1)?
    The following is my configuration in the conf\mapViewerConfig.xml:
    <map_data_source name="mvdemo12"
    jdbc_host="127.0.0.1"
    jdbc_sid="orcl12c1"
    jdbc_port="1522"
    jdbc_user="mvdemo"
    jdbc_password="7OVl2rJ+hOYxG5T3vKJQb+hW4NPgy9EN"
    jdbc_mode="thin"
    number_of_mappers="3"
    allow_jdbc_theme_based_foi="true"
    editable="true"/>
    <!--  ****  -->
    But it does not work.
    After use "sqlplus mvdemo/[email protected]:1522/pdborcl", it connected to the Oracle database 12c.
    Does anyone know it?
    Thanks,

    For 11.1.1.7.1 use the syntax for jdbc_sid, i.e.
    //mypdb1.foo.com as described in the README,
    - MapViewer native (non-container) data sources can now use database service name in place of SID. To supply a db service name, you will use the same jdbc_sid attribute, but specify the service name with double slashes in front, such as follows:
      <map_data_source name="myds"
        jdbc_host="foo.com"
        jdbc_sid="//mypdb1.foo.com"
        jdbc_port="1522"
      />
    For 11.1.1.7.0 use a container_ds instead.
    i.e. instead of using
    <map_data_source name="my_12c_test"
                       jdbc_host="mydbinstance"
                       jdbc_sid="pdborcl12c"
                       jdbc_port="1522"
                       jdbc_user="mytestuser"
                       jdbc_password="m2E7T48U3LfRjKwR0YFETQcjNb4gCMLG8/X0KWjO00Q="
                       jdbc_mode="thin"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    use
      <map_data_source name="my_12c_test"
                       container_ds="jdbc/db12c"
                       number_of_mappers="6"
                       allow_jdbc_theme_based_foi="false"
                       editable="false"
       />
    In my case the Glassfish 3.1.2.2 JDBC connection pool definition was
    Property
    url  jdbc:oracle:thin:@mydbinstance:1522/pdborcl12c.rest_of.service.name
    Uncheck the Wrap JDBC Objects option in Advanced panel, i.e. the Edit JDBC Connection Pool Advanced properties page.
    Add a JDBC resource for that newly created pool
    Use that in mapviewerconfig.xml as above

  • 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>

  • How to use many data sources

    I am accessing the data base in my jsp using the datasource in data-sources.xml. I need to use more number of schema's in my database and I am in need of using more number of datasources.
    How to create the datasources ? Is it enough , if I specify my datasource in
    the data-sources.xml alone or do I need to make any other changes in the other configuration files.
    Thanks.

    Add <datasource/> elements to data-sources.xml.

  • 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

  • Data-sources.xml instead of bc4j.xcfg

    Please give me some direction on how I can configure my Application Module to use JNDI lookup of my data-sources.xml file instead of using the bc4j.xcfg file. I know there is a way but I need a step by step process to get this done through configuration while developing in the IDE.

    Can you please tell how did you solve that. I have similar problem
    Kavitha

  • Problem connecting Mapview to Oracle Database(Add a data source)

    I’m a neophyte to the mapviewer and I’ve run into a very primitive problem. I can’t view the sample maps in the mapviewer. I can’t connect to the database where I've loaded the sample oracle data (mvdemo.zip) to the database. I have the mapviewer running. I’ve checked my tnsnames to confirm the connection used by other oracle application (sql) and confirmed that the spatial files exists on the database.
    Below is my platform inform
    Platform
    For MapView
    We have Java- j2se_1.4.2_09
    My local system is Microsoft Windows 2000.
    Connect to Oracle 9.2.0.4.0 and 10.1.0.3.1 on separate machines
    Here is my connection infor:
    <?xml version="1.0" standalone="yes"?>
    <non_map_request>
    <add_data_source
    name="mvdemo"
    jdbc_host="medea"
    jdbc_port="1521"
    jdbc_sid="orcl"
    jdbc_user="gda_stock"
    jdbc_password="!********"
    jdbc_mode="thin"
    number_of_mappers="3" />
    </non_map_request>
    Here is the error I received:
    <?xml version="1.0" encoding="UTF-8" ?>
    <oms_error>Message:[MapperConfig] cannot add map data source. Fri Aug 26 17:28:04 CDT 2005 Severity: 0 Description: at oracle.lbs.mapserver.core.MapperConfig.addMapDataSource(MapperConfig.java:583) at oracle.lbs.mapserver.MapServerImpl.addMapDataSource(MapServerImpl.java:315) at oracle.lbs.mapserver.oms.addDataSource(oms.java:1241) at oracle.lbs.mapserver.oms.doPost(oms.java:409) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:810) at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:322) at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:790) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270) at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112) at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186) at java.lang.Thread.run(Unknown Source)</oms_error>

    Hi, is there anyone here who can help me.....thanks in advance!

  • 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

Maybe you are looking for

  • Multiple Hotspots in a ALV Grid single column

    Hi Experts, My ALV Grid report output looks like below.... If you observe below output, column 3 has multiple documents each one separated by ' ; '. Now, I would like to assign hotspot on each documents like DOC1, DOC2, DOC3, etc. Heading#:         

  • Slow first connection using Oracle 10g xe and Visual Studio 2008

    {noformat} Good day, I'm slightly unaccustomed to using forums, so bear with me. My initial connection to the Oracle database takes approximately 30 seconds. It seems to be waiting for a connection before timing out and trying another connection whic

  • No Reporting

    We have recently upgraded the database side of Designer 9i to Oracle Database 9i and, in the mean time, have lost the ability to run reports. The reporting option is still within Designer and can be opened. Also, all parameters for reports can be ent

  • Can i install Adobe Premiere Pro 7 -AND- Premiere CS4 TOGETHER on XP?? NEED THIS FOR TESTS!!

    Hello volks, i have a question. I want to install Adobe Premiere 7 AND Adobe Premiere CS 4 TOGETHER on Windows XP. I need this for testing somethings. Is this possible, or make this more problems i need?? Thank you a lot for help! Best regards Wander

  • Day 2, Exercise 4 Error

    I am getting an error on exercise 2.4 when trying to run the application with the network monitor enabled. Copied directly it reads:  [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type=