jasig-cas IRC Logs-2011-11-18

[11:56:05 CST(-0600)] <foxnesn> hi atilling

[12:13:46 CST(-0600)] <foxnesn> im following this guide for theming

[12:13:49 CST(-0600)] <foxnesn> https://wiki.jasig.org/display/CASUM/Theme+Control

[12:14:00 CST(-0600)] <foxnesn> i dont understand part 4

[12:22:36 CST(-0600)] <brandon_> hello

[12:24:30 CST(-0600)] <foxnesn> hi

[12:25:15 CST(-0600)] <brandon_> i was in here a couple days ago with a problem with clearpass

[12:25:21 CST(-0600)] <brandon_> think i have it mostly figured out

[12:25:41 CST(-0600)] <brandon_> but now when i try to login, I get java.lang.NoSuchMethodError: org.jasig.cas.client.util.CommonUtils.getResponseFromServer

[12:25:57 CST(-0600)] <brandon_> at org.jasig.cas3.extensions.clearpass.integration.uportal.PasswordCachingCasAssertionSecurityContext.retrievePasswordFromResponse

[12:26:10 CST(-0600)] <foxnesn> pooledcontext ?

[12:26:29 CST(-0600)] <brandon_> huh

[12:26:40 CST(-0600)] <foxnesn> sorry, are you setup for pooling?

[12:26:44 CST(-0600)] <foxnesn> in your deployer?

[12:26:48 CST(-0600)] <brandon_> no

[12:28:12 CST(-0600)] <brandon_> this error is happening on the uportal server

[12:28:27 CST(-0600)] <brandon_> should i go to #jasig-uportal?

[12:32:37 CST(-0600)] <foxnesn> perhaps

[12:42:43 CST(-0600)] <atilling> Sorry foxnesn, what aren't you understanding?

[12:48:54 CST(-0600)] <foxnesn> make use of 'it' in JSP files

[12:48:59 CST(-0600)] <foxnesn> make use of what?

[12:50:10 CST(-0600)] <foxnesn> wouldnt this whole process be easier if the Theme Name in the services management simply called the default views resolver which has a link to the .jsp of the theme?

[12:51:45 CST(-0600)] <atilling> ahh but theme doesn't change which jsp files you are accessing

[12:52:05 CST(-0600)] <atilling> it's sets values you can use in your jsp

[12:53:01 CST(-0600)] <atilling> so you have one set of jsp's that process all of your themes and based on properties in the theme you change the behavior of the jsp

[12:53:13 CST(-0600)] <foxnesn> see, we edited the casLoginView.jsp to make it look like our site

[12:53:49 CST(-0600)] <foxnesn> and it works great

[12:54:01 CST(-0600)] <foxnesn> now i simply want to change what that looks like based on what service is accessing it

[12:54:12 CST(-0600)] <foxnesn> which is just a different looking jsp

[12:57:23 CST(-0600)] <foxnesn> anyway, i followed the directions and im getting this issue:

[12:57:45 CST(-0600)] <foxnesn> nested exception is org.springframework.webflow.execution.FlowExecutionException: Exception thrown in state 'viewLoginForm' of flow 'login'

[12:57:58 CST(-0600)] * Ozy_work waves

[12:59:45 CST(-0600)] <atilling> ok so you want your service theme to display an entiterly different jsp?

[13:00:24 CST(-0600)] <foxnesn> yea

[13:00:32 CST(-0600)] <foxnesn> i want one of our services to look different

[13:00:37 CST(-0600)] <foxnesn> more than just adjusting the css

[13:00:58 CST(-0600)] <foxnesn> i mean, casLoginView is a jsp that gets accessed

[13:01:08 CST(-0600)] <foxnesn> why not have another jsp for another theme?

[13:01:11 CST(-0600)] <foxnesn> maybe i am missing something

[13:03:03 CST(-0600)] <atilling> 1 minute working on something else

[13:03:35 CST(-0600)] <foxnesn> thx

[13:04:00 CST(-0600)] <foxnesn> ok, no error this time

[13:04:17 CST(-0600)] <foxnesn> no change in appearance tho

[13:07:24 CST(-0600)] <atilling> ok spring theming, the design is you use a single JSP per view, period aka one jsp for all of your themes

[13:07:36 CST(-0600)] <foxnesn> ok

[13:08:10 CST(-0600)] <atilling> Within that jsp you can access properties set in your theme file and change the behavior of the jsp

[13:08:20 CST(-0600)] <foxnesn> this is what i have setup

[13:08:31 CST(-0600)] <foxnesn> in classes/pwmtheme.properties

[13:08:35 CST(-0600)] <atilling> Easy examples are using a different css per theme etc

[13:08:38 CST(-0600)] <foxnesn> i have a link to my css

[13:08:55 CST(-0600)] <foxnesn> which is /themes/pwmTheme/cas.css

[13:09:01 CST(-0600)] <foxnesn> i make changes to that css

[13:09:18 CST(-0600)] <foxnesn> and then i will see differences once i adjust the theme name in services managmenet

[13:09:29 CST(-0600)] <foxnesn> can it be that basic?

[13:09:41 CST(-0600)] <atilling> right, that basic

[13:10:12 CST(-0600)] <foxnesn> what if i want to add images?

[13:10:15 CST(-0600)] <atilling> you'll still be using the same casloginview.jsp for the default theme and for the pwmtheme

[13:10:34 CST(-0600)] <atilling> well there are two ways to handle it

[13:10:52 CST(-0600)] <foxnesn> first

[13:11:01 CST(-0600)] <foxnesn> i am adding my services to the actual deployer

[13:11:08 CST(-0600)] <foxnesn> do you know the property name for theme name?

[13:11:32 CST(-0600)] <foxnesn> just so i dont have to keep readding it every time i reload cas

[13:12:12 CST(-0600)] <atilling> the theme name is the name of the .properies file

[13:12:32 CST(-0600)] <foxnesn> yes

[13:12:33 CST(-0600)] <foxnesn> i mean

[13:12:38 CST(-0600)] <foxnesn> property name tag

[13:12:59 CST(-0600)] <foxnesn> <property name="id" value="0" />

[13:13:05 CST(-0600)] <foxnesn> what would that be for theme name

[13:13:21 CST(-0600)] <atilling> oh, you mean you are still using the imemory service DAO and want the property for theme

[13:13:39 CST(-0600)] <foxnesn> yes please

[13:14:01 CST(-0600)] <atilling> I THINK property name="theme" value="pwmTheme"

[13:14:25 CST(-0600)] <atilling> But I don't know for sure - I'd have to look in the source to be sure

[13:14:38 CST(-0600)] <atilling> we use JPA for the service DAO

[13:15:17 CST(-0600)] <brandon__> KWhat_Work: here

[13:15:33 CST(-0600)] <KWhat_Work> ahh there we go, you still have issues

[13:15:37 CST(-0600)] <brandon__> yeah

[13:16:10 CST(-0600)] <brandon__> thought it might be because there was an older version of cas-client-core in my lib but i removed that and still getting same error

[13:16:35 CST(-0600)] <KWhat_Work> yah maven is a heap of shit and pulls in everything and the kitchen sink

[13:16:51 CST(-0600)] <brandon__> yeah

[13:16:53 CST(-0600)] <brandon__> any ideas?

[13:17:34 CST(-0600)] <KWhat_Work> this took me FOREVER to get working and the docs really suck let, whats the error and let me take a quick look at my configs

[13:17:51 CST(-0600)] <KWhat_Work> cas is workign without clear pass right

[13:17:54 CST(-0600)] <serac> heap of shit == one of the best build tools ever created for open source

[13:18:04 CST(-0600)] <KWhat_Work> serac: if your on windows maybe

[13:18:04 CST(-0600)] <serac> a votre avis I guess

[13:18:16 CST(-0600)] <serac> I have not used Windows as a development platform in years.

[13:18:26 CST(-0600)] <serac> I use Linux primarily and OSX on the side.

[13:18:27 CST(-0600)] <KWhat_Work> it reaps havoc with my package manager

[13:18:35 CST(-0600)] <serac> You need a better package manager, then.

[13:18:40 CST(-0600)] <serac> Try apt.

[13:18:41 CST(-0600)] <serac> (wink)

[13:18:43 CST(-0600)] <KWhat_Work> portage is pretty good

[13:18:51 CST(-0600)] <brandon__> http://pastebin.com/dnb8GrB7

[13:18:55 CST(-0600)] <Ozy_work> or yum

[13:19:01 CST(-0600)] <brandon__> yes, cas is fine without it

[13:19:10 CST(-0600)] <serac> Oh God, I didn't mean to start a package manager flamewar (wink)

[13:19:26 CST(-0600)] <Ozy_work> serac: no flamewar

[13:19:29 CST(-0600)] <serac> (wink)

[13:19:37 CST(-0600)] <atilling> I perfer maven over ant anyday

[13:19:47 CST(-0600)] <atilling> and I use yum

[13:19:54 CST(-0600)] <KWhat_Work> well ant isnt exactly awesome either

[13:19:57 CST(-0600)] <Ozy_work> any decent package manager ought to work just fine with maven

[13:20:04 CST(-0600)] <serac> Open source java projects have gained so much from Maven it's hard to overstate it.

[13:20:14 CST(-0600)] <serac> You can just jump into a project, build, and then contribute.

[13:20:27 CST(-0600)] <KWhat_Work> serac: can you figure out why i get like 4 versions of every jar in my war files?

[13:21:00 CST(-0600)] <serac> This an overlay?

[13:21:05 CST(-0600)] <KWhat_Work> yah

[13:21:48 CST(-0600)] <serac> Post it (redacted) to cas-user and I'll take a look. I'll probably want to see mvn dependency:tree output as well.

[13:22:27 CST(-0600)] <serac> The usual cause of that stuff if having multiple versions of same dependency sucked in due to transitivity you haven't accounted for.

[13:22:35 CST(-0600)] <atilling> have you done a mvn clean ?

[13:22:44 CST(-0600)] <serac> (and in that case totally outside of package managers)

[13:22:51 CST(-0600)] <KWhat_Work> yah, its def getting sucked in from somewhere

[13:23:00 CST(-0600)] <KWhat_Work> ill take a look at it later

[13:23:05 CST(-0600)] <brandon__> KWhat_Work: what didn't the docs cover?

[13:23:17 CST(-0600)] <KWhat_Work> its not causing any issues right now

[13:24:13 CST(-0600)] <serac> Part of the problem is that our documentation presumes some expertise with Maven, which for a number of folks is a faulty assumption.

[13:24:19 CST(-0600)] <serac> We know that's a weakness of the docs.

[13:24:23 CST(-0600)] <KWhat_Work> brandon__: I still cant quite figure out the allowedProxyChains syntax.

[13:24:31 CST(-0600)] <KWhat_Work> im not sure what it is expecting

[13:24:32 CST(-0600)] <serac> Maybe some day we'll have packaged versions of the components you can simply install with your package manager:

[13:24:36 CST(-0600)] <serac> apt-get install cas-server-core

[13:24:42 CST(-0600)] <KWhat_Work> that would be nice

[13:24:44 CST(-0600)] <serac> There's a lot of value there.

[13:24:49 CST(-0600)] <serac> But a shitload of work.

[13:25:28 CST(-0600)] <KWhat_Work> there really is alot of configuration for cas as well, and a lot of it is redundant as well

[13:26:03 CST(-0600)] <KWhat_Work> brandon__: that stack trace isnt telling me a whole lot, whats your web.xml file look like

[13:26:12 CST(-0600)] <KWhat_Work> brandon__: redact anything sensitive please

[13:26:19 CST(-0600)] <brandon__> one min

[13:29:46 CST(-0600)] <brandon__> KWhat_Work: http://pastebin.com/wPDiadZw

[13:29:49 CST(-0600)] <KWhat_Work> serac: you what would also be awesome, if param were clearly defined for things like useSession and allowedProxyChains. I think most of the difficulty aside from the maven learning curve is what does this config option do and what is it expecting. For example with clearpass allowedProxyChains, I have no idea what that value should be. Full URL, relative URI, if so relative to what?

[13:30:39 CST(-0600)] <foxnesn> ok, so ive got theming figured out for simple css changes. but what if i would like to add images, etc ?

[13:31:20 CST(-0600)] <brandon__> isn't there an images folder?

[13:31:29 CST(-0600)] <KWhat_Work> there are a couple

[13:32:39 CST(-0600)] <foxnesn> can i just create an images in my own theme folder?

[13:32:46 CST(-0600)] <KWhat_Work> brandon__: just want to make sure about one thing first, you have setup all your certs with java and apache (or what ever web server your using) and they are valid and your using this over https right

[13:32:51 CST(-0600)] <atilling> say you have a spot in the jsp for a logo you could have logo.file=/images/logo1.jpg

[13:33:31 CST(-0600)] <brandon__> KWhat_Work: yes certs are all setup and working, everything is https

[13:33:55 CST(-0600)] <brandon__> everything was working until i tried to integrate clearpass

[13:34:04 CST(-0600)] <brandon__> using CAS 3.4.2.1 and uPortal 3.2

[13:34:32 CST(-0600)] <brandon__> *uPortal 3.2.2

[13:35:09 CST(-0600)] <atilling> and then in the jsp have <img src="<spring:theme code="logo.file" text="" />" />

[13:36:17 CST(-0600)]

<atilling> well not quite need <spring:theme code="logo.file" var="imagefile" text="" /> <img src="$

Unknown macro: {imagefile}

" />

[13:36:37 CST(-0600)] <foxnesn> if pwm.css is in /themes/pwmTheme can i also add an /themes/pwmTheme/includes and /themes/pwmTheme/images ??

[13:36:42 CST(-0600)] <KWhat_Work> brandon__: I dont set the proxyCallbackUrl proxyReceptorUrl in the clearpass filter, also I think you need to make sure the proxy chains are defined. Try setting acceptAnyProxy to true.

[13:37:23 CST(-0600)] <KWhat_Work> oh i guess you can do that in the bean now

[13:37:28 CST(-0600)] <atilling> sure as log as you manage the properties in the pwmTheme.properties and then use them in the jsp

[13:37:32 CST(-0600)] <KWhat_Work> or thats probably where it should be

[13:39:00 CST(-0600)] <brandon__> what bean?

[13:39:16 CST(-0600)] <KWhat_Work> brandon__: https://wiki.jasig.org/display/CASC/Configuring+the+JA-SIG+CAS+Client+for+Java+using+Spring org.jasig.cas.client.validation.Cas20ProxyReceivingTicketValidationFilter

[13:39:32 CST(-0600)] <atilling> There is a method, that you could use that would simply allow you to use two different jsp files, one for each theme - but it's sort of a cludge solution, I wrote it

[13:39:59 CST(-0600)] <foxnesn> ahh

[13:40:07 CST(-0600)] <foxnesn> glad we are on the same wavelength then

[13:40:24 CST(-0600)] <foxnesn> this will be fin

[13:40:25 CST(-0600)] <foxnesn> e

[13:40:26 CST(-0600)] <KWhat_Work> brandon__: http://pastebin.com/92s5mQ2Q

[13:40:34 CST(-0600)] <foxnesn> i will work with the web dev

[13:40:45 CST(-0600)] <foxnesn> i just need to understand the structure

[13:44:10 CST(-0600)] <KWhat_Work> brandon__: also, how are you calling to get a clear text password. Are you sure that code will work?

[13:44:35 CST(-0600)] <brandon__> you mean from a portlet?

[13:44:46 CST(-0600)] <KWhat_Work> or where ever

[13:44:57 CST(-0600)] <brandon__> haven't gotten that far yet

[13:45:06 CST(-0600)] <KWhat_Work> btw i was never able to get it to work from within a portlet but Im not using uportal

[13:45:14 CST(-0600)] <brandon__> just put clearpass in and couldn't login

[13:45:24 CST(-0600)] <KWhat_Work> what you mean put it in

[13:45:28 CST(-0600)] <atilling> foxnesn: if you want to look at my Kludge solution to have different jsp pages per theme it's here: https://lists.wisc.edu/read/messages?id=15317099

[13:45:42 CST(-0600)] <KWhat_Work> like sso.site.tld/clearpass ?

[13:45:44 CST(-0600)] <brandon__> followed the guide to get it installed

[13:46:00 CST(-0600)] <KWhat_Work> oh it just crashes the entire service

[13:46:04 CST(-0600)] <brandon__> yeah

[13:46:10 CST(-0600)] <KWhat_Work> ok

[13:46:16 CST(-0600)] <brandon__> hoping to get it to work with the email-preview portlet

[13:48:00 CST(-0600)] <KWhat_Work> we had to do alot of bs to to get it to work with our portal.... but thats another story, one sec. i will paste my whole web.xml

[13:49:10 CST(-0600)] <KWhat_Work> brandon__: i dont know how much of this is "correct" but it works, im gonig to lunch in a few min but i would compare to what your using and see if any of the discrepancies may fix the problem. http://pastebin.com/2UajZ0bh

[13:49:28 CST(-0600)] <brandon__> ok, thank you

[13:49:33 CST(-0600)] <KWhat_Work> np

[13:49:39 CST(-0600)] <KWhat_Work> be back in an hour ish

[15:19:55 CST(-0600)] <KWhat_Work> brandon__: that help at all ?

[15:20:10 CST(-0600)] <brandon__> figured it out

[15:20:22 CST(-0600)] <KWhat_Work> nice, what turned otu to be the problem

[15:20:27 CST(-0600)] <brandon__> had another cas-client-core.jar file hiding in the classpath, haha

[15:20:33 CST(-0600)] <KWhat_Work> LOL

[15:20:37 CST(-0600)] <brandon__> thank you for taking time to help though

[15:20:45 CST(-0600)] <KWhat_Work> no prob, glad it all worked out

[15:21:17 CST(-0600)] <brandon__> it was on uportal side. what is a good way to ensure that maven doesn't pull in 6 different copies of a jar?

[15:21:51 CST(-0600)] <KWhat_Work> if there is i havent found one. I would talk to serac, he seemed to like maven more than me (wink)