Hi Prasanna, I had done this but still get the same error.
On 26 June 2013 16:09, Prasanna Santhanam <t...@apache.org> wrote: > That's a spring issue. You have to tell spring to inject this manager > you have introduced on startup. Look at examples in the > client/tomcatconf/applicationContext.xml.in. > > Eg:<bean id="userVmManagerImpl" class="com.cloud.vm.UserVmManagerImpl" /> > > On Wed, Jun 26, 2013 at 02:52:50PM +0100, Ian Duffy wrote: >> Hi All, >> >> I was wondering if I could get some help. I have followed the >> instructions on >> https://cwiki.apache.org/confluence/display/CLOUDSTACK/CloudStack+API+Development >> to what I believe to be word for word. However I keep getting an >> error. >> >> org.springframework.beans.factory.CannotLoadBeanClassException: Cannot >> find class [com.cloud.test.TimeOfDayManagerImpl] for bean with name >> 'timeOfDayManagerImpl' defined in class path resource >> [applicationContext.xml]; nested exception is >> java.lang.ClassNotFoundException: com.cloud.test.TimeOfDayManagerImpl >> >> TimeOfDayManagerImpl exists within >> plugins/api/timeofday/src/com/cloud/test and is compiled when mvn -P >> developer clean install is ran.... >> I am able to see the class file in >> plugins/api/timeofday/target/classes/com/cloud/test >> >> Thanks >> Ian >> >> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin* >> $ pwd >> /home/duffy/projects/cloudstack/plugins/api/timeofday >> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin* >> $ tree >> . >> |-- pom.xml >> |-- src >> | `-- com >> | `-- cloud >> | `-- test >> | |-- GetTimeOfDayCmd.java >> | |-- GetTimeOfDayCmdResponse.java >> | |-- package >> | |-- TimeOfDayManagerImpl.java >> | `-- TimeOfDayManager.java >> |-- target >> | |-- classes >> | | |-- com >> | | | `-- cloud >> | | | `-- test >> | | | |-- GetTimeOfDayCmd.class >> | | | |-- GetTimeOfDayCmdResponse.class >> | | | |-- TimeOfDayManager.class >> | | | `-- TimeOfDayManagerImpl.class >> | | `-- META-INF >> | | |-- DEPENDENCIES >> | | |-- LICENSE >> | | `-- NOTICE >> | |-- cloud-plugin-api-timeofday-4.1.0-SNAPSHOT.jar >> | |-- generated-sources >> | | `-- annotations >> | |-- maven-archiver >> | | `-- pom.properties >> | |-- maven-shared-archive-resources >> | | `-- META-INF >> | | |-- DEPENDENCIES >> | | |-- LICENSE >> | | `-- NOTICE >> | `-- test-classes >> | `-- META-INF >> | |-- DEPENDENCIES >> | |-- LICENSE >> | `-- NOTICE >> `-- test >> >> 18 directories, 21 files >> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin* >> $ grep timeofday ~/projects/cloudstack/plugins/pom.xml >> <module>api/timeofday</module> >> duffy at devbox in ~/projects/cloudstack/plugins/api/timeofday on ldapplugin* >> $ grep TimeOfDayManagerImpl >> ~/projects/cloudstack/client/tomcatconf/applicationContext.xml.in >> <bean id="timeOfDayManagerImpl" >> class="com.cloud.test.TimeOfDayManagerImpl"/> > > -- > Prasanna., > > ------------------------ > Powered by BigRock.com >