You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomee.apache.org by nj00yy_1 <78...@qq.com> on 2012/04/06 09:12:59 UTC

scripts or API for deploy EAR on tomEE

Hi,

I got my EAR deployed successfully to apps directory instead of webapps
directory.
So far I did the deployment manually, that is copying my EAR directory to
apps. 

I want to know whether TomEE provides any APIs and scripts for deploying
EAR. eg. weblogic have a jar for deployment and developers can call APIs in
that jar, glassfish provide commands to do deployment. 

If TomEE can do the same, please give a link to docs so that I can follow
and write program to do deployment automatically. 

Thanks a lot!

- Yan

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4536838.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Thanks. I got my problem resolved.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4553882.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm,

should work,

i see you have "test names", any binaries/src you can share?

- Romain


2012/4/12 nj00yy_1 <78...@qq.com>

> Sorry, I made a typo. The class is in MyApp/lib directory, not libs.
> Thanks.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551382.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm without more concrete things (src/ear) i don't really know how to help
you :(

- Romain


2012/4/12 nj00yy_1 <78...@qq.com>

> Hi
>
> Thanks. I found the classnotfound issue come up again after I changed my
> app.xml. I verified the class is in MyApp/lib. However, the deployer
> complained:
>
> org.apache.openejb.OpenEJBException: Unable to load servlet class:
> My.test.myclass: My.test.myclass
>        at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1776)
>        at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1543)
>        at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:309)
>        at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:321)
>        at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:782)
>        at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:179)
>        at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)
>        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.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
>        at
> org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
>        at
> org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
>        at
> org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
>        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:226)
>        at
>
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
>        at
>
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
>        at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:286)
>        at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:143)
>        at
>
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:226)
>        at
> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
>        at
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
>        at
>
> org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>        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:225)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>        at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>        at
>
> org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305)
>        at
> org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>        at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>        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:999)
>        at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>        at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.lang.ClassNotFoundException: My.test.myclass
>        at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:124)
>        at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:76)
>        at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1769)
>        ... 59 more
> Caused by: java.io.IOException: Stream closed
>        at
> java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
>        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
>        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
>        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
>        at java.io.FilterInputStream.read(FilterInputStream.java:90)
>        at org.apache.openejb.loader.IO.copy(IO.java:219)
>        at
> org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:121)
>        ... 61 more
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551437.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi

Thanks. I found the classnotfound issue come up again after I changed my
app.xml. I verified the class is in MyApp/lib. However, the deployer
complained:

org.apache.openejb.OpenEJBException: Unable to load servlet class:
My.test.myclass: My.test.myclass
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1776)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1543)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:309)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:321)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:782)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:179)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)
        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.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
        at
org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
        at
org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
        at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
        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:226)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:286)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:143)
        at
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:226)
        at
org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
        at
org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
        at
org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        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:225)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305)
        at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        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:999)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: My.test.myclass
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:124)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:76)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1769)
        ... 59 more
Caused by: java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at java.io.FilterInputStream.read(FilterInputStream.java:90)
        at org.apache.openejb.loader.IO.copy(IO.java:219)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:121)
        ... 61 more 

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551437.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Sorry, I made a typo. The class is in MyApp/lib directory, not libs. 
Thanks.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551382.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi 

Thanks. I found the classnotfound issue come up again after I changed my
app.xml. I verified the class is in MyApp/libs. However, the deployer
complained:

org.apache.openejb.OpenEJBException: Unable to load servlet class:
My.test.myclass: My.test.myclass
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1776)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1543)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:309)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:321)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:782)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:179)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)
        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.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
        at
org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
        at
org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
        at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
        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:226)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:286)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:143)
        at
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:226)
        at
org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
        at
org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
        at
org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        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:225)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305)
        at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        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:999)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.ClassNotFoundException: My.test.myclass
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:124)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:76)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1769)
        ... 59 more
Caused by: java.io.IOException: Stream closed
        at
java.io.BufferedInputStream.getInIfOpen(BufferedInputStream.java:134)
        at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
        at java.io.BufferedInputStream.read1(BufferedInputStream.java:258)
        at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
        at java.io.FilterInputStream.read(FilterInputStream.java:90)
        at org.apache.openejb.loader.IO.copy(IO.java:219)
        at
org.apache.openejb.core.TempClassLoader.loadClass(TempClassLoader.java:121)
        ... 61 more


--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551374.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
i think you simply need to add .war in your app.xml

- Romain


2012/4/12 nj00yy_1 <78...@qq.com>

> The structure of my EAR file is:
>      MyAPP.ear contains: lib/, META_INF/, App1.war and App2.war.
> -------------------------------------------------
> The following is the content of application.xml.
> <?xml version = '1.0' encoding = 'UTF-8'?>
> <application>
>    <display-name>MyApp</display-name>
>    <description>Application description</description>
>    <library-directory>lib</library-directory>
>    <module>
>        <web>
>            <web-uri>App1</web-uri>
>            <context-root>/MyApp/App1</context-root>
>        </web>
>    </module>
>    <module>
>        <web>
>            <web-uri>App2</web-uri>
>            <context-root>/MyApp</context-root>
>        </web>
>    </module>
> </application>
> ---------------------------------------------------
>
>  I get the following error when deploy this EAR file with
> beta-3-snapshot-0410.
>
> Application failed to deploy "/scratch/yjiang/tomEE/MyApp.ear".  Check
> server logs for more details.
> org.apache.openejb.OpenEJBException: Invalid path to module Could not find
> resource 'App1': Could not find resource 'App1'
>        at
>
> org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:348)
>         at
> org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:164)
>        at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:136)
>        at
> org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)
>         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.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
>        at
> org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
>        at
> org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
>        at
> org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
>        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:226)
>        at
>
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
>        at
>
> org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
>        at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:286)
>        at
>
> org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:143)
>        at
>
> org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:226)
>         at
> org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
>        at
> org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
>         at
>
> org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
>        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
>        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:225)
>        at
>
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
>        at
> org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
>        at
>
> org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305)
>        at
> org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83)
>        at
>
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
>        at
>
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
>        at
> org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
>        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:999)
>        at
>
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
>        at
>
> org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
>        at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
>        at java.lang.Thread.run(Thread.java:662)
> Caused by: java.io.IOException: Could not find resource 'App1'
>        at
> org.apache.xbean.finder.ResourceFinder.find(ResourceFinder.java:127)
>        at
>
> org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:343)
>        ... 56 more
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551178.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
The structure of my EAR file is:
      MyAPP.ear contains: lib/, META_INF/, App1.war and App2.war.
-------------------------------------------------
The following is the content of application.xml.
<?xml version = '1.0' encoding = 'UTF-8'?>
<application> 
    <display-name>MyApp</display-name>
    <description>Application description</description>
    <library-directory>lib</library-directory>
    <module>
        <web>
            <web-uri>App1</web-uri>
            <context-root>/MyApp/App1</context-root>
        </web>
    </module>
    <module>
        <web>
            <web-uri>App2</web-uri>
            <context-root>/MyApp</context-root>
        </web>
    </module>
</application>
---------------------------------------------------

 I get the following error when deploy this EAR file with
beta-3-snapshot-0410.

Application failed to deploy "/scratch/yjiang/tomEE/MyApp.ear".  Check
server logs for more details.
org.apache.openejb.OpenEJBException: Invalid path to module Could not find
resource 'App1': Could not find resource 'App1'
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:348)
        at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java:164)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:136)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)
        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.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)
        at
org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
        at
org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
        at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
        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:226)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:286)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:143)
        at
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:226)
        at
org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
        at
org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
        at
org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        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:225)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:169)
        at
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:305)
        at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:83)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:168)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:927)
        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:999)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:565)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:309)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Could not find resource 'App1'
        at
org.apache.xbean.finder.ResourceFinder.find(ResourceFinder.java:127)
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(DeploymentLoader.java:343)
        ... 56 more

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551178.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
One more information for my ear: I can deploy my ear directory successfully
by copying it to apps/. However, I cannot deploy the corresponding ear file
using tomee.sh with the beta-3-snapshot-0410.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551200.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
hmm, it should work, can you give us more info?

well a simple test is to use tomee webapp (http://localhost:8080/tomee)
then the jndi view then there should be a button to do ejb invocation. Do
it with openejb/DeployerXXX bean and you have the deploy method. Simply
give it the path to your ear and it should be deployed.

- Romain


2012/4/12 nj00yy_1 <78...@qq.com>

> Hi,
>
> I can deploy the ear I downloaded from that website with beta-3 snapshot
> now. But my ear cannot be deployed. I have one question:
> If my ear doesn't contain ejb module and just contains web module, would
> tomee.sh can work fine with this kind of ear? Have you done this kind of
> test before?
>
> Actually, what i am looking for is a java class that is similar as the one
> in tomee.sh. I just want to pass parameter to that java class to do EAR
> deployment. Do you know which java class has this kind of functionality?
> Where can I find a doc or description about how to use that class so that I
> can invoke the class to do my deployment?
> I prefer a class which works in beta-2 because I do my program based on
> beta-2.
>
> Thanks a lot!
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551148.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

I can deploy the ear I downloaded from that website with beta-3 snapshot
now. But my ear cannot be deployed. I have one question:
If my ear doesn't contain ejb module and just contains web module, would
tomee.sh can work fine with this kind of ear? Have you done this kind of
test before?

Actually, what i am looking for is a java class that is similar as the one
in tomee.sh. I just want to pass parameter to that java class to do EAR
deployment. Do you know which java class has this kind of functionality?
Where can I find a doc or description about how to use that class so that I
can invoke the class to do my deployment?
I prefer a class which works in beta-2 because I do my program based on
beta-2.

Thanks a lot!

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4551148.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
think you hit a beta-2 bug. Can you give
https://repository.apache.org/content/repositories/snapshots/org/apache/openejb/apache-tomee/1.0.0-beta-3-SNAPSHOT/apache-tomee-1.0.0-beta-3-20120411.041210-83-webprofile.zipa
try?

- Romain


2012/4/12 nj00yy_1 <78...@qq.com>

> Hi
>
> Where can I find the source code for 1.0.0-beta-3 snapshot?
>
> Thanks.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4550951.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi 

Where can I find the source code for 1.0.0-beta-3 snapshot?

Thanks. 

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4550951.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi 

I cannot deploy the ear I downloaded from that website with 1.0.0-beta-2.
The following are the error messages. I think there are environment issues
in my machine since you verified it works. 
Would you please give me suggestions ?

Application failed to deploy
"/scratch/yjiang/tomEE/apache-tomee-webprofile-1.0.0-beta-2/galleria-ear-0.0.1-SNAPSHOT.ear". 
Check server logs for more details.
org.apache.openejb.OpenEJBException: Creating application failed:
/scratch/yjiang/tomEE/apache-tomee-webprofile-1.0.0-beta-2/apps/galleria-ear-0.0.1-SNAPSHOT:
Error building bean 'galleria-jsf-0.0.1-SNAPSHOT.war.Comp'.  Exception:
class org.apache.openejb.OpenEJBException: Unable to load class
info.galleria.view.album.AlbumManager: Unable to load class
info.galleria.view.album.AlbumManager
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:885)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:497)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:493)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:152)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:83)
        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:174)
        at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsInterceptor.java:93)
        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:129)
        at
org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:45)
        at
org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
        at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.java:72)
        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:130)
        at
org.apache.openejb.core.stateless.StatelessContainer._invoke(StatelessContainer.java:226)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:178)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(StatelessContainer.java:142)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS_METHOD(EjbRequestHandler.java:270)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRequestHandler.java:128)
        at
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.java:234)
        at
org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:164)
        at
org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:74)
        at
org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.java:44)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:304)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:224)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:185)
        at
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472)
        at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterValve.java:210)
        at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.java:85)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:929)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:405)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:269)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:515)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:302)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: org.apache.openejb.OpenEJBException: Error building bean
'galleria-jsf-0.0.1-SNAPSHOT.war.Comp'.  Exception: class
org.apache.openejb.OpenEJBException: Unable to load class
info.galleria.view.album.AlbumManager: Unable to load class
info.galleria.view.album.AlbumManager
        at
org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:80)
        at
org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:660)
        ... 58 more
Caused by: org.apache.openejb.OpenEJBException: Unable to load class
info.galleria.view.album.AlbumManager
        at
org.apache.openejb.assembler.classic.InjectionBuilder.loadClass(InjectionBuilder.java:110)
        at
org.apache.openejb.assembler.classic.InjectionBuilder.buildInjections(InjectionBuilder.java:52)
        at
org.apache.openejb.assembler.classic.EnterpriseBeanBuilder.build(EnterpriseBeanBuilder.java:134)
        at
org.apache.openejb.assembler.classic.EjbJarBuilder.build(EjbJarBuilder.java:65)
        ... 59 more

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4550855.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
here is the ear:
http://www.2shared.com/file/p8ESmDWs/galleria-ear-001-SNAPSHOT.html

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> Hi
>
> Would you please send my a copy of EAR. I don't want to compile the source.
> Thanks.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4549291.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi 

Would you please send my a copy of EAR. I don't want to compile the source.
Thanks.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4549291.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
the tomee script is the one you have

the ear is this project
https://bitbucket.org/VineetReynolds/java-ee-6-galleria/src patched with
this: https://gist.github.com/2079015

Note i used the snapshot

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> Hi,
>
> Would  you please share your ear and tomee.sh (which works with beta-2)
> with
> me? Please send me the EAR and script to this email address
> 784396155@qq.com. Thanks!
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4549126.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

Would  you please share your ear and tomee.sh (which works with beta-2) with
me? Please send me the EAR and script to this email address
784396155@qq.com. Thanks!


--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4549126.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
beta-2 should only manage packaged ear.

i just tried to deploy an ear and it works fine (at least on trunk):

./bin/tomee.sh deploy
~/.m2/repository/name/reynolds/vineet/galleria-ear/0.0.1-SNAPSHOT/galleria-ear-0.0.1-SNAPSHOT.ear

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> I'd like to know what you mean by "it only managed file copy, not
> directory copy". For example, I use tomee.sh to deploy MyApp.ear. In my
> ear,
> I have jars in /lib, App1.war and App2.war.
> Is it because /lib is not managed by the deployer because it's a directory?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548323.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
I'd like to know what you mean by "it only managed file copy, not
directory copy". For example, I use tomee.sh to deploy MyApp.ear. In my ear,
I have jars in /lib, App1.war and App2.war. 
Is it because /lib is not managed by the deployer because it's a directory?

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548323.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
I passed "deploy" and "myApp.ear" to tomee.sh. It should copy the ear file.
However, why does it not work? Do you mean that the java class doesn't
expand the wars in ear file? 

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548283.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
yes,

the issue is in our deployer command, it only managed file copy, not
directory copy (i speak about the java command, not the sript itself which
does pretty nothing).

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> I cannot use tomee.sh with tomee-1.0.0-beta-2, right ?
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548229.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
I cannot use tomee.sh with tomee-1.0.0-beta-2, right ?

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548229.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
using the last snapshot it should work (note: it is currently not the onde
in apache snapshot repository but the one you can build from sources).

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> Hi,
>
> Sorry, I cannot share my ear. Any suggestions? I need to try solution by
> myself.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548153.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

Sorry, I cannot share my ear. Any suggestions? I need to try solution by
myself.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548153.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

can you share your ear?

- Romain


2012/4/11 nj00yy_1 <78...@qq.com>

> Hi,
>
> One more information for above error: I can deploy my ear directory in
> apps/
> successfully, but cannot deploy the ear file successfully using tomee.sh.
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548142.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

One more information for above error: I can deploy my ear directory in apps/
successfully, but cannot deploy the ear file successfully using tomee.sh.

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548142.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

I tried to use tomee.sh to deploy my ear file.
(1) Does the script support EAR, WAR, RAR and JAR only? It doesn't support
directory, right?
(2) The structure of my EAR file is:
      MyAPP.ear contains: lib/, META_INF/, App1.war and App2.war.
-------------------------------------------------
The following is the content of application.xml.
<?xml version = '1.0' encoding = 'UTF-8'?>
<application> 
    <display-name>MyApp</display-name>
    <description>Application description</description>
    <library-directory>lib</library-directory>
    <module>
        <web>
            <web-uri>App1</web-uri>
            <context-root>/MyApp/App1</context-root>
        </web>
    </module>
    <module>
        <web>
            <web-uri>App2</web-uri>
            <context-root>/MyApp</context-root>
        </web>
    </module>
</application>
--------------------------------------------------- 

 I get the following error when deploy this EAR file. Any help??

org.apache.openejb.OpenEJBException: Invalid path to module Could not find
resou
rce 'App1': Could not find resource 'App1'
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(Deployment
Loader.java:348)
        at
org.apache.openejb.config.DeploymentLoader.load(DeploymentLoader.java
:164)
        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:136)

        at
org.apache.openejb.assembler.DeployerEjb.deploy(DeployerEjb.java:110)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invoc
ation.invoke(ReflectionInvocationContext.java:181)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proce
ed(ReflectionInvocationContext.java:163)
        at
org.apache.openejb.monitoring.StatsInterceptor.record(StatsIntercepto
r.java:176)
        at
org.apache.openejb.monitoring.StatsInterceptor.invoke(StatsIntercepto
r.java:95)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invoc
ation.invoke(ReflectionInvocationContext.java:181)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proce
ed(ReflectionInvocationContext.java:163)
        at
org.apache.openejb.cdi.CdiInterceptor.invoke(CdiInterceptor.java:129)

        at
org.apache.openejb.cdi.CdiInterceptor.access$000(CdiInterceptor.java:
45)
        at
org.apache.openejb.cdi.CdiInterceptor$1.call(CdiInterceptor.java:66)
        at
org.apache.openejb.cdi.CdiInterceptor.aroundInvoke(CdiInterceptor.jav
a:72)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext$Invoc
ation.invoke(ReflectionInvocationContext.java:181)
        at
org.apache.openejb.core.interceptor.ReflectionInvocationContext.proce
ed(ReflectionInvocationContext.java:163)
        at
org.apache.openejb.core.interceptor.InterceptorStack.invoke(Intercept
orStack.java:130)
        at
org.apache.openejb.core.stateless.StatelessContainer._invoke(Stateles
sContainer.java:226)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(Stateless
Container.java:178)
        at
org.apache.openejb.core.stateless.StatelessContainer.invoke(Stateless
Container.java:142)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.doEjbObject_BUSINESS
_METHOD(EjbRequestHandler.java:279)
        at
org.apache.openejb.server.ejbd.EjbRequestHandler.processRequest(EjbRe
questHandler.java:136)
        at
org.apache.openejb.server.ejbd.EjbDaemon.processEjbRequest(EjbDaemon.
java:226)
        at
org.apache.openejb.server.ejbd.EjbDaemon.service(EjbDaemon.java:167)
        at
org.apache.openejb.server.ejbd.EjbServer.service(EjbServer.java:80)
        at
org.apache.openejb.server.httpd.ServerServlet.service(ServerServlet.j
ava:44)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:722)
        at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:304)
        at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:210)
        at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:224)
        at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:185)
        at
org.apache.tomee.catalina.OpenEJBValve.invoke(OpenEJBValve.java:44)
        at
org.apache.catalina.valves.RequestFilterValve.process(RequestFilterVa
lve.java:210)
        at
org.apache.catalina.valves.RemoteAddrValve.invoke(RemoteAddrValve.jav
a:85)
        at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:151)
        at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.j
ava:100)
        at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:
929)
        at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineVal
ve.java:118)
        at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:405)
        at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java
:269)
        at
org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(
AbstractProtocol.java:515)
        at
org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoin
t.java:300)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExec
utor.java:886)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor
.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: java.io.IOException: Could not find resource 'App1'
        at
org.apache.xbean.finder.ResourceFinder.find(ResourceFinder.java:127)
        at
org.apache.openejb.config.DeploymentLoader.createAppModule(Deployment
Loader.java:343)
        ... 56 more

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4548139.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Tomee.sh in the snapshot in bin.

- Romain

Le 7 avr. 2012 07:07, "nj00yy_1" <78...@qq.com> a écrit :

> Hi,
>
> What's the name of that script? Is it contained in the latest snapshot? In
> which directory? Does it work with TomEE version 1.0.0-beta-2?
>
> Thanks a lot!
>
> - Yan
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4538895.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

What's the name of that script? Is it contained in the latest snapshot? In
which directory? Does it work with TomEE version 1.0.0-beta-2?

Thanks a lot!

- Yan

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4538895.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
No, was only added on trunk but you can take it easily i think.

- Romain

Le 6 avr. 2012 18:22, "nj00yy_1" <78...@qq.com> a écrit :

> Hi,
>
> Thanks. Has the script you mentioned been shipped with TomEE in version
> 1.0.0-beta-2?
>
> - Yan
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537737.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

Thanks. Has the script you mentioned been shipped with TomEE in version
1.0.0-beta-2?

- Yan

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537737.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
While im thinking of ut i think there is a tomee script to do so. Maybe
you. An have a look on our snapshot.

For ssh you need to configure jazs and then connect with jaas credential on
port 4222 if i remember.

- Romain

Le 6 avr. 2012 13:12, "nj00yy_1" <78...@qq.com> a écrit :

> Hi,
>
> Would you please provide some links to docs which shows how to use the
> maven
> module?
> One more question: the maven module also uses deployer to do deployment?
> Is there any APIs or scripts or tools of TomEE which don't call any other
> third party tools like deployer?
> TomEE doesn't ship deployer with it, right?
>
> - Yan
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537193.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
Hi,

Would you please provide some links to docs which shows how to use the maven
module? 
One more question: the maven module also uses deployer to do deployment?
Is there any APIs or scripts or tools of TomEE which don't call any other
third party tools like deployer?
TomEE doesn't ship deployer with it, right?

- Yan

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537193.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

We have the ssh module on trunk or the maven module to do so. It uses the
deployer.

- Romain

Le 6 avr. 2012 11:30, "nj00yy_1" <78...@qq.com> a écrit :

> I think deployer is not I am looking for.
> I am looking for tomEE's APIs or commands, not from other third party.
> In generally, How many ways does TomEE support to deploy an EAR directory?
> So far, I know that I can copy my EAR to apps. Is there any other way? For
> example, run command in shell or call TomEE's API to do deployment in my
> java program.
>
> Thanks a lot!
>
> - Yan
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537000.html
> Sent from the OpenEJB Dev mailing list archive at Nabble.com.
>

Re: scripts or API for deploy EAR on tomEE

Posted by nj00yy_1 <78...@qq.com>.
I think deployer is not I am looking for. 
I am looking for tomEE's APIs or commands, not from other third party. 
In generally, How many ways does TomEE support to deploy an EAR directory? 
So far, I know that I can copy my EAR to apps. Is there any other way? For
example, run command in shell or call TomEE's API to do deployment in my
java program.

Thanks a lot!

- Yan

--
View this message in context: http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4537000.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.

Re: scripts or API for deploy EAR on tomEE

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi,

Goibg ti jndi view yoy get a deploter (an ejb).

You can lookup them remotely too.

Is it something like that you are looking for?

- Romain

Le 6 avr. 2012 09:13, "nj00yy_1" <78...@qq.com> a écrit :
Hi,

I got my EAR deployed successfully to apps directory instead of webapps
directory.
So far I did the deployment manually, that is copying my EAR directory to
apps.

I want to know whether TomEE provides any APIs and scripts for deploying
EAR. eg. weblogic have a jar for deployment and developers can call APIs in
that jar, glassfish provide commands to do deployment.

If TomEE can do the same, please give a link to docs so that I can follow
and write program to do deployment automatically.

Thanks a lot!

- Yan

--
View this message in context:
http://openejb.979440.n4.nabble.com/scripts-or-API-for-deploy-EAR-on-tomEE-tp4536838p4536838.html
Sent from the OpenEJB Dev mailing list archive at Nabble.com.