Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

 How to Start and Stop Tomcat Services?

You may need to start and stop your Tomcat services to make sure that everything comes up correctly. Following are the quick steps to start, stop, or restart Tomcat Services:

Start Tomcat

  1. Go to Start > Apps > Control Panel > Administrative Tools > Services.
  2. Right click Apache Tomcat 9.0 Tomcat9.
  3. Click Start.

 

Stop Tomcat

  1. Go to Start > Apps > Control Panel > Administrative Tools > Services.
  2. Right click Apache Tomcat 9.0 Tomcat9.
  3. Click Stop.

Restart Tomcat

  1. Go to Start > Apps > Control Panel > Administrative Tools > Services.
  2. Right click Apache Tomcat 9.0 Tomcat9.
  3. Click Restart.
 How can I configure Memory for Tomcat?

Tomcat is installed with default memory as 128 and 256. You may need to set up memory to improve the performance of Adeptia Connect on Tomcat. To change the memory:

  1. Go to Start > Apps > Apache Tomcat 9.0 Tomcat9 > Configure Tomcat.
  2. On the Java tab, set the value of Initial memory pool and Maximum memory pool.
  3. Click Apply.
  4. Click OK.
 Where can I view Tomcat Logs?
  1. Go to Start > Apps > Apache Tomcat 9.0 Tomcat9 > Configure Tomcat.
  2. On the Logging tab, copy Log path value displayed here and open it in the Windows explorer for Tomcat log files. There are several additional log files in the log folder but only following two log files are mainly used.

     catalina<date>.log : Server global log file
     localhost_access_log.<date>.txt : Server Access Log file
 How can I configure Port for Tomcat?

Tomcat's main configuration file is the server.xml located at …/<ApacheInstallFolder>/Tomcat<version_no>/conf.

Change non-SSL/TLS HTTP/1.1 Connector on port number 8080 to the desired port number.

Configure a connector for the port given in redirectPort. Update the Keystore path, password, and the server name in the file. Save the file.

SSL Configuration

  1. Go to …/<ApacheInstallFolder>/Tomcat<version_no>/conf.
  2. Open web.xml file.
  3. Add the security constraint at the end of the file.



  4. Go to Start > All Programs > Apache Tomcat 9.0 > Configure Tomcat.
  5. On the Java tab, append the below lines in the Java Options box.
    -Djavax.net.ssl.trustStore=<Adeptia Connect Truststore location)
    -Djavax.net.ssl.trustStorePassword=<Adeptia Connect Truststore password>

 How can I ensure that Tomcat is working fine?

To check the status of Tomcat, open the browser and type the URL:

http://localhost:8080/ 

The Tomcat welcome page appears, indicating Tomcat is running successfully.

 Where can I view Adeptia Connect Logs in Tomcat?
  1. Go to …/<ApacheInstallFolder>/Tomcat<version_no>/logs.
  2. Open application_system.log file to view the logs.
 How can I configure Adeptia Suite URL in Tomcat?
  1. Go to …/<ApacheInstallFolder>/Tomcat<version_no>/resources.
  2. Open application.properties file in the Text Editor and do the following:

Set the IP address where Adeptia Suite is running in the app.base.adeptia.url and app.adeptia.host.url.

The URL format for app.base.adeptia.url is 

     <protocol_name>://<IP_Address:<port_no>/adeptia/rest

The URL format for app.adeptia.host.url is

     <protocol_name>://<IP_Address:<port_no>

where,

<protocol_name> is the name of the protocol you are using. For example, http or https.

<IP_Address> is the IP address of the computer on which Adeptia Suite is running.

<port_no> is the port number of the computer on which Adeptia Suite is running.

For example,

https://10.0.0.125:8443/adeptia/rest

http://10.0.0.125:8080

Make sure that IP address is same in both URLs.

 

  • No labels