cancel
Showing results for 
Search instead for 
Did you mean: 

pi adapter module, to many jars in the ear

otto_frost4
Participant
0 Kudos

Hello,

I'm developing a PI 7.1 EHP1 adaptermodule.

When exporting the ear I end up with all the jar files in the ear, including

u2013 com.sap.aii.af.lib.mod.jar: <bin>/ext/com.sap.aii.af.lib/lib

u2013 com.sap.aii.af.ms.ifc_api.jar: <bin>/ext/bin/interfaces/com.sap.aii.af.ms.ifc/lib

u2013 sap.comtcloggingjavaimpl.jar: <bin>/system

u2013 com.sap.aii.af.svc_api.jar: <bin>/services/com.sap.aii.af.svc/lib

u2013 com.sap.aii.af.cpa.svc_api.jar: <bin>/services/com.sap.aii.af.cpa.svc/lib

u2013 com.sap.aii.af.ms.ifc_api.jar: <bin>/interfaces/com.sap.aii.af.ms.ifc/lib

u2013 <bin> = /usr/sap/<SID>/J01/j2ee/cluster/bin

It seems not right as all the libraries are already on the server.

I have put the libraries on the classpath as external jars.

I expect to have just the adapter module jar in the ear.

What can be done to stop adding the jars?

Best regards

Otto

Accepted Solutions (0)

Answers (3)

Answers (3)

0 Kudos

hi,

I had the same problem with PI 7.1 and the solution I found so far is:

1- create a dummy EAR project where you add the JARs (those that should not be included in your final EAR). This dummy EAR will not be deployed in the server

2- in your EJB module project, right click and select "add/remove application libraries". Here you make the link to your dummy EAR. The classes included in the jars of the dummy EAR can therefore be used in your ejb module.

3- now create the final EAR, the libraries that were part of the dummy EAR will be skipped.

with XI the solution is similar but you use a SAP Library project instead of a dummy EAR

regards

Marcos

Shabarish_Nair
Active Contributor
0 Kudos
Former Member
0 Kudos

I suggest you to recheck ecreate the .ear.

Please check from pg38 in this document

http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00838345-708c-2a10-1199-9514c0b0a91c&override...