Page 1 of 1

Warning connected with tcnative-1.dll

PostPosted:Sun Oct 06, 2019 8:42 am
by lantonov
After starting it gives the following warning
Code: Select all
06-Oct-2019 11:32:45.198 WARNING [main] org.apache.catalina.core.AprLifecycleListener.init The APR based Apache Tomcat Native library failed to load. The error reported was [C:\OpenKM\tomcat-8.5.24\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform]
 java.lang.UnsatisfiedLinkError: C:\OpenKM\tomcat-8.5.24\bin\tcnative-1.dll: Can't load AMD 64-bit .dll on a IA 32-bit platform
        at java.lang.ClassLoader$NativeLibrary.load(Native Method)
        at java.lang.ClassLoader.loadLibrary0(Unknown Source)
        at java.lang.ClassLoader.loadLibrary(Unknown Source)
        at java.lang.Runtime.loadLibrary0(Unknown Source)
        at java.lang.System.loadLibrary(Unknown Source)
        at org.apache.tomcat.jni.Library.<init>(Library.java:42)
        at org.apache.tomcat.jni.Library.initialize(Library.java:178)
        at org.apache.catalina.core.AprLifecycleListener.init(AprLifecycleListener.java:198)
        at org.apache.catalina.core.AprLifecycleListener.isAprAvailable(AprLifecycleListener.java:107)
        at org.apache.catalina.connector.Connector.setProtocol(Connector.java:582)
        at org.apache.catalina.connector.Connector.<init>(Connector.java:74)
        at org.apache.catalina.startup.ConnectorCreateRule.begin(ConnectorCreateRule.java:64)
        at org.apache.tomcat.util.digester.Digester.startElement(Digester.java:1250)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)
        at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)
        at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
        at org.apache.tomcat.util.digester.Digester.parse(Digester.java:1518)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:593)
        at org.apache.catalina.startup.Catalina.load(Catalina.java:644)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
        at java.lang.reflect.Method.invoke(Unknown Source)
        at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:309)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:492)
I don't know if this may cause some further problems. My OS is Windows 10 64 bit

Re: Warning connected with tcnative-1.dll

PostPosted:Sun Oct 06, 2019 12:50 pm
by jllort
Are you sure about you installed JAVA JDK 64 bits? I suggest install it again ( https://stackoverflow.com/questions/101 ... t-platform )

Re: Warning connected with tcnative-1.dll

PostPosted:Sun Oct 06, 2019 2:13 pm
by lantonov
Code: Select all
C:\Program Files\Java\jre-1.8.0_201\bin>java -version
java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) Client VM (build 25.201-b09, mixed mode)

C:\Program Files\Java\jdk-11.0.2\bin>java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment 18.9 (build 11.0.2+9)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.2+9, mixed mode)
JDK is 64-bit but I am not sure about JRE. I will update both.

Re: Warning connected with tcnative-1.dll

PostPosted:Sun Oct 06, 2019 3:49 pm
by lantonov
I installed the 64-bit versions and the warning disappeared. I reinstalled OpenKM with java -jar OKMInstaller.jar but it again gave the warning
Code: Select all
Running in Windows: 0.9.13-CE (build: 0d76a11)
Local host: DESKTOP-ICVQJ2N (192.168.0.101)
Java version: 1.8.0_221
JAVA_HOME = C:\Program Files\Java\jdk-11.0.2
Free disk size: 1.7 TB
RAM size: 7.9 GB
CPU cores: 4
Supported databases: [h2, hsqldb, mariadb, mysql, oracle, postgresql, sqlserver]
Current directory: C:\OpenKM

Database [h2]:
---------------------------
- Database: h2
- Install version: 6.3.8
---------------------------
Start install process? [y/N]: y

- Downloading Tomcat: 8.5.24
....*.... 10% ....*.... 20% ....*.... 30% ....*.... 40% ....*.... 50% ....*.... 60% ....*.... 70% ....*.... 80% ....*.... 90% ....*.... 100%
- Unzipping archive... Done!
- Downloading Extras
....*.... 10% ....*.... 20% ....*.... 30% ....*.... 40% ....*.... 50% ....*.... 60% ....*.... 70% ....*.... 80% ....*.... 90% ....*.... 100%
- Unzipping archive... Done!
- Downloading OpenKM: 6.3.8
....*.... 10% ....*.... 20% ....*.... 30% ....*.... 40% ....*.... 50% ....*.... 60% ....*.... 70% ....*.... 80% ....*.... 90% ....*.... 100%
- Unzipping archive... Done!
- Check archive integrity... Done!
- Copy OpenKM
- Configure OpenKM

SUCCESS: Specified value was saved.
- Configure service
The JAVA_HOME environment variable is not defined correctly
This environment variable is needed to run this program
NB: JAVA_HOME should point to a JDK not a JRE
In the environmental variables I have defined
JAVA_HOME = C:\Program Files\Java\jdk-11.0.2
JRE_HOME = C:\Program Files\Java\jre1.8.0_221

Maybe it's not necessary to specify JRE_HOME in the environmental variables?

Re: Warning connected with tcnative-1.dll

PostPosted:Tue Oct 08, 2019 6:04 pm
by jllort
You have some mess, using JDK_11 and 8 at the same time ( the java home should be 1.8 ):
Code: Select all
JAVA_HOME = C:\Program Files\Java\jdk-11.0.2