Giter Club home page Giter Club logo

Comments (3)

michaelisvy avatar michaelisvy commented on June 2, 2024

Hi,
are you sure that you have been able to compile your project fully?
The class is there: https://github.com/spring-projects/spring-petclinic/blob/master/src/main/java/org/springframework/samples/petclinic/util/CallMonitoringAspect.java

I'm closing this issue, please feel free to write back in case you haven't been able to solve your issue.

Regards,
Michael.

from spring-petclinic.

rajivit53 avatar rajivit53 commented on June 2, 2024

I have found a work around to deploy the application in tomcat as war file.

To deploy the petclinic application as war file in tomcat following changes needs to be done in pom.xml

Change spring-boot-starter scope to provided as below.

    <dependency>
        <groupId>org.springframework.boot</groupId>
        <artifactId>spring-boot-starter</artifactId>
        <scope>provided</scope>
    </dependency>

Comment all the jmx related entries in tools-config.xml as shown below

<!-- Call monitoring aspect that monitors call count and call invocation time -->
<!--
    Exporter that exposes the CallMonitoringAspect via JMX,
    based on the @ManagedResource, @ManagedAttribute, and @ManagedOperation annotations.
-->

I will try to find out the actual fix for JMX related exception, but for now this will at least get your petclinic app up and running in external tomcat.

From: Khaled Triek [mailto:[email protected]]
Sent: Monday, November 02, 2015 7:57 AM
To: spring-projects/spring-petclinic
Subject: Re: [spring-petclinic] Cannot find class [org.springframework.samples.petclinic.util.CallMonitoringAspect] for bean with name 'callMonitor' defined in class path resource [spring/tools-config.xml]; (#61)

I have the same issue


Reply to this email directly or view it on GitHubhttps://github.com//issues/61#issuecomment-152893698.

Disclaimer: This message and the information contained herein is proprietary and confidential and subject to the Tech Mahindra policy statement, you may review the policy at http://www.techmahindra.com/Disclaimer.html externally http://tim.techmahindra.com/tim/disclaimer.html internally within TechMahindra.

from spring-petclinic.

arey avatar arey commented on June 2, 2024

@rajivit53 I don't have any problem to manually deploy the petclinic.war into a Tomcat 7.0.64. Could you try with this version?

from spring-petclinic.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.