on 01-23-2007 12:42 PM
Hi All
I want to add external jar's to a web dynpro development component but when i add the jar and rebuild the project by right clicking on project and then Development Component ===> Build / Refresh from DC settings then automaticaly the added jar's get removed
Is there any other process to add the jar's in DC like what we do in normal dypro project. or what could be the issue. I add the jar by properties ===> Java Build Path ==> Add External JAR's
Please guide me I am totaly confused
Thanks
Ninad
Hi,
try to paste the jar files in the 'lib' folder of the DC project..you will find the LIB folder in the navigation perspective the project..
Regards
AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Put the ejb project in the projects required by the WebDynpro project (Java build path) in order to get it to compile succesfully.
<b>Now you have 2 options:</b>
1. You can then export your EJB methods as a web service and import these methods as a model in the WebDynpro project.
<i>After this you can call your web service (ejb methods) from your webdynpro app.</i>
2. Instatiate your EJB classes from jndi context as ejbs are normally used.
Context initctx = new InitialContext();
Object objref = initctx.lookup("java:comp/env/ejb/YOUR_EJB");
YOUR_EJB_CLASS myEJB = (YOUR_EJB_CLASS) objref;
<i>Call the methods from the myEJB object.</i>
<u><b>If this solves your situation, points would be greatly appreciated.</b></u>
Best regards,
Homer Vargas
SAP EP Development Consultant
SAP Web AS Development Consultant
SAP Andina y del Caribe
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Homer,
I was able to do these steps you mentioned in the post but the real problem is when i do same thing in a DC it gives me error while building the project. but it dose not find the JAR files which we include in the project those files i am not able to include.
so please tell me the steps to do same thing in Web Dynpro DC.
Thanks
Ninad
To add external jars to a webdynpro DC, you have to create a new DC called External Library DC and then define it as a dependency in your webdynpro dc.
Thanks,
Rajit Srinivas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
When you create an EJB DC, by default 2 public parts are created, client and ejbjar. Create a EAR DC, add the EJB DC to it so that it ejb dc can be deployed.
In your webdynpro dc, define dependency to client pp of ejb dc and you can then refer to the ejb in webdynpro.
Hope that helps,
Thanks,
Rajit Srinivas
Hi Rajit,
I created the EAR DC, also added the EJB module dc(ejbmoddc) into it. I added the EJB DC as used dc in my webdynpo dc.
When I build my EAR DC, it builds successfully. On deploying it I get an following error :
____________________________________________________________________
deployment not executed : file:/C:/DOCUME1/PBHANG1/LOCALS1/Temp/temp11146sap.comejbeardc.ear
Unresolved dependencies found for the following SDAs:
1.: development component 'ejbeardc'/'sap.com'/'LOCAL'/'20070124134029'/'0'
dependency:
name: 'ejbmoddc'
vendor: 'sap.com'
____________________________________________________________________
Please help me in this regard !
Thanks in advance.
Prasanna
Hi Ninad,
You can add the same using used DC.
Select the DC - >Go to DC Metadata - > DC Definition -> Used Dcs -> Add Used Dcs -> Select the which you want to add->Ok.
This will not give any error.
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
25 | |
12 | |
9 | |
6 | |
6 | |
5 | |
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.