Skip to Content
author's profile photo Former Member
Former Member

Webdynpro DC and J2EE DC

Hi,

I've got a small problem to run a Webdynpro DC referencing Entity beans in a deployed J2EE DC. I get a class not found exception at runtime saying, that the respective home interface of my can't be found. The EJB classes are part of the client public part of my J2EE DC and the J2EE DC is packaged within a J2EE ear DC and deployed. My .dcdef file holds the following infos:

...

<dependency>

<dc-ref>

<name>csdshop/shopejbs</name>

<vendor>de.axentiv.csd</vendor>

</dc-ref>

<pp-ref>client</pp-ref>

<at-build-time/>

<at-runtime qualifier=""/>

</dependency>

...

Has anybody of you got a hint why I can't resolve the classes of my EJBs at runtime?

Cheers and thanks in advance,

Heiko

Message was edited by: Heiko Nolte

Message was edited by: Heiko Nolte

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2005 at 04:40 AM

    Hi Heiko,

    I have included the steps to include an EJB with a Web Dynpro app in another thread. I hope they help you figure out your problem.

    https://www.sdn.sap.com/sdn/collaboration.sdn?contenttype=url&content=https://Web Dynpro Java

    Thanks,

    Wael

    *Remember when dealing with entity beans to check the DC file for the persistence end.

    **Secondly dont forget the project properties to include the web dynpro references..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Wael,

      thank's for your support. This solves my problem. I have played around with these properties but didn't get the right reference format. Correct me if I'm wrong, but these issues don't seem to be dealt with in the documentation.

      The above link leads to the wrong thread. So please allow me to include your post regarding this topic for completeness.

      Cheers,

      Heiko

      -


      Re: importing EJBs into web dynpros

      Posted: Jan 2, 2005 1:41 AM Reply E-mail this post

      "Hi Simon + Praveen,

      I will try to walk you through how to do it but I think you may need a bit of experience with EJB's, Web Dynpro and NWDS to understand it right away. The following assumes you have created a session and entity bean.

      First you need to make sure your table is deployed in the database that you created(dictionary perspective).

      Second deploy your EJB (.ear file) to the J2EE engine (J2EE development perspective)

      Third switch to Web Dynpro perspective and goto your project properties (right click on the project and click properties)

      Now goto Java Build Path - libraries - add external jars and add the EJB-Jar file. then choose the tab called "order and export" and move the jar file to the top.

      THIS IS A LITTLE TRICKY. Next you need to add the sharing reference. In the same properties wizard where you add the java build path select Web Dynpro References and then select the Sharing references tab. Click on Add and enter the vendor name and name of the ear file like this <vendor name>/<name of the ear file>, This is how your web dynpro knows where the ear file is on the j2ee engine. IF YOU ARE NOT SURE WHAT IT IS you need to access the J2EE visual administrator. and goto SERVER 0/Services/Deploy then select the "runtime" tab then look under Server 0/EJBContainer save all your meta data. your WD application now accesses your EJB logic.

      Good luck!!

      -wael"

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.