Results 1 to 2 of 2

Thread: ClassNotFound Exception, please help

  1. #1

    Default 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. #2
    Join Date
    Aug 2004
    Location
    Southampton, UK
    Posts
    826

    Default

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

    Rob
    Rob Harrop
    Lead Engineer, dm Server
    SpringSource
    http://www.springsource.com

    Co-Author - Pro Spring

Similar Threads

  1. Context initialization failed
    By kanonmicke in forum Container
    Replies: 7
    Last Post: Sep 29th, 2005, 12:35 AM
  2. Odd behaviour when injecting TransactionTemplate
    By damon311 in forum Container
    Replies: 3
    Last Post: Jul 23rd, 2005, 11:21 AM
  3. Replies: 0
    Last Post: Jul 11th, 2005, 05:49 PM
  4. ClassNotFound Exception
    By mhazer in forum Container
    Replies: 3
    Last Post: Feb 27th, 2005, 04:54 AM
  5. Replies: 3
    Last Post: Nov 8th, 2004, 07:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •