Announcement Announcement Module
No announcement yet.
datasource creation prob Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • datasource creation prob

    I am traying to set datasource in my bean class using context .xml iam getting folloving eception plz help

    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'Template' defined in class path resource [com/carrefour/fr/portail/carburant/ejb-application-context.xml]: Error setting property values; nested exception is org.springframework.beans.PropertyBatchUpdateExcep tion; nested PropertyAccessExceptions (1) are:
    PropertyAccessException 1: org.springframework.beans.MethodInvocationExceptio n: Property 'dataSource' threw exception; nested exception is java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
    at AutowireCapableBeanFactory.applyPropertyValues(Abs
    at AutowireCapableBeanFactory.populateBean(AbstractAu
    at AutowireCapableBeanFactory.doCreateBean(AbstractAu
    at AutowireCapableBeanFactory.createBean(Abstrac

  • #2
    Pleaes use [ code][/code ] tags when posting code/stacktraces/xml...

    I suggest reading the stacktrace, you are missing a jar file, commons-logging to be specific...


    • #3
      I see you posted the same question over and over (and related questions). I suggest using maven or ant/ivy to manage your dependencies, saves you a lot of headaches searching for the dependencies needed.