Creating&deploing CMP bean step by step

Hi!
Anybody can explain subj process? Is it possible to create CMP bean in ORACLE without BC4J?
I create simple CMP bean by withard but it's dosn't work.
System Error: java.lang.ClassNotFoundException: oracle.jbo.DMLException
System Error: java.lang.Object java.io.ObjectInputStream.readObject(boolean) (ObjectInputStream.java:468)
System Error: java.lang.Object java.io.ObjectInputStream.readObject() (ObjectInputStream.java:232)
System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:60)
System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
System Output: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0
System Error: org.omg.CORBA.MARSHAL: Unexpected User Exception: IDL:EjbExceptions/EjbRemoteException:1.0 minor code: 0 completed: No
System Error: com.retailpro.cms.ao.test.UserInfo com.retailpro.cms.ao.test._st_UserInfoHome.create() (_st_UserInfoHome.java:70)
System Error: void com.retailpro.cms.ao.test.client.TestClient.<init>() (TestClient.java:48)
System Error: void com.retailpro.cms.ao.test.client.TestClient.main(java.lang.String[]) (TestClient.java:93)
Mike

In JDeveloper3.2 , BC4J is used as persistence layer for CMP entity beans.
BC4J with its advanced O-R Mappings, Validations, Domains, Forward Generation, Flexibility and ease of use provides a powerful solution to build simple to very complex Container Managed Entity Beans.
check out the demo scripts available on technet http://technet.oracle.com/products/jdev/htdocs/fullcmpdemo/cmpdemo.html http://technet.oracle.com/products/jdev/htdocs/cmpdemo2/cmpdemo2.html
we will have a white paper on CMP available soon on technet which will talk about the advanced features.
raghu
null

Similar Messages

  • Problem in creating a CMP bean with MySql

    Hi,
    I am using lomboz eclipse, jboss 4.0.2, xdoclet 1.2.3 & DB as MySql 5.0. I am encountering a very strange problem when I try to create a CMP with MySql as DB. After entering relevant information about the datasource & testing the connection & finding it to be successful, I get the error in lomboz eclipse as : CMP has no attributes. Moreover, I donot even get the table names from the schema, that was given in the datasource, with which the mapping of my CMP will be done.
    I tried using Oracle 9i. But to my wonder, I didnot experience this issue, as it gave me all the CMP atttributes mapped & also created the CMP with Oracle DB. Can anyone help me in getting this issue resloved with MySql DB?

    Yeah, the DB User permissions are found to be ok, as the test connection was successfull. I have tried for MySql 4.1 & Myql 5.0, with their respective jars & driver classes. But the result was same. Test connection is successful, but when i hit the next button to see the CMP attributes, it doesnot give me the list of tables under that schema & says that CMP has no attributes. Please help.

  • Step by step procedure for creating BOL

    Hi All,
    I am new to CRM and facing  a lot of problems while creating BOL.
    Please help me by providing some link which will guide step by step for
    creating BOL.
    Thanks
    Alsalfi

    HI Alsalfi,
    Simple Object allows only for single table. If you want to create for multiple tables, then u need to create BOL for each table and define a parent -child relationship and also its cardinality in the Simple object configuration in spro.
    Hope it helps.
    -Satish

  • I have a nano and want to transfer my music from it to my new iPad. Unfortunately upon the excitement of setting up my new iPad I created a new apple Id and now cannot sync. Can I do it another way. Step by step pls I'm technologically challenged!

    I have a nano and want to transfer my music to my new iPad, in all the excitement of setting up my iPad I created a new apple Id and now I can't sync my music!
    Can someone please advise if there is a way to transfer my music to my iPad manually? If so, please detail step by step, as I am technologically challenged! Thanks in anticipation.

    You can search within your music folder on your pc, or within documents folder for a music folder.
    In any case, you would need to sync with itunes
    IOS: Syncing with iTunes
    http://support.apple.com/kb/HT1386
    Apple - Support - iPad - Syncing
    http://www.apple.com/support/ipad/syncing/
    If the music was purchased from the itunes store, you can also download it directly from there to the ipad.

  • RE: Consuming and Creating a CMP Entity Bean

    Hi There,
    I have been trying to find an answer for 1 day. I don't know ehre to look next.
    I am creating a CMP entity bean. I have created all the set and get mehtods as abstract functions. I have added a ejbCreate and a matching ejbPostCreate. The class code looks like this.
    public abstract class COrderBean implements EntityBean {
         protected EntityContext entctx;
         //abstract declarations of property accessors
         public abstract int getId();
         public abstract void setId(int intid);
         public abstract String getCustomerID();
         public abstract void setCustomerID(String strcustomerid);
         public abstract Date getDate();
         public abstract void setDate(Date datorder);
         public abstract String getNotes();
         public abstract void setNotes(String strnotes);
         public void ejbActivate() {}
         public void ejbPassivate() {}
         public void ejbRemove() {}
         public void ejbLoad() {}
         public void ejbStore() {}
         public void setEntityContext(EntityContext context)
              entctx = context;
         public void unsetEntityContext()
              entctx = null;
         public COrderPK ejbCreate()
              return null;
         public COrderPK ejbCreate(int new_id, String new_customerid, Date new_order_date, String new_notes) throws CreateException
              setId(new_id);
              setCustomerID(new_customerid);
              setDate(new_order_date);
              setNotes(new_notes);
              return new COrderPK(getId());
         public void ejbPostCreate(int id, String customerid, Date order_date, String notes) {}
    My client code works with both BMP entity beans and session beans. It is shown below. I am working with Sun's Application Server 8.0 and I created the database schema with the capture-schema.exe command.
    Properties prps = new Properties();
              props.put("javax.rmi.CORBA.UtilClass","com.sun.corba.ee.impl.javax.rmi.CORBA.Util");
              props.put("org.omg.CORBA.ORBClass","com.sun.corba.ee.impl.orb.ORBImpl");
              props.put("org.omg.CORBA.ORBSingletonClass","com.sun.corba.ee.impl.orb.ORBSingleton");
              Context context = new InitialContext(props);
              Object obj = context.lookup("corbaname:iiop:localhost:3700#COrderBean");
              //Object obj = context.lookup("entitybean.OrderItem");
                   IOrderHome home = (IOrderHome)PortableRemoteObject.narrow(obj,Class.forName("ctaejb.entitybean.order.IOrderHome"));
                   //use create
                   IOrderRemote remote = home.findByPrimaryKey(new COrderPK(1));
                   System.out.println(remote.getDate().toString());
    I am getting the follwing error. Can someone please help. Thanks in advance.
    WARNING: "IOP00810257: (MARSHAL) Could not find class"
    org.omg.CORBA.MARSHAL: vmcid: SUN minor code: 257 completed: Maybe
         at com.sun.corba.ee.impl.logging.ORBUtilSystemException.couldNotFindClass(ORBUtilSystemException.java:7987)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1013)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:259)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObjectField(IIOPInputStream.java:1989)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputClassFields(IIOPInputStream.java:2213)
         at com.sun.corba.ee.impl.io.IIOPInputStream.inputObject(IIOPInputStream.java:1221)
         at com.sun.corba.ee.impl.io.IIOPInputStream.simpleReadObject(IIOPInputStream.java:400)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValueInternal(ValueHandlerImpl.java:330)
         at com.sun.corba.ee.impl.io.ValueHandlerImpl.readValue(ValueHandlerImpl.java:296)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:1034)
         at com.sun.corba.ee.impl.encoding.CDRInputStream_1_0.read_value(CDRInputStream_1_0.java:879)
         at com.sun.corba.ee.impl.encoding.CDRInputStream.read_value(CDRInputStream.java:255)
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:30)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)
    Caused by: java.lang.ClassNotFoundException
         ... 27 more
    org.omg.CORBA.UNKNOWN: vmcid: 0x0 minor code: 0 completed: Maybe
         at com.sun.corba.ee.spi.servicecontext.UEInfoServiceContext.<init>(UEInfoServiceContext.java:34)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
         at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
         at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
         at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
         at com.sun.corba.ee.spi.servicecontext.ServiceContextData.makeServiceContext(ServiceContextData.java:114)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.unmarshal(ServiceContexts.java:195)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:365)
         at com.sun.corba.ee.spi.servicecontext.ServiceContexts.get(ServiceContexts.java:353)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.processResponse(CorbaClientRequestDispatcherImpl.java:470)
         at com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.marshalingComplete(CorbaClientRequestDispatcherImpl.java:327)
         at com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.invoke(CorbaClientDelegateImpl.java:158)
         at com.sun.corba.ee.impl.presentation.rmi.StubInvocationHandlerImpl.invoke(StubInvocationHandlerImpl.java:129)
         at com.sun.corba.ee.impl.presentation.rmi.bcel.BCELStubBase.invoke(Unknown Source)
         at ctaejb.entitybean.order._IOrderHome_DynamicStub.findByPrimaryKey(_IOrderHome_DynamicStub.java)
         at mainapp.CTestApplication.main(CTestApplication.java:32)

    Forget it. All the code works. I didn't know that the Sun App Server required a Persistence Manager to work with CMP entity beans. Once I added the persistence manager, all was OK. Have a good day.

  • How to create a sales order step by step please..

    hi,
    how to create a sales order in detail step by step.
    Regards,
    BBR.
    Edited by: BBR on Dec 7, 2008 7:47 PM
    Edited by: BBR on Dec 7, 2008 7:53 PM

    Hi BBR
    Check the following configurations are done or not
    1)Go to VOR1 & VOR2 and assign dist channels and divisions to sales orgn.
    2) SPRO->sales and distribution->basic functions->setup partner determination , here you maintain partner determination with the partner functions for Customer account group ,standard for sold to party is 0001
    3) Create a customer with XD01
    4) In OVAZ assign the sales document types to your sales area
    5) Go to  VN01 and maintain number ranges and assign to your sales document type (Ex: OR)
    6)Go to VOV8 and select the  sales document type(Ex: OR) and there you assign the number range
    7) IN VOV4 check the item category determination is correct or not
    8)Go to OVKK and Assign pricing procedure RVAA01 to your sales area,Cupp ,Dupp.
    9) Maintain conditon records for the condition types that are there in the pricing procedure
    10) Create a Material Master Record(MMR)
    11) Now you can create the sales order with VA01
    Regards
    Srinath

  • Creating a request in Transports? Step by step needed.

    Hi BW gurus,
    I would like to know the steps for creating a request with collection of necessary objects which needs to be transported.
    the necessary objects are: Multi provider, Info cube, Update rules.
    Collection mode is selected as manually.
    Grouping is selected as only necessary objects.
    The Infocube which needs to be transported is the new one created from a copy of existing cube.
    The Multiprovider is the existing one which has been modified by including the new cube created.
    The Update rules which needs to be transported are also the new ones created from the copy of existing ones.
    So, Please give me the step by step procedure for doing this.
    Note: Against Multiprovider, we have a check box for transport. When that can be checked. I hope it can be checked if we select the data flow before & afterwards only.
    Please clarrify.
    Points will be rewarded for sure for all helpful answers.
    So, please spare some time & write the answers.
    Thanks & Regards

    Hi,
    In Transport Connection Just select U r Multi provider select grouping  with Before
    then u 'ill get u r requirement after u can select witch objects u needs to transport.
    let me know further
    *******Asign Points If useful*******
    Cheers,
    Satya

  • Step by step instructions to create a Simple PCUI Application

    I am very new to PCUI and have been trying to get a simple application up and running for the last few days. There always seems to be some problem or the other. At times it gives a dump, at times it gives me a screen without the search request or search result area and when i get all of these done, my application just does not invoke the Query method.
    I would appreciate it if you could give me Step by Step instructions to create a simple PCUI application to search for some data from an existing database table and display it.
    Thanks in advance!!!

    Hi Mithun
    You can also download the PCUI Cookbook from:
    http://service.sap.com/instguides -> my SAP Business Suite Solutions -> my SAP CRM -> my SAP 2005. The title is PCUI Book for CRM 2005.
    The direct link is (which may change so I recommend that you follow the menu path) https://websmp209.sap-ag.de/~sapidb/011000358700001093962006E/PCUIBook50_06.pdf
    Refer the following weblog
    /people/vijaya.kumar/blog/2005/06/10/people-centric-user-interface-pcui--getting-started
    Hope this will help
    Regards,
    Rekha Dadwal
    <b>You gain a point for every point that you reward. So reward helpful answers generously</b>

  • Step by Step method to create a process chain in SAP BI

    HI There,
    I'm new to SAP BI, can anyone pleas explain me why we need to use Process Chains in a simpler way?
    Also it would be great if someone can give me step by step description for creating process chain. I've seen couple of PDF files but they confusing me more then clearing my doubts. Appreciate your time and thanks in advance.
    Vandana
    Please search the forum before posting a thread
    Edited by: Pravender on May 4, 2011 3:57 PM

    Hi Vandana,
    1.Go to RSPC tcode ->(F5) create ->It will ask for process chain name ->then it will ask for start variant
    2.If you have no start variant pre created then create new one (at right side there will be a paper symbol for that ).Every process chain has one and only one start variant that is to set scheduling option etc .When you will create a new one you will go to a screen where you have scheduling option .
    3.a) Direct scheduling ->to start execution immediately 
       b) start using meta chain or API ->chains which run at specific time (day ,month etc or after some specific event ). save your settings and go back .click check symbol for final creation of start variant.
    4.Now at left screen you  have chain symbol (process types) .when you will click on that you will have all the process lists .
    5.You can select process as per your requirement and connect different processes together.Each process is a different event (ex : load DTP ,Infopackage ,ABAP program ,AND ,Interrupt ).You cna do detailed study for that .
    6.After adding all processes activate (ctrl+F3) and execute .
    7.After that you can check logs (shift+F1) .you can see todays log ,yesterday and today etc .For details of every process execution right click on process and see display variant .
    Hope this will be helpful for basic startup.you can further read thoroughly on each process .
    Regards,
    Jaya

  • Step by Step how to Use Java Beans in Form 6i

    Dear All,
    Can anybody tell me step by step how to use Javabeans in form 6i.
    What i want is to know which form is getting executed and by whom with ip address on application server.
    When is execute the form made using javabeans
    Best Regards,
    Devendra

    Hello,
    <p>Here is the best way to start with Javabeans.<br>
    After reading that, you can see if this bean can fit</p>
    Francois

  • Step by Step procedure to create an entire scenario Using CAF

    Dear All,
        I have a scenario to develop using Composite Application Framework.After creating the CAF i need to display the CAF on the portal. step by step procedure(if possible with screen shots) to create a CAF and how to find web services and then display this application on portal.
    Thanks

    Hi Yogi,
    In your sceanario if you are looking to build either Enity or Application service then create it and test that service from "Service Browser". Once your service is working as per your reqyurements then we have to options to bring it into the Portal:
    1. Generate Web Service for you Service (Entity or Application).
    2. Consume that Web Service in WebDynpro application using Model concepts.
    3. Deploy your WebDynpro Application into your portal Server.
    4. Create a WebDynpro iView for your application and assign it any where you want.
                                                         OR
    1. Generate WebDynpro model for your CAF application.
    2. Create a public part for you application webdynpro project of your CAF application.
    3. Create a new WebDynpro DC and use the Models generated for your CAF application.
    4. Deploy your WebDynpro Application into your portal Server.
    5. Create a WebDynpro iView for your application and assign it any where you want.
    If you can give your complete scenario then that would be more helpful for any one to provide best answer which is approapriate for you.
    Thanks,
    Uday.

  • Step-by-Step procedure to create an InfoPackage Group & a Scenario!!

    Hello BW Experts,
    IF we have 10 InfoPackages and if we need to create an InfoPackage Group for 7 of them, How do we do it??
    Plz provide a detailed Step-by-Step procedure for the same/ create an InfoPackage group!!
    Ur help is really appreciated!!
    Thanks & Regards,
    Sapster.

    Hello Stefan,
    Thanks for ur response...with ur detailed steps..really helpful.
    While sheduling at the last ..by clicking the context menu of our created IP Group.. I am not getting any screen to schedule the same..(I am getting amessage at the mottom saying its not possible to run it in the back ground for my client workstation or similar to this)
    Could u plz let me know.. what it looks like for these remaining steps
    "Right click on the InfoPackage Group that you just created -> Schedule -> Check that all InfoPackages are selected -> Schedule the job just as you normally do with a InfoPackage."... thansk again.. assigend points...

  • CMP Beans from Tables: Why does the Container try to create new tables?

    I'm trying to develop an EJB application using JDeveloper on 9iAS. I have several CMPs and have my tables that I want my CMPs to be based on already defined in my DB schema. I want to use CMP but I don't want the Container to create the tables, rather I want the Container to map my CMP EJBs to the already existing tables.
    The issue is:
    While creating these CMP EJBs in JDeveloper I chose the "New Enterprise Java Bean" EJB creation wizard using the option labeled "Container-managed Entity Beans from Tables". My assumption is that this does what I want, because the wizard prompts for a schema and table you want to map to. Then it creates the attributes & getter/setter methods, PK class, etc. all based on the table defintion automatically. Great. So why when I try to run my application do I get error messages for each EJB such as:
    Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
    Warning: Error creating table: ORA-00955: name is already used by an existing object
    Huh?? I thought the idea is that the CMP EJB is mapped to the existing table in my schema. Why is the Container trying to create new tables?? Is this possible? Or am I missing something fundamental about how Containers create and manage CMPs? Or is this just a JDevelop container issue? TIA

    I presume you are getting the problem on application
    deploy? This happens when upon initialization of the application using the built-in OC4J container/app server that is part of JDeveloper. Here is the full messaging:
    [Starting OC4J using the following ports: HTTP=8989, RMI=23892, JMS=9228.]
    C:\OraHome1\jdk\bin\javaw.exe -ojvm -classpath C:\OraHome1\j2ee\home\oc4j.jar com.evermind.server.OC4JServer -config C:\OraHome1\jdev\system\oc4j-config\server.xml
    [waiting for the server to complete its initialization...]
    Copying default deployment descriptor from archive at Q:\CBTCOF\COF_APPLICATION\COF_Project\classes/META-INF/orion-ejb-jar.xml to deployment directory C:\OraHome1\jdev\system\oc4j-config\application-deployments\current-workspace-app\classes...
    Auto-deploying file:/Q:/CBTCOF/COF_APPLICATION/COF_Project/classes/ (No previous deployment found)...
    Auto-creating table: create table STREET_TYPE (PK_STYP_ID NUMBER(8), STREET_TYPE VARCHAR2(20), primary key (PK_STYP_ID, STREET_TYPE))
    Warning: Error creating table: ORA-00955: name is already used by an existing object
    [...OTHER SIMILAR ERROR MESSAGES]
    done.
    Oracle9iAS (9.0.2.0.0) Containers for J2EE initialized
    If so, in the application.xml file of you
    OC4J instance the is a setting autocreate-tables,
    which by default is true!
    Set it to false as below and that should clear up
    your problem.
    <orion-application autocreate-tables="false"
    default-data-Hmm. I found at least a dozen or so files with that name and set everyone that had this attriute to "false", restarted the OC4J server and still got these errors.

  • What is the step by step process to create a table in data dictionary?

    hi,
    What is the step by step process to create a table in data dictionary?
    regards.

    sorry, question resolved.

  • Step by step creating dashbords in bo xi r/3

    Dear friends,
    I am trying to create dashboards in BO XI R/3 ,can ypu Please guide me is there any step by step Procedure to learn creation of dashboards.
    Regards,
    chandra

    take a look here:
    /people/ingo.hilgefort/blog/2008/11/19/businessobjects-integration-with-sap-netweaver-bi--technical-material
    ingo

Maybe you are looking for

  • How to use two versions routing in SAP on different time period?

    Hi PP experts, There is a material Material-100 linked Routing-A and Routing-B. I would like to use Material-100/Routing-A combination during period 29.04.2015-30.05.2015, and using Material-100/Routing-B combination during period 01.06.2015-31.12.99

  • Installing Windows 7 on Mac - no bootable device error

    Hello, I recently purchased Windows 7 Ultimate and am trying to install it on my MacPro running Lion and Bootcamp 4.0.  I spent the last couple of days looking online at other fourms and YouTube videos to no luck.  I installed Windows 7 and can get i

  • Does every 27 inch iMac have 4 Slots for RAM?

    I want to buy a new iMac and wanted to know for later upgrading if every 27 inch iMac has 4 RAM slots?

  • Problem Streaming Videos Through iTunes U Private

    We have recently received reports from students and faculty that they are unable to preview longer videos hosted in iTunes U Private. While this problem seems to affect longer videos with file sizes over 500 MB, there does not appear to be a specific

  • Materialized Views created using ROLLUP

    Not sure if this one is best posted to a general Oracle forum, or even to the Discoverer Forum, but it's more to do with Data Warehousing so here goes... 1. If I create a materialized view, either with or without OWB, do I also need to separately cre