-
1. Re: Custom Authenticator class not found
ragavgomatam Jan 6, 2008 6:05 PM (in response to barramundi)In the jboss server classpath :- either under $JBOSS_HOME/server/default/lib or modify the %CLASSPATH% in run.bat/run.sh and add the jar location there
-
2. Re: Custom Authenticator class not found
barramundi Jan 6, 2008 10:08 PM (in response to barramundi)Actually I tried that after posting this topic, but got the same error.
I edited the run.bat to include the jar file
-classpath "%JBOSS_CLASSPATH%;C:\jbosscustauth.jar"
error as below:
2008-01-07 11:02:38,796 ERROR [org.jboss.web.tomcat.security.config.JBossContextConfig] Failed to customize authenticators::
java.lang.ClassNotFoundException: TestAuthenticator
at java.net.URLClassLoader$1.run(URLClassLoader.java:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.net.FactoryURLClassLoader.loadClass(URLClassLoader.java:575)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jboss.web.tomcat.security.config.JBossContextConfig.getAuthenticators(JBossContextConfig.java:108) -
3. Re: Custom Authenticator class not found
barramundi Jan 7, 2008 1:36 AM (in response to barramundi)Found the problem to be compiler JDK version.
Referring to http://wiki.jboss.org/wiki/Wiki.jsp?page=DeterminingClassVersionFromADotClassFile
I found the bytecode major version to be jdk 1.5
Compiled back with 1.4 and the problem is gone.
Strange though, that the error was not java.lang.UnsupportedClassVersionError