Results 1 to 3 of 3

Thread: org/springframework/context/support/ClassPathXml

  1. #1
    Join Date
    Apr 2005
    Posts
    27

    Default org/springframework/context/support/ClassPathXml

    Hello,

    I wrote 2 applications using spring.. and I compiled them to .war's. these files i placed on my app-server (JBoss 3.2.6) an they run fine. I now wrote a new application and putted al files in a directory with the extension .war ( because the application is not finished yet)
    This application works fine. But when I delete the 2 previous applications (which I don't need anymore) it doesn't work anymore. It looks like it is using something from the other applications, however they have nothing to do with eachother.

    I always get teh following error:
    15:43:14,261 ERROR [Engine] StandardWrapperValve[chassisservlet]: Servlet.servic
    e() for servlet chassisservlet threw exception
    java.lang.NoClassDefFoundError: org/springframework/context/support/ClassPathXml
    ApplicationContext
    at be.bmw.servlets.ChassisServlet.doPost(ChassisServl et.java:49)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    at javax.servlet.http.HttpServlet.service(HttpServlet .java:810)
    at org.apache.catalina.core.ApplicationFilterChain.in ternalDoFilter(Appl
    icationFilterChain.java:237)
    at org.apache.catalina.core.ApplicationFilterChain.do Filter(ApplicationF
    ilterChain.java:157)
    at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doF ilter(ReplyHeaderFi
    lter.java:75)
    ...

    I tried to install a different application server, but get the same error. when I run it as a local application from within eclips, it works fine too.
    does anyone know what this error mean? I really want to delete the other applications.

  2. #2
    Join Date
    Jan 2005
    Location
    Bucharest, Romania
    Posts
    5,403

    Default

    You have classpath problems - probably you have reference to the spring.jar from the projects which you are trying to delete (through JBoss UCL). Put the Spring.jar inside the server/default/lib and make sure you have only one spring.jar in your classpath (check also tomcat.sar).
    If you deliver a war/ear with Spring.jar packed that one will take precedence (actually it depends a lot on what type of settings do you have in jboss but that's the standard configuration AFAIK).
    Costin Leau
    SpringSource - http://www.SpringSource.com- Spring Training, Consulting, and Support - "From the Source"
    http://twitter.com/costinl
    Please use [ c o d e ] [ / c o d e ] tags

  3. #3
    Join Date
    Apr 2005
    Posts
    27

    Default

    I putted the spring.jar file in my new project to but that didn't help..
    But when I added it to my JBoss lib it works..
    Thanks a lot

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •