Announcement Announcement Module
Collapse
No announcement yet.
Not able to load the config file getting java.lang.NoClassDefFoundError: org/springfr Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Not able to load the config file getting java.lang.NoClassDefFoundError: org/springfr

    Hi,

    am a beginer in programing

    Am very new to spring and never had a chance even to look what is ldap.

    Now i have to authenticate in my application users against active directory

    but when am trying to read the xml config file am getting the following exception

    Code:
    Exception in thread "main" java.lang.NoClassDefFoundError: org/springframework/asm/ClassVisitor
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.customizeBeanFactory(AbstractRefreshableApplicationContext.java:218)
    	at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:129)
    	at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:467)
    	at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:397)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
    	at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:83)
    	at net.rim.amalia.ldap.LdapController.<clinit>(LdapController.java:26)
    	at Main.main(Main.java:27)
    Caused by: java.lang.ClassNotFoundException: org.springframework.asm.ClassVisitor
    	at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
    	at java.security.AccessController.doPrivileged(Native Method)
    	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
    	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
    	at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
    	... 8 more
    any help is highly appreciated...
    Last edited by jobmathew; Apr 27th, 2011, 05:36 AM.

  • #2
    Please [ code][/code ] tags when posting code/xml/stacktraces that way it remains readable ...

    Add spring-asm to your classpath. I strongly suggest using maven or ant/ivy to manage your dependencies, saves you a lot of headaches... (This is probably going to be the first but certainly not the last).

    Comment

    Working...
    X