Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-13 Thread Johann Reyes
Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that holds reference to your hibernate classes. * in your Sring config file have the following: bean

Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-13 Thread Marco Mistroni
thanx johann! i'll try it out! regards marco On 7/13/07, Johann Reyes [EMAIL PROTECTED] wrote: Hello Marco I had a problem like that too, overloaded the class to, but didn't like the result of it. At then I came up with the following: * For each project have a hibernate.cfg.xml file that

Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-06 Thread Marco Mistroni
Hi Trevor, thanks... that would work unfortunately my app is splitted in two jars, one for backend and another for webapp. everythign works fine at the junit level for the backend, but once code runs in app server , where the webapp jar is calling the backend jar for interactign with db.. code

Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-05 Thread Jon SlinnHawkins
I think this may be a problem with Surefire and the way spring uses classloaders : http://jira.codehaus.org/browse/SUREFIRE-340?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel If you find a solution please post Thanks Marco Mistroni wrote: hi all, i know i should

Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-05 Thread Marco Mistroni
Hello Jon actually it has nothing to do with maven, as i discovered later.. since scope=compile will be visible in the test it has to do with Spring classloading actually.. i'll post a solution here as soon as i finish to try some code i found on the web with kindest regards marco On 7/5/07,

Re: problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-05 Thread Trevor Torrez
The problem is with the ability of the JVM to enumerate resources in the root of the classpath when these resources are in jars. The mappingJarLocations property would be used to search through jars that are *not* normally on the classpath, so you shouldn't be using that for WEB-INF/lib jars; in

problems with mvn2, Spring and Hibernate... anyone could help?

2007-07-04 Thread Marco Mistroni
hi all, i know i should post this to maven list but it is about spring and i am sure someone here is using maven for building its environment I have an app composed of 3 project: - domain OBjects , contains domain objects used by web and backend project - backend project contains hibernate code