Problem deploying using Maven plugin

2013-09-23 Thread Esben Rugbjerg
Hi, I am trying to do some integration testing using Maven and TomEE. But I have problems deploying the WAR using the Maven plugin. I have a small servlet which should deploy applications using our own old deployment system. I have a deployment motor for test (DummyDeploymentMotor) and one for pr

Re: Problem deploying using Maven plugin

2013-09-23 Thread Romain Manni-Bucau
Hi Here is the tomee mvn plugin doc http://tomee.apache.org/tomee-maven-plugin.html I think your path is wrong (seems you put a name and not a path) Le 24 sept. 2013 00:15, "Esben Rugbjerg" a écrit : > Hi, > > I am trying to do some integration testing using Maven and TomEE. But I > have proble

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
Hi Romain, Thanks for your answer. I have tried a lot of combinations after looking in the documentation, but haven't figured out exactly what the path should point to. What exactly should the path be a path to (the WAR to be deployed or the destination directory) ? Can you give me an example ?

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
Hi path needs to be the war file (/foo/bar/myapp.war) *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/rmann

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
Hi again I have made a few more tests. I turns out that the problem occurs if the file that I try to deploy is located on a network drive. If I use c:\DeployService.war it works The drive with the letter 'y' is a network drive. If I use: y;\DeployService.war it doesn't work I am normally runnin

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
Hi Wonder if it works on trunk, i remember i hack something close in another context on a recent version. Le 24 sept. 2013 12:09, "Esben Rugbjerg" a écrit : > Hi again > > I have made a few more tests. I turns out that the problem occurs if the > file that I try to deploy is located on a network

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
I'll try to see if I can get trunk up and running. By the way. If I run it from a local drive and the webapp actually gets deployed I get the following warning: [DEBUG] Configuring mojo 'org.apache.openejb.maven:tomee-maven-plugin:1.0.1:deploy' with basic configurator --> [DEBUG] (f) path = c:\

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
basically means you use a tomee and a tomee mvn plugin with different version i think *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *G

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
Yes, thats what I thought. I think the problem must be in the plugin. I am using the official server version 1.5.2 from http://tomee.apache.org/downloads.html I am using version 1.0.1 of the plugin. Is there a newer one which is in sync with the 1.5.2 server ? Regards Esben On Tue, Sep 24, 2013

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
http://central.maven.org/maven2/org/apache/openejb/maven/tomee-maven-plugin/ 1.5.2 ;) if it doesn't try please give it a try on 1.6.0-SNAPSHOT (needs apache snapshot repo) *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/*

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
Good news :-) Using version 1.5.2 solved the problem with the different version of the serilization classes. I'll try the 1.6.0-SNAPSHOT to se if it solves the problem with the path to a network drive. On Tue, Sep 24, 2013 at 1:42 PM, Romain Manni-Bucau wrote: > > http://central.maven.org/maven2

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
The 1.6.0-SNAPSHOT didn't solve the path problem. But thanks for the help so far anyway :-) On Tue, Sep 24, 2013 at 2:13 PM, Esben Rugbjerg wrote: > Good news :-) Using version 1.5.2 solved the problem with the different > version of the serilization classes. I'll try the 1.6.0-SNAPSHOT to se if

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
Maybe cause java is faked by the path on windows. basically you can deploy from maven (mvn:groupid:artifactid:version:war) or http on trunk *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/*

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
I am not sure what you mean. I need to be able to do it through the tomee-plugin because the tests eventually need to be executed against a test server where the production version of the WAR must be deployed on. I have made a new workspace on a local drive so now I can deploy and run the tests. T

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
The path needs to be the deployed path. I don't recall if it is logged when deploying but it is for sure in the container logs *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **

Re: Problem deploying using Maven plugin

2013-09-24 Thread Esben Rugbjerg
I found the solution. The plugin is apparently not moving the WAR anywhere. It only unpacks the WAR in the folder where the WAR is located. Therefore the only difference between the two paths are that the one for deploying includes the period and the war extension '.war'. My two paths look like thi

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
Hi that sounds normal since in fact the unpacked archive will be deployed the first time. Maybe we could just correct the path in the plugin... *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/*

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
Hi created https://issues.apache.org/jira/browse/TOMEE-1045 to track this issue *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github:

Re: Problem deploying using Maven plugin

2013-09-24 Thread Romain Manni-Bucau
PS: not sure why you need deploy/undeploy for ITs. If you are in the module you want to test you shouldn't need it. Basically here is a sample to do IT with tomee maven plugin (instead of arquillian): https://gist.github.com/rmannibucau/6695751 The important things here are: 1) i deploy the curren

Re: Problem deploying using Maven plugin

2013-09-26 Thread Esben Rugbjerg
Thanks for the suggestion. I already have a configuration for local integration test using the 'start' and 'stop' goal. I need to deploy for integration test because we have a test environment comprising several servers. I want to deploy to this environment either from my local WS or from our CI-s