EJB Modeling:

EJB Modeling:
Hi,
1.)I have 5000 ResultSets(10 records each) created by submitting 5000
deferent queries to a Web search engine . Each has an unique ID
assigned.
2.)I have to serve a ResultSets to a web client based on the ID he
requested.
3.)Each ResultSets has to refresh its date when a Trigger fires an
Event.
So I have to cache these ResuleSets and find them by ID.
How can I model this type of DataObject in EJB:
(CMP Entity Bean,BMP Entity Bean,Stateless Session Bean?)
any help appreciated
thanks
-Sumanth
[sumo.vcf]

Hi,
Better to use CMP Entity Beans to model these kind of things in ejbs.
---Anilkumar kari

Similar Messages

  • Error while importing EJB model in Web dynpro: Unable to fetch the EJBs.

    Hi,
    We are getting the below error while importing ejb model to Web dynpro.
    Error :
    Unable to fetch the EJBs. Check if the selected Enterprise Application contain the EJBs.
    I have created the public part-> It has a reference to EJB client and the enterprise application also has reference to the EJB project.The EJB is also added in dependency list.
    But still we are getting this error. Could anyone please explain what can i do to solve this issue.
    Best Regards,
    Karthika

    Hi Vishweshwara,
    Thanks for your reply.
    Please find the steps i followed while importing EJB model in webdynpro.
    1. The Entity forwarding permission has been enabled.
    2. public part reference has been created and through the reference entity option the ejbDC->Client public part is selected.
    I followed all the steps mentioned in the document. But still i am getting that error. In EJB DC we have list of JPA entities and stateless session beans are exposed as a webservice(top-down manner).The enterprise application has a reference to the EJB DC.
    I could be able to invoke the ejb service beans from ejb explorer and Webservice navigator.
    I am able to insert,delete and modify the records from there.
    Please let me know what could i do to resolve this error?
    Best Regards,
    Karthika
    Edited by: SAKarthika on Apr 29, 2011 1:43 PM

  • Error in execution of EJB model

    Hi All ,
            I am using EJB model in my web dynpro dc which is having two wd comp.CompA is firing plug to interfaceview of compB.b4 firing plug its calling showDetails() method from interface controller of compB and executing model based on data sent by compA. When i am clicking link for the first time its working fine.i click link for the second time i am getting error as given below.
    also this EJB model is used by both (compA , compB). I have written code to create model instance in init of controllers of both components.
    com.sap.tc.cmiimpl.base.exception.BaseCMIImplRuntimeException: No object for mandatory target role 'return' of model class 'Response_HrHelpDeskLocal_getAllPolicyDocuments' with cardinality 'ONE' maintained
      at com.sap.tc.cmiimpl.base.model.BaseGenericModelClass.getRelatedModelObject(BaseGenericModelClass.java:403)
      at com.apl.hrhlpdyn.model.Response_HrHelpDeskLocal_getAllPolicyDocuments.getReturn(Response_HrHelpDeskLocal_getAllPolicyDocuments.java:33)
      at com.apl.hrhlpdyn.policydoc.wdp.IPublicPolicyDocs$IGetAllPolicyDocumentsReturnNode.doSupplyElements(IPublicPolicyDocs.java:1660)
      at com.sap.tc.webdynpro.progmodel.context.DataNode.supplyElements(DataNode.java:100)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:242)
      at com.sap.tc.webdynpro.progmodel.context.MappedNode.createMappedElementList(MappedNode.java:78)
      at com.sap.tc.webdynpro.progmodel.context.MappedNode.supplyElements(MappedNode.java:69)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElementListAsObject(Node.java:242)
      at com.sap.tc.webdynpro.progmodel.context.Node.getElementList(Node.java:259)
      at com.sap.tc.webdynpro.progmodel.context.Node.getChildNodeInternal(Node.java:950)
      at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:1368)
      at com.sap.tc.webdynpro.progmodel.context.Paths.followPath(Paths.java:1339)
      at com.sap.tc.webdynpro.progmodel.context.Paths.isValid(Paths.java:922)
      at com.sap.tc.webdynpro.clientserver.uielib.standard.impl.Table._isValidBindingOfPrimaryProperty(Table.java:973)
      at com.sap.tc.webdynpro.progmodel.view.UIElement.getEnabled(UIElement.java:366)
      at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter._init(TableAdapter.java:22926)
      at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.TableAdapter.setViewAndNodeElement(TableAdapter.java:360)
      at com.sap.tc.webdynpro.clientserver.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:348)
      at com.sap.tc.webdynpro.clientserver.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:124)
      at com.sap.tc.webdynpro.clientserver.uielements.adaptbase.AbstractAdapter.getAdapterFor(AbstractAdapter.java:814)
      at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GridLayoutAdapter$Cells.getContent(GridLayoutAdapter.java:978)
      at com.sap.tc.webdynpro.clientserver.uielib.standard.uradapter.GridLayoutAdapter$Cells.getParameter(GridLayoutAdapter.java:692)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutCellFragment(LSGridLayoutRenderer.java:830)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutRowFragment(LSGridLayoutRenderer.java:423)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutFragment(LSGridLayoutRenderer.java:350)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.render(LSGridLayoutRenderer.java:124)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSTrayRenderer.renderTrayFragment(LSTrayRenderer.java:1648)
      at com.sap.tc.ls.renderer.ie6.LSTrayRenderer.render(LSTrayRenderer.java:157)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.renderViewContainerFragment(LSViewContainerRenderer.java:202)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.render(LSViewContainerRenderer.java:118)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.renderViewContainerFragment(LSViewContainerRenderer.java:202)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.render(LSViewContainerRenderer.java:118)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.renderFlowLayoutItemFragment(LSFlowLayoutRenderer.java:271)
      at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.renderFlowLayoutFragment(LSFlowLayoutRenderer.java:243)
      at com.sap.tc.ls.renderer.ie6.LSFlowLayoutRenderer.render(LSFlowLayoutRenderer.java:118)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.renderScrollContainerFragment(LSScrollContainerRenderer.java:672)
      at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.render(LSScrollContainerRenderer.java:131)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSTabStripRenderer.renderTabStripStaticContainer(LSTabStripRenderer.java:1795)
      at com.sap.tc.ls.renderer.ie6.LSTabStripRenderer.renderTabStripFragment(LSTabStripRenderer.java:1039)
      at com.sap.tc.ls.renderer.ie6.LSTabStripRenderer.render(LSTabStripRenderer.java:154)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutCellFragment(LSGridLayoutRenderer.java:830)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutRowFragment(LSGridLayoutRenderer.java:423)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutFragment(LSGridLayoutRenderer.java:350)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.render(LSGridLayoutRenderer.java:124)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSTrayRenderer.renderTrayFragment(LSTrayRenderer.java:1648)
      at com.sap.tc.ls.renderer.ie6.LSTrayRenderer.render(LSTrayRenderer.java:157)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.renderViewContainerFragment(LSViewContainerRenderer.java:202)
      at com.sap.tc.ls.renderer.ie6.LSViewContainerRenderer.render(LSViewContainerRenderer.java:118)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutCellFragment(LSGridLayoutRenderer.java:830)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutRowFragment(LSGridLayoutRenderer.java:423)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.renderGridLayoutFragment(LSGridLayoutRenderer.java:350)
      at com.sap.tc.ls.renderer.ie6.LSGridLayoutRenderer.render(LSGridLayoutRenderer.java:124)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:129)
      at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.renderScrollContainerFragment(LSScrollContainerRenderer.java:672)
      at com.sap.tc.ls.renderer.ie6.LSScrollContainerRenderer.render(LSScrollContainerRenderer.java:131)
      at com.sap.tc.webdynpro.clientimpl.html.renderer.lightspeed.base.LSRenderManager.render(LSRenderManager.java:151)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:505)
      at com.sap.tc.webdynpro.clientimpl.html.client.RenderManager.render(RenderManager.java:273)
      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.getHtmlEtc(HtmlClient.java:1588)
      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.fillDynamicTemplateContext(HtmlClient.java:892)
      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:2207)
      at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:243)
      at com.sap.tc.webdynpro.clientserver.phases.RetrieveDataPhase.execute(RetrieveDataPhase.java:69)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
      at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
      at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
      at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1431)
      at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1251)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:158)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:81)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:507)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:527)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:458)
      at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:249)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:699)
      at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:231)
      at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
      at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
      at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
      at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
      at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)

    Hi
    No object for mandatory target role 'return' of model class.
    Do the following checks
    1. Return node is model node or its a mapping to model node.(Both r different), Since u have bound it to table  so it should be mapping to model node.(for check --create one context node here u will find 4 option Mapping ,Model binding etc I am talking about this mapping)
    2.Check the size of that return node if it is 0 then see the mapping .
    3.If is it working fine in WSnavigator then most probably its a problem of mapping, and other could be after executing  the model invalidate the response node(I considered u know this)
    Let see
    Best Regards
    Satish Kumar

  • Build failed when use EJB Model

    Hi experts.
    I have one eb dynpro DC that contains a model type enterprise java beans.
    When i apply template "Service Controller" in component controller and after deploy i get the follow error in Build log:
    [javac] Compiling 26 source files to D:SAPWorkspacesSAPEHPWorkspace.jdi4     E7D65AC4087E200E11A14DD40E7DE510classes
         [javac] An exception has occurred in the compiler (1.5.0_17). Please file a bug at the Java Developer Connection (http://java.sun.com/webapps/bugreport)  after checking the Bug Parade for duplicates. Include your program and the following diagnostic in your report.  Thank you.
         [javac] com.sun.tools.javac.code.Symbol$CompletionFailure: file javaxxml indannotation.class not found
    Error: D:SAPWorkspacesSAPEHPWorkspace.jdi4     2E7D65AC4087E200E11A14DD40E7DE510defaultlogs uild.xml:256: Compile failed; see the compiler error output for details.
         at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:933)
         at org.apache.tools.ant.taskdefs.Javac.execute(Javac.java:757)
    Can someone help me about that?
    i use NetWeaver EHP1 7.1 SP04.
    Best Regards
    Marcos Brandã

    Hi
    I have developed a CAF application.
    In my web dynpro i created a EJB Model from the Application Service of this CAF. The ear dependencies is ok to CAF.
    After that i made an apply template for Service Controller in my Web Dynpro component controller.
    When i build the component the errors occurs.
    I think this could be an error of my java version. I use 1.5_17. I reinstalled that version and dont work.
    I installed version ..5_22 and don't work. Then i installed version 6, and works. It's strange, because never happened this before.
    I did the same other times and always work. But now i have this error.
    I have alreday reinstalled the NWDS and change the workspace too. But don't work.
    Regards
    Marcos.

  • EJB Model Builder: class is not available in the ejb module archive file.

    Hi,
    We are testing
    SAP NetWeaver Developer Studio and
    SAP NetWeaver Application Server, Java(TM) EE 5 Edition.
    We created a sample EJB project(EJB 2.1) with an ejb and an EAR project, we deploy it using SAP NetWeaver Developer Studio.
    But when we see in the log of the server , there is a message like this:
    "EJB Model Builder: Bean class com.saptest.ejb.TestEJBBean is not available in the ejb module archive file., file: TestSAPEJB.jar#TestSAPEJB.jar"
    The jar contains this class, we don't know what is wrong.
    Thanks
    Germán Santana
    Bogota,Colombia

    You should place the file at:
    C:/JRun4/servers/default/default-ear/default-ejb/com/zbeans/Entity1Bean.class
    []s
    Michael

  • Importing EJB Model in NWDS

    Hi,<br>
    There is a simple Stateless Session Bean which uses an external library (JAR); and there is only 1 business method with just 1 line of code:
    RecordEx r = null;
    <br>
    RecordEx is one of the library classes;<br><br>
    While trying to import this as an EJB Model in Web Dynpro DC in NWDS (7.1 EHP1 SP01 Preview Version), it fails with a NoClassDefFoundError;<br>
    Below are the steps followed;<br><br>
    1. Create an External Library DC "ext"<br>
          1.1 Add the third party library to this DC<br>
          1.2 Create public parts ppC (Compilation) & ppA (Assembly) and add the library to both of these<br>
          1.3 Build the DC<br>
    2. Create an Enterprise Application DC "util"<br>
          2.1 Add Buildtime dependency to ppA public part of "ext" DC<br>
          2.2 Build & deploy<br>
    3. Create EJB Module DC "ejb"<br>
          3.1 Add Buildtime dependency to ppC public part of "ext" DC<br>
          3.2 Create a Session Bean (Stateless - Transaction: Container - Local Interface) <br>
          3.3 Create 1 business method, and create an object of one of the library classes in it<br>
          3.4 Add the business method to Local Interface<br>
          3.5 Check Component Properties > Permissions > Entity Forwarding<br>
          3.6 Build the DC - there are no build errors; default client & ejbjar public parts are created;<br>
    4. Create an Enterprise Application DC "app"<br>
          4.1 Add the "ejb" as Referenced Project<br>
          4.2 Add "util" as Used DC with Deploy Time & Runtime dependencies; (informs "util" EAR DC has no public parts)<br>
          4.3 Create a Compilation public part "EjbClasses" > Reference Entities > Select client public part of "ejb" DC<br>
          4.4 Build & Deploy the DC<br>
    5. Create a Web Dynpro DC "wd"<br>
          5.1 Add dependency to the "app" EAR DC<br>
          5.2 Add Buildtime dependency to ppC public part of "ext" DC<br>
          5.3 Add "util" as Used DC with Deploy Time & Runtime dependencies;<br>
          5.4 Import EJB Model Wizard > Select "app" EAR > Display 1 business method<br>
          5.5 But when that method is selected & click Next, nothing happens in NWDS. The Wizard windows stays like that with no processing<br><br>
    And the NWDS log has this NoClassDefFoundError:<br>
    <br>
    !MESSAGE Unhandled event loop exception
    <br>!STACK 0
    <br>java.lang.NoClassDefFoundError: com/sap/mdm/extension/data/RecordEx
    <br>     at java.lang.Class.getDeclaredMethods0(Native Method)
    <br>     at java.lang.Class.privateGetDeclaredMethods(Class.java:2395)
    <br>     at java.lang.Class.getMethod0(Class.java:2642)
    <br>     at java.lang.Class.getMethod(Class.java:1579)
    <br>     at com.sap.tc.webdynpro.model.ejb.importer.EJBCMIRuntimeMetadataFactory.createEJBModelInfo(EJBCMIRuntimeMetadataFactory.java:223)<br>
         at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.afterEJBSelectPage(EJBModelCreationDialog.java:374)<br>
         at com.sap.tc.cm.ejb.modeltype.importer.dialog.EJBModelCreationDialog.nextPressed(EJBModelCreationDialog.java:172)<br>
         at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.nextPressed(NewModelWizardDialog.java:64)<br>
         at org.eclipse.jface.wizard.WizardDialog.buttonPressed(WizardDialog.java:369)<br>
         at com.sap.ide.cmi.core.internal.newmodelwizard.NewModelWizardDialog.buttonPressed(NewModelWizardDialog.java:88)<br>
         at org.eclipse.jface.dialogs.Dialog$2.widgetSelected(Dialog.java:618)<br>
         at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:227)<br>
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)<br>
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)<br>
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)<br>
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)<br>
         at org.eclipse.jface.window.Window.runEventLoop(Window.java:820)<br>
         at org.eclipse.jface.window.Window.open(Window.java:796)<br>
         at com.sap.ide.cmi.core.internal.services.CreationServiceUI.createModel(CreationServiceUI.java:76)<br>
         at com.sap.ide.cmi.core.browser.actions.CreateModelAction.run(CreateModelAction.java:60)<br>
         at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionSingleAction.run(BaseSelectionSingleAction.java:39)<br>
         at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.runInternal(BaseSelectionAction.java:78)<br>
         at com.sap.ide.tools.core.viewerfwk.internal.actions.BaseSelectionAction.run(BaseSelectionAction.java:70)<br>
         at org.eclipse.ui.actions.BaseSelectionListenerAction.runWithEvent(BaseSelectionListenerAction.java:168)<br>
         at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:546)<br>
         at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)<br>
         at org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)<br>
         at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)<br>
         at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:938)<br>
         at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3682)<br>
         at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3293)<br>
         at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2389)<br>
         at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2353)<br>
         at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2219)<br>
         at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)<br>
         at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:289)<br>
         at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:461)<br>
         at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)<br>
         at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:106)<br>
         at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)<br>
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:106)<br>
         at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:76)<br>
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)<br>
         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)<br>
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)<br>
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)<br>
         at java.lang.reflect.Method.invoke(Method.java:592)<br>
         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)<br>
         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)<br>
         at org.eclipse.equinox.launcher.Main.run(Main.java:1173)<br>
         at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    <br>-----<br>
    Please let me know if any step is missed or if something is done incorrectly;<br><br>
    Thank you very much,<br>
    - Harish<br>
    Edited by: Harish Gali on Apr 30, 2010 11:37 AM

    informs "util" EAR DC has no public parts
    this is probably the issue. see if you can make the external library show up in the public part of the util DC
    Edited by: Christian Loos on May 3, 2010 1:03 PM

  • How to use byte[] in EJB Model

    Hi Colleagues,
    I have problem with binding byte[] to model attribute.
    So I have methos myMethod(byte[] byteArr).
    byte[] in the model is represent as Byte_Item type.
    So I fill this attribute in this way:
    inputFile is of type byte[]
    for (byte b: inputFile) {
                IImportedFileElement el = wdContext.nodeImportedFile().createAndAddImportedFileElement();
                el.setItem(b);           
    Then when I'm executing model object Ireceive.
    java.lang.NullPointerException: while trying to invoke the method java.lang.Object.getClass() of an object loaded from local variable 'value'
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.setPropertiesForModelClass(EJBGenericModelClassExecutable.java:485)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.buildModelClassListFromCollection(EJBGenericModelClassExecutable.java:655)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.setPropertiesForModelClass(EJBGenericModelClassExecutable.java:553)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.fillReturnParameterToMc(EJBGenericModelClassExecutable.java:711)
    at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.execute(EJBGenericModelClassExecutable.java:158)
    Could you help me with this problem.
    Best Regards,
    Dimitar

    You can put your Javascript code in the Onmouseover property of the column.
    I don't have the Javascript code for changing the color but for example the following will pop up an alert
    <af:outputText value="#{row.DepartmentId}" onmouseover="alert(\'Unload event fired!\')">

  • Oracle or MS SQL Server, EJB Models and Web Dynpro Application

    Hi
    I've a table in MS SQL database. I've created in Visual Admin, the datasource(jdbc/MyAlias) for the above. SQL Server has Employee Table with EmpId, FirstName, LastName and Description as its Columns.
    I want to display, modify , insert and delete entries from the Employee Table using web Dynpro. For this we have used JDBC method by which we create class file which will have JDBC connectivity and logic for getting data from backend. This class file then used for display, update and other operations. And the context is built at design time.
    This is not proper method, as this doesn't come under perview of MVC concept.
    I want to use EJB Models for this case. But I'm stuck with some problems.
    1. How do I implement EJB models in this scenario.
    2. How do EJB module (entity bean) connects to external database.
    3. What are the most logical steps to be used in this case.
    Any pointers for this will greatly appreciated with points?
    So far I was able to do create EJB module of Entity Bean type with all interfaces. But beyond this I'm not able to proceed. Do let me know the step wise procedure for this kind of scenario.
    Thanks
    Srikant

    Hi Srikant,
    I have worked on similar stuff, but the scenario was a little different. I worked on creating Web Services using EJBs, but the basic part was that, the web service was supposed to interact with the SQL Server database. So maybe I can help you...
    First thing which is needed is that you have created the JDBC Connector in your Visual Administrator correctly. If you wish to cross check, you can see my answer in the following thread:
    JDBC error
    In this thread itself I have given the code which is the solution to your problem (this is what i believe). I am pasting the code again:
    <b>InitialContext initialContext = new InitialContext();
    DataSource dataSource = (DataSource)initialContext.lookup("jdbc/MyAlias");
    java.sql.Connection connection = dataSource.getConnection();</b>
    You can use this code in the method of your EJB, and then you can easily use this connection object to access your database tables using SQL queries.
    And if by any chance you are looking for a step wise procedure for creating a web service from an EJB, then give me your email address, i will send you the doc.
    Bye
    Ankur
    Do reward points if it helps!!

  • Error while importing EJB Model in WebDynpro DC

    Hello,
    this is my first post to this forum und I hope that I chose the right one. Clould you pls. support on the following problem;
    After import of an EJB-Model, say Model1 in a WebDynpro DC I get an compiler error in the generated class Model1.java.
    The following generated line has an obviuos error. Is uses " with a pair of other "  ..  ". This should be \" instead of ", true?
         settingsRequest_TestLocal_getValue.put(com.sap.tc.webdynpro.model.ejb.metadata.EJBCMISettingDefinition.RESOLVED_RELATIONS.toString(), "${helper.getSettingValue($modelClass,"resolvedRelations","")}");
    I am using SAP NetWeaver Developer Studio SAP Enhancement Package 1 for SAP NetWeaver Developer Studio 7.1 SP05 PAT0006 Build id: 201008172203 on on XP Machine.
    Can anybody help?
    Thanks & Regards, Dieter

    Hello Dieter
    I see that you have not recieved any suggestions.
    Can you provide more information that may help?
    Thanks
    Kenny
    Moderator

  • How to achive multi-line editing (CRUD) with a table-UI on a ejb-model

    Hello community,
    i'm working on an prototype. we want to migrate an existing web-application to nw 7.1 with web-dynpro as ui-technology. the old application often uses javascript-/ajax- driven table-grid-controls. this table controls allowed editing the data in it. the conrol "records" every action. for example which rows were deleted, which were updated and which were appended.
    when the user has finished editing, he simply clicks a save-button. the table-grid control then sends the changes via ajax-calls to the server.
    now i want the achive such behavior in web-dynpro (7.1)
    for getting the data to be edited, i wrote an ejb and created an ejb-model in web-dynpro. so viewing the data works fine so far. the view-controller with the table-ui-element is bound to the view-controllers context, which is mapped to the context-controller to which again a model-object is bound, which retrieves the data from the ejb.
    inserting, updating and deleting single rows with a detail-view-controller also works, using additional context nodes (again mapped to addtional model-classes for crudp.
    but i know want to have all rows and cells to be editable. the user should be able to insert, update and delete in that table without neccessarily using a detail-view-controller.
    how would you achive this? holding every creates, update, deletes in single nodes? and when clicking a button to fire the save action to go to that nodes and apply that action? Or would you create an addtional flag-attribute in the node that shows what was done with that row? after pressing save also iterating the nodes, checking for the flag and doing the appropriate actions (but this maybee is performance critical when having a lot of rows)?
    any ideas how to achieve multiple crud-operations on a context-node, viewed with a table-ui-element would be welcome.
    regards
    Matthias

    Matthias,
    Let's address your questions one by one.
    1. You can make the table cells editable by chosing 'InputField' as TableCellEditor.
    2. Since you have bound your table to 'View Context' and 'View Context' to 'Component Context', all changes made by you in table will be visible in Component Context after every round-trip to server.
    3. To modify the data in 'backend', you need to modify your 'Save' method to check for every changed element and modify the data only if element was changed by user. To see if the element has been changed by user, use [IWDNodeElement.isChangedByClient()|https://help.sap.com/javadocs/NW04S/current/wd/com/sap/tc/webdynpro/progmodel/api/IWDNodeElement.html] method. This method returns true if element was changed by user - this is what you need.
    To learn more about WD Table UI element, you may want to see [this link|http://help.sap.com/saphelp_nw70/helpdata/en/eb/220a415a47f06fe10000000a1550b0/frameset.htm].   
    Hope this helps.
    Vishwas.

  • EJB model showing arg1 , arg2 etc as input parameter attributes

    Hi All ,
    I am working on EJB models. I have done all required settings at EJB session and application dc and deployed EJB Dcs
    successfully. When i am adding application dc as used dc i can see public part which i have created for EJB model. when i create EJB model my input parameterts are not showing exact names. they are shown as agr1 ,arg2 etc. i have worked earlier
    on EJB models but never faced such issue. What can be reason for this? How to resolve this?
    Thnx in advance.
    Regards
    Kavita

    Hi,
    Check the procedure you followed in the below links if helpful:
    http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/content.htm
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20b21892-c31c-2a10-f484-fcef1eaf8c4f?overridelayout=true
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/0914ef0d-0d01-0010-beb9-d85ef5a6188d?overridelayout=true
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c?overridelayout=true
    Using EJB as model
    Regards,
    Charan

  • Using EJB Model in Web Dynpro

    I have to redeploy my EJB.ear (used as a Web Dynpro model) everytime the J2EE server is started (only the first time), after which My Web Dynpro program continues to work. In other words, the following code in my Command Bean is not successful without redeploying the EJB.ear for some reason. Can someone please tell me what I am doing wrong ?
    home = (MyLocalHome) context.lookup("localejbs/MySessBean");

    Walter, thanks for the reply.  When I checked the EJB Container in VA after starting up the J2EE server, my EJB shows a blue check mark already with the START button grayed out (STOP button is active).  So I would think the EJB is started already...  HOWEVER, I noticed that when I hit the DEPLOY button there, I see a warning message popping up which says :  "This Application hasn't J2EE modules, so it cannot be loaded. Proceeding with Deploy".  I go ahead and finish the Deploy and then my EJB works.  It seems I am not including a module when I deploy it ?
    Paul

  • How this error is possible with the most simple EJB model example?

    javax.naming.CommunicationException [Root exception is java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination]
         at weblogic.jndi.internal.ExceptionTranslator.toNamingException(ExceptionTranslator.java:40)
         at weblogic.jndi.WLInitialContextFactoryDelegate.toNamingException(WLInitialContextFactoryDelegate.java:783)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:367)
         at weblogic.jndi.Environment.getContext(Environment.java:315)
         at weblogic.jndi.Environment.getContext(Environment.java:285)
         at weblogic.jndi.WLInitialContextFactory.getInitialContext(WLInitialContextFactory.java:117)
         at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)
         at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:288)
         at javax.naming.InitialContext.init(InitialContext.java:223)
         at javax.naming.InitialContext.<init>(InitialContext.java:197)
         at test.client.SessionEJBRemoteClient.getInitialContext(SessionEJBRemoteClient.java:259)
         at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:34)
    Caused by: java.net.ConnectException: t3://127.0.0.1:7101: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:216)
         at weblogic.rjvm.RJVMFinder.findOrCreate(RJVMFinder.java:170)
         at weblogic.rjvm.ServerURL.findOrCreateRJVM(ServerURL.java:153)
         at weblogic.jndi.WLInitialContextFactoryDelegate.getInitialContext(WLInitialContextFactoryDelegate.java:352)
         ... 9 more
    Caused by: java.rmi.ConnectException: Destination unreachable; nested exception is:
         java.net.ConnectException: Connection refused; No available router to destination
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:464)
         at weblogic.rjvm.ConnectionManager.bootstrap(ConnectionManager.java:315)
         at weblogic.rjvm.RJVMManager.findOrCreateRemoteInternal(RJVMManager.java:251)
         at weblogic.rjvm.RJVMManager.findOrCreate(RJVMManager.java:194)
         at weblogic.rjvm.RJVMFinder.findOrCreateRemoteServer(RJVMFinder.java:238)
         at weblogic.rjvm.RJVMFinder.findOrCreateInternal(RJVMFinder.java:200)
         ... 12 more
    Process exited with exit code 0.
    can someone orient me on solving this error? i am making this example from oracle:
    http://www.oracle.com/technology/obe/obe11jdev/ps1/ejb/ejb.html
    thank you
    Vael

    yes it is!!! sorry i need to sleep.
    do you know why now i am trying to exec the client and get this error?
    javax.ejb.EJBException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection; nested exception is: java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
    java.rmi.RemoteException: EJB Exception: ; nested exception is:
         java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:348)
         at weblogic.rmi.cluster.ClusterableRemoteRef.invoke(ClusterableRemoteRef.java:259)
         at test.model.SessionEJB_qxt9um_SessionEJBRemoteImpl_1032_WLStub.getDescripcionextraFindAll(Unknown Source)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at weblogic.ejb.container.internal.RemoteBusinessIntfProxy.invoke(RemoteBusinessIntfProxy.java:73)
         at $Proxy0.getDescripcionextraFindAll(Unknown Source)
         at test.client.SessionEJBRemoteClient.main(SessionEJBRemoteClient.java:36)
    Caused by: java.lang.NoClassDefFoundError: com/mysql/jdbc/Connection
         at java.lang.ClassLoader.defineClass1(Native Method)
         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
         at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
    the Model Project has got the MySQL jar library
    Thank you!

  • Diff b/w bc4j model and ejb model in adf11g

    hi all,
    iam murali iam new for adf 11g i have some dout's in adf11g ,can u please solve my probleam
    what is the difference b/w bc4j componet and ejb componet,how to develop ejb application in adf11g.

    ,how to develop ejb application in adf11gTake a look at this tutorial for starters:
    http://st-curriculum.oracle.com/obe/jdev/obe11jdev/ps1/ejb/ejb.html

  • WebDynpro and EJB Models

    Dear All,
    In our project we need to integrate WebDynpro with EJB (Stateless and Entity Beans)
    Would anyone please help me out by providing weblinks, PDFs related to this.
    Thanks in Advance

    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d2638c-4b04-2d10-d2a3-992fdf1e3d55?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/8041f93c-8e76-2b10-d5b9-862ed0140cc1?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/302e7c42-2b08-2d10-539f-8a87cbf97fb9?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/502f70a8-33a4-2b10-3dbe-bdcb5e25c6da?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/20b21892-c31c-2a10-f484-fcef1eaf8c4f?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00bddb57-456c-2b10-cc8d-b6980d75299b?quicklink=index&overridelayout=true
    regards,
    Angelo

Maybe you are looking for

  • How can I pass parameters from one process flow to another process flow?

    How can I pass parameters from one process flow to another process flow (sub process) in warehouse builder? let me know the steps I have to do in warehouse builder. Thanks in advance, Kishan

  • How do I improve performance with exchange

    My corporate email is on an exchange 2010 server. Mail.app works with the server but there are a number of performance problems when sending and receiving, which are also well documented in other discussion threads. I have tried every suggested confi

  • Name of the file generated not correct

    Hi all, We are using E-Business Suite R12. We have a concurrent request with executable Oracle Report and output type: XML. When is submitted we try to save it in Excel but the name of the file is not with the correct name/report name/ but in "hierog

  • Xperia Z1 Android 4.3 14.2.A.0.290 firmware ROLLING NOW

    Xperia Z1  Android 4.3 14.2.A.0.290 firmware Update Rolling Officially. Update available and confirmed in India, UK, Sweden, Finland, Singpore. Confirmed on Both C6902 and C6903 Source - http://www.xperiaguide.com/2013/12/16/xperia-z1-z-ultra-android

  • WD Runtime exception: while using webservices!

    Hi all I am facing a wd runtime exception. using a webservice call from wd on CE 7.1. any clues? java.lang.ClassNotFoundException: Loader /L_local#wd_webserviceejb3 could not load class com.sap.tc.webdynpro.model.webservice.gci.WSTypedModelClass than