on 12-22-2021 6:35 AM
Hi. I'm trying to deploy a war file on btp cloud foundry.
However, because of sapjco3, my project keeps faile to deploy properly.
UnsatisfiedLinkError: no sapjco3 in java.library.path
This seems to be the main cause of the problem. So I've been thinking of accessing cloud foundry ubuntu environment via ssh in order to setup libsapjco3.so file in the right path.
However, this is impossible. According to cloud foundry documention, in order to access an application via ssh, the application should be running correctly. But, my deployment is not working, hence, accessing the cloud foundry container is not allowed in the first place.
What can I do to solve this issue?
I don't think cloud connector or other connectivity service have something to do with this issue...
Any ideas or suggestions will be greatful.
Please check the documentation at SAP Java Connector. It mentions that you have to explicitly enable JCo.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Maybe you try my sample project HTML5UserAPIforCF which also has a Java Service that is using the Java Connector (JCo). It builds and deploys without issues.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I just have a look at your project and find out that sapjco dependency is not included in the pom.xml file.
In my project, the dependency in pom.xml file is like the following.
However, in the pom file of your project, sapjco dependency cannot be found and instead I found out
something like cloud-sdk. Can you be more specific about how you configured sapjco dependency? 🙂
<dependency>
<groupId>com.sap</groupId>
<artifactId>sapjco3</artifactId>
<version>3.0.9</version>
<scope>system</scope>
<systemPath>${project.basedir}/src/main/webapp/WEB-INF/lib/sapjco3.jar</systemPath>
</dependency>
User | Count |
---|---|
89 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.