• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Implemented CallbackHandler ClassNotFoundException

 
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have implemented my own CallbackHandler and in jboss-service.xml have the following:



When I start the server I get the following:

[ServiceConfigurator] Problem configuring service jboss.security:service=JaasSecurityManager
org.jboss.deployment.DeploymentException: Exception setting attribute javax.management.Attribute@869113 on mbean jboss.security:service=JaasSecurityManager; - nested throwable: (java.
ng.ClassNotFoundException: No ClassLoaders found for: com.security.auth.module.DbCallbackHandler)

The class file for DbCallbackHandler does exist in one of my deployed project jars. Does the implemented CallbackHandler class need tro exist in some other JBoss directory?
 
ranger
Posts: 17347
11
Mac IntelliJ IDE Spring
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Think about the order JBoss uses to load classes.

If you say you put that in the jboss-service.xml file in the conf directory. Know that those MBeans are laoded and created before anything in the deploy directory. So if your class is in an archive in your deploy directory, then your class hasn't been loaded yet.

You might be better off putting that class in a jar file that you put into the server's lib directory. Not the lib directory in the root of the JBoss Home directoy, but the server's.

Mark
 
Richard Roszak
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Mark. I put the class in a jar file in the server's lib directory and now it finds it.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic