cancel
Showing results for 
Search instead for 
Did you mean: 

SAP Enterprise Connector : Error

abhijeet_mukkawar
Active Contributor
0 Kudos

Hi,

This is my first time to use SAP Enterpirse Connector, I am using it to call

BAPI_FLIGHT_GETLIST from r/3 .

I have included relevant jar files aii_proxy_rt.jar

aii_util_misc.jar

SAPmdi.jar

sapjco.jar

in build path, but when i run application it is giving me error,

java.lang.NoClassDefFoundError

at com.sap.mw.jco.MiddlewareJRfc$Client.connect(MiddlewareJRfc.java:841)

at com.sap.mw.jco.JCO$Client.connect(JCO.java:3159)

at com.sap.java.sapcon.MyMain.main(MyMain.java:36)

Exception in thread "main"

Can anybody help me out?

regards,

Abhijeet

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi abhijeet,

RightClick on the ur java Project and select the Add Addtional Libraries, nd check 4 jar files u have mentioned, then it wil work, remove all the jars from the properties. If not useful leave it.

eswar

former_member187702
Active Participant
0 Kudos

Hi Abhijeet

Please check these links

Hope it helps

Regards

Former Member
0 Kudos

Hi, give us more details:

1. have u created DC or u use usual project (java project i guess)

2. u run your application under SAP WAS or as sandalong?

abhijeet_mukkawar
Active Contributor
0 Kudos

hi,

it is a simple java project, and running on SAP WAS.

regards,

abhijeet

Former Member
0 Kudos

in this case u should have enterprise application to be able to deploy your jar file.

So go to application-j2ee-engine.xml file and add references like:

<reference

reference-type="hard">

<reference-target

provider-name="sap.com"

target-type="library">com.sap.aii.util.misc</reference-target>

</reference>

also for:

com.sap.aii.proxy.framework

com.sap.mw.jco

com.sap.mdi