This week's book giveaway is in the Testing forum.
We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line!
See this thread for details.
The moose likes Security and the fly likes Customised JAAS sample code does not work? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Engineering » Security
Reply Bookmark "Customised JAAS sample code does not work?" Watch "Customised JAAS sample code does not work?" New topic
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>
 
IntelliJ Java IDE
 
subject: Customised JAAS sample code does not work?
 
Threads others viewed
Any one implement LDAP Authorization in Struts2?
Security and JAAS - If anyone knows
JAAS Learning
which framework to use (JAAS, JCE, JSSE)
Auth and Auth using JAAS?
IntelliJ Java IDE