cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X

Error during Thingworx.war deploy on tomcat

mmedeiros
6-Contributor

Error during Thingworx.war deploy on tomcat

Hi,

I get a Error during Thingworx.war deploy on tomcat

GRAVE [http-nio-8080-exec-9] org.apache.catalina.core.ApplicationContext.log HTMLManager: FAIL - Deploy Upload Failed, Exception: org.apache.tomcat.util.http.fileupload.FileUploadBase$SizeLimitExceededException: the request was rejected because its size (93796698) exceeds the configured maximum (52428800)

does anyone know a solution?

Best Regards

Mônica

1 ACCEPTED SOLUTION

Accepted Solutions
posipova
20-Turquoise
(To:mmedeiros)

How do you deploy the war file, through web browser or manually?

I would recommend manually copying the thingworx.war inside the <tomcat installation folder>webapps directory while the tomcat service is stopped.

Example: C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps

View solution in original post

4 REPLIES 4
posipova
20-Turquoise
(To:mmedeiros)

How do you deploy the war file, through web browser or manually?

I would recommend manually copying the thingworx.war inside the <tomcat installation folder>webapps directory while the tomcat service is stopped.

Example: C:\Program Files\Apache Software Foundation\Tomcat 8.0\webapps

posipova
20-Turquoise
(To:posipova)

Follow up, you may also change maxPostSize in the http server tomcat connector located in /conf/server.xml as follows:

<Connector connectionTimeout="20000" port="8080" protocol="HTTP/1.1" redirectPort="8443" maxPostSize="104857600"/> 

Set maxPostSize to 104857600 increase the upload file size to 100 Mo. By default it's set to 2 Mo.

For more explanation, read this : https://tomcat.apache.org/tomcat-7.0-doc/config/http.html

mmedeiros
6-Contributor
(To:posipova)

Thank you a lot!

Worked after the manualy deploy

posipova
20-Turquoise
(To:mmedeiros)

Great to hear! Could you please mark the response that helped as correct? That would help improve the searchability of our community.

Top Tags