Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • shut down the app

  • navigate to <tomcat installation>/conf/Catalina/localhost directory

  • edit there the file called like the application context name with .xml extension

  • navigate toC:/Program Files/Apache Software Foundation/Tomcat 10.1/conf

  • edit there a new folder license and put the license into the folder

  • take the logback-spring.xml and the repository.cfg and put it into the C:/Program Files/Apache Software Foundation/Tomcat 10.1/conf folder

View file
namelogback-spring.xml

View file
namerepository.cfg

Info

During the deployment the WAR file will be extracted and the default configuration will be available at /WEB-INF/classes/config/repository.cfg . In the context.xml the location of repository.cfg can be changed.

Note

The folder and file for repository.cfg as well as the key store configuration needs to be readable by tomcat process. Don't put these configuration inside an user folder of another user like your login user! Otherwise the app inside tomcat don't have access permissions and will not start.

...

Code Block
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE Context>
<Context>
    <Parameter
        name="logging.level.com.software.kgs"
        value="info"
        override="true" />
	<Parameter
        name="logging.config"
        value="C:/Program Files/Apache Software Foundation/Tomcat 10.1/webapps/tiaCore-CS/WEB-INF/classes/conf/logback-spring.xml"
        override="true" />
    <Parameter
        name="volumecounter.file.counterSender.targetUrl"
        value="https://vcrs.kgs-cloud.de"
        override="true" />
    <Parameter
        name="volumecounter.file.counterSender.isActive"
        value="true"
        override="true" />
    <Parameter
		name="configDirectory"
		value="C:/Program Files/Apache Software Foundation/Tomcat 10.1/webapps/tiaCore-CS/WEB-INF/classes/configconf/repository" /> 
	<Parameter
		name="configFile"
		value="repository.cfg" /> 
	<Parameter
        name="tia.license.path"
        value="C:/Program Files/Apache Software Foundation/Tomcat 10.1/conf/license"
        override="true" />
	<Parameter 
		name="webapp.security.auth.type"         
		value="basic" />  
	<Parameter
		name="webapp.security.auth.basic.username"
		value="admin" /> 
	<Parameter
		name="webapp.security.auth.basic.password"
		value="$2a$10$eswhIo8VjEviekZxaq1FLukR7I59dEdHiLE.kGEINbfSjA1cZWjG2" />
</Context>

...