- This topic has 2 replies, 2 voices, and was last updated 10 years, 1 month ago by support-swapna.
-
AuthorPosts
-
amir55Participanthi dear
First
I am interested in exploring projects in jsf spring hibernate ones to use in IDE MyEclipse only.so I found petclinic project is one of them using eclipse which is vague to me. Therefore I tried to build the project in MyEclipse in steps.
At this stage I get this error of Cannot find class [org.hibernate.jmx.StatisticsService]
09:52:34,046 ERROR [org.springframework.web.context.ContextLoader] (MSC service thread 1-2) Context initialization failed: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.hibernate.jmx.StatisticsService] for bean with name ‘petclinic:type=HibernateStatistics’ defined in class path resource [common/mapping/Common_HibernateSpringDAO.xml]; nested exception is java.lang.ClassNotFoundException: org.hibernate.jmx.StatisticsService from [Module “deployment.JsfSpringHibernate.war:main” from Service Module Loader]
This error is thrown whenadding the next bean
<!– Hibernate’s JMX statistics service –>
<bean name=”petclinic:type=HibernateStatistics” class=”org.hibernate.jmx.StatisticsService” autowire=”byName”/>Second
Has anyone got links of more projects of jsf spring hibernate apart from Catalog and petstore ?Many thanks to all nice responses and its senders
Amir
amir55Participantsorry I just forget to click notify
support-swapnaModeratorAmir,
Please check if the missing class is present in the application classpath. Since you are working with a webapp the class can be placed in the WEB-INF/classes/ directory
or properly packaged in a jar file placed in the WEB-INF/lib directory.Please also look on development forums like stackoverflow.com and coderanch.com for better support.
Please check our documentation for Spring,Hibernate and JSF here :
https://www.genuitec.com/products/myeclipse/learning-center/spring/
https://www.genuitec.com/products/myeclipse/learning-center/persistence/Hope this helps.
-
AuthorPosts