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

Similar Messages

  • Share Configuration Manager Entries between WebDynpro and EJB

    Hi there,
    I have an annoying problem: I would like to have a WebDynpro as full-blown configuration interface for my EJBs. As steted in the docu, it is not possible to share configurations between applications.
    With EJB and Web Modules I would just place them in the same Enterprise Application. But I cannot as WebDynpro projects to enterprise applications (as far as I know).
    Does anyone have a clou about I could manage this issue?
    Thanks!
    helge

    Hi Maksim,
    at the link you've provided it is described how to use the Configuration Manager within an EJB Module.
    My Problem is that I want to use it from an WebDynpro Application. But there I don't have a META-INF\application-j2ee-engine.xm to configure the dependency.
    This itself is not a problem since you can also access the Configuration Manager via JNDI.
    My problem now is that the EJB Module (more precise the enterprise application where the EJB Module is included) needs to share the configurtion with the Dynpro. But vi JNDI you only get the ApplicationConfigurationManager - which is application specific.
    So the question is how I could share the configuration between WebDynpro and EjbModule...
    Regards,
    helge

  • 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 on different server

    I have a WebDynpro app that will be deployed to server A  and that has to access an EJB that will be deployed to server B, server A and server B don't from a cluster.
    I don't know how to call the EJB in my WebDynpro app via remote way.
    in WebDynpro app  call EJB code is:
         String result = null;
         Context ctx = null;
         Hashtable env = new Hashtable();
         PIEJB remote = null;
         PIEJBHome remoteHome = null;
         env.put(
              Context.INITIAL_CONTEXT_FACTORY,
              "com.sap.engine.services.jndi.InitialContextFactoryImpl");
         env.put(Context.PROVIDER_URL, "sapides:50304");
         env.put("force_remote", "true");
         try {
              ctx = new InitialContext(env);
              remoteHome =
                   (PIEJBHome) PortableRemoteObject.narrow(
                        ctx.lookup("PIEJBBean"),
                        PIEJBHome.class);
              remote = remoteHome.create();
              result = remote.getPIAvg("yesterday", "today").getValue();
         } catch (Exception e) {
              result = e.toString();
         wdContext.currentContextElement().setTest(result);
    when run this code,report error:
    java.lang.NoClassDefFoundError: com.xxx.piejb.PIEJBHome
    but i have add the piejb.jar in Used DC!
    can anyone tell me how to do?
    thanks advance!

    Hi Ha
    I just tested the link and it worked fine for me, if you want it, you can give an email and i'll send the pdf guide to you. Besides here you can find a guided example about calling the webserivces methods  from a WD on the Using the Car Rental Web Service with Web Dynpro, and on this one you can find information about the development of a webservices using an ejb.
    Hope it Helps
    Luis Barragá

  • Webdynpro java and EJB integration

    Hi,
    I am new to Webdynpro Java, would require your help in the following area:
    my requirement is I need to read values from oracle database using EJB/Java Beans and display the same using webdynpro JAVA(as user interface).
    Pls suggest the possible solution with required docs & videos(if possible)
    FYI:
    Tools: NWDS 7.0, SAP portal 7.3
    Thanks
    Nag

    Hello Nag,
    there are two possibilities to use your ejb in WD4J:
    1. Via JNDI Lookup
      try {
            InitialContext ctx = new InitialContext();
            <YourEJBInterface Class> service = (<YourEJBInterface Class>) ctx.lookup(<JNDI-Name>);
      } catch (NamingException e) {
            throw new RuntimeException(e);
    2. Via EJB Model:
    here a guide --> http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70d2638c-4b04-2d10-d2a3-992fdf1e3d55?quicklink=index&…
    hope this helps.
    Regards
    Tobi

  • 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

  • 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

  • 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

  • Dynpro and EJB

    Hi,
    I want to build iviews using WebDynpro, and I need to access to a External Database.
    I thing that the best way is using EJB proyect and use it as model in my WD.
    I use the "simple_javabean_generator_project" script to generate the .java and I'm here...
    I need a step by step to use this code and generate my EJB.
    Thanks in advance.
    Nacho.

    Hi Nibu,George: thanks for your answer, but I can't find the solution...
    This link talks about different methods and perspectives and I'm confused.
    I don't know if is necessary but I created a dataSourse in Visual admin, but I don't know how to make a relation of this in my WebDympro.
    In http://help.sap.com/saphelp_nw04/helpdata/en/82/fdbf2085f65f43a71e755fc904478d/frameset.htm
    I can see code from this, but I can see too that ..." WebDynpro components do not support the declaration of resource references. To use a preconfigured data source, you must perform the lookup operation directly from the jdbc/ naming context, without using the prefix java:comp/env...."
    And then ? How can I do to connect to my database ?
    do I need to put code in my WD ? Where ?
    do I need to create a separate EJB project?? How can I do this ?
    Please, I read a lot of posts, helps, etc... but I need more basic information... more specific information.
    Best Regards.
    Nacho.

  • 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.

  • 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

  • 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!\')">

Maybe you are looking for

  • Jforum international characters problem

    Hi all, Has anyone used jforum (www.jforum.net)? It is an open source forum software I am having problems with international characters. Please let me know if you have had so I'll post my question. Thank you.

  • MDMGX-UOM xml is not downloaded

    Hello experts, I am trying to extract ECC master data to MDM using ECC transaction MDMGX. I am using the SAP standard settings. When I select "start extraction", i select "Products" and select "local file". Some files are created in my local director

  • SharePoint 2007 Old Content

    We have recently removed our SharePoint 2007 server from our production environment since it's no longer being used. It seems though, I need to copy some documents over from this server that are missing on the new SharePoint site.  What is the best

  • Spry Demos not working for IE7

    When using IE 7 to view the Spry demos, like the products/index.html which is supposed to display an interactive data grid from xml based data, the page display the error " Exception caught while loading products.xml: Access is denied."

  • Where do I find the link to download older version of keynote?

    I want to purchase an older version of KeyNote for my 2011 MacBook?  Where would I find the link?