works correctly on my pc too with 1.5.1-SNAPSHOT. Thanks!

On Mon, Dec 10, 2012 at 12:16 PM, Romain Manni-Bucau
<rmannibu...@gmail.com>wrote:

> ok, updated to 1.5.1-SNAPSHOT (vote ready to be pushed normally for the
> 1.5.1)
>
> and i got
>
> ┌( rmannibucau @ ubuntu )─( 1.6.0_30 -:- 3.1.0 )
> └( /tmp/jsf-demo )·> gradle tomee
> :compileJava UP-TO-DATE
> :processResources UP-TO-DATE
> :classes UP-TO-DATE
> :war
> :tomeeRunWar
> Starting TomEE from: /tmp/jsf-demo/build/apache-tomee-embedded
> > Building > :tomeeRunWar > Running at http://localhost:8080/jsf-demo
>
> then at this URl i got HELLO
>
>
> For 1.5.0 (if you still want it): the AppClassLoader doesn't get the
> tomee classpath (in fact you get the appclassloader with gradle only)
>
> so you'd need to add a custom
> org.apache.openejb.core.ParentClassLoaderFinder implementation and
> return OpenEJB.class.getClassLoader() inside. You simply need to
> SystemInstance.get().setComponent(ParentClassLoaderFinder.class,
> yourImpl) before deploying any app and after having started the
> container
>
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2012/12/10 Andy Van Den Heuvel <andy.vandenheu...@gmail.com>:
> > They are at https://github.com/tashlin/gradle-plugins/tree/master/tomee.
> >
> > Execute 'gradle install' from the command line to install it in your
> local
> > maven repo.
> >
> > From reading the code in OpenEJBLifecycle, it looks idd a classpath
> > problem. Could it perhaps have something to do with the servlet-api?
> >
> > On 10-dec.-2012, at 10:08, Romain Manni-Bucau <rmannibu...@gmail.com>
> wrote:
> >
> > where are the sources or snapshot repo for
> > org.tashlin.gradle.plugins:tomee:0.0.1-SNAPSHOT ?
> >
> >
> >
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
> >
> >
> >
> > 2012/12/10 Andy Van Den Heuvel <andy.vandenheu...@gmail.com>:
> >
> > Demo project could be found under: https://github.com/andyvdh/jsf-demo
> >
> >
> > Thanks for your help!
> >
> >
> >
> > On Mon, Dec 10, 2012 at 8:20 AM, Romain Manni-Bucau
> >
> > <rmannibu...@gmail.com>wrote:
> >
> >
> > Hi,
> >
> >
> > Is openejb jars (or openwebbeans) possibly duplicated?
> >
> >
> > If you create a demo project ill try to debug in the following says if
> you
> >
> > dont find
> >
> > Le 10 déc. 2012 08:17, "Andy Van Den Heuvel" <
> andy.vandenheu...@gmail.com>
> >
> > a écrit :
> >
> >
> > Hi,
> >
> >
> > I'm creating a gradle plugin to deploy a war against an embedded TomEE.
> >
> > My code is here:
> >
> > https://github.com/tashlin/gradle-plugins/tree/master/tomee
> >
> > The specific TomEE code is in:
> >
> > org.tashlin.gradle.plugins.tomee.TomeeRunWar
> >
> >
> > When I deploy an application I get this stacktrace:
> >
> >
> > Caused by: org.apache.openejb.OpenEJBException: Creating application
> >
> > failed: /home/avdheuve/git/demo/build/libs/demo.war: couldn't start owb
> >
> > context
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:940)
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:532)
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:528)
> >
> > at org.apache.tomee.embedded.Container.deploy(Container.java:280)
> >
> > at org.apache.tomee.embedded.Container.deploy(Container.java:254)
> >
> > at
> >
> >
> >
> >
> org.tashlin.gradle.plugins.tomee.TomeeRunWar.startTomee(TomeeRunWar.java:55)
> >
> > ... 67 more
> >
> > Caused by: org.apache.openejb.OpenEJBRuntimeException: couldn't start owb
> >
> > context
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:152)
> >
> > at org.apache.openejb.cdi.CdiBuilder.build(CdiBuilder.java:44)
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.assembler.classic.Assembler.createApplication(Assembler.java:794)
> >
> > ... 72 more
> >
> > Caused by: java.lang.NullPointerException
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.cdi.OpenEJBLifecycle.startApplication(OpenEJBLifecycle.java:169)
> >
> > at
> >
> >
> >
> >
> org.apache.openejb.cdi.ThreadSingletonServiceImpl.initialize(ThreadSingletonServiceImpl.java:150)
> >
> > ... 74 more
> >
> >
> > The TomEE specific code runs perfect outside of the plugin and according
> >
> > to
> >
> > my research, i think it will be some sort of classpath issue.
> >
> >
> > Anyone an idea where I have to look? I'm kinda stuck right now...
> >
> >
> > Thanks in advance...
> >
> >
> > Andy
>

Reply via email to