Closed nicolasfarina closed 1 year ago
I tried to do that and it didn't work, the posts are very old.
The answers on StackOverflow are correct and exactly descibe the cause of the issue with some solutions. You can find the code, which loads libtdjni
at https://github.com/tdlib/td/blob/66234ae2537a99ec0eaf7b0857245a6e5c2d2bc9/example/java/org/drinkless/tdlib/Client.java#L16-L22
You need to modify the code as suggested in the answers.
Hi @levlam , we try to do that.
Here is the code:
Inside conf, in file catalina.properties, we have this:
In /opt/tomcat/shared/lib we put the native library "libtdjni.so".
When we deploy the war in tomcat the first time, it's all ok, but when we try to deploy again (cp ...war /opt/tomcat/fastprg/), we have the next error:
You need to remove library loading code from Client.java.
If we remove this load, we have the problema that the tomcat never load the library
The error we have when we try to create the client is:
You must load the library manually from a proper place.
Hi, I'm trying to run the example on a tomcat application server to be able to send telegram messages. What happens is that when the library tries to reload "tdblib" I get the following error. And so that it does not happen again I have to restart the tomcat.