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:
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
Joined: Apr 22, 2012
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]