« Return to Thread: Code Coverage Plugins with Maven 2

Re: Code Coverage Plugins with Maven 2

by tibi :: Rate this Message:

Reply to Author | View in Thread

the problem i have is:

i have a struts2 hibernate 3 and spring 2 env. setup with appfuse 2.0m5
when i run cobertura plugin 2.1 i get a coverage of 100%
when i run vobertura plugin 2.0 i get the following error:
--------------------------------------------------------------------------------------------------------------------
[INFO] [hibernate3:hbm2ddl {execution: default}]
[INFO] Configuration XML file loaded: /home/tibi/eclipseworkspace/incipio-match/src/main/resources/hibernate.cfg.xml
[INFO] Configuration XML file loaded: /home/tibi/eclipseworkspace/incipio-match/src/main/resources/hibernate.cfg.xml
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Unable to load class declared as <mapping class="nl.incipio.match.model.Candidate"/> in the configuration:
[INFO] ------------------------------------------------------------------------
[INFO] Trace
org.hibernate.MappingException: Unable to load class declared as <mapping class="nl.incipio.match.model.Candidate"/> in the configuration:
        at org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(AnnotationConfiguration.java:545)
        at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1479)

--------------------------------------------------------------------------------------------------------------------
when i remove the mappings from the hibernate files cobertura will run but my test will not.



 « Return to Thread: Code Coverage Plugins with Maven 2