Retrieve data source connection string from reportserver.dbo.DataSource

I would like to retrieve the connection string (and credentials) for each of my data sources (without having to click on each individual item). The DataSource table has a column called ConnectionString, but the data type is image, which cannot be converted to varchar. Does anyone have any ideas of how to pull this information from the database?
I have tried converting to binary/varbinary, and then converting to varchar, but I get garbage back.
Note: I am currently using SSRS 2005
Thanks,
Marianne

Hi Jin,
I downloaded your script and was impressed with the information it retrieves, however, it is not formatted very well with the name of each data source being on the same line as the previous data source so I updated the script to create a blank line between
each data source block, and also to include the login credentials used by the data source, and the path for the data source, which is very useful in being able to locate the data source for editing in Report Manager. However, it is not retrieving all data
sources and I don't know why. I know this for a fact because there are data sources defined that are not in the output of this script but I don't know enough about VB to improve the script further, or how the report server is configured to ensure the code
finds the missing data sources.
Here's the updated script.
'=============================================================================
'  File:      PublishSampleReports.rss
'  Summary:  Demonstrates a script that can be used with RS.exe to
'      publish the sample reports that ship with Reporting Services.
' This file is part of Microsoft SQL Server Code Samples.
'  Copyright (C) Microsoft Corporation.  All rights reserved.
' This source code is intended only as a supplement to Microsoft
' Development Tools and/or on-line documentation.  See these other
' materials for detailed information regarding Microsoft code samples.
' THIS CODE AND INFORMATION ARE PROVIDED "AS IS" WITHOUT WARRANTY OF ANY
' KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE
' IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
' PARTICULAR PURPOSE.
Public Sub Main()
    rs.Credentials = System.Net.CredentialCache.DefaultCredentials
    'Create the parent folder
    GetCatalogItems(String.Empty)
End Sub
    ' <summary>
    ' recursivly get folder items from report
    ' server catalog; render to treeview control
    ' </summary>
    ' <param name="catalogPath"></param>
    ' <param name="parentNode"></param>
    Public Sub GetCatalogItems(ByVal catalogPath As String)
        Dim items As CatalogItem()
        Try
            ' if catalog path is empty, use root, if not pass the folder path
            If catalogPath.Length = 0 Then
                ' no recursion (false)
                items = rs.ListChildren("/", False)
            Else
                ' no recursion (false)
                items = rs.ListChildren(catalogPath, False)
            End If
            ' iterate through catalog items and populate treeview control
            For Each item As CatalogItem In items
                ' if folder is hidden, skip it
                If item.Hidden <> True Then
                    ' ensure only folders are rendered
                    If item.Type.Equals(ItemTypeEnum.DataSource) Then
                        'use the GetDataSourceContents to get the definition of the data source.
                        Dim definition As DataSourceDefinition = Nothing
                        Try
                            definition = rs.GetDataSourceContents(item.Path)
                            Console.WriteLine(item.Name)
                            Console.WriteLine(item.Path)
                            Console.WriteLine("Connection String: {0}", definition.ConnectString)
                            Console.WriteLine("Extension name: {0}", definition.Extension)
                            Console.WriteLine("UserName: {0}", definition.UserName)
                        Catch e As SoapException
                            Console.WriteLine(e.Detail.InnerXml.ToString())
                        End Try
                        Console.WriteLine(item.Name)
                        Console.WriteLine()
                    ElseIf item.Type.Equals(ItemTypeEnum.Folder) Then
                        ' recurse                     
                        GetCatalogItems(item.Path)
                    End If
                End If
            Next
        Catch ex As Exception
            Console.WriteLine(ex.Message)
        Finally
            'Do nothing
        End Try
    End Sub
To run this I use:
rs -i GetPropertiesOfDataSources.rss -s
http://<reportserver_name>/reportserver > DataSources_<reportserver_name>.txt
But as I mentioned it is not picking up all of the data sources and I don't know why. I also don't know why it's so difficult to find all the data sources from within Report Manager. I'm new to SSRS but was told that prior to SQL 2005, this information was
easily available using Management Studio to connect to the report server but now it's buried in the Report Manager and not accessible from one spot. Bad move by Microsoft apparently. You'd think that there would be an easy way to find all of the data sources.
We need to migrate the SQL Servers on which reports are running, but we have tons of reports and, historically, little documentation for them so we need to be able to determine where all the data sources are so we know which to update. This is proving extremely
difficult. Your script helps but is not comprehensive.
Any and all help is appreciated.
Michael MacGregor, Senior SQL Server DBA, Carlson Marketing

Similar Messages

  • Error while importing the tables from MySQL using the data source connection

    Hi,
    I am trying to import tables from MySQL into Powerpivot using the data source connection, if use the import using the Query option its working fine but not with the select list of table option.
    when i click on the select list of tables option, i get the below error after selecting all the tables to be imported:
    OLE DB or ODBC error.
    An error occurred while processing table 'XXXXXXXXXX'.
    The current operation was cancelled because another operation in the transaction failed.

    Hi Bharat17an,
    Please provide the detail information when create the MySQL connection in your PowerPivot model. Here is a good article regarding "how to Use MySQL and Microsoft PowerPivot Together" for your reference, please see:
    http://www.datamensional.com/2011/09/how-to-use-mysql-and-microsoft-powerpivot-together-2/
    If this issue still persists, please help to collection windows event log information. It maybe helpful for us to troubleshoot this issue.
    Regards,
    Elvis Long
    TechNet Community Support

  • Change PowerPivot data source when deploying from Dev - Staging - Production

    We have PowerPivot workbooks we store in SharePoint 2013 Libraries. 
    We have a powershell script which automates the deployment of sites and pages. Is there a way using PowerShell (or any scripting language really) to look into the workbook and change the PowerPivot data source when deployment from one environment to
    another? (Dev -> Stage -> Prod) We need to update the workbooks to point to our SSAS cubes Dev -> Stage -> Prod respectively.
    Thank you for any expert advice you may offer,
    Sincerely,
    -Craig

    Basically, it's an excel file (XLSX) file and you can use excel OM for this.
    A simple program (in C# or any language of your choice) can be written to do the following and achieve what you need.
    using XLS = Microsoft.Office.Interop.Excel;
    string info = null;
    XLS.Application application = null;
    try
     application = new XLS.Application();
     var book = application.Workbooks.Open(filepath);
     foreach (XLS.WorkbookConnection wc in book.Connections)
      switch (wc.Type)
       case XLS.XlConnectionType.xlConnectionTypeOLEDB:
        info = wc.Name + " " + wc.OLEDBConnection.Connection.ToString() + "\r\n";
        break;
     book.Close();
    finally
     if (application != null)
      application.Quit();
    Hopefully, this was helpful.

  • To read a connection string from a notepad

    i want to read the DSN-less connection string from a notepad that is from a text file so that if server ip address changes then it will be easy to change the ip address in the notepad rather than changing the code .we are using jsp.
    Connection con=DriverManager.getConnection("jdbc:odbc:DRIVER={SQL Server};Database=profile;Server=10.11.144.124;uid=sa;pwd=sa123");
    so this connection should be read from the text file
    any suggestions
    Thanks for ur help

    i want to read the DSN-less connection string from a
    notepad that is from a text file so that if server ip
    address changes then it will be easy to change the ip
    address in the notepad rather than changing the code
    .we are using jsp.
    Connection
    con=DriverManager.getConnection("jdbc:odbc:DRIVER={SQL
    Server};Database=profile;Server=10.11.144.124;uid=sa;p
    wd=sa123");
    so this connection should be read from the text file
    ny suggestions
    Thanks for ur help=> Good way of getting the DSN or any other setting from a text file is create a simple bean(will have get and may have set method too)that will read the data from the text file and use the bean anywhere in your jsp page(As it will also improve the performance of the application)and the bean initilizd once can be reused anywhere in the application.

  • Managing data source connections inside an Excel workbook for deployment reasons

    Hi,
    with a certain frequency, I use Excel to show SQL Server data, or SSAS data, etc. in tables, pivot tables, ...
    So, a single Excel workbook can contain more connections and ofter a same connection is used.
    When an Excel is deployed to a prod environment from a test environment an issue it to update each data source connections by specifing the prod server and/or the prod instance. To avoid to accomplish the boring task to change each single connection,
    is it possible to perform it in a more simple or automatic manner?
    Any ideas, please?
    Thanks

    Hey pscorca,
    When you deployed Excel files to a product environment, why did you need to change the data source? Did you move SQL server DB and SSAS DB to the product environment too?
    And when you click Data->From SQL Server/From AS ,then Excel should create a Office data connection file which is usually saved in: C:\Users\Username\Documents\My Data Sources . If you have multiple Excel files need to use the same connection,
    you can choose the Existing Connections, then select the odc file. If you want to change your connections, you just need to Edit the .odc file.
    Wind Zhang
    TechNet Community Support

  • SAP Crystal Reports data source connection problem using sap business one

    Hi,
    I m facing a problem regarding: SAP Crystal Reports data source connection problem using sap business one
    I am trying to create a Crystal report but when I try to configure a new connection it does not work.
    I select Sap Business One data source and try to complete the information required to connection but it does not list my companies databases, what is the problem?
    Our Current SAP related software details are as follows:
    OS: Windows Server 2008
    SAP B1 Version: SAP B1 9 (902001) Patch 9
    SAP Crystal Report Version: 14.0.4.738 RTM
    Database: MS SQL Server 2008 R2
    I have also added some screenshots of the issues.
    Please have a look and let me know if you have any questions or any further clarifications.
    I m eagerly waiting for a quick and positive reply.

    Hi,
    There is problem with SAP Business One date source.
    I had faced same problem, I used OLEDB Data-source, and it worked fine for me.
    So, try to use OLEDB.
    Regards,
    Amrut Sabnis.

  • Change all reports data source connection

    I have numerous SQL reports that require their data source connection changed. Does anyone have code to change all reports that use a data source name of 'Data_Warehouse_Main' to a different shared connection.
    Thanks

    Hi BiscuitB,
    According to your description, there are numerous SQL reports and their data source need to be changed. You used RSScripter but it does not work.
    In Reporting Services, if we want to change data sources of multiple SSRS Report, we can use Powershell to set the data sources for an item in a report server database or SharePoint library. To achieve your goal, we need to use both the Reporting Service
    GetItemDataSources Method and the SetItemDataSources Method. You can refer to the thread provided by PrajapatiNeha, and the PowerShell script sample will be helpful for you.
    Reference:
    GetItemDataSources Method
    SetItemDataSources Method
    If you have any more questions, please feel free to ask.
    Thanks,
    Wendy Fu

  • How can i stop transfer data to Trfc queue from a table datasource.help!!!

    how can i stop transfer data to Trfc queue from a table datasource.
    I create a incorrect view datasource in R3 with wrong join condition,it contain so large data,i want to stop it collect data to sm58.otherwise the system will be ...
    i can't find helpful infrmation in sm50 .
    in sm37 has a canceled job
       Job                              Ln Job CreatedB Status          Start date Start time Duration(sec.) Delay (sec.)
       BIREQU_4EFQCFFUQL5ZOAWYOK2L0YCMF    ALEREMOTE    Canceled        2009-07-10 16:38:59         101,869            0
    plesse help me 。

    Hi,
    You paste the job name in source system in
    Tcode :Sm37
    Job name as :BIREQU_4EFQCFFUQL5ZOAWYOK2L0YCMF
    User:*
    Go to job details and get the PID no ,on which application number it is runnug
    GO to sm51 ,here you will find the application servers,Select the appriate app server go to that PID.
    On left top most you will find option as cancel with out core ..
    OR
    Ask basics team do the same.
    Regards,
    Suman
    Edited by: suman on Jul 13, 2009 12:56 PM

  • WAS 6.1 JNDI data source connection CRXI R2 Developer

    Hi all,
    I've been tasked to get a JNDI connection from a WAS 6.1 server to a Oracle DB to use in developing a report.
    The CR developer I'm using is CR Developer;Product Type: Full Product Version: 11.0.0.1282
    I have created a simple Java 'main' class to test the JNDI connection using the following jars:
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.runtime_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    ibmorb.jar
    ojdbc-14.jar
    rsadbutils.jar
    rsahelpers.jar
    I have been able to retrieve data from the Oracle DB through the 'main' class and display it on the console.
    However, after I set the CRConfig.xml file's classpath to use these jars, along with a jar I created that contains a jndi.properties file that contains the org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB property because the JVM that the CR developer is pointing at is a Sun 1.6 HotSpot JVM.
    When I try getting the connection, Database -> Database Expert -> Create New Connection -> JDBC (JNDI), select the JNDI Connection option and enter the relevant information, the developer finds the JNDI names that I'm looking for. Then I 'Click' the Finish button and receive the following error pop-up:
    Logon Failed.
    Details: SQL Exception: SQL State: null ERROR Message: Invalid argument(s) in callDSRA0010E: SQL State= null, Error Code = 17,068 Database Vendor Code: 17068
    I have noticed that I can replicate this error message, through the 'main' class I used to test the connection, if I remove the username/password arguments from the method I use to get the DB connection.
    Is there anything that I'm missing to successfully use this WAS data source?
    I have tested a WebLogic 10.3 connection and the CR Developer had no problem finding/using the connection?
    Any help that can be provided would be greatly appreciated.
    Below is the JDBC tag from the CRConfig.xml file that I'm using:
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL></JDBCURL>
         <JDBCClassName></JDBCClassName>
         <JDBCUserName></JDBCUserName>
         <JNDIURL>iiop://server:bootstrap_address-port</JNDIURL>
         <JNDIConnectionFactory>com.ibm.websphere.naming.WsnInitialContextFactory</JNDIConnectionFactory>
         <JNDIInitContext>cell/clusters/clusterName/jdbc</JNDIInitContext>
         <JNDIUserName>schema-username</JNDIUserName>
         <GenericJDBCDriver>
              <Option>No</Option>
              <DatabaseStructure>catalogs,tables</DatabaseStructure>
              <StoredProcType>Standard</StoredProcType>
              <LogonStyle>Oracle</LogonStyle>
         </GenericJDBCDriver>
    </JDBC>
    Thanks in Advance
    Edited by: java_geek on Jul 28, 2010 3:31 AM

    Hi all,
    I've been tasked to get a JNDI connection from a WAS 6.1 server to a Oracle DB to use in developing a report.
    The CR developer I'm using is CR Developer;Product Type: Full Product Version: 11.0.0.1282
    I have created a simple Java 'main' class to test the JNDI connection using the following jars:
    com.ibm.ws.admin.client_6.1.0.jar
    com.ibm.ws.runtime_6.1.0.jar
    com.ibm.ws.webservices.thinclient_6.1.0.jar
    ibmorb.jar
    ojdbc-14.jar
    rsadbutils.jar
    rsahelpers.jar
    I have been able to retrieve data from the Oracle DB through the 'main' class and display it on the console.
    However, after I set the CRConfig.xml file's classpath to use these jars, along with a jar I created that contains a jndi.properties file that contains the org.omg.CORBA.ORBClass=com.ibm.CORBA.iiop.ORB property because the JVM that the CR developer is pointing at is a Sun 1.6 HotSpot JVM.
    When I try getting the connection, Database -> Database Expert -> Create New Connection -> JDBC (JNDI), select the JNDI Connection option and enter the relevant information, the developer finds the JNDI names that I'm looking for. Then I 'Click' the Finish button and receive the following error pop-up:
    Logon Failed.
    Details: SQL Exception: SQL State: null ERROR Message: Invalid argument(s) in callDSRA0010E: SQL State= null, Error Code = 17,068 Database Vendor Code: 17068
    I have noticed that I can replicate this error message, through the 'main' class I used to test the connection, if I remove the username/password arguments from the method I use to get the DB connection.
    Is there anything that I'm missing to successfully use this WAS data source?
    I have tested a WebLogic 10.3 connection and the CR Developer had no problem finding/using the connection?
    Any help that can be provided would be greatly appreciated.
    Below is the JDBC tag from the CRConfig.xml file that I'm using:
    <JDBC>
         <CacheRowSetSize>100</CacheRowSetSize>
         <JDBCURL></JDBCURL>
         <JDBCClassName></JDBCClassName>
         <JDBCUserName></JDBCUserName>
         <JNDIURL>iiop://server:bootstrap_address-port</JNDIURL>
         <JNDIConnectionFactory>com.ibm.websphere.naming.WsnInitialContextFactory</JNDIConnectionFactory>
         <JNDIInitContext>cell/clusters/clusterName/jdbc</JNDIInitContext>
         <JNDIUserName>schema-username</JNDIUserName>
         <GenericJDBCDriver>
              <Option>No</Option>
              <DatabaseStructure>catalogs,tables</DatabaseStructure>
              <StoredProcType>Standard</StoredProcType>
              <LogonStyle>Oracle</LogonStyle>
         </GenericJDBCDriver>
    </JDBC>
    Thanks in Advance
    Edited by: java_geek on Jul 28, 2010 3:31 AM

  • Transaction on Oracle 9i data source connection times out before JTA transaction

    Hello,
    I have a MDB with a long-running transaction (3600 second timeout).
    In the MDB, I make a call to another EJB that has its transaction
    attribute set to NotSupported (I do this because I need
    non-transactional semantics in the called method).
    If the EJB call take more than about a minute to complete, then I get a
    datasource error when using the data source in the MDB after the return
    (see error at bottom). However, if the call completes quickly, then I do
    not get this error. It seems like the datasource connection somehow
    times out, but I don't see where I can change this timeout.
    pseudocode:
    // timeout set to 3600 seconds
    transactional MDB onMessage() {
    // receive connection from Oracle BEA driver
    // myEJB performLongOperation has transaction attribute
    // set to NotSupported
    String result = myEJB.performLongOperation();
    // use connection from Oracle BEA driver
    If the performLongOperation takes more than about a minute, then I get
    the following error when using the connection after the operation:
    Caused by: java.sql.SQLException: XA error: XAER_NOTA : The XID is not
    valid start() failed on resource 'Oracle IDENT Connection Pool':
    XAER_NOTA : The XID is not valid
    javax.transaction.xa.XAException: [BEA][Oracle JDBC Driver]Oracle XA
    Error Occurred. Native Error: 24756
    at
    weblogic.jdbcx.oracle.OracleImplXAResource.checkError(Unknown Source)
    at weblogic.jdbcx.oracle.OracleImplXAResource.start(Unknown Source)
    at weblogic.jdbcx.base.BaseXAResource.start(Unknown Source)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:617)
    at
    weblogic.transaction.internal.XAServerResourceInfo.start(XAServerReso
    urceInfo.java:1075)
    at
    weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerRe
    sourceInfo.java:1007)
    at
    weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerRes
    ourceInfo.java:218)
    at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1287)
    at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    250)
    at
    weblogic.jdbc.wrapper.JTAConnection.getXAConn(JTAConnection.java:185)
    at
    weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.jav
    a:80)
    at
    weblogic.jdbc.wrapper.Connection.createStatement(Connection.java:297)

    Thanks for the reply.
    I don't have contract customer support access with BEA, and thus I can't
    download the patch. Is there any other workaround for this?
    Thanks
    Slava Imeshev wrote:
    Steven,
    Please check this:
    http://www.viewtier.com/newsgroups/thread.jspa?threadID=20&tstart=0
    Hope this helps.
    Regards,
    Slava Imeshev
    "Steven Ostrowski" <[email protected]> wrote in message news:40cf35cc@mktnews1...
    I have a MDB with a long-running transaction (3600 second timeout).
    In the MDB, I make a call to another EJB that has its transaction
    attribute set to NotSupported (I do this because I need
    non-transactional semantics in the called method).
    If the EJB call take more than about a minute to complete, then I get a
    datasource error when using the data source in the MDB after the return
    (see error at bottom). However, if the call completes quickly, then I do
    not get this error. It seems like the datasource connection somehow
    times out, but I don't see where I can change this timeout.
    pseudocode:
    // timeout set to 3600 seconds
    transactional MDB onMessage() {
    // receive connection from Oracle BEA driver
    // myEJB performLongOperation has transaction attribute
    // set to NotSupported
    String result = myEJB.performLongOperation();
    // use connection from Oracle BEA driver
    If the performLongOperation takes more than about a minute, then I get
    the following error when using the connection after the operation:
    Caused by: java.sql.SQLException: XA error: XAER_NOTA : The XID is not
    valid start() failed on resource 'Oracle IDENT Connection Pool':
    XAER_NOTA : The XID is not valid
    javax.transaction.xa.XAException: [BEA][Oracle JDBC Driver]Oracle XA
    Error Occurred. Native Error: 24756
    at
    weblogic.jdbcx.oracle.OracleImplXAResource.checkError(Unknown Source)
    at weblogic.jdbcx.oracle.OracleImplXAResource.start(Unknown Source)
    at weblogic.jdbcx.base.BaseXAResource.start(Unknown Source)
    at weblogic.jdbc.jta.DataSource.start(DataSource.java:617)
    at
    weblogic.transaction.internal.XAServerResourceInfo.start(XAServerReso
    urceInfo.java:1075)
    at
    weblogic.transaction.internal.XAServerResourceInfo.xaStart(XAServerRe
    sourceInfo.java:1007)
    at
    weblogic.transaction.internal.XAServerResourceInfo.enlist(XAServerRes
    ourceInfo.java:218)
    at
    weblogic.transaction.internal.ServerTransactionImpl.enlistResource(Se
    rverTransactionImpl.java:419)
    at weblogic.jdbc.jta.DataSource.enlist(DataSource.java:1287)
    at
    weblogic.jdbc.jta.DataSource.refreshXAConnAndEnlist(DataSource.java:1
    250)
    at
    weblogic.jdbc.wrapper.JTAConnection.getXAConn(JTAConnection.java:185)
    at
    weblogic.jdbc.wrapper.JTAConnection.checkConnection(JTAConnection.jav
    a:80)
    at
    weblogic.jdbc.wrapper.Connection.createStatement(Connection.java:297)

  • SmartView 11.1.1.2 Data Source Connection Manager is Disabled.

    I recently did a fresh install of Oracle Hyperion EPM 11.1.1.2 in a Windows 2003 Enterprise Server (64-bit) environment.
    I'm now having problems running Smart View in this environment.
    When I attempt to connect to a cube, from within Excel, the Data Source Manager appears in the right-hand pane, but I can't interact with it. Also, nothing at all appears in the Data Source Manager pane.
    I've duplicated this problem in a Windows 7 RC1 64-bit environment as well (Yes, I know. It's not supported).
    This looks like some sort of Active X issue.
    I am running Office 2007 SP1. However, applying the latest MS Office updates did not alleviate the issue. I also enabled macros and active x controls through the "Trust Center", but that did not help either.
    Any help or ideas would be appreciated.
    Thanks,
    Alan Farkas

    Hello all,
    Nice to know misery has lots of company. Having the same problem. I've gotten lots of suggestions and have tried everything short of reinstalling OS. The strange thing is that it was working at initially but my laptop crashed and I reinstalled everything. This problem appeared after the reinstall.
    I'll keep trying and will let you know if the OS reinstall does the trick...
    If anyone else comes up with something better - please post.
    Thanks,
    Frank

  • Change the data source connection of existing reports in web analysis

    Hi
    I have developed certain reports in web analysis 9.3.1, now I need to point these reports to a new cube with same layout. Can anyone let me know how to change this data source. There are lot many reports so it will take lot of time for me to recreate them.
    Please suggest any good approach
    ---xat

    You can edit the Database connection from Web Analysis. Perform the below tasks to edit the database connection..
    1) Login to Web Analysis
    2) Select the Database Connection which needs to be modified.
    3) Right Click then Edit..
    Hope this helps you..
    Regards,
    Manmohan Sharma

  • Weblogic - jndi and data source connectivity problem

    Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
    The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
    that the DataSource has been deployed
    successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    In my console, I have created a connection pool 'oraclePool' and 3 datasource
    'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
    'jdbc.JobDB'. I have also specified the target server and there seems to be no
    error. I have checked 'Monitor All Connection
    Pools' and oraclePool is running. I still do not understand the problem that I
    am getting and have no clue how to solve it.
    Thank you
    Ronak Parekh
    My weblogic-ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.GangsterDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.GangsterDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.OrganizationDB</jndi-name>
              </resource-description>
              </reference-descriptor>
              <local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>JobEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.JobDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.JobDB</local-jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    My ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
         "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <display-name>Business Component CMP 2.0</display-name>
         <enterprise-beans>
    <entity>
              <display-name>Gangster Entity Bean</display-name>
         <ejb-name>GangsterEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.GangsterHome</local-home>
    <local>com.sempire.builder.business_component.Gangster</local>
    <ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
         <abstract-schema-name>GangsterEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>nickname</field-name></cmp-field>
    <cmp-field><field-name>badness</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
         <display-name>Organization Entity Bean</display-name>
    <ejb-name>OrganizationEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
    <local>com.sempire.builder.business_component.Organization</local>
    <ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>OrganizationEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
                   <cmp-field><field-name>description</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
    <display-name>Job Entity Bean</display-name>
    <ejb-name>JobEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.JobHome</local-home>
    <local>com.sempire.builder.business_component.Job</local>
    <ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
    <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>JobEJB</abstract-schema-name>
                   <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>score</field-name></cmp-field>
                   <cmp-field><field-name>setupCost</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
         </enterprise-beans>
         <relationships>
    <ejb-relation>
    <ejb-relation-name>organization-memberGangsters</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>memberGangsters</cmr-field-name>
         <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>organization</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>gangsters-jobs</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>GangsterEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>jobs</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>JobEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>gangsters</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
              </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>organization-theBoss</ejb-relation-name>
         <ejb-relationship-role>
         <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
         <relationship-role-source>
              <ejb-name>OrganizationEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>theBoss</cmr-field-name>
                   </cmr-field>
              </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
         </relationships>
         <assembly-descriptor>
         <container-transaction>
         <method>
              <ejb-name>GangsterEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>OrganizationEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>JobEJB</ejb-name>
              <method-name>*</method-name>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    My weblogic-cmp-rdbms-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
    <weblogic-rdbms-jar>
         <weblogic-rdbms-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <data-source-name>GangsterDB</data-source-name>
              <table-name>GANGSTER</table-name>
              <field-map>
         <cmp-field>iD</cmp-field>
         <dbms-column>ID</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>name</cmp-field>
         <dbms-column>NAME</dbms-column>
         </field-map>
              <field-map>
                   <cmp-field>nickname</cmp-field>
         <dbms-column>NICKNAME</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>badness</cmp-field>
         <dbms-column>BADNESS</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <data-source-name>OrganizationDB</data-source-name>
              <table-name>ORGANIZATION</table-name>
              <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>description</cmp-field>
                   <dbms-column>DESCRIPTION</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>JobEJB</ejb-name>
              <data-source-name>JobDB</data-source-name>
              <table-name>JOB</table-name>
         <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>score</cmp-field>
                   <dbms-column>SCORE</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>setupCost</cmp-field>
                   <dbms-column>SETUPCOST</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-relation>
         <relation-name>organization-memberGangsters</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>memberGangsters---organization</relationship-role-name>
              <column-map>
              <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>gangsters-jobs</relation-name>
         <table-name>JOBS</table-name>
         <weblogic-relationship-role>
              <relationship-role-name>gangsters---jobs</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
         <weblogic-relationship-role>
              <relationship-role-name>jobs---gangsters</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>organization-theBoss</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>organization---theBoss</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>

    just looking at you weblogic-ejb-jar.xml,
    your ejb jndi names are the same as the data source jndi names...this
    may be your problem.
    Ronak Parekh wrote:
    Unable to deploy EJB: OrganizationEJB from sempire_bc.jar
    The DataSource with the JNDI name: OrganizationDB can not be located. Please ensure
    that the DataSource has been deployed
    successfully and that the JNDI name in your EJB Deployment descriptor is correct.
    In my console, I have created a connection pool 'oraclePool' and 3 datasource
    'jdbc.GangsterDB', 'jdbc.OrganizationDB' and
    'jdbc.JobDB'. I have also specified the target server and there seems to be no
    error. I have checked 'Monitor All Connection
    Pools' and oraclePool is running. I still do not understand the problem that I
    am getting and have no clue how to solve it.
    Thank you
    Ronak Parekh
    My weblogic-ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-ejb-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>
    <weblogic-ejb-jar>
         <weblogic-enterprise-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.GangsterDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.GangsterDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.OrganizationDB</jndi-name>
              </resource-description>
              </reference-descriptor>
              <local-jndi-name>jdbc.OrganizationDB</local-jndi-name>
         </weblogic-enterprise-bean>
         <weblogic-enterprise-bean>
              <ejb-name>JobEJB</ejb-name>
              <entity-descriptor>
                   <persistence>
                        <persistence-type>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                             <type-storage>META-INF/weblogic-cmp-rdbms-jar.xml</type-storage>
                        </persistence-type>
                        <persistence-use>
                             <type-identifier>WebLogic_CMP_RDBMS</type-identifier>
                             <type-version>6.0</type-version>
                        </persistence-use>
                   </persistence>
              </entity-descriptor>
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <jndi-name>jdbc.JobDB</jndi-name>
              </resource-description>
         </reference-descriptor>
              <local-jndi-name>jdbc.JobDB</local-jndi-name>
         </weblogic-enterprise-bean>
    </weblogic-ejb-jar>
    My ejb-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE ejb-jar PUBLIC
         "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
         "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
         <display-name>Business Component CMP 2.0</display-name>
         <enterprise-beans>
    <entity>
              <display-name>Gangster Entity Bean</display-name>
         <ejb-name>GangsterEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.GangsterHome</local-home>
    <local>com.sempire.builder.business_component.Gangster</local>
    <ejb-class>com.sempire.builder.business_component.GangsterBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
         <abstract-schema-name>GangsterEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>nickname</field-name></cmp-field>
    <cmp-field><field-name>badness</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM GangsterEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
         <display-name>Organization Entity Bean</display-name>
    <ejb-name>OrganizationEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.OrganizationHome</local-home>
    <local>com.sempire.builder.business_component.Organization</local>
    <ejb-class>com.sempire.builder.business_component.OrganizationBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>OrganizationEJB</abstract-schema-name>
    <cmp-field><field-name>iD</field-name></cmp-field>
         <cmp-field><field-name>name</field-name></cmp-field>
                   <cmp-field><field-name>description</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM OrganizationEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
    <entity>
    <display-name>Job Entity Bean</display-name>
    <ejb-name>JobEJB</ejb-name>
    <local-home>com.sempire.builder.business_component.JobHome</local-home>
    <local>com.sempire.builder.business_component.Job</local>
    <ejb-class>com.sempire.builder.business_component.JobBean</ejb-class>
    <persistence-type>Container</persistence-type>
                   <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>JobEJB</abstract-schema-name>
                   <cmp-field><field-name>iD</field-name></cmp-field>
    <cmp-field><field-name>name</field-name></cmp-field>
    <cmp-field><field-name>score</field-name></cmp-field>
                   <cmp-field><field-name>setupCost</field-name></cmp-field>
                   <primkey-field>iD</primkey-field>
                   <resource-ref>
              <res-ref-name>jdbc/oraclePool</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
                   <query>
                        <query-method>
                             <method-name>findAll</method-name>
                             <method-params></method-params>
                        </query-method>
                        <ejb-ql>
                             <![CDATA[SELECT OBJECT(a) FROM JobEJB AS a]]>
                        </ejb-ql>
                   </query>
              </entity>
         </enterprise-beans>
         <relationships>
    <ejb-relation>
    <ejb-relation-name>organization-memberGangsters</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>organization---memberGangsters</ejb-relationship-role-name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>OrganizationEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>memberGangsters</cmr-field-name>
         <cmr-field-type>java.util.Collection</cmr-field-type>
    </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>memberGangsters---organization</ejb-relationship-role-name>
    <multiplicity>Many</multiplicity>
    <cascade-delete/>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    <cmr-field>
         <cmr-field-name>organization</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>gangsters-jobs</ejb-relation-name>
    <ejb-relationship-role>
         <ejb-relationship-role-name>gangsters---jobs</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>GangsterEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>jobs</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
                   <ejb-relationship-role>
         <ejb-relationship-role-name>jobs---gangsters</ejb-relationship-role-name>
         <multiplicity>Many</multiplicity>
         <relationship-role-source>
              <ejb-name>JobEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>gangsters</cmr-field-name>
              <cmr-field-type>java.util.Collection</cmr-field-type>
         </cmr-field>
    </ejb-relationship-role>
              </ejb-relation>
    <ejb-relation>
    <ejb-relation-name>organization-theBoss</ejb-relation-name>
         <ejb-relationship-role>
         <ejb-relationship-role-name>organization---theBoss</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
         <relationship-role-source>
              <ejb-name>OrganizationEJB</ejb-name>
         </relationship-role-source>
         <cmr-field>
              <cmr-field-name>theBoss</cmr-field-name>
                   </cmr-field>
              </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>theBoss---organization</ejb-relationship-role-name>
         <multiplicity>One</multiplicity>
    <relationship-role-source>
         <ejb-name>GangsterEJB</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
         </relationships>
         <assembly-descriptor>
         <container-transaction>
         <method>
              <ejb-name>GangsterEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>OrganizationEJB</ejb-name>
              <method-name>*</method-name>
         </method>
         <method>
              <ejb-name>JobEJB</ejb-name>
              <method-name>*</method-name>
                   </method>
                   <trans-attribute>Required</trans-attribute>
              </container-transaction>
         </assembly-descriptor>
    </ejb-jar>
    My weblogic-cmp-rdbms-jar.xml file is:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls600/dtd/weblogic-rdbms20-persistence-600.dtd'>
    <weblogic-rdbms-jar>
         <weblogic-rdbms-bean>
              <ejb-name>GangsterEJB</ejb-name>
              <data-source-name>GangsterDB</data-source-name>
              <table-name>GANGSTER</table-name>
              <field-map>
         <cmp-field>iD</cmp-field>
         <dbms-column>ID</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>name</cmp-field>
         <dbms-column>NAME</dbms-column>
         </field-map>
              <field-map>
                   <cmp-field>nickname</cmp-field>
         <dbms-column>NICKNAME</dbms-column>
         </field-map>
         <field-map>
         <cmp-field>badness</cmp-field>
         <dbms-column>BADNESS</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>OrganizationEJB</ejb-name>
              <data-source-name>OrganizationDB</data-source-name>
              <table-name>ORGANIZATION</table-name>
              <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>description</cmp-field>
                   <dbms-column>DESCRIPTION</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-bean>
              <ejb-name>JobEJB</ejb-name>
              <data-source-name>JobDB</data-source-name>
              <table-name>JOB</table-name>
         <field-map>
                   <cmp-field>iD</cmp-field>
                   <dbms-column>ID</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>name</cmp-field>
                   <dbms-column>NAME</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>score</cmp-field>
                   <dbms-column>SCORE</dbms-column>
              </field-map>
              <field-map>
                   <cmp-field>setupCost</cmp-field>
                   <dbms-column>SETUPCOST</dbms-column>
              </field-map>
              <weblogic-query>
                   <query-method>
                        <method-name>findAll</method-name>
                        <method-params></method-params>
                   </query-method>
              </weblogic-query>
         </weblogic-rdbms-bean>
         <weblogic-rdbms-relation>
         <relation-name>organization-memberGangsters</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>memberGangsters---organization</relationship-role-name>
              <column-map>
              <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>gangsters-jobs</relation-name>
         <table-name>JOBS</table-name>
         <weblogic-relationship-role>
              <relationship-role-name>gangsters---jobs</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
         <weblogic-relationship-role>
              <relationship-role-name>jobs---gangsters</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    <weblogic-rdbms-relation>
         <relation-name>organization-theBoss</relation-name>
         <weblogic-relationship-role>
              <relationship-role-name>organization---theBoss</relationship-role-name>
              <column-map>
                   <foreign-key-column>iD</foreign-key-column>
                   <key-column>ID</key-column>
         </column-map>
         </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>

  • Can not retrieve data source status

    I have 3 DPS (6.3) running fine with 3 (6.2) DS downstream, running fine as well, on RHAS 4 U4 .
    I don't understand why the DPS console always report it can not retrieve the data sources status. I checked the DS access logs, and I see each DPS
    default monitoring request (on the "" DN) every 30 seconds, which returns one entry, and no obvious error in any DPS or DS error log .
    Any idea ?

    Hi,
    it looks like a a known problem to me that may appear in the following situation:
    In somes cases, the proxy and the DSCC (console) uses different hostnames: For instance, the proxy may be registered to the admin framework as myhost.sun.com and the proxy itself may use only myhost. Operation status is exposed by the proxy as an LDAP entry with dn cn=myhost,.....,cn=monitor. When there is a naming mismatch, the console search for cn=myhost.sun.com,...., cn=monitor and can't find the entry, so the status is unknown.
    Don't know if you are in this situation but it might worth checking this.
    Hope this helps
    -Sylvain

  • SharePoint 2010 Report using a Shared Data Source Connection file (.rsds) is forcibly closed.

    Hi -
    When attempting to render a report (.rdl) in a SharePoint 2010 document library that has a
    Connection Type specified as a Shared data source (the connection succeeds when tested in the SharedDataSource.aspx page), the following error message is displayed in the report:
    The data source that I'm using passes the test when tested in isolation but when used in the report it yields to the error message above. Below are some of the details of the .rsds file:
    For this particular Web Application, Kerberos has been enabled. I couldn't spot any traces in ULS nor in the Security Windows logs.
    Any feedback on how to fix this issue is appreciated.
    Thanks.

    Hi
    There are multiple resolution found for the same issue, please refer 
    http://www.marc-lognoul.me/itblog-en/an-existing-connection-was-forcibly-closed-by-the-remote-host/
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/4ad2a302-8a77-44f3-91ce-803d36efc9c5/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious
    http://social.technet.microsoft.com/Forums/sharepoint/en-US/235ca863-f540-4fa0-9688-0b0b46c2d75d/sharepoint-2010-an-existing-connection-was-forcibly-closed-by-the-remote-host-when-log-in-using?forum=sharepointadminprevious 
    Let us know if this helps, thanks
    Regards,
    Pratik Vyas | SharePoint Consultant |
    http://sharepointpratik.blogspot.com
    Posting is provided AS IS with no warranties, and confers no rights
    Please remember to click Mark As Answer if a post solves your problem or
    Vote As Helpful if it was useful.

Maybe you are looking for