Tomcat update
Esta página aún no está disponible en tu idioma.
By default OpenKM is installed with Tomcat 8.5.69 but every few weeks a new version is released and maybe you want your installation up to date. In this case you should open a support ticket to ensure this new version has been packaged by the OpenKM Team.
Updates with Tomcat 8.5.x
Section titled “Updates with Tomcat 8.5.x”Once you have verified and downloaded the new version is available you have to follow these steps:
-
Stop the current Tomcat
-
Unzip the new downloaded one
-
Copy these files and folders from the old Tomcat to the new one:
- webapps/OpenKM.war
- conf/server.xml
- conf/context.xml
- OpenKM.cfg
- OpenKM.xml
- repository
- plugins
- patch
-
Update your Tomcat service configuration:
- In case of Linux, change the Tomcat path at /etc/init.d/tomcat or /etc/init.d/openkm
- In case of Windows, change the Tomcat path in the service configuration
-
Start the new Tomcat
Updates from Tomcat 7.0.x to 8.5.x
Section titled “Updates from Tomcat 7.0.x to 8.5.x ”Once you have verified and downloaded the new version is available you have to follow these steps:
- Stop the current Tomcat
- Unzip the new downloaded one
- Copy these files and folders from the old Tomcat to the new one:
- webapps/OpenKM.war
- conf/server.xml
- conf/context.xml
- OpenKM.cfg
- OpenKM.xml
- repository
- plugins
- patch
- Edit the conf/server.xml file and comment or remove these lines:
<!-- Automatically reload log4j configuration --><Listener className="com.openkm.util.Log4JInitializer" configFile="${catalina.base}/conf/log4j.properties"/>- Update your Tomcat service configuration:
- In case of Linux, change the Tomcat path at /etc/init.d/tomcat
- In case of Windows, change the Tomcat path in the service configuration
- Start the new Tomcat
If you want a more recent branch you can try Tomcat 8.5. In this case further modifications are needed because this new Tomcat uses another pool:
| Tomcat 7 | Tomcat 8 |
|---|---|
| maxActive | maxTotal |
| maxWait | maxWaitMillis |
Tomcat 7
<Resource name="jdbc/OpenKMDS" auth="Container" type="javax.sql.DataSource" maxActive="100" maxIdle="30" maxWait="10000" validationQuery="select 1" username="openkm" password="*****" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/okmdb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>Tomcat 8
<Resource name="jdbc/OpenKMDS" auth="Container" type="javax.sql.DataSource" maxTotal="100" maxIdle="30" maxWaitMillis="10000" validationQuery="select 1" username="openkm" password="*****" driverClassName="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/okmdb?autoReconnect=true&useUnicode=true&characterEncoding=UTF8"/>