The user impersonation feature in WebSphere Portal allows specified users or groups the ability to assume the profile of others. In this way, administrators or help-desk staff can view a personalized and secured portal the way another end-user sees it. Of course, depending on the types of content and services you provide, this could be […]

Did you know there’s a tool that can help you search through JAR files to find Java classes or packages? I’ve been using it for years and I am often surprised that so few Java developers have it in their toolbox. Of course, it’s very handy for resolving those pesky NoClassDefFoundError and ClassNotFoundExceptions, but my […]

A Java ClassNotFound exception does not always mean that a class could not be found on the classpath. It seems that sometimes it can mean that the class was actually found 2 or more times – a conflict in the classloader. Recently, while developing a portlet for WebSphere Portal, I got the following exception: Caused […]

Render the values of a Map The following code snippet shows how to get the values of a Map (e.g. HashMap) from within a Freemarker template. <#assign m = myMap> <#assign values = m?values> <ul> <#list values as myObject> <li>${myObject.myPropery}</li> </#list> </ul> Render the keys of a Map You can do a similar thing with […]

ERROR CODE LDAPEXCEPTION CONSTANT POSSIBLE CAUSE(S) 0 SUCCESS The operation completed successfully 1 OPERATION_ERROR Invalid syntax for ACI or schema, or inappropriate control for the operation 2 PROTOCOL_ERROR Invalid filter expression on search, or DN on add, modify, or delete 3 TIME_LIMIT_EXCEEDED Either the server’s or the client’s specified search time limit was exceeded 4 […]

abstract (object classes) Abstract classes are used to build other object classes, but never for building direct instances of the class. A special abstract class called top is the ultimate superclass of all object classes. To build a class that doesn’t inherit any attributes, you build a class that is a direct subclass of top. […]