I removed the aspectj-maven-plugin from my pom.xml like u said but when I
run mvn cobertura:cobertura command ,some errors occur :

[....]
[INFO]
------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO]
------------------------------------------------------------------------
[INFO] Unable to load class declared as <mapping
class="com.mycompany.app.model.
User"/> in the configuration:
[INFO]
------------------------------------------------------------------------
[INFO] Trace
org.hibernate.MappingException: Unable to load class declared as <mapping
class=
"com.mycompany.app.model.User"/> in the configuration:
        at
org.hibernate.cfg.AnnotationConfiguration.parseMappingElement(Annotat
ionConfiguration.java:602)
        at
org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.jav
a:1555)
        at
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1534)
        at
org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1508)
        at
org.hibernate.cfg.Configuration.configure(Configuration.java:1443)
        at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
tion.doConfiguration(AbstractComponentConfiguration.java:77)
        at
org.codehaus.mojo.hibernate3.configuration.AbstractComponentConfigura
tion.getConfiguration(AbstractComponentConfiguration.java:40)
        at
org.codehaus.mojo.hibernate3.exporter.Hbm2DDLExporterMojo.doExecute(H
bm2DDLExporterMojo.java:87)
        at
org.codehaus.mojo.hibernate3.HibernateExporterMojo.execute(HibernateE
xporterMojo.java:140)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
nManager.java:483)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:678)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
fecycle(DefaultLifecycleExecutor.java:540)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecy
cle(DefaultLifecycleExecutor.java:1168)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(Def
aultLifecycleExecutor.java:1009)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
ultLifecycleExecutor.java:627)
[....]

Whats that problem and how to fix it??
Thanks! 


tibi wrote:
> 
> matt,
> 
> now i remember it has to do with this:
> http://issues.appfuse.org/browse/APF-914
> Cobertura doesn't work when aspectj-maven-plugin is enabled
> 
> i still have the maven aspectj plugin enabled, in my last project!!
> and cobertura is working fine. i wondered why i did remove it in my old
> project.
> 
> i will add my pom file to the jira to solve this ok??
> 
> tibi
> 
> 
> 
> tibi wrote:
>> ok added this:
>>             <plugin>
>>                 <groupId>org.codehaus.mojo</groupId>
>>                 <artifactId>cobertura-maven-plugin</artifactId>
>>                 <configuration>
>>                   <check>
>>                     <branchRate>0</branchRate>
>>                     <lineRate>85</lineRate>
>>                     <haltOnFailure>${failsOnError}</haltOnFailure>
>>         <!--            <totalBranchRate>85</totalBranchRate>-->
>>         <!--            <totalLineRate>85</totalLineRate>-->
>>         <!--            <packageLineRate>85</packageLineRate>-->
>>         <!--            <packageBranchRate>85</packageBranchRate>-->
>>                     <regexes>
>>                       <regex>
>>                        
>> <pattern>nl.tryllian.tolselfservice.webapp.interceptor.UserRoleAuthorizationInterceptor</pattern>
>>                         <branchRate>0</branchRate>
>>                         <lineRate>0</lineRate>
>>                       </regex>
>>                     </regexes>
>>                   </check>
>>                 </configuration>
>>                 <executions>
>>                   <execution>
>>                         <phase>test</phase>
>>                         <goals>
>>                             <goal>check</goal>
>>                         </goals>
>>           </execution>
>>         </executions>
>>       </plugin>
>>
>> and that helps...
>>
>> thinking about it... there should be a jirra about this.
>>
>>
>> matt here some extra power to make the next appfuse version
>> **************** ;)
>>
>>
>>
>>
>> tibi
>>
>>
>>
>> tibi wrote:
>>   
>>> somehow i have the same problem with a new project.
>>> i project i started 6 weeks ago is working.
>>>
>>> i'm comparing both to try and find the differance, but no luck jet.
>>>
>>> tibi
>>>
>>> tibi wrote:
>>>   
>>>     
>>>> i have this in my pom file for cobertura:
>>>>             <plugin>
>>>>                 <groupId>org.codehaus.mojo</groupId>
>>>>                 <artifactId>cobertura-maven-plugin</artifactId>
>>>>                 <version>2.2</version>
>>>>                 <configuration>
>>>>                     <formats>
>>>>                         <format>html</format>
>>>>                         <format>xml</format>
>>>>                     </formats>
>>>>                 </configuration>               
>>>>             </plugin>
>>>>
>>>> so upgrade to 2.2 may help
>>>>
>>>> tibi
>>>>
>>>> Kenny Ha wrote:
>>>>   
>>>>     
>>>>       
>>>>> I'm using Maven version 2.1.0 and Cobertura version 2.0
>>>>> But my generated report by Cobertura is not like example on 
>>>>> http://cobertura.sourceforge.net/ http://cobertura.sourceforge.net/ 
>>>>> Mine
>>>>> display all classes are 0% like this :
>>>>>
>>>>> ....
>>>>>
>>>>> All Packages
>>>>>   
>>>>>  Classes
>>>>>  Address (0%)
>>>>>  App (0%)
>>>>>  BaseAction (0%)
>>>>>  BaseActionTestCase (0%)
>>>>>  BaseDaoTestCase (0%)
>>>>>  BaseManagerMockTestCase (0%)
>>>>>  BaseManagerTestCase (0%)
>>>>>  BaseObject (0%)
>>>>>  Constants (0%)
>>>>>  ConstantsTag (0%)
>>>>>  ConstantsTei (0%)
>>>>>  ConvertUtil (0%)
>>>>>  CountryTag (0%)
>>>>>  CurrencyConverter (0%)
>>>>>  DateConverter (0%)
>>>>>  DateConverter (0%)
>>>>>  DateUtil (0%)
>>>>>  FileUploadAction (0%)
>>>>>  GenericDao (N/A)
>>>>> ....
>>>>>
>>>>> What's the problem?? Help me!
>>>>>
>>>>> Thanks!
>>>>>
>>>>>
>>>>> tibi wrote:
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>>>> what version are you using?
>>>>>> this one:
>>>>>> Report generated by Cobertura <http://cobertura.sourceforge.net/> 1.7
>>>>>> (on the site page in the footer)
>>>>>>
>>>>>>
>>>>>> tibi
>>>>>>
>>>>>> Kenny Ha wrote:
>>>>>>     
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>>> I run mvn site or mvn cobertura:cobertura command, it build
>>>>>>> successful.
>>>>>>> But when I access Cobertura Test Coverge Report page,nothing is
>>>>>>> test,all
>>>>>>> classes are 0% :
>>>>>>>
>>>>>>>
>>>>>>> ....
>>>>>>>
>>>>>>> All Packages
>>>>>>>  
>>>>>>> Classes
>>>>>>> Address (0%)
>>>>>>> App (0%)
>>>>>>> BaseAction (0%)
>>>>>>> BaseActionTestCase (0%)
>>>>>>> BaseDaoTestCase (0%)
>>>>>>> BaseManagerMockTestCase (0%)
>>>>>>> BaseManagerTestCase (0%)
>>>>>>> BaseObject (0%)
>>>>>>> Constants (0%)
>>>>>>> ConstantsTag (0%)
>>>>>>> ConstantsTei (0%)
>>>>>>> ConvertUtil (0%)
>>>>>>> CountryTag (0%)
>>>>>>> CurrencyConverter (0%)
>>>>>>> DateConverter (0%)
>>>>>>> DateConverter (0%)
>>>>>>> DateUtil (0%)
>>>>>>> FileUploadAction (0%)
>>>>>>> GenericDao (N/A)
>>>>>>> GenericDaoHibernate (0%)
>>>>>>> GenericManager (N/A)
>>>>>>> GenericManagerImpl (0%)
>>>>>>> HibernateExtensionPostProcessor (0%)
>>>>>>> LabelValue (0%)
>>>>>>> LocaleFilter (0%)
>>>>>>> LocaleRequestWrapper (0%)
>>>>>>> LookupDao (N/A)
>>>>>>> LookupDaoHibernate (0%)
>>>>>>> LookupManager (N/A)
>>>>>>> LookupManagerImpl (0%)
>>>>>>> MailEngine (0%)
>>>>>>> PasswordHintAction (0%)
>>>>>>> Person (0%)
>>>>>>> PersonAction (0%)
>>>>>>> PersonDao (N/A)
>>>>>>> PersonDaoHibernate (0%)
>>>>>>> PersonManager (N/A)
>>>>>>> PersonManagerImpl (0%)
>>>>>>> ReloadAction (0%)
>>>>>>> RequestUtil (0%)
>>>>>>> .... 
>>>>>>>
>>>>>>> Why?? Please help me solve this.
>>>>>>>
>>>>>>> Thanks and Best Regards!
>>>>>>> Kenny.
>>>>>>>   
>>>>>>>       
>>>>>>>         
>>>>>>>           
>>>>>>>             
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>>>
>>>>>>
>>>>>>
>>>>>>     
>>>>>>       
>>>>>>         
>>>>>>           
>>>>>   
>>>>>     
>>>>>       
>>>>>         
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>>
>>>>
>>>>   
>>>>     
>>>>       
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>>
>>>
>>>   
>>>     
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
>> For additional commands, e-mail: users-h...@appfuse.dev.java.net
>>
>>
>>   
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
> For additional commands, e-mail: users-h...@appfuse.dev.java.net
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cobertura-Test-Coverge-Report-tp23193202s2369p23209311.html
Sent from the AppFuse - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net
For additional commands, e-mail: users-h...@appfuse.dev.java.net

Reply via email to