Announcement Announcement Module
No announcement yet.
unable to run test-drive, NoClassDefFoundError Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • unable to run test-drive, NoClassDefFoundError

    the application is installed at root and I got he page when I hit localhost:8080 but after launching any app I get the stack trace below in my server (tomcat 6) console, any ideas?

    Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name '_messageBroker': Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
    at AutowireCapableBeanFactory.initializeBean(Abstract
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory$
    at Method)
    at AutowireCapableBeanFactory.createBean(AbstractAuto
    at BeanFactory$1.getObject( 64)
    at ingletonBeanRegistry.getSingleton(DefaultSingleton
    at BeanFactory.doGetBean( )
    at BeanFactory.getBean(
    at BeanFactory.getBean(
    at BeanFactory.isSingleton( 66)
    at ationContext.isSingleton(AbstractApplicationContex
    at org.springframework.web.servlet.handler.AbstractUr lHandlerMapping.registerHandler(AbstractUrlHandler
    at org.springframework.web.servlet.handler.SimpleUrlH andlerMapping.registerHandlers(SimpleUrlHandlerMap
    at org.springframework.web.servlet.handler.SimpleUrlH andlerMapping.initApplicationContext(SimpleUrlHand
    at ectSupport.initApplicationContext(ApplicationObjec
    at tionObjectSupport.initApplicationContext(WebApplic
    at ectSupport.setApplicationContext(ApplicationObject
    at textAwareProcessor.postProcessBeforeInitialization (
    at AutowireCapableBeanFactory.applyBeanPostProcessors BeforeInitialization(AbstractAutowireCapableBeanFa
    at AutowireCapableBeanFactory.initializeBean(Abstract
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    ... 28 more
    Caused by: java.lang.NoClassDefFoundError: org/apache/xpath/CachedXPathAPI
    at flex.messaging.config.ApacheXPathServerConfigurati onParser.initializeExpressionQuery(ApacheXPathServ
    at flex.messaging.config.AbstractConfigurationParser. parse(
    at org.springframework.flex.config.FlexConfigurationM anager.getMessagingConfiguration(FlexConfiguration
    at org.springframework.flex.core.MessageBrokerFactory Bean.afterPropertiesSet(MessageBrokerFactoryBean.j ava:126)
    at AutowireCapableBeanFactory.invokeInitMethods(Abstr
    at AutowireCapableBeanFactory.initializeBean(Abstract
    ... 49 more
    Jun 18, 2009 11:46:39 AM org.apache.catalina.core.StandardWrapperValve invoke

  • #2
    btw I'm trying to run this in STS-SpringSource Tool Suite

    not sure if that is the problem


    • #3
      Try adding:

      to the pom.xml of the testdrive project and re-build (don't forget to refresh the projects in Eclipse afterwards).

      It seems this is only necessary for certain environments. I'd be curious to know exactly what JVM and OS combination you are using.


      • #4
        thanks that got it working

        I'm running SpringSource Tool Suite 2.0.2, with Tomcat 6.0.2 on windows professional version


        • #5
          And what JVM are you using?


          • #6
            Java HotSpot(TM) Client VM (build 14.0-b16,

            Jdk 1.6.0_14


            • #7
              I had the same issue, this was a timely post, it resolved my problem as well.

              Here are my environment for your reference:
              TomCat 6.0.18
              STS 2.0.1
              Java Version 1.6.0_13

              Let me know if you additional information about my environment.


              • #8
                Same issue here. The xalan dependency fixes the issue.

                OS: Win 7 Ultimate 32bit RC
                Java: 1.6.0_13
                Tomcat: 6.0.18
                STS: 2.02


                • #9
                  same issue

                  I had the same issue, and the pom dependency fix did the trick. High five to Jeremy!

                  Windows XP sp2 32 bit
                  Tomcat 6.0.14
                  Java SE 1.6.0_13