cancel
Showing results for 
Search instead for 
Did you mean: 

Referencing JCO from a J2EE Web module

Former Member
0 Kudos

Hello,

I need to run a J2EE application on the SAP Web AS. WAS version is 6.40 PatchLevel 100627.313.

In Netweaver Developer Studio, I created a web module project for my web application and an enterprise application project to which I added my web module.

In the application-j2ee-engine.xml file, I defined a reference to the jco library:

<reference reference-type="hard">

<reference-target provider-name="sap.com" target-type="library">com.sap.mw.jco</reference-target>

</reference>

When I lanched my application, I get the following error:

500 Internal Server Error

SAP J2EE Engine/6.40

Application error occurred during request processing.

Details: com.sap.engine.frame.core.load.SAPNoClassDefFoundError: com/sap/mw/jco/JCO

Exception id: [000F1F673662003F000005120000139C0004195804E71341]

I think I did everything I should in order to get it to work. Any idea?

Thanks,

Laurent

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

try to add this library in your EJB module , it works for me...

SAP_SYSTEM_ADD_LIBS/comp/SAP-JEE/DCs/sap.com/com.sap.mw.jco/_comp/gen/default/public/default/lib/java/jrfc.jar

Former Member
0 Kudos

Laurent

In your <b>Web Componenet</b> Project, Please add <b>sapjco.jar</b> as an External jar.

<b>Rebuild</b> the WAR and EAR and <b>deploy</b> it !!

Thanks

Jack

<b>Allot points if my post helps !!!!</b>

Former Member
0 Kudos

Hi Laurent,

Add the JAR file in the web module as an external jar.

Create a WAR file and add the webmodule to the EAP.

It works in my case.

Regards,

Tanveer.

<b>Please mark helpful answers</b>

Former Member
0 Kudos

You mean sapjco.jar?

Normally it should be installed on the WAS, that's the goal of the reference statement...

former_member182372
Active Contributor
0 Kudos

Hm, Laurent, the only thing I can suggest is to restart the server. Also, make sure that your ear and war doesn`t contain any jco*.jar`s.

Best regards, Maksim Rashchynski.

suresh_krishnamoorthy
Active Contributor
0 Kudos

Hi Laurent,

See this thread same error but resolved: did you added sapjco.jar to the library

Regards

Suresh

Former Member
0 Kudos

I did what has been described in the first answer (reference in the xml). Is there anything else to do?