Menu

Error deploying petclinic : Tomcat 4.0

2003-10-17
2003-10-17
  • Rani Pillai

    Rani Pillai - 2003-10-17

    Hi,
      I just downloaded this project (1.0) and tried to deloy the petclinic sample in tomcat server. I got the following error. I copied the spring-context.jar to common/lib, but still have the same error. Could you please help me.

    2003-10-17 10:50:39 StandardContext[/petclinic]: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
    java.lang.ClassNotFoundException: com.interface21.context.support.ResourceBundleMessageSource
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1406)
        at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1254)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:315)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:217)
        at org.springframework.beans.factory.xml.XmlBeanFactory.parseBeanDefinition(XmlBeanFactory.java:326)

    Thanks.

     
    • Rod Johnson

      Rod Johnson - 2003-10-17

      Rani,

      It seems that the Spring web application context XML file doesn't have the package name change from com.interface21 to org.springframework when defining the ResourceBundleMessageSource. You could try changing this yourself, but I've raised this problem as a high priority issue on the Spring developer list so we should have a resolution soon.

      I'm assuming you are trying the 1.0 M1 version of the PetClinic against 1.0 M1 binaries?

      Regards,
      Rod

       
    • Rani Pillai

      Rani Pillai - 2003-10-17

      Thanks Rod. Its my mistake, I previously had the 0.9 version and while overwriting the sample missed the applicationContext file. Its fine now.

      In my last project I used the bean factory from your book. Thanks once again for a light-weight framework which is easy to learn, develop and deploy.

      -Rani

       

Log in to post a comment.