Announcement Announcement Module
No announcement yet.
NoClassDefFoundError with Spring2.0.7 in eclipse europa... Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • NoClassDefFoundError with Spring2.0.7 in eclipse europa...

    Hi All,

    I am trying to creating a small sample dynamic web application using spring 2.0.7 and weblogic 9.1 server in eclipse 3.3(eclipse europa).

    But i am getting the following error:

    java.lang.NoClassDefFoundError: org/springframework/beans/factory/xml/XmlBeanFactory
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at weblogic.servlet.internal.StubSecurityHelper$Servl
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(
    at weblogic.servlet.internal.ServletStubImpl.execute(
    at weblogic.servlet.internal.ServletStubImpl.execute(
    at weblogic.servlet.internal.WebAppServletContext$Ser :3153)
    at t.doAs(
    at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(
    at weblogic.servlet.internal.WebAppServletContext.exe cute(
    at java:207)
    at :179)


    This error is occuring in the 60th line of the doPost method of my "SpringServlet" servlet:

    that line is:
    BeanFactory factory = new XmlBeanFactory(new ClassPathResource("DataCon.xml"));

    DataCon.xml is my Spring configuration file.
    Could you please tell me, why this error is coming.
    and Please tell me the exact location of the DataCon.xml file, where should i put this spring configuration file. Currently this file is at the following location:
    "Project Folder"\build\classes\DataCon.xml

    Please help me. This is my first post.
    Thanks in advance:

    [email protected]