Skip to Content
0
Former Member
Jul 14, 2015 at 06:21 PM

JCO not working on struts app but does work as java application

113 Views

Hello, i have this java application that uses JCO to connecto to SAP backend system and it's working fine.

Next i wanted to try those classes inside a web application. I'm using Struts 1.3 and Glassfish 4.1 and inside the web app it's not working, i get the following message:

java.lang.ExceptionInInitializerError: JCo initialization failed with java.lang.UnsatisfiedLinkError: no sapjco3 in java.library.path

Does someone know what could be wrong? The sapjco3.jar file is in the projects libraries. I don't know what is missing, since it's working in my java app that's not web (just some classes).

I added the complete path on the VM options and escaped that error, but now i'm getting this one:

java.lang.NoClassDefFoundError: Could not initialize class com.sap.conn.jco.rt.JCoRuntimeFactory