Announcement Announcement Module
Collapse
No announcement yet.
ClassNotFound Exception, please help Page Title Module
Move Remove Collapse
This topic is closed
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ClassNotFound Exception, please help

    Please, could anyone help me where should be the problem?

    :arrow: After unsuccessfull login is everything ok and are correctly reported BAD CREDENTIALS.

    :!: Unfortunetly - if login is successfull it si thrown exception: java.lang.NoClassDefFoundError - net.sf.acegisecurity.context.SecureContextImpl

    In my classpath is included JAR acegi-security-0.8.2.jar where is defined class SecureContextImpl

    Does anyone have any idea where should be the problem?
    Any help would be very appreciated.

    java.lang.NoClassDefFoundError

    at org.springframework.richclient.security.SessionDet ails.class$(SessionDetails.java:97)
    at org.springframework.richclient.security.SessionDet ails.getSecureContextClass(SessionDetails.java:97)
    at org.springframework.richclient.security.SessionDet ails.login(SessionDetails.java:110)
    at org.springframework.richclient.security.LoginForm. commit(LoginForm.java:57)
    at org.springframework.richclient.security.LoginComma nd$1.onFinish(LoginCommand.java:79)
    at org.springframework.richclient.dialog.ApplicationD ialog$1.doExecuteCommand(ApplicationDialog.java:32 2)
    at org.springframework.richclient.command.ActionComma nd.execute(ActionCommand.java:188)
    at org.springframework.richclient.command.ActionComma nd$1.actionPerformed(ActionCommand.java:123)
    at javax.swing.AbstractButton.fireActionPerformed(Unk nown Source)
    at javax.swing.AbstractButton$ForwardActionEvents.act ionPerformed(Unknown Source)
    at javax.swing.DefaultButtonModel.fireActionPerformed (Unknown Source)
    at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
    at javax.swing.plaf.basic.BasicButtonListener.mouseRe leased(Unknown Source)
    at java.awt.Component.processMouseEvent(Unknown Source)
    at java.awt.Component.processEvent(Unknown Source)
    at java.awt.Container.processEvent(Unknown Source)
    at java.awt.Component.dispatchEventImpl(Unknown Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.LightweightDispatcher.retargetMouseEvent( Unknown Source)
    at java.awt.LightweightDispatcher.processMouseEvent(U nknown Source)
    at java.awt.LightweightDispatcher.dispatchEvent(Unkno wn Source)
    at java.awt.Container.dispatchEventImpl(Unknown Source)
    at java.awt.Window.dispatchEventImpl(Unknown Source)
    at java.awt.Component.dispatchEvent(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.Dialog$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEvent(Unknown Source)
    at java.awt.EventDispatchThread.pumpOneEventForHierar chy(Unknown Source)
    at java.awt.EventDispatchThread.pumpEventsForHierarch y(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
    at java.awt.EventDispatchThread.run(Unknown Source)

    Caused by: java.lang.ClassNotFoundException: net.sf.acegisecurity.context.SecureContextImpl

    at java.net.URLClassLoader$1.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.net.URLClassLoader.findClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(Unknown Source)
    ... 37 more

  • #2
    Do you have more than one Acegi or Spring jar on the classpath?

    Rob

    Comment

    Working...
    X