Search WebSpherePower's 6,973 WebSphere, Java, and Eclipse article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
Even more adventures with Roller Weblogger (continued)

To create the new role, I opened up the Deployment Descriptor of the Web project and once more clicked on the Security tab on the bottom of the screen. Then I clicked on the Add button, as shown in Figure I, and entered the information for my new role.

FIGURE I


Go back into the Security section of the Web project Deployment Descriptor. Roll over picture for a larger image.

I then used the tabs at the top of the Security Panel to navigate to the Security Constraints section, and used the Add button there to create a new Security Constraint, like you see Figure J.

FIGURE J


Create a new Security Constraint using the Add button. Roll over picture for a larger image.

After entering the description of the new constraint, I clicked on the Add button in the Web Resources Collection section to bring up the Web Resources Collections dialog box, where I defined my collection of resources, shown in Figure K.

FIGURE K


Enter the URL patterns here. Roll over picture for a larger image.

Then, in the Authorized Roles section, I clicked on the Edit button to define the roles authorized for this new collection, as in Figure L.

FIGURE L


Define the roles authorized for the new collection here. Roll over picture for a larger image.

After closing and saving the Web project Deployment Descriptor, there was one last thing to do, and that was to go back into the Deployment Descriptor of the enterprise application project, get into the security section and hit the Gather button to bring in the new role, shown in Figure M.

FIGURE M


Use the Gather button to retrieve the new role. Roll over picture for a larger image.

I clicked on the new role to bring it into focus, then checked the Everyone box in the WebSphere Bindings section to define this role as applying to all users, as you see in Figure N.

FIGURE N


Check the Everyone box to define this role as all system users. Roll over picture for a larger image.

After closing and saving the Deployment Descriptor, I restarted the server to give it what I was sure at this point was going to be my final test.

Almost there . . .
That did what I wanted it to do. I could now go back to the main menu and still be logged on and still have all of the secured tabs available.

There was one more problem though, which I knew about, but had been avoiding in the slim hope that it was just symptomatic of the other security issues. Unfortunately, that wasn't the case.

I was still getting a nasty error whenever I clicked on Page Templates, like you see in Figure O; solving all of these other issues had no impact on that particular problem.

FIGURE O


After all of the other fixes, this problem refused to go away. Roll over picture for a larger image.

However, with this issue there was a stack trace. There were some indications as to what the error was, so it ended up being one of the simplest things to resolve. In fact, I resolved it without even trying!

I had traced the problem down to the Java module org.roller.business.hibernate.HibernateStrategy. I went back out to the Roller CVS site to get myself a copy of the source code in order to throw in some debug statements and track down the problem.

As it turned out, however, the version that I snagged from CVS was a different version than the one I received in the demo package. When I brought it in and tested it, the problem went away.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Projects > Roller Weblogger (3 articles)
   Further Adventures with Roller Weblogger
   Adventures with Roller Weblogger
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent WebSpherePower Articles
A perfect 10: celebrating 10 years online
You can help bring security and safety back to White House email
Introducing the WebSpherePower RSS feeds
From New Jersey to Palm Bay, Florida
A WebSphere pot o' gold
How Elvis entered the building and CES went out the window
WebSphere Application Server 6: what's it all mean?
WebSpherePower News
Legal question: Can HP keep Hurd from going to Oracle?
Caringo announces integration with Symantec EV 9.0
Cisco & Citrix marry on virty PCs
Take Heed, Tech Giants: Edison's Failed Plot To Hijack Hollywood
IBM code unchains virtual workloads
Oracle names H-P ex-CEO Mark Hurd as co-president
Cloud Messaging Provider, Linxter, Releases SDK for Java and Android
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Introducing the Jones family and their full-family backup challenges
David Gewirtz Online: CNN commentary and analysis
DominoPower: Lotus must open source Notes and Domino
OutlookPower: Hands on debugging a broken Outlook forwarding rule
-- Advertisement --

How To Save Jobs
This book is about how to create and save jobs. Believe it or not, there's not a single book out there that specifically focuses on job creation and preservation -- until now.

This book, by ZATZ editor-in-chief David Gewirtz, is about helping your business work better. It's about helping you change the things you need to change so your company can perform more effectively.

Plus, through a grant from ZATZ, it's a free download.

Read it and reap.

ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login