on 11-29-2010 5:39 PM
Hi Guys
I have developed adapter module which will be used in the receiver FTP channel to delete files in the FTP directory. I have done core testing in NWDS and working fine. For the FTP functionality I have used the following imports which are part of external jar commons-net-ftp-2.0.jar.
import org.apache.commons.net.ftp.FTPClient;
import org.apache.commons.net.ftp.FTPFile;
I have also made the entry in application-j2ee-engine.xml as follows
<reference
reference-type="hard">
<reference-target
provider-name="apache.com"
target-type="library">org.apache.commons.net.ftp.FTPClient</reference-target>
</reference>
}<reference
reference-type="hard">
<reference-target
provider-name="apache.com"
target-type="library">org.apache.commons.net.ftp.FTPFile</reference-target>
</reference>
When I create EAR file and deploy it in J2EE engine i am getting following error
Application [JavaEE/FileDeletion_EAR] cannot be started. Reason: it has hard reference to resource [apache.com~org.apache.commons.net.ftp.FTPClient] with type [library], which is not active on the server.
Hint: 1) Is referred resource deployed? 2) Is referred resource able to start?
Looks like even though my EAR contains the external jar and being made the entry in application-j2ee-engine.xml, the external jar is not getting deployed properly.
I have gone through some post which reference external jars but could not comprehend that well. I also went through following thread and a blog in about creating jar Library
Following is my NWDS version
SAP NetWeaver Developer Studio
SAP NetWeaver 7.1 Composition Environment SP05 PAT0000
Build id: 200802231406
We are on SAP PI 7.1.1 EHP1
Can you guys throw some light into this issue..
Any Suggestions Please
Edited by: Kishore on Dec 1, 2010 12:16 PM
Hi,
Please look at below weblog links. They are explaining how to create external library DC and use in a project.
/people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-i
/people/raphael.vogel/blog/2008/05/05/how-to-use-external-libraries-in-the-sap-component-model-part-ii
Kind regards,
Altuğ Bayram
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Kishore,
Can you try the method given in the weblog /people/andreas.seifried/blog/2007/01/18/referencing-the-mdm-java-api-during-development-and-runtime? Hope it solves your problem.
Regards,
Rahul
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 | |
10 | |
10 | |
10 | |
7 | |
6 | |
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.