[
https://issues.apache.org/jira/browse/MTOMCAT-202?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Olivier Lamy (*$^¨%`£) updated MTOMCAT-202:
-------------------------------------------
Fix Version/s: backlog
> 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 (*$^¨%`£)
> 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 (http://bit.ly/XQPCYV) and the server.xml
> (http://bit.ly/UenijR). If you wish, you could also clone the github repo
> (https://github.com/ajorpheus/sso-embedded-tomcat) 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.
> ### 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 (http://bit.ly/XQPWaf) 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
(v6.1#6144)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]