All cmp-fields that double as cmr-fields must have an object type??

Greetings,
I'm deploying an application in weblogic 8.1sp2 that worked fine in
jboss 3.2. The error is:
Exception:weblogic.management.ApplicationException: prepare failed for
ServiceEJB.jar Module: ServiceEJB.jar Error: Exception preparing module:
EJBModule(ServiceEJB.jar,status=NEW) Unable to deploy EJB:
ServiceEJB.jar from ServiceEJB.jar: [EJB:011017]Error while reading
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: In relationship
'primitive_TO_primitive_param', role
'primitive_param_BELONGS_TO_primitive', a cmp-field used to implement
this relationship has a primitive type. All cmp-fields that double as
cmr-fields must have an object type. . at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255) at
Does it means that I should cmp field from "int" type to "Integer"
object??? If true, I really don't know why the requirement since in
jboss worked just fine. But do you confirm it?
regards,
Pedro Salazar

I believe there is a requirement that any field used as a primary or
foreign key must be an object and implement hashCode/equals.
I'd post in weblogic.developer.interest.ejb.cmp if you want more
information.
-- Rob
Pedro Salazar wrote:
Greetings,
I'm deploying an application in weblogic 8.1sp2 that worked fine in
jboss 3.2. The error is:
Exception:weblogic.management.ApplicationException: prepare failed for
ServiceEJB.jar Module: ServiceEJB.jar Error: Exception preparing module:
EJBModule(ServiceEJB.jar,status=NEW) Unable to deploy EJB:
ServiceEJB.jar from ServiceEJB.jar: [EJB:011017]Error while reading
'META-INF/weblogic-cmp-rdbms-jar.xml'. The error was: In relationship
'primitive_TO_primitive_param', role
'primitive_param_BELONGS_TO_primitive', a cmp-field used to implement
this relationship has a primitive type. All cmp-fields that double as
cmr-fields must have an object type. . at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:255) at
Does it means that I should cmp field from "int" type to "Integer"
object??? If true, I really don't know why the requirement since in
jboss worked just fine. But do you confirm it?
regards,
Pedro Salazar

Similar Messages

  • All the field must be fill

    I have a form with 2 tables
    I have here one button
    I wanna put a code in this button that when I press this button check that all the fields must be fill
    I use this code in when button press
    declare
    v_alert number;
    begin
          v_alert := Show_Alert('close');  --( do you want to close OK/Cancel)
          IF v_alert=ALERT_BUTTON1 THEN
         if :v_code is null      or :v_name is null then     
          set_alert_property('close',alert_message_text,'Please Enter Vessel Code & Name');
            v_alert := Show_Alert('close');
    end;when i put vessel code and name and then again press button
    this alert also show me??

    Moazam
    Actual it is req.
    I have 0ne form/document and I want to close this document, it means after close this doc / form we consider that now we can not enter any information and this document is competed.
    thatswhy I check with button .. one button to close this doc.. when button press first check all form text that all the text are fill or not if not fill then show the alert or mesg ..
    finally I correct this code ,, i have done this work.

  • JDOQL queryfilter failure while retrieving field of "java.lang.Object" Type.

    PROBLEM DESCRIPTION --->
    JDOQL FILTER ON A FIELD OF "java.lang.Object" TYPE, NOT WORKING.
    HELP REQUESTED WITH SUGGESTIONS OR POINTERS TO THE CORRECT SOLUTION.
    Deatiled Problem :=
    Environment :=
    Kodo version 2.4.1 (on Windows 2000).
    J2SDK 1.3.1_06 (on Windows 2000).
    Database:= MySQL 3.23.55 (on Windows 2000).
    Java Class Hierarchy Example:=
    SuperPersistentObject
    |__ LevelOneDescendant
    |__ LevelTwoDescendant
    |__ LastDescendant
    Procedures Followed :=
    Java class named "LastDescendant" is enhanced and persisted in the
    database.
    The field "m_value" is of java type "java.lang.Object" and is
    represented as a "blob" in the database.
    Aadequate data is pumped in the field "m_value" (Data of Type
    String/Integer/Double/Boolean etc.). The class "LastDescendant" is
    retrieved using following JDO specific code :=
    SUCCESSFUL EXAMPLE :=
    Extent extent= PersistentManager.getExtent
    (com.name.project.LastDescendant.class, false);
    String m_queryFilter = "";
    Query query = PersistentManager.getQuery(extent, m_queryFilter);
    Collection m_resultset = (Collection)query.execute();
    The above code returns all the available "LastDescendant" objects
    persisted in the DB. Post Load, The value in the field "m_value" of
    all the retrieved "LastDescendant" objects, is testeded successfully
    and found to be matching to the expected values.
    FAILED EXAMPLE :=
    Extent extent= PersistentManager.getExtent
    (com.name.project.LastDescendant.class, false);
    //Retrieving only the objects whose "m_value" field contains Integer
    // values, between 10 and 9000. (110 objects with Integer value
    // between 10 and 9000 are pumped in the DB, for testing).
    String m_queryFilter = "(m_value >= 10 && m_value <= 9000)";
    Query query = PersistentManager.getQuery(extent, m_queryFilter);
    Collection m_resultset = (Collection)query.execute();
    NO "LastDescendant" OBJECTS RETRIEVED, the Collection "m_resultset" is
    Empty, (Actually Expecting 110 objects).
    Tried every other way, using "declareImports()"/ "declareParameters()"/
    "declareVariables()" etc. Tried TypeCasting the m_value field to Integer,
    but to no avail.
    Actual Classes :=
    public class SuperPersistentObject implements java.io.Serializable {
    protected String appKey;
    public class LevelOneDescendant extends SuperPersistentObject {
    protected SuperPersistentObject m_classRef;
    public class LevelTwoDescendant extends LevelOneDescendant {
    protected Object m_value;
    public class LastDescendant extends LevelTwoDescendant {
    "project.jdo" meta-data entry :=
    <class name="SuperPersistentObject"
    identity-type="application"
    objectid-class="com.name.project.AppKeyImpl">
    <field name="appKey" primary-key="true"/>
    </class>
    <class name="LevelOneDescendant" identity-type="application"
    persistence-capable-superclass =
    "com.name.project.SuperPersistentObject">
    </class>
    <class name="LevelTwoDescendant" identity-type="application"
    persistence-capable-superclass =
    "com.name.project.LevelOneDescendant">
    <field name="m_value">
    <extension vendor-name="kodo" key="data-column" value="VALUE"/>
    </field>
    </class>
    <class name="LastDescendant" identity-type="application"
    persistence-capable-superclass="com.name.project.LevelTwoDescendant">
    </class>
    JDO related properties :=
    javax.jdo.PersistenceManagerFactoryClass =
    com.solarmetric.kodo.impl.jdbc.JDBCPersistenceManagerFactory
    javax.jdo.option.ConnectionURL= jdbc:mysql://localhost/PRTestDB
    javax.jdo.option.ConnectionUserName= SuperUser
    javax.jdo.option.ConnectionPassword= <xxxxxx>
    javax.jdo.option.ConnectionDriverName= com.mysql.jdbc.Driver
    javax.jdo.option.Optimistic= true
    javax.jdo.option.RetainValues= true
    javax.jdo.option.NontransactionalRead= true
    javax.jdo.option.NontransactionalWrite= true
    javax.jdo.option.RestoreValues= true
    javax.jdo.option.Multithreaded= true
    javax.jdo.option.MsWait= 5000
    javax.jdo.option.IgnoreCache= false
    javax.jdo.option.MinPool= 1
    javax.jdo.option.MaxPool= 80
    com.solarmetric.kodo.impl.jdbc.WarnOnPersistentTypeFailure= true
    com.solarmetric.kodo.impl.jdbc.SequenceFactoryClass=
    com.solarmetric.kodo.impl.jdbc.schema.DBSequenceFactory
    com.solarmetric.kodo.impl.jdbc.FlatInheritanceMapping= true
    com.solarmetric.kodo.LicenseKey= <xxxx-yyyy-zzzz-2345-6789>
    com.solarmetric.kodo.EnableQueryExtensions= false
    com.solarmetric.kodo.DefaultFetchThreshold= 30
    com.solarmetric.kodo.DefaultFetchBatchSize= 10

    You can't query on a blob column.

  • I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back-up app.

    I have lost my Safari app and all the bookmarks that go with it. I have tried to download my back-up on external drive but cannot access it. Tried a start with C key held down but still no access to the back up app.
    Have used Superduper app. to back up and checked back-up occasionally to see if all files present  and appeared OK.
    I had previously started machine using original CD #1 to try and replace Eudora which was acting up. Did not knowingly touch Safari.
    Running iMAC System 10.4.11
    How can I successfully download from the Maxtor back-up?
    Ivan

    Further info.
    I checked the content of my other back-up and found the bookmark Bookmarks.plist in the library under Safari
    Dumped the existing copy in the computer and drag-dropped the back up. All bookmarks restored.
    Solved the Stickies problem by using Spotlight  to find file "stickiesdatabase" and did a drag- drop to replace file. All data restored.
    Re Ical data loss. Used Spotlight to find iCal document in  Library - Preferences where I found com.apple.iCal.plist in folder.
    Got ready to make change but did not immediately remove file. When I returned to Preferences folder to grab above document,
    the readable descriptors had been changed to code consisting of some upper case letters and/or single symbols!
    So now I cannot tell which is the symbol  iCal.plist
    Thanks for leading me so far, but how do I find that plist for my calendar?

  • My app iBooks keeps crashing non-stop after I allow all internet connections that iBooks asked for! I have tried to update OS Maverick, I've tried to restart etc. but it's just keeps crashing..  Please help.

    My app iBooks keeps crashing non-stop after I allow all internet connections that iBooks asked for! I have tried to update OS Maverick, I've tried to restart etc. but it's just keeps crashing..
    Please help.

    Hello there, Goraksanat.
    The following Knowledge Base article offers up some good pointers for troubleshooting your issue:
    OS X Mavericks: If an app freezes or quits unexpectedly
    http://support.apple.com/kb/PH13975
    Additionally you can try an SMC reset as it is recommended for:
    Applications may not function correctly or may stop responding after being opened.
    Intel-based Macs: Resetting the System Management Controller (SMC).
    http://support.apple.com/kb/ht3964
    Thanks for reaching out to Apple Support Communities:
    Cheers,
    Pedro.

  • I lost all of my music on my iPhone and must have separate iTunes account. How do I see if I have multiple accounts?

    i lost all of my music on my iPhone and must have separate iTunes account. How do I see if I have multiple accounts?

    It may be same computer but if a new, empty, library has been created then it is not the same library your device was synced with...
    For general library squiffiness following an upgrade or crash the easiest thing is to restore your last backup, but I guess if it were that simple you wouldn't be here.
    Empty/corrupt library after upgrade/crash
    Hopefully it's not been too long since you last upgraded iTunes, in fact if you get an empty/incomplete library immediately after upgrading then with the following steps you shouldn't lose a thing or need to do any further housekeeping. In the Previous iTunes Libraries folder should be a number of dated iTunes Library files. Take the most recent of these and copy it into the iTunes folder. Rename iTunes Library.itl as iTunes Library (Corrupt).itl and then rename the restored file as iTunes Library.itl. Start iTunes. Should all be good, bar any recent additions to or deletions from your library.
    See iTunes Folder Watch for a tool to catch up with any changes since the backup file was created.
    When you get it all working make a backup! For example grab SyncToy 2.1, a free tool from MS. This can be used to copy your entire iTunes library (& other important data folders) onto another hard drive or network share. You can then use SyncToy periodically to synchronise or echo your library to the backup. A preview will show which files need to be updated giving you a chance to spot unexpected changes and during the run only the new or updated files will be copied saving lots of time. And if your media is all organised below the main iTunes folder then you should also be able to open the backup library on any system running the same version of iTunes regardless of drive letter or path.
    tt2

  • Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    Greetings: I have multiple iPads and iPhones. I want all to be able to be able to stream to our Apple TV. All of the docs I see say you must have the same Apple ID for all the devices, but we each have our own Apple ID. Is this just a doc short coming?

    You can each have your own ID for your own iTunes accounts, but in order for a device to stream via AirPlay to the same Apple TV, everything must use the same homesharing ID. This is not the same as your iTunes account ID (although it can be for one of the devices)

  • HT4168 I have created an 100 page booklet in Pages, with many photographs, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?

    I have created an 100 page booklet in Pages, with many photographs, and much written word, can I export it to ePub, and make an electronic book, because it says that "Note: The Pages document must have been created using a word processing template"?....
    Basically what I want to do is publish the document into both an eDocument, and a hard copy document. What is the best way to do this?

    No Peter, this statement came right off the Apple ePub statement when outlining how to use ePub. the full context is:
    Creating ePub files with Pages
    Summary
    Learn how to create ePub files with Pages.
    Products Affected
    Pages '09
    ePub is an open ebook standard produced by the International Digital Publishing Forum. Pages ’09 lets you export your documents in ePub format for reading with iBooks on iPhone, iPad, or iPod touch.
    iBooks supports both ePub and PDF file formats, and you can export both from Pages.
    When to use ePub or PDF
    Use ePub when text is the most important part of your document, for example when you create a book, a report, a paper, a thesis, or classroom reading material.
    More details on using ePubUse PDF when layout is the most important part of your document, for example when you create a brochure, a flyer, or a manual with multiple illustrations.
    More details on using PDF
    Creating an ePub Document to Read in iBooks
    You can export any Pages word processing document to the ePub file format for reading in an ePub reader, such as the iBooks application on the iPad, iPhone, or iPod touch. Documents created in page layout templates can’t be exported to the ePub format.
    Documents exported to ePub format will look different than their Pages counterparts. If you want to get the best document fidelity between the Pages and ePub formats, style your Pages document with paragraph styles and other formatting attributes allowed in an ePub file. A sample document is provided on the Apple Support site that features styles and guidelines to help you create a Pages document that’s optimized for export to the ePub file format, which you can use as a template or a guide. To learn more about using paragraph styles in Pages, see the topics under the heading “Working with Styles” in the Pages built-in help.
    To read your ePub document in iBooks on your mobile device, you must transfer the ePub file that you create onto your device.
    To use the “ePub Best Practices” sample documentTo learn more about using the ePub format and get a better feel for how a Pages document might appear as a book in iBooks, it’s a good idea to download the “ePub Best Practices” sample document. After reading the guidelines and instructions within the document, you can use it as a template to create your own document. You can also import the styles from the sample document into a new document you create.
    Download the “ePub Best Practices” sample document at the following web address:
    http://images.apple.com/support/pages/docs/ePub_Best_Practices_EN.zip
    Do either of the following:Use the sample document as a template.Import the paragraph styles from the sample document into a new or existing Pages document.
    Export the document you create to ePub format to see how it looks in iBooks.
    Preparing an existing Pages document for export to ePub format
    Documents exported to the ePub format automatically appear with page breaks before every chapter. A table of contents is automatically generated, which allows readers to jump quickly to any chapter title, heading, or subheading in the book. In order to create a meaningful table of contents, it’s important to apply appropriate styles within your document. The ePub reader uses the paragraph styles to determine which items should appear in the table of contents for your book.
    Note: The Pages document must have been created using a word processing template.

  • Auto-populating fields based on another field (must access dif record type)

    This is a long one. I basically want to know if it's possible to have several fields auto-populated based on the data in another. It gets a little tricky here, because the information I want to auto-populate will have to be searched for in another record type. An example will hopefully make my request clear:
    I have 10's of thousands of records of the "Product" record type that each have a product number. Well, let's say I have several fields to enter into an "Opportunity" record type, based on the information for this product number in the "Products" record type. I want to know if I can enter the product number on the "Opportunity" record, and have OnDemand go look up this product number in the "Product" record type, pull information from that record, and auto-populate that additional information in certain fields back on the "Opportunity" record that I am entering information for.
    I know a workflow can do this on simple things where you have a few different part numbers and can create a workflow for each, but I literally have 40k part numbers, and I can't very well create that many workflows. If there was a way to dynamically script the workflow to use the part number in the field on the "Opportunity" record and go fetch the data to auto-populate, that would be nice.
    I also can't use a cascading picklist because, again, there are around 40k products records and picklists have a limit to how many choices you can have.
    My think tank has run empty, and I am out of ideas. I was wondering if there is any other way to get this done, or if it's even possible?
    Thanks,
    B
    Edited by: user10885599 on Feb 5, 2009 11:54 AM

    As I read this, I am wondering if you would be able to use the new JoinFieldValue() function to update the fields. The problem is that the Opportunity record does not have a direct link to products. The Revenue table does however, so you should be able to do this from Revenue, if that is how you are using the application.
    The process would be to create a workflow that watches for new Revenue records, and updates the new fields in the Revenue object using the JoinFieldValue function to pull the data.

  • When will Apple figure out that USB and microSD are must have items in a tablet?

    I have an iPhone and the new iPad and love them both.  The only problem is that prior to this I only had Android phones and tablets all of which have microSD and USB ports. Such ports are MUST HAVE options and for the life of me I cannot understand why Apple will not put them into their devices.  I for one love my iPad and iPhone but will not purchase any in the future without USB and SD ports.

    Again the Camera kit allows you to do what you want  swap via SD cards on and off and also USB and cable with one exception and that's the thumb-drive.
    Apple does not allow data transfer that way because iOS doesn't have an accessible file manager.
    You really need to buy the camera kit.
    There are also practical reasons that USB and SD card readers are NOT on board they take space they make the device thicker and heavier and they need their own controllers and power adding further space and weight.
    The Lightning/30 pin sockets significantly reduce the weight and energy consumption that USB and an SD cardreader would involve
    Again install bump its third party ad-hoc Wifi for file transfer with almost any device including your Android friends or your PC no 3G or Wiifi necessary.
    You need to do some configuration and software tests.
    I recommend bump, Goodreader and Dropbox in any tablet setup.
    All that said I think you may have made your mind up that for you legacy support may have value - Suggest you try a Surface if you can stand that W8 look and feel and limited software options oh and dire battery life.

  • The pitch for all my music got higher and faster - I must have adjusted something wrong?

    The pitch for all my music in ITunes got higher and faster - I must have adjusted something wrong?  I went back and tried to fix all my audio, but it is still happening.

    fundamentals, Welcome to the discussion area!
    Then I went to iTunes on the Mac Pro and it showed no remote speakers.
    In iTunes->Preferences->Advanced, choose the "Look for remote speakers connected with AirTunes" checkbox to display a speakers pop-up menu at the bottom of the iTunes window.

  • My facebook page is white with all the text pushed to the left, I must have pressed something on accident, any suggestions?

    <blockquote>Locking duplicate thread.<br>
    Please continue here: [/questions/834409]</blockquote>
    I was on facebook one day and i must have clicked something either on the screen or keyboard because everything turned white and all the text became pushed to the left. If i use 'https' (secure setting) then i can see my normal facebook, but i cant use apps such as picnik, games, etc..how can i change my fb back?

    I replied over here: https://support.mozilla.com/en-US/questions/834409

  • Accessing fields of a custom object type

    Hello,
    this is for Oracle 11.2.0.4.0
    I am trying to create and return an object inside a function and then access attributes of that object.
    It works in that I get the expexted result in my query, but the object is created once again for each attribute that I am accessing:
    CREATE OR REPLACE TYPE zzz_tp_type_test AS OBJECT (
      col_a VARCHAR2(100 CHAR),
      col_b VARCHAR2(100 CHAR),
      col_c VARCHAR2(100 CHAR)
    CREATE OR REPLACE FUNCTION zzz_f_type_test RETURN zzz_tp_type_test
    IS
      ret zzz_tp_type_test := zzz_tp_type_test('aa', 'bb', 'cc');
    BEGIN
      dbms_output.put_line('Running once...');
      RETURN ret;
    END;
    SET serveroutput ON;
    SELECT (A).col_a, (A).col_b, (A).col_c FROM (
        SELECT zzz_f_type_test A FROM dual
    The result of the SELECT query is
    (A).COL_A
    (A).COL_B
    (A).COL_C
    aa
    bb
    cc
    Running once...
    Running once...
    Running once...
    I am not sure why this is happening, or how to prevent this. I would expect to call the function only once, and then access that one created instance for each attribute.
    I am thinking it might have to do with the parentheses around "A", but that was the only way to get the query to execute - without them I got a syntax error.
    What do I need to change for the DB to execute the function only once?
    Thank you...

    That's a good solution using a table type and table function.  It can be simplified a bit, as shown below.
    SCOTT@orcl> -- test environment:
    SCOTT@orcl> select banner from v$version
      2  /
    BANNER
    Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    CORE    11.2.0.1.0    Production
    TNS for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    5 rows selected.
    SCOTT@orcl> -- original type and function:
    SCOTT@orcl> CREATE OR REPLACE TYPE zzz_tp_type_test AS OBJECT (
      2        col_a VARCHAR2(100 CHAR),
      3        col_b VARCHAR2(100 CHAR),
      4        col_c VARCHAR2(100 CHAR)
      5      );
      6  /
    Type created.
    SCOTT@orcl> CREATE OR REPLACE FUNCTION zzz_f_type_test
      2    RETURN zzz_tp_type_test
      3  IS
      4    ret zzz_tp_type_test := zzz_tp_type_test('aa', 'bb', 'cc');
      5  BEGIN
      6    dbms_output.put_line('Running once...');
      7    RETURN ret;
      8  END;
      9  /
    Function created.
    SCOTT@orcl> SET SERVEROUTPUT ON
    SCOTT@orcl> -- additional type from Gerard:
    SCOTT@orcl> create or replace type zzz_nt_type_test is table of zzz_tp_type_test;
      2  /
    Type created.
    SCOTT@orcl> -- simplification of Gerard's query:
    SCOTT@orcl> select i.col_a, i.col_b, i.col_c
      2  from  table (zzz_nt_type_test (zzz_f_type_test())) i
      3  /
    COL_A
    COL_B
    COL_C
    aa
    bb
    cc
    1 row selected.
    Running once...
    SCOTT@orcl> exec dbms_output.put_line('end');
    end
    PL/SQL procedure successfully completed.
    SCOTT@orcl>

  • I lost every all the apps that you start with and only have my games! What do i do?

    i jailbroke my iphone (yes i know i shouldnt have) but it was working fine and just recently when i tried opening apps, all the icons turned white and some would crash right when they were opened. I tried restarting my iphone and when i did i lost all the main apps (calendar,app store, music, settings, etc.) I dont know what to do.
    PLEASE HELP!!

    Did you go through the list and select Apps to sync?
    In settings, under iTunes and App store, turn off the Automatic downloads

  • A cmr-field and a cmp-field on the bean are using the same name. The names

    Hi:
    I am using weblogic 8.1 and MyEclipse 5.1.1. I am deploying my ear application through MyEclipse 5.1.1 as an ear file.
    When I ran the following EJB QL:
    SELECT OBJECT(p) FROM Product p.category = ?1
    I get the following error:
    n relation Category-Product, a cmr-field and a cmp-field on the bean are using the same name. The names of cmr and cmp fields must be unique.
    It is basically complaining that I have a field
    <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
    in my ejb-jar.xml and also the same category in the
    <cmp-field><field-name>category</field-name></cmp-field>
    field. The problem is that if I changed the value of the cmr-field, I have to add a get and set in my productLocal.java and when you do that you have to do the same in the ejb-jar.xml.
    Here is my ejb-jar.xml:
    <?xml version="1.0"?>
    <!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>
    <enterprise-beans>
    <entity>
    <ejb-name>CategoryEJB</ejb-name>
    <local-home>com.CategoryHomeLocal</local-home>
    <local>com.CategoryLocal</local>
    <ejb-class>com.CategoryBean</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>Category</abstract-schema-name>
         <cmp-field><field-name>categoryId</field-name></cmp-field>
    <cmp-field><field-name>categoryName</field-name></cmp-field>
    <cmp-field><field-name>picture</field-name></cmp-field>
    <cmp-field><field-name>pictureWidth</field-name></cmp-field>
    <cmp-field><field-name>pictureHeight</field-name></cmp-field>
    <cmp-field><field-name>labelOn</field-name></cmp-field>
         <cmp-field><field-name>labelOff</field-name></cmp-field>
         <cmp-field><field-name>button</field-name></cmp-field>
    <primkey-field>categoryId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findCategory</method-name>
                        <method-params></method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(c) FROM Category c
                   </ejb-ql>
              </query>
         </entity>
         <entity>
    <ejb-name>ProductEJB</ejb-name>
    <local-home>com.ProductHomeLocal</local-home>
    <local>com.ProductLocal</local>
    <ejb-class>com.ProductBean</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>Product</abstract-schema-name>
         <cmp-field><field-name>productId</field-name></cmp-field>
    <cmp-field><field-name>brandName</field-name></cmp-field>
    <cmp-field><field-name>productDescription</field-name></cmp-field>
    <cmp-field><field-name>purchasePrice</field-name></cmp-field>
    <cmp-field><field-name>category</field-name></cmp-field>
    <primkey-field>productId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findProduct</method-name>
                        <method-params>
                        <method-param>com.CategoryLocal</method-param>
                        </method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(p) FROM Product p.category = ?1
                   </ejb-ql>
              </query>
         </entity>
    </enterprise-beans>
    <relationships>
                   <ejb-relation>
                   <ejb-relation-name>Category-Product</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Category-has-many-Product-numbers
                        </ejb-relationship-role-name>
                        <multiplicity>one</multiplicity>
                        <relationship-role-source>
                             <ejb-name>CategoryEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>productNumbers</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Product-belongs-to-Category
                        </ejb-relationship-role-name>
                        <multiplicity>many</multiplicity>
                        <cascade-delete/>
                        <relationship-role-source>
                             <ejb-name>ProductEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
                   </ejb-relationship-role>
              </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <security-role>
    <role-name>Employees</role-name>
    </security-role>
    <method-permission>
    <role-name>Employees</role-name>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>ProductEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>     
    Here is my weblogic-cmp-rdbms-jar.xml:
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
         <ejb-name>CategoryEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>category</table-name>
              <field-map>
              <cmp-field>categoryId</cmp-field>
              <dbms-column>categoryID</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>categoryName</cmp-field>
              <dbms-column>categoryName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>picture</cmp-field>
              <dbms-column>Picture</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureWidth</cmp-field>
              <dbms-column>PictureWidth</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureHeight</cmp-field>
              <dbms-column>PictureHeight</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOn</cmp-field>
              <dbms-column>LabelOn</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOff</cmp-field>
              <dbms-column>LabelOff</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>button</cmp-field>
              <dbms-column>Button</dbms-column>
              </field-map>
    </table-map>
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
         <ejb-name>ProductEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>PRODUCT</table-name>
              <field-map>
              <cmp-field>productId</cmp-field>
              <dbms-column>productId</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>brandName</cmp-field>
              <dbms-column>brandName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>productDescription</cmp-field>
              <dbms-column>productDescription</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>purchasePrice</cmp-field>
              <dbms-column>purchasePrice</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>category</cmp-field>
              <dbms-column>categoryId</dbms-column>
              </field-map>
    </table-map>
         <!-- Automatically generate the value of ID in the database on inserts using sequence table -->
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-relation>
         <relation-name>Category-Product</relation-name>
    <weblogic-relationship-role>
    <relationship-role-name>Product-belongs-to-Category</relationship-role-name>
              <relationship-role-map>
    <column-map>
    <foreign-key-column>categoryId</foreign-key-column>
    <key-column>categoryID</key-column>
    </column-map>
              </relationship-role-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>
    Here is my productLocal.java:
    package com;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Vector;
    import java.util.Collection;
    public interface ProductLocal extends javax.ejb.EJBLocalObject
         public Integer getProductId();
         public void setProductId(Integer productId);
         public String getBrandName();
         public void setBrandName(String brandName);
         public String getProductDescription();
         public void setProductDescription(String productDescription);
         public Double getPurchasePrice();
         public void setPurchasePrice(Double purchasePrice);
    public CategoryLocal getCategory();
         public void setCategory(CategoryLocal category);
    Here is my ProductBean.java:
    package com;
    import javax.naming.InitialContext;
    import javax.ejb.EntityContext;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Vector;
    import java.lang.Integer;
    public abstract class ProductBean implements javax.ejb.EntityBean
         public Integer ejbCreate(Integer id)
              this.setProductId(id);
              return null;
         public void ejbPostCreate(Integer id)
         //public abstract Integer getCategoryId();
    //     public abstract void setCategoryId(Integer categoryId);
         public abstract CategoryLocal getCategory();
         public abstract void setCategory(CategoryLocal category);
         public abstract Integer getProductId();
         public abstract void setProductId(Integer productId);
         public abstract String getBrandName();
         public abstract void setBrandName(String brandName);
         public abstract String getProductDescription();
         public abstract void setProductDescription(String productDescription);
         public abstract Double getPurchasePrice();
         public abstract void setPurchasePrice(Double purchasePrice);
         public void setEntityContext(EntityContext ec)
              System.out.println("ProductBean setEntityContext");
         public void unsetEntityContext()
              System.out.println("ProductBean unsetEntityContext");
         public void ejbLoad()
              System.out.println("ProductBean ejbLoad");
         public void ejbStore()
              System.out.println("ProductBean ejbStore");
         public void ejbActivate()
              System.out.println("ProductBean ejbActivate");
         public void ejbPassivate()
              System.out.println("ProductBean ejbPassivate");
         public void ejbRemove()
              System.out.println("ProductBean ejbRemove");
    What do I needed to do to fix this problem.
    Any hint or help would be greatly appreciated!!!
    Yours,
    Frustrated

    cmr field which is "category" in ur mapping , u can't use as cmp field in abstract schema mapping. just remove category from cmp field . and every thing is fine

Maybe you are looking for