Announcement Announcement Module
Collapse
No announcement yet.
NoClassDefFoundError with Spring2.0.7 in eclipse europa... Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • 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 com.netapp.smart.SpringServlet.doPost(SpringServle t.java:60)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:856)
    at weblogic.servlet.internal.StubSecurityHelper$Servl etServiceAction.run(StubSecurityHelper.java:225)
    at weblogic.servlet.internal.StubSecurityHelper.invok eServlet(StubSecurityHelper.java:127)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:272)
    at weblogic.servlet.internal.ServletStubImpl.execute( ServletStubImpl.java:165)
    at weblogic.servlet.internal.WebAppServletContext$Ser vletInvocationAction.run(WebAppServletContext.java :3153)
    at weblogic.security.acl.internal.AuthenticatedSubjec t.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(Se curityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.sec uredExecute(WebAppServletContext.java:1973)
    at weblogic.servlet.internal.WebAppServletContext.exe cute(WebAppServletContext.java:1880)
    at weblogic.servlet.internal.ServletRequestImpl.run(S ervletRequestImpl.java:1310)
    at weblogic.work.ExecuteThread.execute(ExecuteThread. java:207)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java :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:

    ============
    Rajkumar,
    [email protected]
Working...
X