cancel
Showing results for 
Search instead for 
Did you mean: 

Coverting .EAR to .SDA file and deploy it via JSPM

Former Member
0 Kudos

Hi Guys

I am trying to convert the .EAR file to the .SDA using nwcetool and nwpacktool and both are giving me the same results.

I follow the below blobs of which they are very helpful

-http://wiki.sdn.sap.com/wiki/display/XI/ConvertEARfiletoSDA+file

-http://forums.sdn.sap.com/thread.jspa?threadID=1751232&tstart=0

-http://forums.sdn.sap.com/thread.jspa?threadID=1390629

The results I am getting, have the externsion .ear instead of .sda

Results: ExcelFileRead.ear with the message "with compression"

What could be that problem, why am I not getting the the file with .sda extersion?

Below is my command :

createsda -n ExcelFileRead -v pi.module -l ExcelFileRead -c 2 -type J2EE C:\EAR.ear c:\result\ExcelFileRead

Yonza

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

The characteristic of a SDA is not the file ending .sda, so in your case

the generated .ear is a SDA even if it ends with .ear. you can check SAP Note 1223957.

Regards,

Vipin

Former Member
0 Kudos

Hi All

Thanks for you quick replies regarding this, now I am facing one more problem..on the JSMP when trying to deploy this file I cann't find it in all the Options specified there and I do have it on the directory '/usr/sap/trans/EPS/in/' and I have give full rights to the file.

I even renamed to file to .sda but still no luck..please advice.

Yonela

Former Member
0 Kudos
Former Member
0 Kudos

Start the JSPM using following command

go -config=/jspm/forceMode=true -config=/jspm/deployVersionRule=updateAll and then check the file.

Regards,

Vipin

Former Member
0 Kudos

Hi All,

Thanks a lot good people with all your help I managed to Deploy the file, as you have suggested I changed it to .sda and on the Hot Fixes I got it.

I am now testing my interface Scenario (Excel to xml) and I am getting the below error:

-Error: com.sap.engine.services.jndi.persistent.exceptions.NameNotFoundException: Path to object does not exist at pi.module, the whole lookup name is localejbs/pi.module/ExcelFileRead.

I have set up my Module tab to "localejbs/pi.module/ExcelFileRead" ;

Not sure if am I doing something wrong here any suggestions

Yonela

Former Member
0 Kudos

u have to use "localejbs/jndi name"

cross check the jndi name which u have mentioned under "ejb-j2ee-engine.xml"

do one more thing go to NWA-> Problem management -> JNDI browser -> localejbs and chk whether u r able to see ur adapter module or not??

Former Member
0 Kudos

Hi

I have checked my NWA-> Problem management -> JNDI browser -> localejbs, I am able to see my Adapter Module there and yes my jndi name which I have mentioned under "ejb-j2ee-engine.xml" is "ExcelFileRead".

Object Namelocalejbs/ExcelFileRead

Class Namejavax.naming.Reference

Context Namelocalejbs

Object ValueReference Class Name:

Type: clientAppName

Content: pi.module/ExcelFileRead

Type: interfaceType

Content: local

Type: local-home

Content: com.sap.aii.af.mp.module.ModuleLocalHome

Type: ejb-link

Content: ExcelFileRead

Type: jndi-name

Content: ExcelFileRead

Type: local

Content: com.sap.aii.af.mp.module.ModuleLocal

When I use this "localejbs/ExcelFileRead" i get the below a different error

One question on 7.1 can I use the Adapter Module created from this blob

http://wiki.sdn.sap.com/wiki/display/ABAP/AdapterModuleToReadExcelFilewithMultipleRowsandMultiple+Columns

Thanks

Yonela

Former Member
0 Kudos

HI,

Error: java.lang.ClassCastException: class $Proxy2812:pi.module/ExcelFileRead#com.sap.engine.boot.loader.ResourceMultiParentClassLoader@5dfb907c#alive incompatible with interface com.sap.aii.af.lib.mp.module.ModuleLocal:library:com.sap.aii.af.lib#com.sap.engine.boot.loader.ResourceMultiParentClassLoader#74bc2f47#alive

Where u see the # it was @ just that I am getting this error when sending:

- We are sorry but your message can not be posted since you have included an email address. Please remove the email address and re-post

Yonela

Former Member
0 Kudos

>>One question on 7.1 can I use the Adapter Module created from this blob

the code is using old libraries..u have to re-adjust ur code and jar files

https://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11835

for PI7.1 chk this article:

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/c0b39e65-981e-2b10-1c9c-fc3f8e674...

https://wiki.sdn.sap.com/wiki/display/XI/XIlibrariesfor+development

Former Member
0 Kudos

Hi Guys

I am not that familiar with JAVA, Can you plz give me a working class for Conversion of Exceel sheet content to xml structure for SAP PI 7.1. I tried using the one for PI 7.0 but I am getting error and the one from the below blod I double if it can be deployed:

http://wiki.sdn.sap.com/wiki/display/XI/Adapter%20module%20example%20for%20PI%207.1?bc=true

Anyway I am getting a errors on the two below line after I've imported

--if (msg.getMessageDirection()== MessageDirection.INBOUND)

--Audit.addAuditLogEntry(amk, AuditLogStatus.SUCCESS,"AO: Now got the xml payload object.");

I am using these are recomended on: http://www.sdn.sap.com/irj/scn/weblogs?blog=/pub/wlg/11835

-


com.sap.aii.af.lib.mod.jar

-


com.sap.aii.af.ms.ifc_api.jar

-


sap.comtcloggingjavaimpl.jar

-


com.sap.aii.af.svc_api.jar

-


com.sap.aii.af.cpa.svc_api.jar

import com.sap.engine.interfaces.messaging.api.MessageKey;

import com.sap.engine.interfaces.messaging.api.MessageDirection;

import com.sap.engine.interfaces.messaging.api.auditlog.AuditLogStatus;

Former Member
0 Kudos

Hi

I got an error on this error

"import com.sap.engine.interfaces.messaging.api.MessageDirection Collides with another imporeted type"

and on my class libraries I find that this "aii_af_ms_api.jar" class librarie is the one causing a problem because when I remove it the above error disappear but now I get another errors:

-- import com.sap.aii.af.ra.ms.api.Message can not be resolved

-- import com.sap.aii.af.ra.ms.api.MessageDirection can not be resolved

-- import com.sap.aii.af.ra.ms.api.XMLPayload can not be resolved

and this is causing errors on the JAVA Class that will be converting excel file to xml.

Any suggestions will be appreciated or what am I not doing right.

Thanks

Yonela

Answers (1)

Answers (1)

Former Member
0 Kudos

>>The results I am getting, have the externsion .ear instead of .sda

rename that converted file (from .ear to .sda) and then deploy it using JSPM..

in createsda command we dont give the extension of the sda file....so the generated SDA file will have the ext as .ear and u have to explicitly rename it to .sda.