Hi, thanks for the info. It looks like its attempting to deploy, but I get the
following error:
mvn tomee:deploy -Dtomee-plugin.archive=target/Rest-1.0-SNAPSHOT.war
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building Rest TomEE Webapp 1.0-SNAPSHOT
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- tomee-maven-plugin:1.0.1:deploy (default-cli) @ Rest ---
Mar 24, 2013 6:49:54 PM org.apache.openejb.client.EventLogger log
INFO: RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.405s
[INFO] Finished at: Sun Mar 24 18:49:54 GMT 2013
[INFO] Final Memory: 9M/137M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal
org.apache.openejb.maven:tomee-maven-plugin:1.0.1:deploy (default-cli) on
project Rest: Execution default-cli of goal
org.apache.openejb.maven:tomee-maven-plugin:1.0.1:deploy failed: The bean
encountered a non-application exception; nested exception is:
[ERROR] org.apache.openejb.OpenEJBRuntimeException: java.util.zip.ZipException:
error in opening zip file
[ERROR] -> [Help 1]
Any ideas? The file does exist as specified as if I copy it to the webapps
folder it is deployed correctly.
The war file only has some POJOs annotated for JAX-RS. Could this be the issue?
Thanks.
On 24 Mar 2013, at 14:53, Romain Manni-Bucau <[email protected]> wrote:
> <path> in configuration block or -Dtomee-plugin.archive
>
> See
> http://people.apache.org/~rmannibucau/tomee-maven-plugin/deploy-mojo.html
> Le 24 mars 2013 15:37, "David Salter" <[email protected]> a écrit :
>
>> Hi,
>>
>> tome:run works, but in this instance, I have a separate TomEE instance
>> that I want to deploy to (its running on localhost:8080). How do I specify
>> the path?
>>
>> Thanks.
>>
>>
>> On 24 Mar 2013, at 14:31, Romain Manni-Bucau <[email protected]>
>> wrote:
>>
>>> Mvn tomee:deploy is intended to deploy an external apps so you need to
>>> specify its path. To start tomee with the current app just run tomee:run
>>> Le 24 mars 2013 15:24, "David Salter" <[email protected]> a écrit :
>>>
>>>> Hi,
>>>>
>>>> I'm trying to deploy a war file to a running instance of TomEE. I'm
>>>> trying to run
>>>>
>>>> mvn tomee:deploy
>>>>
>>>> but I get the following error:
>>>>
>>>> [ERROR] Failed to execute goal
>>>> org.apache.openejb.maven:tomee-maven-plugin:1.0.1:deploy (default-cli)
>> on
>>>> project Rest: The parameters 'path' for goal
>>>> org.apache.openejb.maven:tomee-maven-plugin:1.0.1:deploy are missing or
>>>> invalid -> [Help 1]
>>>>
>>>> The plugin is defined in my pom.xml as:
>>>>
>>>> <plugin>
>>>> <groupId>org.apache.openejb.maven</groupId>
>>>> <artifactId>tomee-maven-plugin</artifactId>
>>>> <version>1.0.1</version>
>>>> </plugin>
>>>>
>>>> If I simply copy my .war file into the web apps folder of TomEE,
>>>> everything works ok.
>>>>
>>>> Can anyone suggest where I'm going wrong?
>>>>
>>>> Thanks.
>>>>
>>>>
>>>>
>>
>>