Tuesday, 12 February 2008

Websphere causes joy...

I'm blogging this so that maybe other people don't waste as much time on this issue as we did. And of course it's not an issue with JBoss. JBoss always seems to make sense and work. Ah well.

The issue was for the form based authentication. In the form it used a jstl tag for the action like this:
<form action="<c:url value='/j_security_check'/>" method="post"> ...

Now, that looks correct. In websphere when you type in a username and password (good or bad), it doesn't set the ltap cookie, but then it tries to forward you on to the page you requested, which then generates a 403 not authorized. The above tag targets the root of your app (since it has the leading slash).

The issue seem to be that you have to have the action target to the same location of your jsp that's used for the login page. If you target the context root but your jsp is in some path like [context root]/secure-section/login.jsp, it won't work.

In the end it sometimes pays not to be fancy. Just leave your login action as a plain html one like this:
<form action="j_security_check" method="post"> ...

Monday, 11 February 2008

Time keeps on slippin...

It's funny when you feel that you have more than enough time to prepare for something, and then all of a sudden there is a realization that the event is a lot closer than you thought that it was.

I honestly don't know what I do with my time sometimes, but I never seem to have enough of it. I can't imagine how people with kids get anything done... it boggles the mind.

Monday, 4 February 2008

Agguhghh

I I love Canon in D Major by Johann Pachelbel... just not in a loop for 45 minutes while I wait on hold.

*grumble*

Sunday, 3 February 2008

Stupid little dishes...

I always hated those cooking shows where they had all the ingredients all chopped up in little measured out dishes. I was always "No one cooks like that!". It's probably one of the main reasons why I was a fan of the urban peasant. He cooked like you would in "life", not like a "tv" cook.

Tonight I was making up some deviled eggs and I figured that I'd like some finely chopped red onion to toss in. I had some. In a little glass dish. Finely chopped. Just the right amount.

It felt so weird and I don't know why. It was just some chopped onion. Sometimes life does reflect art I guess...

... and that's all the time we have for our blog post. If you'll be joining us next time to rant about something or spew some random drivel, here on the jim blog.

Saturday, 2 February 2008

Plow and drag

With this latest snowstorm we've gotta a lot of snow. More than our little car can handle on unplowed roads. Well, they plow most roads, just not ours. We've shoveled our driveway 3 times and our neighbour has snowblow'ed it twice - usually just the pile of snow we push to the side we we don't have to lift it (thank god he does that).

So, our driveway is clear, but that doesn't get you far. Laura had an overnight shift so that meant she got stuck going to work and coming home, right in front of our house. Considering how deep the snow is, and how it's all ice underneath, anyone would get suck in our car. It's funny when you see a little car plowing the road with it's bumper and dragging all the way to the major street. It kind of sucks because I should be going out and doing some shopping but I'm sort of stuck until the plow. Maybe I should risk it and go out...

*sigh* Ah, home ownership....

Update 3:57pm: the plow's here! Now I just have to dig out what he filled in my driveway and then I've got access to go out. Yay! ;-)