Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Urgent help required - Can't get any SSO setups working :o(

 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I have tried implementing the 3 types of SSO defined here:

http://www.jforum.net/doc/SSO

However, whenever I start up JBoss I get this:

Error while executing SSO actions: java.lang.ClassNotFoundException: net.jforum.sso.RemoteUserSSO

Or if i'm defining my own SSO class:

Error while executing SSO actions: java.lang.ClassNotFoundException: net.jforum.sso.MySSO

These classes are definitely in the WEB-INF/classes dir of the exploded jforum war but they are just not getting picked up. I am not rebuilding the source, but using the zipped up version and compiling and adding my own SSO class (MySSO). I can't see what I'm doing wrong here. Here are my SystemGlobals properties:

authentication.type=sso
sso.implementation = net.jforum.sso.RemoteUserSSO OR sso.implementation = net.jforum.sso.MySSO
sso.redirect = http://local.server.co.uk:8080/login.jsp

This is driving me mad and i'm on a pretty tight deadline. Can anyone help?
[originally posted on jforum.net by lebenski]
 
Migrated From Jforum.net
Ranch Hand
Posts: 17424
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sorry, I don't know JBoss that wel... your config looks right to me and the error seems to be when the SSO class is being dynamically created (e.g. the classForName call). Generally this means some kind of issue with the ClassPath.

Only things I can think of are:

Make sure there are no trailing spaces or hidden characters in the config file. I THINK white space is trimmed but... Oh, make sure the properties file is not using some strange encoding. Probably should be UTF8 and in the same file format as the OS (e.g. *nix end of lines if *Nix or Win line feeds if WinDoze...).

Restart JBoss.. (you probably have but... )

With some JVM's, if you have a package located in two places, (e.g., x.y.z classes in two jars, or jar+ class dir), only the classes in the first one are found. I think this is mostly related to older VM. Make sure there's not a jforum related jar in a shared or common directory (or else where in the classpath).

Something in the security model is preventing this. E.g., there is an already loaded class from another web-app but from a jar at the shared or system level. Since the class exists at the app level, the loader won't replace the higher level class.
[originally posted on jforum.net by monroe]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic