• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Tomcat6 manager problems after update to 11.5.30

TheBassmanFelix

New Pleskian
Hi all,

after the update to Plesk version 11.5.30 tonight i have several problems with my tomcat instance.
The Deployment is done by Jenkins.

1. problem already solved: the psa-users/[domain.com].xml was reset to the empty default template. After restoring the users jenkins was able to use the tomcat manager for trying the deployment.
2. problem:
Now Jenkins is getting me following error, trying to deploy the build .war by the tomcat manager:
Code:
ERROR: Publisher hudson.plugins.deploy.DeployPublisher aborted due to exception
....
Caused by: org.codehaus.cargo.container.tomcat.internal.TomcatManagerException: FAIL - Application already exists at path /demo


Catalina.out
Code:
19.12.2013 11:06:01 org.apache.catalina.core.ApplicationContext log
INFO: Manager: list: Listing contexts for virtual host 'Domain.com'
19.12.2013 11:06:01 org.apache.catalina.core.ApplicationContext log
INFO: Manager: list: Listing contexts for virtual host 'Domain.com'
19.12.2013 11:06:01 org.apache.catalina.core.ApplicationContext log
INFO: Manager: undeploy: Undeploying web application at '/demo'
19.12.2013 11:06:01 org.apache.catalina.core.StandardContext stop
INFO: Container org.apache.catalina.core.ContainerBase.[PSA].[Domain.com].[/demo] has not been started
19.12.2013 11:06:01 org.apache.catalina.core.ApplicationContext log
INFO: Manager: deploy: Deploying web application at '/demo'

If i try to deploy the war with the tomcat manager i get following exception:

Code:
SCHWERWIEGEND: HTMLManager: FAIL - Deploy Upload Failed, Exception: null
java.lang.NullPointerException
	at org.apache.tomcat.util.http.fileupload.DefaultFileItem.write(DefaultFileItem.java:398)
	at org.apache.catalina.manager.HTMLManagerServlet.doPost(HTMLManagerServlet.java:250)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.filters.CsrfPreventionFilter.doFilter(CsrfPreventionFilter.java:193)
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:563)
	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
	at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859)
	at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602)
	at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489)
	at java.lang.Thread.run(Thread.java:679)

I haven changed anything in the config, so the root of the problem is 100% the update of the plesk version.

Does anybody know where i can have a look at to get the problem solved?

Thanks in advance
Felix


Problem was solved:
The undeploy of war with the manager failed. The .war in /var/lib/tomcat6/psa-webapps/ had to be deleted manually.
After resetting the chmod of /usr/share/tomcat6/psa-wars/ and /var/lib//tomcat6/psa-wars/ the deployment with jenkins was working correctly again
 
Last edited:
Back
Top