Search WebSpherePower's 6,962 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.
Adventures with Roller Weblogger (continued)

The Fairly Easy Part
My first steps along this road were almost identical to those that I undertook when implementing JSPWiki, so I'll not bother with the details of those here, other than to itemize them for future reference. For those who would like detailed, step-by-step accounts of these processes, I'll refer you to the earlier article related to that product at http://www.webspherepower.com/issues/issue200408/00001325001.html.

Briefly, I performed the following tasks:

  • Opened up WebSphere Studio Application developer to the J2EE perspective (I was using v5.1.2.1, but most of the steps are applicable to any 5.x version).
  • Created a new Enterprise Application Project called Roller, and subordinate Web project called RollerWeb.
  • Imported the contents of /roller-demo/Webapps/roller into the WebContent folder of the Web project.
  • Imported the contents of /roller-demo/Webapps/roller/WEB-INF/classes into the JavaResources folder of the Web project.
  • Opened up the Properties dialog for the Web project and changed the context root from RollerWeb to simply roller.

At that point, my workspace looked something like what you see in Figure A.

FIGURE A


The WebSphere Studio Application Developer workspace after importing Roller. Roll over picture for a larger image.

Astute readers will recognize the little red icon in front of the WebContent folder as being indicative of an error condition. More often than not, this kind of thing happens when you take software that runs perfectly well in other environments and try to make it work in the WebSphere world.

In this particular case, it was actually a relatively minor little indiscretion related to the fact that a .jsp file with a page directive included a .jsp fragment that also contained a page directive.

WebSphere only likes to see one page directive per fully resolved .jsp. I corrected this by deleting the first three lines of comments-header.jspf, as you can see in Figure B.

FIGURE B


Delete these three lines to resolve the project error. Roll over picture for a larger image.

A quick(?) rebuild of the Web project resolved all but the warning-level messages in Figure C.

FIGURE C


After the project is rebuilt, all errors should be resolved. Roll over picture for a larger image.

At this point, we would be ready to give it a go, but there are two issues with which we still need to deal: application security and the target database.

The Roller Database
As I mentioned previously, the Roller demo, from which I am obtaining my project artifacts, comes bundled with, and configured for, the HSQLDB (HyperSonic SQL Database) pure Java embedded database. This is a great product for such a demo, but I wanted a real database behind my implementation of this product, so I needed to build one and reconfigure the application.

Since both Roller and I are familiar with working with MySQL, I decided to use MySQL as my back-end data repository. To be totally honest, I initially had aspirations of using MS SQL Server for the database, but I don't want to completely embarrass myself by going into the details of that entire fiasco, so let's just all pretend it was MySQL right from the start.


« Previous  ·  1  ·  2  ·  3  ·  4  ·  5  ·  Next »
Other articles you might like
Home > Projects > Roller Weblogger (3 articles)
   Even more adventures with Roller Weblogger
   Further 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
Excitement brewing for JavaOne 2010, with or without Google
Large companies ignore data centre advice
Onapsis to Release ERP Vulnerability Testing Suite
Botnet Takedown May Yield Valuable Data
VMware app dev platform gazes beyond SpringSource Java
IBM Claims World's Fastest Chip
'Free Java': InfoWorld's guide to the protest goodies
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Smartphone smarts for a mobile world
David Gewirtz Online: CNN commentary and analysis
DominoPower: It's time for Lotus to double-down on Linux and open source
OutlookPower: The strange case of Outlook losing notes and requiring passwords
-- 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