Comments (3)
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.
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.
@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)
- gradle build fails when Docker is not available HOT 6
- Add owner HOT 6
- K HOT 1
- The "Find owner" functionality should be based on the first name, last name, and city, which is only based on last name HOT 1
- Owners should not be allowed to enter duplicate mobile numbers. HOT 3
- Telephone number validation is not user friendly while adding owner HOT 2
- "Confirmation messages are not displayed for 'Add, edit, or update' actions in the application." HOT 1
- For Add new pet functionality selection of "Type" are limited for all types of pet HOT 1
- build failure due to some postgresql issue HOT 1
- Error on linux and java 17 when running ./mvnw package HOT 12
- Unable to format code on gradle HOT 1
- The gradle build failed after adding spring.javaformat HOT 2
- The owner list described in the readme.md file was not found. HOT 2
- Compiling css does not work HOT 1
- do we have swagger in petclinic HOT 1
- Shouldn't the "name" property of the NamedEntity Bean be non nullable? HOT 2
- Fix test assertions on CrashControllerIntegrationTests.java
- Why not use Lombok? HOT 1
- PostgresIntegrationTests fails sometimes (maybe on a stale volume?) HOT 2
- refactor service interface to common base interface
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spring-petclinic.