Re: log4j issue on mvn tomcat:run

2013-05-19 Thread Stephane-3
Hi Olivier, Thanks for the advice. But I fixed the issue. I changed the doctype from: !DOCTYPE log4j:configuration SYSTEM quot;org/apache/log4j/xml/log4j.dtdquot; to: !DOCTYPE log4j:configuration PUBLIC quot;-//APACHE//DTD LOG4J 1.2//ENquot;

log4j issue on mvn tomcat:run

2013-05-15 Thread Stephane-3
Hello, When I run the command: mvn tomcat:run I get the following issue in the console output: 2013-05-15 10:59:02,610 ERROR [ContextLoader] Context initialization failed org.springframework.beans.factory.parsing.BeanDefinitionParsingException: Configuration problem: Failed to import bean

Re: Source directory for the maven-apt-plugin plugin

2013-04-29 Thread Stephane-3
Thanks Baptiste, I got it. Also, my initial post was a bit inaccurate as it lacked the outputDirectorytarget/generated-sources/outputDirectory element. The following plugin plugin groupIdcom.mysema.maven/groupId artifactIdmaven-apt-plugin/artifactId

Re: Source directory for the maven-apt-plugin plugin

2013-04-26 Thread Stephane-3
Hello, Yes, but then my source directory is not found, because it sits in the core/ child module as I explained in my original post. Kind Regards, Stephane De : Baptiste MATHUS [via Maven] ml-node+s40175n575438...@n5.nabble.com À : Stephane-3 mittiprove

Source directory for the maven-apt-plugin plugin

2013-04-25 Thread Stephane-3
I'm trying to use a plugin that should generate some source code. But when I run the Maven build with the mvn generate-sources command, it gives the following error: [ERROR] Failed to execute goal com.mysema.maven:maven-apt-plugin:1.0.4:process (default) on project learnintouch: basedir

Re: Multiple build arguments

2013-03-22 Thread Stephane-3
Thank you Andreas ! It solved the issue. -- View this message in context: http://maven.40175.n5.nabble.com/Multiple-build-arguments-tp5750700p5751511.html Sent from the Maven - Users mailing list archive at Nabble.com. - To

Multiple build arguments

2013-03-14 Thread Stephane-3
Hello, I have a pom.xml file with several profiles, one for MySql, one for H2, one for HSQLDB and one for Oracle XE. And I run a build, for example against MySql, with the command: mvn clean install -Pmysql-db Or against the Oracle XE with the command: mvn clean install -Poracle-db Now, all

Re: Multiple build arguments

2013-03-14 Thread Stephane-3
In each profile I have the test source directory being specified: profile idmysql-db/id properties test.source.dirsrc/integration/java/test.source.dir /properties which contains the abstract test class loading the Hibernate or the JPA2 configuration file:

Re: Multiple build arguments

2013-03-14 Thread Stephane-3
Hi Baptiste, Thanks for that, I tried it, but got stuck in syntax error.. You'd have some example with the syntax to use ? Kind Regards, -- View this message in context: http://maven.40175.n5.nabble.com/Multiple-build-arguments-tp5750700p5750816.html Sent from the Maven - Users mailing

RE: Multiple build arguments

2013-03-14 Thread Stephane-3
Hello, Thanks for the input. But maybe my original post was not so clear. I already have four profiles in my pom file. So if I factor in the choice between hibernate and jpa I'll end up with eight profiles. This is why I posted here asking for another way to gi. Kind Regards, -- View this

RE: Multiple build arguments

2013-03-14 Thread Stephane-3
Hello, What do you mean with to sub in another data-source ? Also can you elaborate on how can someone messes up my classpath ? What do you mean with to toss in a new injector ? Kind Regards, -- View this message in context:

My Akka demo test is not executed

2013-01-10 Thread Stephane-3
Hi, I'm trying to run a test against an Akka demo project but no test is executed. The whole project is here: akka-pi.tar.gz http://maven.40175.n5.nabble.com/file/n5742904/akka-pi.tar.gz And the console output of the Maven build in debug mode: ajeter.txt

Running a debug configuration in STS on a Maven profile

2012-11-26 Thread Stephane-3
Hi, I have a build with a Maven profile and I can run in as a Run configuration from within STS, the Spring Source Tool Suite Eclipse version. I can also run it from the command line with the command: mvn clean install -Pmysql-test -Dtest=NavbarLanguageDaoTest But when I want to run it as a

Re: DAO injection in integration tests with a few database server specific methods

2012-11-24 Thread Stephane-3
Thanks for your sharing, I have posted on the Hibernate forum, https://forum.hibernate.org/viewtopic.php?f=1t=1024833 Thanks for the interest. -- View this message in context:

Re: Neater way to include/exclude DAO tests?

2012-11-24 Thread Stephane-3
Lucky you, think twice before upgrading that Oracle server :-) -- View this message in context: http://maven.40175.n5.nabble.com/Neater-way-to-include-exclude-DAO-tests-tp110827p5732983.html Sent from the Maven - Users mailing list archive at Nabble.com.

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
Hi Samuli, Yes, it's probably more of a Spring configuration question than a Maven one. What I would like to avoid is having to create lots of DAO configuration beans for nothing. My aim is to create a DAO configuration bean and inject it only when there is a requirement for a database server

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
Yes, it should be the same method signature, but with an implementation that is specific to each database server. I created another spring-hibernate-custom-dao.xml file in a src/main/resources/oracle directory listed in the Maven oracle-test profile, which contains the custom DAO bean definition:

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
My mistake... The custom DAO bean implementation class was missing the implements NavbarLanguageCustomDao statement. I added it. No more exception any more ! -- View this message in context:

Re: DAO injection in integration tests with a few database server specific methods

2012-11-23 Thread Stephane-3
Here is how I'm using the injected custom DAO bean method: public ListNavbarLanguage findWithNavbar(Navbar navbar) { if (navbarLanguageCustomDao != null) { return navbarLanguageCustomDao.findWithNavbar(navbar); } else {

Re: Neater way to include/exclude DAO tests?

2012-11-23 Thread Stephane-3
Hi Dennis, Thanks for the feedback. I'm impressed by the fact that you succeeded in not using any different sql syntax for the different database servers out there. I'm faced with the ordering by nulls first on MySql vs nulls last on Oracle issue on resorted to a specific DAO method for Oracle

Re: Neater way to include/exclude DAO tests?

2012-11-22 Thread Stephane-3
Hello Dennis, I'm interested in how you set up your multi database servers with syntax specifics project. Could you elaborate on that ? I have a MySql based project and am now trying to port it on Oracle but some sql statements need specific syntax. It would be nice to inject some Oracle

DAO injection in integration tests with a few database server specific methods

2012-11-22 Thread Stephane-3
Hi, I have a Spring Hibernate project with a DAO coded against a MySql database. Most of the DAO methods would run on HSQLDB and on Oracle, except for some that contain database server specific syntax. I already use some Maven profiles to filter the database server data source specific

What diagnostic action to take when Maven hangs ?

2012-10-09 Thread Stephane-3
Hi, I have a Maven build that hangs and I wonder what to do to get some feedback like a message or stack trace or dump.. I'm stuck trying to run some integration tests http://forum.springsource.org/showthread.php?130859-Maven-build-hangs-on-simple-Roo-scriptp=426888posted=1#post426888 Thanks

Re: What diagnostic action to take when Maven hangs ?

2012-10-09 Thread Stephane-3
Hello, How can I find out if it is CPU or OI bound ? It hangs before the very first test. The test is an integration test, connecting to a MySql database schema. For now my test is very simple: @RooIntegrationTest(entity = Address.class) public class AddressIntegrationTest { @Before

Re: Multi modules and profiles

2012-04-21 Thread Stephane-3
I don't know what it is I was doing at the time, but I just gave a new fresh look at the issue. And this time it worked flawlessly the way I wanted. I simply cut and pasted the following dependencies from the parent pom to the child pom dependency groupIdmysql/groupId

Re: Build on test target hangs when using an SMTP appender in the log4j configuration

2012-04-21 Thread Stephane-3
So I removed the file spring-smtp-appender.xml Then I added a debug property: as in: appender name=mailAppender class=org.apache.log4j.net.SMTPAppender I also added the port property: When I then ran the build I could see the

Re: Build on test target hangs when using an SMTP appender in the log4j configuration

2012-04-21 Thread Stephane-3
Hi Wayne, In fact it was a strange java behavior. After rebooting my pc Lenovo X60 with Linux Mint 12 the build worked fine. The mails were sent containing the exceptions. The issue is closed. Thanks. -- View this message in context:

Re: Re: Added source directory still allows for compile errors

2012-03-15 Thread Stephane-3
It now works fine. I was having a wrong path in the source dir property. After chaging it to: source${basedir}/generated/cxf/source it now works as expected. plugin groupIdorg.codehaus.mojo/groupId

Re: Added source directory still allows for compile errors

2012-03-05 Thread Stephane-3
Hello, Yes, there are lots of source files in this generated directory. They were generated with the command wsdl2java -- View this message in context: http://maven.40175.n5.nabble.com/Added-source-directory-still-allows-for-compile-errors-tp5501630p5536890.html Sent from the Maven - Users

Re: Spring context dependency not found..

2012-02-16 Thread Stephane-3
For the record, and for those who might get stuck into it again, possibly including me :-) here is the solution to the issue I had. My project pom.xml file contained the element dependencyManagement instead of the element dependencies as I had copied the project structure from another one. And

Re: Re : Re : A classpath issue ?

2012-02-05 Thread Stephane-3
Sorry for the late answer, I had not seen your question. I now saw it because the exact same issue showed up again a year later when running the build on a new computer. I had forgotten again to install this settings.xml file. So I just copied it again in the .m2/ directory and it now works

Re: Re : Re : A classpath issue ?

2012-02-05 Thread Stephane-3
I just found out what in the settings.xml file prevents this issue. It is the directive: activation activeByDefaulttrue/activeByDefault /activation that makes the issue go away. Removing this directive from the settings.xml file triggers the exception. I wonder why.. --

Build on test target hangs when using an SMTP appender in the log4j configuration

2012-02-05 Thread Stephane-3
Hi, In my log4j.xml file if I have the following line: appender-ref ref=mailAppender / as in: root appender-ref ref=mailAppender / /root with the following appender: appender name=mailAppender class=org.apache.log4j.net.SMTPAppender

Re: Spring context dependency not found..

2012-02-03 Thread Stephane-3
Hi Mirko, Correct, it's an Eclipse plugin, not a Maven one, I should have been more careful in my naming it. The question I still have though is: should I run any goal, like mvn eclipse:m2eclipse for example, before going to Eclipse and doing a dependency update ? Thanks ! Stephane -- View

Re: Spring context dependency not found..

2012-02-02 Thread Stephane-3
I am using the m2e Maven plugin for Eclipse. And so I guess I cannot run the goal mvn eclipse:eclipse but should run the goal mvn eclipse:m2eclipse As I was running Maven 2.2.1 and m2e requires Maven 2.4 I updated Maven. I could not find any 2.4 version on the download website though. So I

Re: Spring context dependency not found..

2012-01-31 Thread Stephane-3
You were right. The class was not imported. I add the statement: import org.springframework.context.support.ClassPathXmlApplicationContext; and the compilation passed fine. What miss led me was that, under Eclipse, the maven dependencies for Spring are not suggested. Indeed, I installed the

Re: Multi modules and profiles

2011-10-17 Thread Stephane-3
Hello Mirko, Thanks for your comment, but ùi think that it is what I already have. Here is my current code... In the parent pom.xml file: dependencyManagement dependencies dependency groupIdjunit/groupId artifactIdjunit/artifactId version4.4/version

Re: Multi modules and profiles

2011-10-08 Thread Stephane-3
Hi Wayne, Sorry I missed the post update.. So, to answer your question, what am I trying to achieve here ? I have this project which originally has one child module, called the core module. This core module takes care of the Dao layer. And the setup for the dependencies are inherited from the

Re: Multi modules and profiles

2011-08-26 Thread Stephane-3
Sorry, I should have said right from the start that yes indeed I fisrt moved (cut and pasted) the profile from the parent pom to the core child one. I'm using profiles to test either against the live HSQL database, or against a MySQL one. The mysql-test profile is to test the dao layer, layer

Re: Multi modules and profiles

2011-08-25 Thread Stephane-3
Sorry Anders, I didn't really understand your message goal.. Do you want me to send some pasted content ? -- View this message in context: http://maven.40175.n5.nabble.com/Multi-modules-and-profiles-tp4732786p4733452.html Sent from the Maven - Users mailing list archive at Nabble.com.

Multi modules and profiles

2011-08-24 Thread Stephane-3
Hello, I have a maven project with different profiles, and I would like it to have several modules. One core module would take care of the Dao and Service layer, while another view module would take care of the Presentation layer. I have a working set of pom.xml files for the parent project and

Re : Re : A classpath issue ?

2010-12-11 Thread Stephane-3
mistake.. Kind Regards, Stephane De : Wayne Fay [via Maven] ml-node+3301286-284534167-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Sam 11 décembre 2010, 7h 12min 46s Objet : Re: Re : A classpath issue ? And, again on the iMac, if this time

A classpath issue ?

2010-12-10 Thread Stephane-3
Hi, I have a maven build that is doing fine on my old linux box. Trying now to run it in the new iMac environment, I get an issue with a spring xml file not being found. It feels like the classpath is not correctly set. The pom.xml file is: project xmlns=http://maven.apache.org/POM/4.0.0;

Re: A classpath issue ?

2010-12-10 Thread Stephane-3
The file does exist in the source directory: stephane:learnintouch$ ll core/src/main/resources/ -rwxr-xr-x 1 stephane staff 607 9 déc 17:34 spring-data-source.xml But it is nowhere to be found in the target directory: stephane:learnintouch$ll core/target/classes/ drwxr-xr-x 3 stephane

Re: A classpath issue ?

2010-12-10 Thread Stephane-3
I'm running the following version of maven: stephane:learnintouch/$ mvn -version Apache Maven 2.2.1 (r801777; 2009-08-06 21:16:01+0200) Java version: 1.6.0_22 Java home: /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home Default locale: fr_FR, platform encoding: MacRoman OS name:

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
[via Maven] ml-node+3301035-833614543-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Ven 10 décembre 2010, 22h 55min 14s Objet : Re: A classpath issue ? Hmm, I now see that you say it works on Linux. Maybe the resources section outside the profiles isn't being replaced

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
. De : Anders Hammar [via Maven] ml-node+3301035-833614543-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Ven 10 décembre 2010, 22h 55min 14s Objet : Re: A classpath issue ? Hmm, I now see that you say it works on Linux. Maybe the resources section outside

Re : A classpath issue ?

2010-12-10 Thread Stephane-3
with the specified profile replacing the standard resources directory. Stranges this is happening on this OSX maven.. De : Anders Hammar [via Maven] ml-node+3301035-833614543-63...@n5.nabble.com À : Stephane-3 mittiprove...@yahoo.se Envoyé le : Ven 10

Why my OpenQA repository is not used..?

2010-09-02 Thread Stephane-3
Hello, I get an unresolved dependency with Selenium. Maven is looking for it in the wrong repository I think.. [INFO] [resources:resources {execution: default-resources}] [WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent! [INFO]