# Troubleshooting errors while hosting CData Java Apps in Apache Tomcat

**URL:** <https://community.cdata.com/t/troubleshooting-errors-while-hosting-cdata-java-apps-in-apache-tomcat/464>\
**Category:** Data Sources\
**Tags:** article, sync, api-server, apache-tomcat\
**Created:** [October 17, 2023, 3:27pm UTC](https://community.cdata.com/t/troubleshooting-errors-while-hosting-cdata-java-apps-in-apache-tomcat/464 "2023-10-17T15:27:12Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Arsilda\_D](https://avatars.discourse-cdn.com/v4/letter/a/73ab20/32.png) [@Arsilda\_D](https://community.cdata.com/u/Arsilda_D)\
**Post date:** [October 17, 2023, 3:27pm UTC](https://community.cdata.com/t/troubleshooting-errors-while-hosting-cdata-java-apps-in-apache-tomcat/464/1 "2023-10-17T15:27:13Z")

</div>

There are some errors that might come up while hosting CData’s Java Apps in Apache Tomcat.

**Error 1 – This site can’t be reached: ERR\_CONNECTION\_RESET**

This error is caused because the .war file deployed to Apache Tomcat is greater than 50 MB.

To resolve the problem, users must edit the web.xml file and increase the \<max-file-size\> value.

This file should be located to a similar path:

Windows path : _C:\Program Files\Apache Software Foundation\Tomcat 9.0.78\webapps\manager\WEB-INF_

Linux path: _/usr/share/tomcat9/webapps/manager/WEB-INF_

Once the file is located make the following changes:

\<multipart-config\>

\<!-- 50MB max --\>

\<max-file-size\>52428800\</max-file-size\>

\<max-request-size\>52428800\</max-request-size\>

\<file-size-threshold\>0\</file-size-threshold\>

\</multipart-config\>

**Error 2 – Error Code 550: The Login Module was not initialized.**

Go to the jaas.config file which is usually located in the conf folder inside the ‘Catalina Home’ path. For example, the appropriate paths for a default Apache Tomcat installation would be:

Windows Path: _C:\Program Files\Apache Software Foundation\Tomcat 9.0\conf_

Linux Path: _/usr/share/tomcat9/conf_

When making the Login Module visible, users need to ensure that it is located under the line where the ‘common. Loader’ value is defined:

common.loader=“${catalina.base}/lib”,“${catalina.base}/lib/\*.jar”,“${catalina.home}/lib”,“${catalina.home}/lib/\*.jar”

java.security.auth.login.config=${catalina.base}/conf/jaas.config

 ![4ce2876f-62b0-4085-837d-07e17c1c7ed6.png](https://us1.discourse-cdn.com/cdata/original/2X/2/2ee40814735ea83a00c5757a8ab620fc663f8066.png)

If this does not resolve the error then please reach out to [support@cdata.com](mailto:support@cdata.com) for further assistance.
