AJ created MTOMCAT-202:
--------------------------
Summary: Cannot enable SSO for multiple contexts in embedded tomcat
Key: MTOMCAT-202
URL: https://issues.apache.org/jira/browse/MTOMCAT-202
Project: Apache Tomcat Maven Plugin
Issue Type: Bug
Components: tomcat7
Affects Versions: 2.0
Reporter: AJ
Assignee: Olivier Lamy (*$^¨%`£)
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|https://github.com/ajorpheus/sso-embedded-tomcat/blob/master/pom.xml]
and the
[server.xml|https://github.com/ajorpheus/sso-embedded-tomcat/blob/master/src/main/tomcatconf/server.xml].
If you wish, you could also
[clone|https://github.com/ajorpheus/sso-embedded-tomcat] the github repo or
download the
[zip|https://github.com/ajorpheus/sso-embedded-tomcat/archive/master.zip]
(718kb). If you do so the instructions to reproduce the problem are in the
[Readme|https://github.com/ajorpheus/sso-embedded-tomcat/blob/master/README.md].
### 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|https://issues.apache.org/jira/issues/?jql=%28text%20~%20sso%20OR%20text%20~%20%22single%20sign%20on%22%20OR%20text%20~%20%22server.xml%22%20OR%20text%20~%20serverXml%29%20AND%20project%20=%20MTOMCAT%20ORDER%20BY%20resolution%20ASC]
and I am out of ideas. It would be great if you could share your experience
and point me to what I might be missing.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]