Jetspeed with filter authentication

Jetspeed 2 authenticate user’s with JAAS. Jetspeed installer and maven plug-in both configure tomcat for JAAS authentication.

I have seen people facing problem in configuring JAAS in different application server e.g Websphere, Jboss etc.In some case user face error in tomcat too.
This is the common error log, if JAAS is not configured properly

javax.security.auth.login.LoginException: unable to find LoginModule
class: org.apache.jetspeed.security.impl.DefaultLoginModule
at javax.security.auth.login.LoginContext.invoke(LoginContext.java:808)
at javax.security.auth.login.LoginContext.access$000(LoginContext.java:186)
at javax.security.auth.login.LoginContext$4.run(LoginContext.java:683)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:680)

Jetspeed is modular and easy to configure. Jetspeed authentication can be configured with-out JASS.
For using different authentication then JAAS, you would need to edit web.xml of jetspeed. You will find an commented entry for portal filter.

<!--

<filter>

<filter-name>PortalFilter</filter-name>

<filter-class>org.apache.jetspeed.login.filter.PortalFilter</filter-class>

</filter>

-->

<!--

<filter-mapping>

<filter-name>PortalFilter</filter-name>

<url-pattern>/*</url-pattern>

</filter-mapping>

-->

Just un-comment the above filter configuration and restart your application ( Some application server, don’t take changes in web.xml, once deployed). I would recommend to make these changes before deploy.

Once server is started, Jetspeed login should work

Java bug

I am Java professional, working on Enterprise Java from last 8 years.

More Posts - Website

Follow Me:
TwitterLinkedIn