what's in hazelcast.xml .. it's mandatory you configure that. also bear in mind that only spring will load externalized configs, everything else seems to need be in the classpath.
ymmv, and you are using less features .. but I had to : - use an updated springboot due to a bug in 1.5.3 - manually declare hazelcast dependency - download correct XSD and change hazelcast.xml to use it - use log4j-jcl and exclude logback from the spring components that declare it as a dependency (mvn dependency:tree helps there) one thing you did do that I haven't found necessary is to mess with deployerConfigContext. Just use the registry-support-json and then do initfromjson=true .. the ./services/(*.json) files need to be in the classpath, so once again .. mvn clean package ** java -jar target/cas.war also .. doing "-Xdebug -Ddebug" as javaopts on the cli helps immensely. Selinux and extended ACLs will both ruin your day with embedded tomcat. If you're on RHEL/CentOS just disable it. Personally I gave up fighting with that and used vanilla Debian and had better luck. If you are doing this for a production use, it might be wise to just start collecting the patches and apply them on build by inserting them into your overlay. All the diffs I have to do bugfixes against what comes out of github I just stick in another VCS directory and tell Jenkins to overlay them. I'm using 5.1.5-RELEASE and have at least a dozen of them thus far. Cheers, Michael Holstein Cleveland State University ________________________________ From: [email protected] <[email protected]> on behalf of Mohammad Anbari <[email protected]> Sent: Wednesday, November 1, 2017 9:17:07 AM To: [email protected] Subject: Re: [cas-user] Re: SSO problems with CAS 5.1.3 This is my application.properties in cas src/main/resources: cas.server.name<http://cas.server.name>: http://localhost:8080 cas.server.prefix: http://localhost:8080/cas cas.authn.accept.users= cas.ticket.registry.hazelcast.configLocation=classpath:/hazelcast.xml cas.authn.ldap[0].type=AUTHENTICATED cas.authn.ldap[0].ldapUrl=ldap://192.168.99.100:32769<http://192.168.99.100:32769> cas.authn.ldap[0].useSsl=false cas.authn.ldap[0].baseDn=ou=people,dc=planetexpress,dc=com cas.authn.ldap[0].userFilter=uid={user} cas.authn.ldap[0].bindDn=cn=Hubert J. Farnsworth,ou=people,dc=planetexpress,dc=com cas.authn.ldap[0].bindCredential=professor And This is my deployerConfigContext.xml : <?xml version="1.0" encoding="UTF-8"?> <beans xmlns="http://www.springframework.org/schema/beans" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p" xmlns:c="http://www.springframework.org/schema/c" xmlns:lang="http://www.springframework.org/schema/lang" xmlns:util="http://www.springframework.org/schema/util" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/lang http://www.springframework.org/schema/lang/spring-lang.xsd http://www.springframework.org/schema/util http://www.springframework.org/schema/util/spring-util.xsd"> <util:list id="inMemoryRegisteredServices"> <bean class="org.apereo.cas.services.RegexRegisteredService" p:id="1" p:name="HTTP services on localhost" p:serviceId="^http://.*" p:evaluationOrder="0" /> </util:list> </beans> And This is my added dependencies in cas pom file : <dependencies> <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-webapp${app.server}</artifactId> <version>${cas.version}</version> <type>war</type> <scope>runtime</scope> </dependency> <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-support-ldap</artifactId> <version>${cas.version}</version> </dependency> <dependency> <groupId>org.apereo.cas</groupId> <artifactId>cas-server-support-hazelcast-ticket-registry</artifactId> <version>${cas.version}</version> </dependency> </dependencies> These are all configuration i have done for my cas server, I think cas sso functionality does not need any further configuration, am i right ? On Wed, Nov 1, 2017 at 12:48 PM, Andy Ng <[email protected]<mailto:[email protected]>> wrote: Did you configure your properties file to the correct port? You can do so with making a file application.properties in src/main/resources And add these things here: https://apereo.github.io/cas/5.1.x/installation/Configuration-Properties.html#cas-server On Wednesday, 1 November 2017 15:17:27 UTC+8, hadi wrote: hi martin, it's my mistake to mention,correct port is 8083 On Wednesday, November 1, 2017 at 10:37:17 AM UTC+3:30, Martin Bohun wrote: well your example/list says that App1 is on port 8083, NOT on port 8080, cheers, martin On Wednesday, November 1, 2017 at 5:54:27 PM UTC+11, hadi wrote: Hi all I am new to cas , I am configuring cas server on JBOSS( Wild Fly 10) and configured two cas client on separated embedded tomcat ( spring boot applications ) , all of these applications are in the same machine localhost:8080 ---> refer to my cas server localhost:8083 ---> refer to my App 1 localhost:8085 ---> refer to my App 2 When I refer to App1 Url ( localhost:8080) it redirects to cas server correctly but when i refer to App2 Url it redirects to cas server again. cas server let me just one application login at the same time. I am so confused and i do not know what to do ? can anyone help me ? thanks -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/fdfabbe1-6e0a-44ea-8cf9-e6bb1ddffffc%40apereo.org<https://groups.google.com/a/apereo.org/d/msgid/cas-user/fdfabbe1-6e0a-44ea-8cf9-e6bb1ddffffc%40apereo.org?utm_medium=email&utm_source=footer>. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]<mailto:[email protected]>. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMrA7j5EzVCL%3D4_b9Cmky5dW-dHyqc5vWjwViNwVoQ3PbnUR9g%40mail.gmail.com<https://groups.google.com/a/apereo.org/d/msgid/cas-user/CAMrA7j5EzVCL%3D4_b9Cmky5dW-dHyqc5vWjwViNwVoQ3PbnUR9g%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- - Website: https://apereo.github.io/cas - Gitter Chatroom: https://gitter.im/apereo/cas - List Guidelines: https://goo.gl/1VRrw7 - Contributions: https://goo.gl/mh7qDG --- You received this message because you are subscribed to the Google Groups "CAS Community" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/a/apereo.org/d/msgid/cas-user/DM5PR08MB33230F893A5A1F043796C50E835F0%40DM5PR08MB3323.namprd08.prod.outlook.com.
