Report with 2 data sources (TTX) & VFP memo to recordset problem

Dear All,
I work on this for a few weeks, but still cannot fix it. Please help.
I use 2 TTX to create a report in CR XI. One table is do most things including grouping. Another table just contains 3 fields. Two fields are keys for left join with the main table, but it contains less key than the main table. That is some key in the main table may not exist in this one. The third field is a Memo field in Visual Foxpro. Now the memo field cannot display.
I got 2 methods to convert the VF cursors  to Recordsets for reporting. The first one is creating a subroutine to convert the VF cursor by myself to convert VF Memo field to Recordset's adVarChar like:
oRst.Fields.Append(<fieldname>, 201, 2147483647)
This method didn't work
The another method is using VFPCOM, a COM object that download from microsoft. That can convert the VF cursor to Recordset. I don't konw the type of Recordset field converted from VF Memo using VFPCOM .However, CR XI got a field mapping dialog when I preview the report. But I cannot find the correct field in the dialog.
Could somebody help. Thank you very much.
Regards,
Antony

Hello, Anthony;
When you look at Database|Database Expert and choose the links tab, are the two .ttx files linked successfully?
You mention that there is a field in the main table that may not exist in the second one. Is that causing a linking issue?
The most common issue is the ADO recordset does not match the structure created in the .ttx.
There is a dll that will allow you to create a .ttx file from each recordset exactly as Crystal Reports will see it using the "CreateFieldDefFile" function. Search your Crystal Reports XI R1 (11.0) CD for the file "p2smon.dll". It will not install automatically but you can copy it into your System32 directory and use the functionality. e.g. "C:\Windows\system32"
It was designed for Visual Basic so the code used there is:
Public adoRs1 As New ADODB.Recordset
If CreateFieldDefFile(adoRs1, App.Path & "\ado.ttx", True) <> 0 Then
   MsgBox "Field definition successfully created"
Else
   MsgBox "Failed to create field definition file"
End If
If you cannot complete this step, I suggest opening a SAP Support incident and an engineer could so this step for you using your ado recordset saved as an ADO file.
Again in Visual Basic:
adoRs1.save "C:\Temp\adoRS1.ttx"
adoRs2.save "C:\Temp\adoRS2.ttx"
Then the two created .ttx files can be tested in the report to see if they can be linked and verified.
Elaine

Similar Messages

  • How to create a report with data using the Crystal Reports for Java SDK

    Hi,
    How do I create a report with data that can be displayed via the Crystal Report for Java SDK and the Viewers API?
    I am writing my own report designer, and would like to use the Crystal Runtime Engine to display my report in DHTML, PDF, and Excel formats.  I can create my own report through the following code snippet:
    ReportClientDocument boReportClientDocument = new ReportClientDocument();
    boReportClientDocument.newDocument();
    However, I cannot find a way to add data elements to the report without specifying an RPT file.  Is this possible?  I seems like it is since the Eclipse Plug In allows you to specify your database parameters when creating an RPT file.
    is there a way to do this through these packages?
    com.crystaldecisions.sdk.occa.report.data
    com.crystaldecisions.sdk.occa.report.definition
    Am I forced to create a RPT file for the different table and column structures I have? 
    Thank you in advance for any insights.
    Ted Jenney

    Hi Rameez,
    After working through the example code some more, and doing some more research, I remain unable to populate a report with my own data and view the report in a browser.  I realize this is a long post, but there are multiple errors I am receiving, and these are the seemingly essential ones that I am hitting.
    Modeling the Sample code from Create_Report_From_Scratch.zip to add a database table, using the following code:
    <%@ page import="com.crystaldecisions.sdk.occa.report.application.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.data.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.document.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.definition.*"%>
    <%@ page import="com.crystaldecisions.sdk.occa.report.lib.*" %>
    <%@ page import = "com.crystaldecisions.report.web.viewer.*"%>
    <%
    try { 
                ReportClientDocument rcd = new ReportClientDocument();
                rcd.newDocument();
    // Setup the DB connection
                String database_dll = "Sqlsrv32.dll";
                String db = "qa_start_2012";
                String dsn = "SQL Server";
                String userName = "sa";
                String pwd = "sa";
                // Create the DB connection
                ConnectionInfo oConnectionInfo = new ConnectionInfo();
                PropertyBag oPropertyBag1 = oConnectionInfo.getAttributes();
                // Set new table logon properties
                PropertyBag oPropertyBag2 = new PropertyBag();
                oPropertyBag2.put("DSN", dsn);
                oPropertyBag2.put("Data Source", db);
                // Set the connection info objects members
                // 1. Pass the Logon Properties to the main PropertyBag
                // 2. Set the Server Description to the new **System DSN**
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_LOGONPROPERTIES, oPropertyBag2);
                oPropertyBag1.put(PropertyBagHelper.CONNINFO_CRQE_SERVERDESCRIPTION, dsn);
                oPropertyBag1.put("Database DLL", database_dll);
                oConnectionInfo.setAttributes(oPropertyBag1);
                oConnectionInfo.setUserName(userName);
                oConnectionInfo.setPassword(pwd);
                // The Kind of connectionInfos is CRQE (Crystal Reports Query Engine).
                oConnectionInfo.setKind(ConnectionInfoKind.CRQE);
    // Add a Database table
              String tableName = "Building";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
        catch(ReportSDKException RsdkEx) {
                out.println(RsdkEx);  
        catch (Exception ex) {
              out.println(ex);  
    %>
    Throws the exception
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: java.lang.NullPointerException---- Error code:-2147467259 Error code name:failed
    There was other sample code on SDN which suggested the following - adding the table after calling table.setDataFields() as in:
              String tableName = "Building";
                String fieldname = "Building_Name";
                Table oTable = new Table();
                oTable.setName(tableName);
                oTable.setAlias(tableName);
                oTable.setQualifiedName(tableName);
                oTable.setDescription(tableName) ;
                Fields fields = new Fields();
                DBField field = new DBField();
                field.setDescription(fieldname);
                field.setHeadingText(fieldname);
                field.setName(fieldname);
                field.setType(FieldValueType.stringField);
                field.setLength(40);
                fields.add(field);
                oTable.setDataFields(fields);
                oTable.setConnectionInfo(oConnectionInfo);
                rcd.getDatabaseController().addTable(oTable, null);
    This code succeeds, but it is not clear how to add that database field to a section.  If I attempt to call the following:
    FieldObject oFieldObject = new FieldObject();
                oFieldObject.setDataSourceName(field.getFormulaForm());
                oFieldObject.setFieldValueType(field.getType());
                // Now add it to the section
                oFieldObject.setLeft(3120);
                oFieldObject.setTop(120);
                oFieldObject.setWidth(1911);
                oFieldObject.setHeight(226);
                rcd.getReportDefController().getReportObjectController().add(oFieldObject, rcd.getReportDefController().getReportDefinition().getDetailArea().getSections().getSection(0), -1);
    Then I get an error (which is not unexpected)
    com.crystaldecisions.sdk.occa.report.lib.ReportDefControllerException: The field was not found.---- Error code:-2147213283 Error code name:invalidFieldObject
    How do I add one of the table.SetDataFields()  to my report to be displayed?
    Are there any other pointers or suggestions you may have?
    Thank you

  • How to add collection to report as data source

    Hi all,
    i'm trying to add collection to report as data source:
    List<DmsLockingItem> items;
    ReportClientDocument rcd = new ReportClientDocument();
    DatabaseController dbc = rcd.getDatabaseController();
    dbc.setDataSource(items, DmsLockingItem.class, "tName","tName");
    this works with com.businessobjects.crystalreports.sdk but not with rasapp.jar.
    And i can't use plugin lib in my current project.
    can anyone help please?
    Greetings,
    Nikolas

    The setDatasource expects the object passed to either be a DataSet, java.sql.ResultSet, IXMLDataSet, or BusinessView object.  Are you able to convert your collection to one of these?

  • Adhoc Reporting using Data Sources instead of Report Model

    Hi Gurus,
    I'm working on SSRS 2008. I'm trying to create Adhoc Report using Report Builder 3.0. To select Data Source, both *.rsds and *.smdl are listed. I selected a Data Source which points to a SQL database. When I add New datasets, I'm able to add the fields and
    it automatically detect relationships (Joins) using Primary Key and Foreign Key defined in the tables. I'm also able to edit the query. I ran the report and it ran successfully.
    My question is I couldn't find any documentation regarding using Data Source for Adhoc Reporting. MS SQL documentation and forums insists that Report Model is required for Adhoc Reporting.
    Please let me know if someone tried to create Adhoc Report using Data Source instead of Report Model. While I understand there are more benefits using Report Model (define entities/attributes, show/hide entity/attributes, organize entities/attributes etc.),
    I just want to know if this is possible.
    Are there any known limitation using this method?
    Thanks In Advance!

    Hi Ereswaran,
    Yes, we can create ad hoc report using report using data source instead of Report Model. Ad hoc reports typically are used to answer a specific question at appoint in time, so consequently people don’t spend a lot of time arranging and formatting the data
    in a precise way. Other report development tools are available in Reporting Services to support more sophisticated reporting requirements.
    Using Report Builder, we can build a simple report that display data form a single data source as defined by a report model. This tool is most useful for business users who need access to information but lack the skills to write a SQL query. If we have full
    experience of SQL query, of course we can use data source instead of Report Model.
    If you have any questions, please feel free to ask.
    Regards,
    Charlie Liao
    Charlie Liao
    TechNet Community Support

  • Crystal Report 2008 - Save Report with Data

    I saved a Crystal report with data in Dev Environment on BOE Server (Infoview Folder) and this is transported to Quality Environment. In the quality environment, when I try to view this report, initial screen comes up with data of Development, instead of Quality environment.
    I am expecting that it will load the default data from Quality environment for the stored selection.
    Is there any settings to be done in the report settings, so that i can view the saved report in Quality Environment with Quality Env data instead of Dev Env Data?

    Thanks Don for the reply.
    In case, If we save the report with data in Dev, we need to update DB configuration to point to Quality Env using "Use Custom databse Logon Information".
    But when it gets transported to production (From Quality), it will show up Quality Envdata. So should i have to update the BOE in Q Environment, to point to Production and transport it?
    Is there any automated way that the system will point to right systems appropriately based on transport landscape?
    Does the functionality of "Save the report with data" used mainly for user friendliness for analysis in one environment and this functionality is not supported to move between environments?
    rgds
    Karthi

  • Failed to acquire DAS with data sources that match the specified OCE

    Please help, Thank you all.
    We are migrating Oracle databases from Windows to Linux servers. Currently, I have no problem to use my desktop Hyperion Intelligence Designer 8.5 with new oce file to connect to Linux. However, I published the same oce file to Hyperion Performance Suite 8.5 then I got “Sever Error [2018]: Failed to acquire Data Access Service with data sources that match the specified OCE”.
    I launched Service Configurator, in the “Local Service Configurator - DAS1_host”, the “Database JDBC URL is point to Linux server. Also, I added ODBC connection to Oracle database on Linux in the “Properties of Data Access Service: DAS1_host’s Data Source”. Database of JDBC URL in BI1_host, AZ1_host, PUB1_host, SM1_host, LS1_host, UT1_host, BPS1_host, AN1_host are also point to Linux server.
    The “Remote Service Configurator” has ES1_host’s” Storage” with JDBC URL point to Linux server. The same for RM1_host’s and NS1_host’s “Storage” with JDBC URL point to Linux server.
    Is there some missing configuration on the server? Thank you in advance.

    You should login to my oracle support to look into this ID.
    This is the solution mentioned
    Solution
    1) In the .profile file, you will find the definition of the LD_LIBRARY_PATH variable. However, the path to 64 bit libraries is probably appended before the path to the 32 bit libraries(%ORACLE_HOME%/lib32). Therefore, please reverse the order in the definition so that the 32 bit libraries get loaded before the 64 bit libraries.
    Then, restart all services.
    2) Oracle 9.2 was the first Oracle release which defaults to using the 64 bit libraries in the 'lib' directory and the 32-bit libraries that we need are in the 'lib32' directory.
    Therefore, please have the%ORACLE_HOME%/lib32 placed in front of the LD_LIBRARY_PATH environment variable definition.Then, restart all services.
    3) Please check that users have read and write access to the files located in the %ORACLE_HOME%/lib32 folder.
    4) Check the permissions of the libclntsh.a file(located in the %ORACLE_HOME%/lib32 folder) are set to rwxr-xr-x
    5) Recreate the OCE connection in DAS and restart DAS in CMC.
    6) Restart all the BIPlus Services and process the query.

  • Keynote document saved in icloud not updating with data from Numbers? is icloud the problem

    keynote document saved in icloud not updating with data from Numbers? is icloud the problem.
    If both files are held locally on the computer it looks like there is no problem however if you try and do it though icloud (ie your docs are saved on icloud) you dont get the "source" oprion besides the graph etc. Is this a but or a broken function due to the new implementation of icloud.

    Hi sebnor31,
    This is Visual C# forum, but your question seems not related to Visual C# language itself. It most likely related to the bluetooth message transaction protocal or with the device itself.
    I'll move your question to [where is this forum for...] forum where the morderator may direct you to the correct forum.
    Thanks for your understanding.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • MS Report Builder Data Source Missing

    Hi,
    Simply, when I log onto my server with a local or domain admin and open report Builder, I right click
    on Data Sources and choose add. I choose the one (only one) in the list and test (successfully) the connection.
    However, no other users see the Data source and trying to create one fails. They are local administrators. They have been added as admins in SQL and the DBs. I have rechecked all the permissions and the user has full admin rights to the server, SQL and DBs.

    Hi Analog-Kid,
    According to your description, when users click “Edit in Report Builder” on report server to launch click-once report builder, if users want to add a shared data source, they can’t see the shared data source list which resides on the report server, right?
    In your scenario, please check if those users could access the Data Sources folder on the report server. If not, please grant users permission to access this folder with Content Manager role on Security page. Also please connect to report server instance
    from SSMS, then check if Manage data sources has been selected.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Bw report as data source

    Hello toghether,
    Let's say we have a query on a cube and a lot of calculations made in the query.
    I have to load the results of the query into another BW project (cube).
    For the moment I create flat files from the query and I load them manually into the other project using PC File Upload infosources.
    Is it possible to make the connection directly? So that I can use the query as a datasource? If yes, please let me know how to do this.
    Thank you,
    Iuliana

    Hi,
    Other ways to do this are:
    1) Using Tcode : rscrm_report
    Re: rscrm_report - If time is set periodically will it overwrite/refresh?
    2) Using APD in which Query as data source.
    Re: Report result send to cube
    Re: Query result in a table
    With rgds,
    Anil Kumar Sharma .P

  • When creating a report, "Available Data Sources" is missing options.

    Background:
    I am running Crystal Reports XI Developer edition.
    Here are the steps to expose the problem:
    1.  Create a new standard report (Ctrl-N).
    2.  Available data sources - expand "Create New Connection"
    3.  I expect to find "Field Definitions Only" and "File System Data" in the displayed list (among many others).  However, I only see "Database Files", "OLE DB (ADO)", and "More Data Sources".
    4.  "Field Definitions Only" formerly appeared under "More Data Sources" but has disappeared.
    Question:  How do I get all the connection types to appear?
    I have a secondary computer running Crystal Reports where the entire list is populated.  The problem appears only on my primary Crystal Reports development machine.
    .... Warren

    Vitaly,
    1.  Yes, I checked "More Data Sources" - not there.
    2.  I tried adding the Field Definitions using Control Panel Add/Remove - no help.
       I tried removing the "Field Definitions" and then adding them again - no help.
    3.  Another machine does have the same version of CR.  It is running Vista.  Problem machine is running XP.
    4.  Clicked the "Reinstall" button in the Control Panel Add/Remove - this fixed the problem.  I did not need to uninstall the program.
    Both machines now exhibit the same list of connection types (with one small exception).  Thank-you for your hellp.
    .... Warren
    Edited by: Warren Pickell on Oct 23, 2009 11:55 PM
    Edited by: Warren Pickell on Oct 23, 2009 11:56 PM
    I'm trying to indicate "Yes, my question has been answered.", but it does not seem to "take".

  • Error loading report when data source changed

    We are migrating our Crystal Reports from using XML files generated from our SAP R3 system to using a direct connection to SAP R3 (using the SAP Integration Kit).
    The code is straightforward:
          crReport = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
          crReport.Load(reportPath);
    ...where the reportPath is just a string with the path and filename (e.g. "C:\reports\Report1.rpt").
    This worked fine with the report when it had an XML data source. When we run the code with the new version of the report that connects to a data table on our SAP R3 we get the following error message:
    Error in File Report1 {40205567-F890-4B3C-A103-C9C8F0A1E665}.rpt: Failed to logon to the Crystal Report Object Repository.
    The report is not in an Object Repository, nor do we even have a Repository in place right now. The report can be run manually from Crystal Reports on the desktop without any kind of Repository.
    Both versions of the report were built in Crystal Reports 2008.
    Thanks,
    Byron

    I am not sure if connecting to SAP is any different than connecting to SQL, but we develop one report and then deploy to N number of client who all have their own SQL servers and server names.
    Here is the code I use to alter the database connection at runtime:
      connection.DatabaseName = _datebaseName;
                    connection.ServerName = _serverName;
                    if (_integratedSecurity)
                        connection.IntegratedSecurity = _integratedSecurity;
                    else
                        connection.UserID = _userId;
                        connection.Password = _password;
                    connection.Type = ConnectionInfoType.SQL;
                    // First we assign the connection to all tables in the main report
                    foreach (CrystalDecisions.CrystalReports.Engine.Table table in _reportDocument.Database.Tables)
                        AssignTableConnection(table, connection);
                    foreach (CrystalDecisions.CrystalReports.Engine.Section section in _reportDocument.ReportDefinition.Sections)
                        // In each section we need to loop through all the reporting objects
                        foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in section.ReportObjects)
                            if (reportObject.Kind == ReportObjectKind.SubreportObject)
                                SubreportObject subReport = (SubreportObject)reportObject;
                                ReportDocument subDocument = subReport.OpenSubreport(subReport.SubreportName);
                                foreach (CrystalDecisions.CrystalReports.Engine.Table table in subDocument.Database.Tables)
                                    AssignTableConnection(table, connection);

  • "Open sql" report no data sourced defined in windows

    when I want to import data from sql database, the Open sql window report error
    "There are no data sourced defined. Please create one to continue",
    but I have defined the odbc data source using windows 's odbc administrator, why the error?
    chuliang

    A couple of possibilities.
    First are you licensed for Sql interface? If not, you might get that message.
    Second, where did you create the ODBC connection on your computer or the server. It has to be on the server.
    Third, did you create the odbc as a system driver? it needs to be so
    Fourth, what operating system? If it's unix or AIX there is a hole bunch more you need to do to get odbc connections working. If it's windows, it's pretty easy.
    Fifth, did you test the connection before trying it in Essbase?

  • Help to read a table with data source and convert time stamp

    Hi Gurus,
      I have a req and need to write a ABAP prog. As soon as i excute ABAP program it should ask me enter a data source name, then my ABAP prog has excute teh code, in ABAP code i have to read a table with this data source as key, sort time stamp from table and should display the data source and time stamp as output.
    As follows:
    Enter Data Source Name: 
    Then user enters : 2lis_11_vahdr
    Then out put should be "Data source  :"  10-15-2008.
    The time stamp format in table is 20,050,126,031,520 (YYYYMMDDhhmmss). I have to display as 05-26-2005. Any help would be apprciated.
    Thanks,
    Ram

    Hi Jayanthi Babu Peruri,
    I tried to extract YEAR, MONTH, DAY separately and using
    EDIT MASK written it.
    Definitely there will be some STANDARD CONVERSION ROUTINE will be there. But no idea about it.
    DATA : V_TS      TYPE TIMESTAMP,
           V_TS_T    TYPE CHAR16,
           V_YYYY    TYPE CHAR04,
           V_MM      TYPE CHAR02,
           V_DD      TYPE CHAR02.
    START-OF-SELECTION.
      GET TIME STAMP FIELD V_TS.
      V_TS_T = V_TS.
      CONDENSE V_TS_T.
      V_YYYY = V_TS_T.
      V_MM   = V_TS_T+4(2).
      V_DD   = V_TS_T+6(2).
      V_TS_T(2) = V_MM.
      V_TS_T+2(2) = V_DD.
      V_TS_T+4(4) = V_YYYY.
      SKIP 10.
      WRITE : /10 V_TS," USING EDIT MASK '____-__-________'.
              /10 V_YYYY,
              /10 V_MM,
              /10 V_DD,
              /10 V_TS_T USING EDIT MASK '__-__-__________'.
    If you want DATE alone, just declare the length of V_TS_T as 10.
    Regards,
    R.Nagarajan.
    We can -

  • Problem with Data source- full load is not extracting where as delta can.

    Hi All,
    I have a problem in loading of the region values into BW.
    Data Source 0CRM_OPPT_I is used to fetch opportunities ( same as Sales Orders in ECC) from CRM system.Data source has a field 0CRM_TR which gives the values of region values pof the employee responsible. problem here is that CRM_TR value is not being fetched when the record was first created, but the value is being flown to BW in the delta run i.e. when a change happened in record.
    Please anyone help us out in resolving this issue.
    Regards,
    Haaris.

    Hi Hari.......
    Hav u done init........if yes........What u hav done....I mean.....init with or w/o data transfer.....?
    It has picked records or not? if yes...........after init.........hav u checked the Delta queue(RSA7) in the source system...........is the Total field is 0 or not.........if 0..then....
    Look if u r using Direct delta.then after init.any changes or new records will get recorded in the Delta queue(RSA7) directly..........but if the Update mode is Unserialized V3 update or Qued delta.then data will accumulated in the Update table and the Extraction Queue respectively...........in that case u hav to schedule V3 jobs to pull them in RSA7............otherwise delta load will pick 0 records only........
    Check the update mode of the Datasource in LBWE.......
    Check this..........it may help u........
    Steps to do init load from CRM
    Regards,
    Debjani.......

  • Error with data source creation

    Error during Data Source creation: weblogic.common.ResourceException: DataSource
    (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
    (oraclePool)
    I have already created oraclePool with the following properties:
    Name : oraclePool
    URL : jdbc:weblogic:oracle
    Driver: weblogic.jdbc.oci.Driver
    Properties:
    user=system
    server=myserver
    In weblogic-ejb-jar.xml file:
              <reference-descriptor>
              <resource-description>
              <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
              <jndi-name>jdbc.GangsterDB</jndi-name>
              </resource-description>
         </reference-descriptor>
    In ejb-jar.xml file:
    <resource-ref>
              <res-ref-name>jdbc/GangsterDataSource</res-ref-name>
              <res-type>javax.sql.DataSource</res-type>
              <res-auth>Container</res-auth>
              </resource-ref>
    Do I need to make changes in my Entity Bean files? I have made a datasource called
    GangsterDB. I do not know the reason for this error. Please do let me know.
    Error during Data Source creation: weblogic.common.ResourceException: DataSource
    (jdbc.GangsterDB) can't be created with non-existent Pool (connection or multi)
    (oraclePool)
    Thank you
    Ronak Parekh

    I am still getting the same error:
    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>

Maybe you are looking for

  • Connecting to an LCD HDTV: DVI to HDMI male or female?

    Unwilling to plunk down $40 at Best Buy I bought a cable advertised on eBay for $2 described as HDMI male to DVI male. However, when I got it, it turned out to be DVI male to HDMI FEMALE. I want to be able to use my LCD HDTV (46" Sharp Aquos, 1080p,

  • Connecting a used ipod touch

    Hello, I've just bought a used iPod Touch (4th generation) off ebay, and can't get it to connect to my windows computer. When I turn it on the iPod shows a screen with a cable pointing to the iTunes logo. When I plug it in to the computer nothing hap

  • Display and filter custom columns in a presentation

    I haven't found anything in the documentation, so I post this question and hope to get an answer: In ALBPM 6 is it possible A) to display custom columns in a presentation, and B) to filter using these custom columns in a view? I am thinking of having

  • A/P DownPayment Invoice Objects Id

    Hi Please tell me the A/P Downpayment Invoice Objects Id. Regards, M.Dhivya.

  • Issue while starting of jetty server

    hi all, i'm not sure whether this is relevant forum or not, if not, plz let me know where i can move this topic i'm deploying a war file using a jetty server. while starting of the server i get the following error WARN!! No thread for com.sterlingcom