on 01-04-2005 2:25 PM
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
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://
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..
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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"
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.