facebook

error converting petclinic project from eclipse to myeclise

  1. MyEclipse IDE
  2.  > 
  3. Off Topic
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #351690 Reply

    amir55
    Participant

    hi 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

    #351691 Reply

    amir55
    Participant

    sorry I just forget to click notify

    #351740 Reply

    support-swapna
    Moderator

    Amir,

    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.

Viewing 3 posts - 1 through 3 (of 3 total)
Reply To: error converting petclinic project from eclipse to myeclise

You must be logged in to post in the forum log in