tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Olivier Lamy (*$^¨%`£) (JIRA) <>
Subject [jira] [Updated] (MTOMCAT-202) Cannot enable SSO for multiple contexts in embedded tomcat
Date Fri, 01 Nov 2013 05:49:17 GMT


Olivier Lamy (*$^¨%`£) updated MTOMCAT-202:

    Fix Version/s: backlog

> Cannot enable SSO for multiple contexts in embedded tomcat
> ----------------------------------------------------------
>                 Key: MTOMCAT-202
>                 URL:
>             Project: Apache Tomcat Maven Plugin
>          Issue Type: Bug
>          Components: tomcat7
>    Affects Versions: 2.0
>            Reporter: AJ
>            Assignee: Olivier Lamy (*$^¨%`£)
>              Labels: sso, tomcat
>             Fix For: backlog
> I am trying to enable SSO between two webapps being deployed in an embedded tomcat instance
created using the tomcat7-maven-plugin.
> ### Github Repo/Zip and instructions to reproduce the problem
> Please take a look at the pom.xml ( and the server.xml (
If you wish, you could also clone the github repo (
or download the zip (
(718kb). If you do so the instructions to reproduce the problem are in the Readme.
> ### The problem
> The embedded tomcat runs fine and the two webapps are deployed to the appropriate contexts
as expected. However, SSO is never enabled even though the server.xml has the correct configuration.
Well, I assume it is correct since the exact same server.xml works fine in a standalone Tomcat
7 instance.
> My tinkering has indicated that the problem is related to how the server.xml ends up
in the embedded tomcat instance. Initially, I was under the wrong impression that simply having
the server.xml in src/main/tomcatconf was enough since it did get copied over the embedded
tomcat ( in target/tomcat/conf). But it seems, unless you refer to the server.xml in the plugin
configuration like so : 
> {code}<serverXml>src/main/tomcatconf/server.xml</serverXml>{code}, it does
not get honored and the config contained does not have any affect.
> However, as soon as I uncomment that above, the <webapps> portion of the configuration
is completely ignored and the webapps are never deployed.
> There seem to no existing bugs ( relevant to the issue at hand and
I am out of ideas at the moment. It would be great if you could share your experience and
point me to what I might be missing.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message