File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Portals and Portlets and the fly likes A JSR168-Struts working example? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Portals and Portlets
Bookmark "A JSR168-Struts working example?" Watch "A JSR168-Struts working example?" New topic

A JSR168-Struts working example?

Rohit Lal

Joined: Sep 25, 2003
Posts: 20
Hi All,

It's been some time since I have progressed beyond displaying "Hello World" on a JSR-168 portlet and going on to navigation between JSPs and saving information through forms. At this stage I can think of using the data collected and sending it to the business layer.

Trouble is, I need to develop an example using Struts as most of the development in my firm is done using it. I myself am more comfortable with Struts and so am eager to build a portlet using it. I came across an example on IBM's site at this URL:

It requires you to download a zip file which contains several example wars for portlets using Struts. So far so good. But I go on to discover that after importing the wars as projects under RAD v.6, only the ones using the IBM portlet API work. The one sole example that uses the JSR-168 api doesn't show anything apart from the portlet description on the header. The page content is blank. I discovered an exception trace on the server console which goes something like:

[1/12/06 14:37:27:031 IST] 131f43e7 ServletInstan E SRVE0100E: Did not realize init() exception thrown by servlet Struts Standard Blank: javax.servlet.UnavailableException: Exception during portlet initialization: java.lang.NoClassDefFoundError: com/ibm/wps/struts/pluto/base/ErrorInfo

This is when I did not even touch the code of that example app and just ran it as is. Don't know what this exception is about...tried looking for the unavailable class "" in the library jars but couldn't find it.

I know there is nothing wrong with the IDE itself (RAD v.6) because I have developed some non-Struts examples which work..

Does anyone know whats up?

Rohit Lal

Rohit Lal<br />SCPJ2 (2000)
Reid M. Pinchback
Ranch Hand

Joined: Jan 25, 2002
Posts: 775
If you go to the StringBeans site (, one
of the developers wrote an article about using Struts
for portlet development, and they have code you can
download (it is also one of the portlets distributed
with StringBeans). Just look for anything about

Reid - SCJP2 (April 2002)
Vikrama Sanjeeva
Ranch Hand

Joined: Sep 02, 2001
Posts: 756

Check IBM redbook: sg246681.pdf and see chapter 9. They have defined JSR 168 Portlet development with RAD V6.


Count the flowers of your garden, NOT the leafs which falls away!
Prepare IBM Exam 340 by joining
I agree. Here's the link:
subject: A JSR168-Struts working example?
It's not a secret anymore!