You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by David Salter <da...@me.com> on 2013/03/24 15:24:00 UTC
Problem deploying war file
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.
Re: Problem deploying war file
Posted by David Salter <da...@me.com>.
Excellent - that's worked perfectly.
Thanks for your quick response :)
Dave.
On 24 Mar 2013, at 20:10, Romain Manni-Bucau <rm...@gmail.com> wrote:
> seems the path is not accessible from the other tomee, you should use an
> absolute path here
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/3/24 David Salter <da...@me.com>
>
>> Here's the output.
>>
>> david$ mvn tomee:deploy
>> -Dtomee-plugin.archive=target/Rest-1.0-SNAPSHOT.war -e
>> [INFO] Error stacktraces are turned on.
>> [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 8:03:46 PM org.apache.openejb.client.EventLogger log
>> INFO: RemoteInitialContextCreated{providerUri=
>> http://localhost:8080/tomee/ejb}
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] BUILD FAILURE
>> [INFO]
>> ------------------------------------------------------------------------
>> [INFO] Total time: 3.038s
>> [INFO] Finished at: Sun Mar 24 20:03:46 GMT 2013
>> [INFO] Final Memory: 7M/18M
>> [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]
>> org.apache.maven.lifecycle.LifecycleExecutionException: 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:
>> org.apache.openejb.OpenEJBRuntimeException:
>> java.util.zip.ZipException: error in opening zip file
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
>> at
>> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
>> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
>> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
>> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
>> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
>> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:601)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
>> at
>> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
>> Caused by: org.apache.maven.plugin.PluginExecutionException: 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:
>> org.apache.openejb.OpenEJBRuntimeException:
>> java.util.zip.ZipException: error in opening zip file
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
>> at
>> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
>> ... 19 more
>> Caused by: javax.ejb.EJBException: The bean encountered a non-application
>> exception; nested exception is:
>> org.apache.openejb.OpenEJBRuntimeException:
>> java.util.zip.ZipException: error in opening zip file
>> at
>> org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:235)
>> at
>> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:197)
>> at
>> org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:125)
>> at
>> org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:46)
>> at com.sun.proxy.$Proxy16.deploy(Unknown Source)
>> at
>> org.apache.openejb.maven.plugin.DeployMojo.execute(DeployMojo.java:41)
>> at
>> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
>> ... 20 more
>> Caused by: org.apache.openejb.OpenEJBRuntimeException:
>> java.util.zip.ZipException: error in opening zip file
>> at
>> org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:46)
>> at
>> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:131)
>> at
>> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:104)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>> at
>> org.apache.openejb.security.internal.InternalSecurityInterceptor.invoke(InternalSecurityInterceptor.java:34)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>> at
>> org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:128)
>> at
>> org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:43)
>> at
>> org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
>> at
>> org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:176)
>> at
>> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:95)
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at java.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
>> at
>> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
>> at
>> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:138)
>> at
>> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:237)
>> at
>> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:189)
>> at
>> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:290)
>> at
>> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:140)
>> at
>> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:267)
>> at
>> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:191)
>> at
>> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:81)
>> at
>> org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:56)
>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
>> at
>> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
>> at
>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
>> at
>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
>> at
>> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
>> at
>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
>> at
>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
>> at
>> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
>> at
>> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
>> at
>> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
>> at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
>> at java.lang.Thread.run(Thread.java:680)
>> Caused by: java.util.zip.ZipException: error in opening zip file
>> at java.util.zip.ZipFile.open(Native Method)
>> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
>> at java.util.jar.JarFile.<init>(JarFile.java:136)
>> at java.util.jar.JarFile.<init>(JarFile.java:100)
>> at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:401)
>> at
>> org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:44)
>> ... 59 more
>> [ERROR]
>> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
>> [ERROR]
>> [ERROR] For more information about the errors and possible solutions,
>> please read the following articles:
>> [ERROR] [Help 1]
>> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>>
>>
>> On 24 Mar 2013, at 19:10, Romain Manni-Bucau <rm...@gmail.com>
>> wrote:
>>
>>> can you run it with -e option? mvn tomee:deploy -D.... -e
>>>
>>> *Romain Manni-Bucau*
>>> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>>> *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>>> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>>> *Github: https://github.com/rmannibucau*
>>>
>>>
>>>
>>> 2013/3/24 David Salter <da...@me.com>
>>>
>>>> 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 <rm...@gmail.com>
>>>> 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" <da...@me.com> 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 <rm...@gmail.com>
>>>>>> 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" <da...@me.com> 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.
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
Re: Problem deploying war file
Posted by Romain Manni-Bucau <rm...@gmail.com>.
seems the path is not accessible from the other tomee, you should use an
absolute path here
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/3/24 David Salter <da...@me.com>
> Here's the output.
>
> david$ mvn tomee:deploy
> -Dtomee-plugin.archive=target/Rest-1.0-SNAPSHOT.war -e
> [INFO] Error stacktraces are turned on.
> [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 8:03:46 PM org.apache.openejb.client.EventLogger log
> INFO: RemoteInitialContextCreated{providerUri=
> http://localhost:8080/tomee/ejb}
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 3.038s
> [INFO] Finished at: Sun Mar 24 20:03:46 GMT 2013
> [INFO] Final Memory: 7M/18M
> [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]
> org.apache.maven.lifecycle.LifecycleExecutionException: 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:
> org.apache.openejb.OpenEJBRuntimeException:
> java.util.zip.ZipException: error in opening zip file
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
> Caused by: org.apache.maven.plugin.PluginExecutionException: 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:
> org.apache.openejb.OpenEJBRuntimeException:
> java.util.zip.ZipException: error in opening zip file
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
> at
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: javax.ejb.EJBException: The bean encountered a non-application
> exception; nested exception is:
> org.apache.openejb.OpenEJBRuntimeException:
> java.util.zip.ZipException: error in opening zip file
> at
> org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:235)
> at
> org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:197)
> at
> org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:125)
> at
> org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:46)
> at com.sun.proxy.$Proxy16.deploy(Unknown Source)
> at
> org.apache.openejb.maven.plugin.DeployMojo.execute(DeployMojo.java:41)
> at
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> ... 20 more
> Caused by: org.apache.openejb.OpenEJBRuntimeException:
> java.util.zip.ZipException: error in opening zip file
> at
> org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:46)
> at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:131)
> at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:104)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
> at
> org.apache.openejb.security.internal.InternalSecurityInterceptor.invoke(InternalSecurityInterceptor.java:34)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
> at
> org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:128)
> at
> org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:43)
> at
> org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
> at
> org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
> at
> org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:176)
> at
> org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:95)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
> at
> org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
> at
> org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:138)
> at
> org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:237)
> at
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:189)
> at
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:290)
> at
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:140)
> at
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:267)
> at
> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:191)
> at
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:81)
> at
> org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:56)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
> at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
> at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
> at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
> at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
> at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
> at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
> at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
> at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
> at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
> at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
> at
> org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
> at
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
> at java.lang.Thread.run(Thread.java:680)
> Caused by: java.util.zip.ZipException: error in opening zip file
> at java.util.zip.ZipFile.open(Native Method)
> at java.util.zip.ZipFile.<init>(ZipFile.java:127)
> at java.util.jar.JarFile.<init>(JarFile.java:136)
> at java.util.jar.JarFile.<init>(JarFile.java:100)
> at
> org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:401)
> at
> org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:44)
> ... 59 more
> [ERROR]
> [ERROR] Re-run Maven using the -X switch to enable full debug logging.
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
>
>
> On 24 Mar 2013, at 19:10, Romain Manni-Bucau <rm...@gmail.com>
> wrote:
>
> > can you run it with -e option? mvn tomee:deploy -D.... -e
> >
> > *Romain Manni-Bucau*
> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> > *Blog: **http://rmannibucau.wordpress.com/*<
> http://rmannibucau.wordpress.com/>
> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> > *Github: https://github.com/rmannibucau*
> >
> >
> >
> > 2013/3/24 David Salter <da...@me.com>
> >
> >> 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 <rm...@gmail.com>
> >> 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" <da...@me.com> 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 <rm...@gmail.com>
> >>>> 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" <da...@me.com> 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.
> >>>>>>
> >>>>>>
> >>>>>>
> >>>>
> >>>>
> >>
> >>
>
>
Re: Problem deploying war file
Posted by David Salter <da...@me.com>.
Here's the output.
david$ mvn tomee:deploy -Dtomee-plugin.archive=target/Rest-1.0-SNAPSHOT.war -e
[INFO] Error stacktraces are turned on.
[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 8:03:46 PM org.apache.openejb.client.EventLogger log
INFO: RemoteInitialContextCreated{providerUri=http://localhost:8080/tomee/ejb}
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.038s
[INFO] Finished at: Sun Mar 24 20:03:46 GMT 2013
[INFO] Final Memory: 7M/18M
[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]
org.apache.maven.lifecycle.LifecycleExecutionException: 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:
org.apache.openejb.OpenEJBRuntimeException: java.util.zip.ZipException: error in opening zip file
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:225)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:319)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)
Caused by: org.apache.maven.plugin.PluginExecutionException: 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:
org.apache.openejb.OpenEJBRuntimeException: java.util.zip.ZipException: error in opening zip file
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:110)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 19 more
Caused by: javax.ejb.EJBException: The bean encountered a non-application exception; nested exception is:
org.apache.openejb.OpenEJBRuntimeException: java.util.zip.ZipException: error in opening zip file
at org.apache.openejb.client.EJBInvocationHandler.convertException(EJBInvocationHandler.java:235)
at org.apache.openejb.client.EJBObjectHandler._invoke(EJBObjectHandler.java:197)
at org.apache.openejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:125)
at org.apache.openejb.client.proxy.Jdk13InvocationHandler.invoke(Jdk13InvocationHandler.java:46)
at com.sun.proxy.$Proxy16.deploy(Unknown Source)
at org.apache.openejb.maven.plugin.DeployMojo.execute(DeployMojo.java:41)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
... 20 more
Caused by: org.apache.openejb.OpenEJBRuntimeException: java.util.zip.ZipException: error in opening zip file
at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:46)
at org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:131)
at org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
at org.apache.openejb.security.internal.InternalSecurityInterceptor.invoke(InternalSecurityInterceptor.java:34)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
at org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:128)
at org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:43)
at org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:64)
at org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:70)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
at org.apache.openejb.monitoring.StatsInterceptor.record(StatsInterceptor.java:176)
at org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:95)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invocation.invoke(ReflectionInvocationContext.java:181)
at org.apache.openejb.core.interceptor.ReflectionInvocationContext.proceed(ReflectionInvocationContext.java:163)
at org.apache.openejb.core.interceptor.InterceptorStack.invoke(InterceptorStack.java:138)
at org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:237)
at org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:189)
at org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:290)
at org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:140)
at org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:267)
at org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:191)
at org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:81)
at org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:56)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:728)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:45)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:936)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:407)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1004)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:895)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:918)
at java.lang.Thread.run(Thread.java:680)
Caused by: java.util.zip.ZipException: error in opening zip file
at java.util.zip.ZipFile.open(Native Method)
at java.util.zip.ZipFile.<init>(ZipFile.java:127)
at java.util.jar.JarFile.<init>(JarFile.java:136)
at java.util.jar.JarFile.<init>(JarFile.java:100)
at org.apache.tomee.catalina.TomcatWebAppBuilder.deployWebApps(TomcatWebAppBuilder.java:401)
at org.apache.tomee.catalina.deployment.TomcatWebappDeployer.deploy(TomcatWebappDeployer.java:44)
... 59 more
[ERROR]
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/PluginExecutionException
On 24 Mar 2013, at 19:10, Romain Manni-Bucau <rm...@gmail.com> wrote:
> can you run it with -e option? mvn tomee:deploy -D.... -e
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/3/24 David Salter <da...@me.com>
>
>> 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 <rm...@gmail.com>
>> 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" <da...@me.com> 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 <rm...@gmail.com>
>>>> 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" <da...@me.com> 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.
>>>>>>
>>>>>>
>>>>>>
>>>>
>>>>
>>
>>
Re: Problem deploying war file
Posted by Romain Manni-Bucau <rm...@gmail.com>.
can you run it with -e option? mvn tomee:deploy -D.... -e
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*
2013/3/24 David Salter <da...@me.com>
> 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 <rm...@gmail.com>
> 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" <da...@me.com> 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 <rm...@gmail.com>
> >> 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" <da...@me.com> 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.
> >>>>
> >>>>
> >>>>
> >>
> >>
>
>
Re: Problem deploying war file
Posted by David Salter <da...@me.com>.
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 <rm...@gmail.com> 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" <da...@me.com> 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 <rm...@gmail.com>
>> 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" <da...@me.com> 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.
>>>>
>>>>
>>>>
>>
>>
Re: Problem deploying war file
Posted by Romain Manni-Bucau <rm...@gmail.com>.
<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" <da...@me.com> 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 <rm...@gmail.com>
> 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" <da...@me.com> 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.
> >>
> >>
> >>
>
>
Re: Problem deploying war file
Posted by David Salter <da...@me.com>.
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 <rm...@gmail.com> 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" <da...@me.com> 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.
>>
>>
>>
Re: Problem deploying war file
Posted by Romain Manni-Bucau <rm...@gmail.com>.
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" <da...@me.com> 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.
>
>
>