How do I select a data source for my webapp?

Wel, I'm obviously not looking in the right manual because this ought to be like falling off a log!
I have developed a web application in JDeveloper 10.1.3 and I'm deploying it (using a WAR file) to an OC4J container in OAS 10.1.3.
I have created a JDBC data source (JNDI location jdbc/bmra89) to connect to a 9.2.0.7 Oracle database and testing this through the interface is successful. The data source is associated with a new Connection Pool.
I ensure that a default data-sources.xml file is NOT bundled into my WAR file from JDeveloper (because the database I want to connect to from the OAS is different to the database I want to connect to from the deployed web app) so it should be looking for one it builds itself. In fact, data-sources.xml exists in the j2ee/<webapp_name>/config directory that contains the details of the data source and connection pool I created.
During deployment of the generated WAR file, I have chosen to Edit the Deployment Plan and in here I have entered the name of the data source (jdbc/bmra89) into the box labelled "defaultDataSource" and the boxes labelled "connectorsPath" and "dataSourcesPath" I've left empty.
It all deploys OK, but when I try to access a page I get the following error:
500 Internal Server Error
JBO-30003: The application pool (model.AppModuleLocal) failed to checkout an application module due to the following exception:
oracle.jbo.JboException: JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: oracle.jbo.DMLException, msg=JBO-26061: Error while opening JDBC connection.
     at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:1954)
So, any ideas where I'm going wrong? (I have to admit to being pretty lost with all this!)
Thanks,
Andy

Let's try to do this as easy as I'm capable of explaining.
Deploy the EAR to the Application server/OC4J standalone that you're trying to configure without modifying or removing any of the files in the EAR or WAR file and using all of the defaults.
Now start up the Application server control in you choice of web browser, my URL is http://localhost:8888/em.
After logging into the console select the "Adminstration" Link, and there will be List of Administration Tasks, one of which being the JDBC Resources under, Services.
After selecting the JDBC Resources "Go to Task" you will see 2 areas, Data Sources and Connection Pools. Somewhere in all of this you should see the jdev-connection-pool-bmra89, jdev-connection-managed-bmra89, and jdev-connection-native-bmra89.
I normally modify the jdev-connection-pool-xxxxx first to use the correct URL connection. IE- jdbc:oracle:thin:@localhost:1521:bmra89 to jdbc:oracle:thin:@138.51.128.100:1521:bmra89, changing localhost to a specific database IP address.
Then I'll click the Apply, and then go back and do the same to the jdev-connection-native-bmra89.
At this point you should be able to test the connections successfully, and get the Web Service to connect.
I hope I've covered it and that this helps, and you're not being thick. The data sources part of this stuff can be confusing.
Darren

Similar Messages

  • HOW TO CREATE SAP BW DATA SOURCES FOR TDS REPORT?

    Hi All,
    How to create generic data source for these fields?
    I have TDS report these names and field.
    Pls anyone guide me..
    PAN NUMBER
    J_1IPANNO
    VENDOR NAME (accont type - k)
    LIFNR
    POSTING DATE
    BUDAT
    WITHHOLDING TAX  BASE
    WT_QSSHH
    WITHHOLDING TAX  AMOUNT
    WT_QBSHH
    NAME OF WITHHOLD TAX TYPE
    WITHT

    Hi ,
    Thanks for giving info.
    How to add different tables in generic data source?
    PAN NUMBER
    J_1IPANNO
    J_1IMOVEND
    VENDOR NAME (accont type - k)
    LIFNR
    J_1IMOVEND
    POSTING DATE
    BUDAT
    RBKP
    WITHHOLDING TAX  BASE
    WT_QSSHH
    WITH_ITEM
    WITHHOLDING TAX  AMOUNT
    WT_QBSHH
    WITH_ITEM
    NAME OF WITHHOLD TAX TYPE
    WITHT
    WITH_ITEM

  • How to change the jta-data-source for projects in EJB 3

    Hi all,
    Sorry my english! :)
    I'm learning the EJB 3.0 and I'd like to change jta-data-source for projects in JDeveloper 10.1.3.1.
    I explain:
    In the same Application, I have a project with all Entitys and Session Beans. At the moment, the persistence.xml file is there with the jta-data-source tag.
    I make a new project with JUnit (Cactus) for test the EJB's that I'd like jta-data-source reference the test database.
    I make another project, with Servlet/JSP/JSF that use EJB's with interface and I'd like jta-data-source reference another database.
    What kind of changes (workaround) I could make to solve this problem?
    Thanks a lot!
    Luciano

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • How to create the generic data source for Labour costs report in BI (actual& plan costs)?

    Hello Guru's
    My requirement is to get the total labour costs in BEx analyzer.So i need to create custom DS for that. But i am not sure about the FICO tables which are having the Labour info..
    I'm having the GR10 report from R/3 sidepls look at the document. But i am not sure about the report, how that built,and giude me on the report.
    Please help on this to going forward.

    Hi,
    There are COOM data source which may suits your needs.
    please check data source
    0CO_OM_WBS_6
    0CO_OM_WBS_3
    Base tables are COSP and COSS.
    Check about coom data source, if not suitable then go for custom data source.
    About table cross verify with your source team.
    Thanks

  • How to Dynamically Select the Data File for a Report at Print Time

    How do you configure a Crystal report to ask for the file to be reported on as the report is being printed, and allow the user to browse to the file?
    The environment is Crystal Reports XI, SP3, with ODBC connection to Sage Timberline Office data version 9.7.  The client names their Payroll unposted time file each pay period, and also needs to report on their posted data file, depending on the time period for the report.  The client will need to select both the date range and the file name.
    I have created a SQL statement in Add Command in Database Expert, which prompts for a file name, but it does not let you browse to select a file on the computer.
    Therefore, in the prompts when they print the report, the parameter offers the user a default file name similar to the name they currently use, so they only have to change the payroll period end date in the supplied file name to run the report successfully.
    The client is concerned that sometimes a user will name their data file differently, and not know how to input the file name into the Crystal report prompt at print time.
    My research on dynamic prompts showed you can link to fields inside the data record, but I did not see a way to dynamically link to select the actual files used in the report.
    Another question is that the naming convention used by the SQL query is different than the basic Windows file name, but I think I can handle that issue.
    The actual file name is typically similar to:
    04-10-11 BP NEW.PRT
    However, in the SQL query, the record ID looks like:
    PRT_00-00-00 BP NEW__TIME
    The SQL Statement using a parameter is:
    SELECT
    "PRT_CURRENT__TIME"."Employee",
    "EMPLOYEE1"."Employee_Name",
    "PRT_CURRENT__TIME"."Date",
    "PRT_CURRENT__TIME"."Units",
    "PRT_CURRENT__TIME"."Job",
    "JOB1"."BP_Emps_Used"
    FROM
    "PRT_CURRENT__TIME" AS "PRT_CURRENT__TIME"
    INNER JOIN "JCM_MASTER__JOB" AS "JOB1"
    ON "PRT_CURRENT__TIME"."Job"="JOB1"."Job"
    INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE1"
    ON "PRT_CURRENT__TIME"."Employee"="EMPLOYEE1"."Employee"
    WHERE "JOB1"."BP_Emps_Used" = 1
    AND
    ("PRT_CURRENT__TIME"."Date" BETWEEN
    {?As of Date} - 41 AND {?As of Date})
    UNION ALL
    ( SELECT
    "PRT_NEW__TIME"."Employee",
    "EMPLOYEE2"."Employee_Name",
    "PRT_NEW__TIME"."Date",
    "PRT_NEW__TIME"."Units",
    "PRT_NEW__TIME"."Job",
    "JOB2"."BP_Emps_Used"
    FROM
    "{?NEWPRT}" AS "PRT_NEW__TIME"
    INNER JOIN "JCM_MASTER__JOB" AS "JOB2"
    ON "PRT_NEW__TIME"."Job"="JOB2"."Job"
    INNER JOIN "PRM_MASTER__EMPLOYEE" AS "EMPLOYEE2"
    ON "PRT_NEW__TIME"."Employee"="EMPLOYEE2"."Employee"
    WHERE "JOB2"."BP_Emps_Used" = 1
    AND
    ("PRT_NEW__TIME"."Date" BETWEEN
    {?As of Date} - 41 AND {?As of Date})

    Hello,
    Sorry you'll have to contact Sage on how to do this. We can help you once you get connected but we can't help you get around their connection methods.
    There is no Preview Set Database Connection method you can use in CR Designer. The Designer assumes you select it first or use the Set Location option before previewing or refreshing the data.
    If you are doing this in the Sage program itself we can't help you, you'll have to contact Sage for assistance.
    Sage is an OEM Partner they are responsible for supporting their product and CR. If they have issues help you then they will contact us directly for assistance.
    Thank you
    Don

  • How to find out data source for a datawindow?

    I have a datawindow and I want to identify it's datasource.
    I open this datawindow in pb. then in design menu, Data Source is disabled. It means not direct sql
    Then I go to Column Specific(small window), and right click on any space, in the popup menu, there is no 'Stored Procedure...'. It means not procedure.
    (see screeshot attached)
    then how to find out the data source for this datawindow?

    Hi Kent;
    1) I would use the RHMB on the DWO in the System Tree and select the "Edit Source" option.
    2) In the DWO source, locate the "TABLE ( ...." line
    3) If the next major line starts with "DATA(...." then this is an external DWO.
    4) If the next major line starts with "Retrieve(...." then this is a normal DWO (SQL or SP based).
    5) If the next major line starts with "webservice=(WSDL...." then this is a Web Service based DWO.
    Note: if your DWO has no #3, 4 or 5, then its external.
    HTH
    Regards ... Chris

  • How to find unsued Transfer Rules and Data Sources for a Master Table...??

    How to find unsued Transfer Rules and Data Sources for a Master Table...?? My requirement is i need to delete those Transfer rules and Data Sources which are not in use

    Hi
    Go to manage of the Text or attirbute of the master data object, see what are being loaded daily from there and delete the remaining.
    Cheer
    Ans as expected, Please reward

  • Urgent help: how to create data source for Weblogic RMI driver

    Hi,
    Please let me how to create data source for Weblogic RMI driver using Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

    DataSource will internally do that for you (It will use RMI internaly) . You
    dont have to worry about the details of using RMI driver. Thats what is a
    DataSource is for.
    sree
    "pradeep bhat" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree,
    What u have written is abt configuting Datasource for type 2 and
    4 drivers.
    But I want to know how to create data source for RMI driver. If
    I map this datasource to connection pool that is created for
    type 2 or 4 drivers, i don't understand why RMI drivers are
    required in first place. If i do map the data source to connection pool
    created
    for type 2 or 4 drivers then where i
    would not have used the URL as jdbc:weblogic:rmi and Driver as
    weblogic.jdbc.rmi.Driver.
    Hope u will help me.
    pradeep bhat
    "Sree Bodapati" <[email protected]> wrote:
    Hi Pradeep
    To create a connection pool you have to use a database driver not RMI
    driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
    your connection pool. Once the connection pool is created you can create
    a
    DataSource and use this datasource to connect to the database.
    The RMI driver can be used to get connections from the database via the
    connection pool and in that case you dont need a datasource. Recommended
    approach is to use a DataSource.
    hth
    sree
    "PRADEEP BHAT" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Please let me how to create data source for Weblogic RMI driver using
    Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new
    DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

  • Urgent help: how to create data source for Weblogic T3 driver

    Hi,
    Please let me how to create data source for Weblogic T3 driver
    using Administrator console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL
    as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
    Now comes the problem.. what do put in properties text area?
    I am talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a
    new DataSource mapping to the connection pool created from
    step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle database. Please
    help me.
    pradeep bhat

    Hi,
    Please let me how to create data source for Weblogic T3 driver
    using Administrator console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL
    as jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver.
    Now comes the problem.. what do put in properties text area?
    I am talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a
    new DataSource mapping to the connection pool created from
    step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle database. Please
    help me.
    pradeep bhat

  • How to generate data source for classification data

    Hi all,
    I would like to know how to generate a data source for material classification data .
    Thanks
    OJB

    http://www.mycomputerfiles.com/BW35_SAP/BW_expert_online_docs/Volume_02_2004/Issue_08_September/Understand%20the%20R3%20Classification%20System%20and%20How%20to%20Extract%20.doc
    http://affine.co.uk/cms/uploads/How_to_Extract_Classification_Data_into_BW.pdf
    hope it helps,
    Alex
    Edited by: Alex M on Jan 4, 2011 9:28 AM

  • How to configure data source for MS SQL 2005 Server.

    Good morning,
    While creating a data source for MS SQL 2005 Server, what are the values I should use for:
    Object Factory, DataSource Type, and CPDS Class Name values ?
    Thanks
    Seenu

    seenuFour wrote:
    Hi,
    I am working on a web application, the backend of which is a MS SQL 2005 server. I am creating a data source on the application server to manage the connection pool.
    Hence I need to give the following values while creating the data source:...
    Hence you need to provide some actual detail about what the context is.
    IIS runs "web applications" but your question would have no meaning in that context. On the other hand it might have some meaning if you were running Tomcat.

  • How to delete data source for Planning?

    I have removed some decommed planning cubes and apps but when I try to delete teh data sources for them in the planning config utility, it refuses, saying that the data sources are "associated with an application"?

    First delete the applicaiton from the link http://machinename:8300/HyperionPlanning/AppWizard.jsp
    after successful deletion, goto the configuration utility. click on the DSN Delete.
    Regards

  • Stored Procedure used as a data source for an Apex report

    Just wondering whether anyone has used a Stored Procedure as the data source for an Apex report. An option to select Stored Procedures(s) as the data source does not appear within the IDE (only displays Table, Views, Functions).
    Do you have to return the definition of the Stored Procedure via a function ... if so, how is this done ?
    Thank you.

    >
    Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already), and update your profile with a real handle instead of "920338".
    When you have a problem you'll get a faster, more effective response by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    With APEX we're also fortunate to have a great resource in apex.oracle.com where we can reproduce and share problems. Reproducing things there is the best way to troubleshoot most issues, especially those relating to layout and visual formatting. If you expect a detailed answer then it's appropriate for you to take on a significant part of the effort by getting as far as possible with an example of the problem on apex.oracle.com before asking for assistance with specific issues, which we can then see at first hand.
    Just wondering whether anyone has used a Stored Procedure as the data source for an Apex report. An option to select Stored Procedures(s) as the data source does not appear within the IDE (only displays Table, Views, Functions).
    Do you have to return the definition of the Stored Procedure via a function ... if so, how is this done ? When asking a question about "reports" it's firstly essential to differentiate between standard and interactive reports. Standard reports can be based on tables, views, SQL queries, or PL/SQL function blocks that return the text of a SQL query. Interactive reports can only be based on a SQL query.
    "Stored Procedures" are therefore not an option (unless you are using the term loosely to describe any PL/SQL program unit located in the database, thus including functions). What would a procedure used as the source of a report actually do? Hypothetically, by what mechanisms would the procedure (a) capture/select/generate data; and (b) make this data available for use in an APEX report? Why do you want to base a report on a procedure?

  • How to connect to different data sources in  XI 3.1 UNIVERSE?

    hi experts,
    We are going to migrate from BO 6.5 to  BO XI3.1.
    and we have different data sources to extract and generate the reports using various tools like Webi,Crystal Reports, Deski etc.
    1         How to connect to different data sources like SAP BI query, DB2, Oracle etc,, provide me the step by step solution.
    2     We need to migrate the universes and reports from BO 6.5 to BO XI 3.1 using the Report Conversion Tool.
    can we directly convert from the deski reports to Webi or do we need to migrate first through Import Wizard?
    3    Scheduling the Reports through Infoview
    4    Various issues and how to resolve those issues, we generally face while scheduling, and while creating the queries like for example time out errors etc..
    5    BO Security
    6    Universe creation with best practices and the loops,contexts,aliases etc..
    please provide me the step by step solution documents and links.
    thans in advance
    venuscm

    I would recommend to take a look at the official documentation. YOu can find this here
    http://help.sap.com
    NAvugate to SAP BusinessObjects->All products and the select the product you want eg. BusinessObjects ENterprise or Universe designer and the appropriate version XI 3.1. Take a look at the admin and the user guides.
    Currently the Data FEderator will allow you to buid a universe that access data from various data sources. Another option is to merge queries from different universes at report level.
    Regards,
    Stratos

  • Using Oracle Stored Proc as Data Source for PowerBuilder Data Window Object

    Hi,
    I'm trying to use an Oracle stored procedure as the data source for a PowerBuilder data window object. I'm using the following (which is a variation of an example given on Sybase's web site, with the appropriate database/column name changes and use of %TYPE):
    ======================
    CREATE OR REPLACE PACKAGE pkg_dw_sp_example
    AS
    TYPE typ_example_rec1 IS RECORD(
    v_comcodsa st_sa.comcodsa%TYPE,
    v_comnamsa st_sa.comnamsa%TYPE,
    v_cocitysa st_sa.cocitysa%TYPE);
    TYPE cur_example_cur1 IS REF CURSOR;
    RETURN typ_example_rec1;
    END;
    ======================
    CREATE OR REPLACE PROCEDURE sp_dw_example1
    (arg_teamid IN st_sa.comcodsa%TYPE,
    cur_team IN OUT pkg_dw_sp_example.cur_example_cur1)
    AS
    BEGIN
    OPEN cur_team FOR
              SELECT comcodsa,
              comnamsa,
              cocitysa
              FROM st_sa
              WHERE st_sa.comcodha = arg_teamid;
    END sp_dw_example1;
    ======================
    The package is created okay, but the procedure is saved with compilation errors. Unfortunately, Oracle does not indicate what the errors are (great product), so I have no idea what it is complaining about.
    Questions:
    1) Can anyone point me to/or provide a better example?
    2) The examples in books I have seen all would have declared the procedure in the package specification - is the above valid?
    3) This is a PowerBuilder specific question, but if the package does not show up in the stored procedure list when creating a data window object, how does one use it as a data source?
    Oracle 8.1.7
    PowerBuilder 8.0.1
    Thanks,
    Ed Holloman

    1) Everything looks fine with your code. You did not mention the environment you are compiling your code in, but if it is SQL*Plus, you can type 'show errors' after the compile and it will list the errors and line numbers for you.
    2) You can include the procedure in the package - in which case you would have a procedure declaration in the spec and the actual procedure in the body. You would no longer include the 'create or replace' - the declaration and procedure would just start with 'procedure'. The spec would look include:
    PROCEDURE sp_dw_example1
      (arg_teamid IN st_sa.comcodsa%TYPE,
       cur_team OUT cur_example_cur1);Note the removal of the package reference (since we are now IN the package) and the second parameter is just OUT instead of IN OUT.
    3) Not much, but I know that in PB8, our developers have said they have visibility now to the package when creating a DW - something they didn't have in PB7. Previously, we had to create a dummy standalone procedure that they would select and they would later modify the code to include the package prefix.
    Hope this helps a bit.

Maybe you are looking for

  • IDOC Monitoring in PI

    Hi Experts, Please Help me, Using SAP to send an IDoc directly into Gentran system, then is it possible to monitoring the status of the IDoc through WE02/WE05. Using  XI/PI to the IDoc flow to/from SAP to/from PI and then to/from Gentran, Then also w

  • NW 7.3 SSO Problem

    Hi, At http://portal:port/nwa; Configuration / Certificates and Keys / TicketKeystore / .cert We have exported the certificate.We import from STRUSTSSO2.So there is no problem here. But, when we get the following error when testing connection to the

  • Default Folders Question

    Is there some simple way to make Logic Pro automatically default to specific folders for specific items. For instance, all my QuickTime movies that I score to are on a SCSI drive, but when I go to open a movie, Logic always defaults to my system driv

  • Flash websites / programs are pixely on MacBook Pro 15 inch w/ Retina

    Everytime I use flash websites or programs it loses the retina? Like the letters get all pixely. Is there a solution? I am using the new 15inch MacBook Pro w/ Retina display. Thanks, Trevor

  • Reg.HTTPs

    Hi, Scenario is SOAP-XI->SAP. Here my sender is having a Webserver(Tomcat). Webserver was configured with SSL. It will communicate over HTTPS to target components(in our case it XI). So, here my question is Do XI need to install any kind of digital c