| Author |
Customised JAAS sample code does not work?
|
Ashish Uniyal
Greenhorn
Joined: Feb 01, 2003
Posts: 18
|
|
Hi everybody, I got some problem in customising the JAAS sample code, I was refering to http://java.sun.com/security/jaas/doc/api.html#Sample, though I executed the sample code sucessfully, but when i tried to alter the code (Just inserted few System.out.println()), and recompiled the code and rewrite the existing JAR, and tried to run it again, it gives me the following exception. Exception in thread "main" java.lang.NoClassDefFoundError: sample/Sample. What could be possible reason of getting such exception? even though all the jars and class files are in the CLASSPATH Ashish Uniyal SCPJ2
|
 |
Max Loukianov
Greenhorn
Joined: Oct 07, 2003
Posts: 3
|
|
I suspect the old JAR is still in the classpath; try to shut down app server and then restart it. max@jbossfaq.com ------------------- ################################ max@jbossfaq.com @ http://www.jbossfaq.com JBoss hosting provided by theBeanContainer.com http://www.theBeanContainer.com ################################
Originally posted by Ashish Uniyal: Hi everybody, I got some problem in customising the JAAS sample code, I was refering to http://java.sun.com/security/jaas/doc/api.html#Sample, though I executed the sample code sucessfully, but when i tried to alter the code (Just inserted few System.out.println()), and recompiled the code and rewrite the existing JAR, and tried to run it again, it gives me the following exception. Exception in thread "main" java.lang.NoClassDefFoundError: sample/Sample. What could be possible reason of getting such exception? even though all the jars and class files are in the CLASSPATH Ashish Uniyal SCPJ2
|
--------------------<br /><a href="http://www.jbossfaq.com" target="_blank" rel="nofollow">www.jbossfaq.com</a> is hosted on JBoss at <a href="http://www.thebeanfactory.com" target="_blank" rel="nofollow">www.thebeanfactory.com</a>
|
 |
 |
|
|
subject: Customised JAAS sample code does not work?
|
|
|