You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by jieryn <ji...@gmail.com> on 2013/11/21 21:17:58 UTC

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

This is happening again with the recently released Apache TomEE 1.6.0 Plus.

Aaargh.

On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
> Some changes in between
> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
> failure at TomEE start up because of an javax.ws.rs.core.Application
> in a jar:
>
> SEVERE: Unable to deploy collapsed ear in war
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
> org.apache.openejb.OpenEJBException: Unable to instantiate Application
> class: org.apache.wink.client.ClientConfig$1$1:
> org.apache.wink.client.ClientConfig$1$1
>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>         at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>         at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>         at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:724)
> Caused by: java.lang.InstantiationException:
> org.apache.wink.client.ClientConfig$1$1
>         at java.lang.Class.newInstance(Class.java:359)
>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>         ... 22 more
>
> To replicate this:
>
> $ git clone https://github.com/jieryn/javaee-example ; cd javaee-example
> $ mvn clean package tomee:run

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
Ok, ok. :-)

On Fri, Nov 22, 2013 at 9:44 AM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> they are not scanned, they are not used (excepted jaxrs cause of
> jersey) but the fact you provided them in the webapp is logged to
> gently say you to remove it ;).
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2013/11/22 jieryn <ji...@gmail.com>:
>> Oh, I see they are.. I requested they be ignored because of messages like:
>>
>> 22-Nov-2013 09:25:47.581 WARNING [localhost-startStop-1]
>> org.apache.tomee.catalina.TomEEClassLoaderEnricher.validateJarFile jar
>> '/tomee/webapps/ROOT/WEB-INF/lib/geronimo-annotation_1.1_spec-1.0.1.jar'
>> contains offending class: javax.annotation.PostConstruct. It will be
>> ignored.
>>
>> On Fri, Nov 22, 2013 at 9:30 AM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>>> they are in: geronimo- (maybe i didnt get the note)
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>>
>>> 2013/11/22 jieryn <ji...@gmail.com>:
>>>> I confirm that works, and the 'default-list' is also right. Verified
>>>> in the source.
>>>>
>>>> Maybe we ought to add all of the Apache geronimo-*-spec stuff as well?
>>>> I think a lot of folks have added geronimo-*-spec jars when they were
>>>> faking their own Apache TomEE with just Apache Tomcat and adding in
>>>> all their own stuff.
>>>>
>>>> Thanks for the hints, and fixing the root cause!
>>>>
>>>> On Fri, Nov 22, 2013 at 1:57 AM, Romain Manni-Bucau
>>>> <rm...@gmail.com> wrote:
>>>>> Add "default-list" line too (IIRC)
>>>>> Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :
>>>>>
>>>>>> You rock! :-)
>>>>>>
>>>>>> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
>>>>>> (assuming I have never done this before) with text wink-client ? Does
>>>>>> it need .jar suffix?
>>>>>>
>>>>>> Thanks!
>>>>>>
>>>>>> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
>>>>>> <rm...@gmail.com> wrote:
>>>>>> > Hi
>>>>>> >
>>>>>> > https://issues.apache.org/jira/browse/TOMEE-1085
>>>>>> >
>>>>>> > btw you can add  in  exclusions.list the line "wink-client" to
>>>>>> workaround it
>>>>>> >
>>>>>> > Romain Manni-Bucau
>>>>>> > Twitter: @rmannibucau
>>>>>> > Blog: http://rmannibucau.wordpress.com/
>>>>>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>>>> > Github: https://github.com/rmannibucau
>>>>>> >
>>>>>> >
>>>>>> >
>>>>>> > 2013/11/22 jieryn <ji...@gmail.com>:
>>>>>> >> Yes, I'm sure. Here is an example project which demonstrates the
>>>>>> >> problem: https://github.com/jieryn/tomee-wink-failure
>>>>>> >>
>>>>>> >> Make sure you run: mvn clean package tomee:run
>>>>>> >>
>>>>>> >> You will see the java.lang.InstantiationException being thrown.
>>>>>> >>
>>>>>> >>
>>>>>> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>>>>>> >> <rm...@gmail.com> wrote:
>>>>>> >>> Hi
>>>>>> >>>
>>>>>> >>> are you sure the binaries were well upgraded?
>>>>>> >>> Romain Manni-Bucau
>>>>>> >>> Twitter: @rmannibucau
>>>>>> >>> Blog: http://rmannibucau.wordpress.com/
>>>>>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>>>> >>> Github: https://github.com/rmannibucau
>>>>>> >>>
>>>>>> >>>
>>>>>> >>>
>>>>>> >>> 2013/11/21 jieryn <ji...@gmail.com>:
>>>>>> >>>> This is happening again with the recently released Apache TomEE 1.6.0
>>>>>> Plus.
>>>>>> >>>>
>>>>>> >>>> Aaargh.
>>>>>> >>>>
>>>>>> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>>>>> >>>>> Some changes in between
>>>>>> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>>>>> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>>>>> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>>>>> >>>>> in a jar:
>>>>>> >>>>>
>>>>>> >>>>> SEVERE: Unable to deploy collapsed ear in war
>>>>>> >>>>>
>>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>>>>> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
>>>>>> Application
>>>>>> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>>>> >>>>>         at
>>>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>>>> >>>>>         at
>>>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>>>> >>>>>         at
>>>>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>>>> >>>>>         at
>>>>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>>>> >>>>>         at
>>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>> >>>>>         at
>>>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>>>> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>>>> >>>>>         at
>>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>> >>>>>         at
>>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>> >>>>>         at java.lang.Thread.run(Thread.java:724)
>>>>>> >>>>> Caused by: java.lang.InstantiationException:
>>>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>>>> >>>>>         at java.lang.Class.newInstance(Class.java:359)
>>>>>> >>>>>         at
>>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>>>> >>>>>         ... 22 more
>>>>>> >>>>>
>>>>>> >>>>> To replicate this:
>>>>>> >>>>>
>>>>>> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
>>>>>> javaee-example
>>>>>> >>>>> $ mvn clean package tomee:run
>>>>>>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by Romain Manni-Bucau <rm...@gmail.com>.
they are not scanned, they are not used (excepted jaxrs cause of
jersey) but the fact you provided them in the webapp is logged to
gently say you to remove it ;).
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/11/22 jieryn <ji...@gmail.com>:
> Oh, I see they are.. I requested they be ignored because of messages like:
>
> 22-Nov-2013 09:25:47.581 WARNING [localhost-startStop-1]
> org.apache.tomee.catalina.TomEEClassLoaderEnricher.validateJarFile jar
> '/tomee/webapps/ROOT/WEB-INF/lib/geronimo-annotation_1.1_spec-1.0.1.jar'
> contains offending class: javax.annotation.PostConstruct. It will be
> ignored.
>
> On Fri, Nov 22, 2013 at 9:30 AM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
>> they are in: geronimo- (maybe i didnt get the note)
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2013/11/22 jieryn <ji...@gmail.com>:
>>> I confirm that works, and the 'default-list' is also right. Verified
>>> in the source.
>>>
>>> Maybe we ought to add all of the Apache geronimo-*-spec stuff as well?
>>> I think a lot of folks have added geronimo-*-spec jars when they were
>>> faking their own Apache TomEE with just Apache Tomcat and adding in
>>> all their own stuff.
>>>
>>> Thanks for the hints, and fixing the root cause!
>>>
>>> On Fri, Nov 22, 2013 at 1:57 AM, Romain Manni-Bucau
>>> <rm...@gmail.com> wrote:
>>>> Add "default-list" line too (IIRC)
>>>> Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :
>>>>
>>>>> You rock! :-)
>>>>>
>>>>> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
>>>>> (assuming I have never done this before) with text wink-client ? Does
>>>>> it need .jar suffix?
>>>>>
>>>>> Thanks!
>>>>>
>>>>> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
>>>>> <rm...@gmail.com> wrote:
>>>>> > Hi
>>>>> >
>>>>> > https://issues.apache.org/jira/browse/TOMEE-1085
>>>>> >
>>>>> > btw you can add  in  exclusions.list the line "wink-client" to
>>>>> workaround it
>>>>> >
>>>>> > Romain Manni-Bucau
>>>>> > Twitter: @rmannibucau
>>>>> > Blog: http://rmannibucau.wordpress.com/
>>>>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>>> > Github: https://github.com/rmannibucau
>>>>> >
>>>>> >
>>>>> >
>>>>> > 2013/11/22 jieryn <ji...@gmail.com>:
>>>>> >> Yes, I'm sure. Here is an example project which demonstrates the
>>>>> >> problem: https://github.com/jieryn/tomee-wink-failure
>>>>> >>
>>>>> >> Make sure you run: mvn clean package tomee:run
>>>>> >>
>>>>> >> You will see the java.lang.InstantiationException being thrown.
>>>>> >>
>>>>> >>
>>>>> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>>>>> >> <rm...@gmail.com> wrote:
>>>>> >>> Hi
>>>>> >>>
>>>>> >>> are you sure the binaries were well upgraded?
>>>>> >>> Romain Manni-Bucau
>>>>> >>> Twitter: @rmannibucau
>>>>> >>> Blog: http://rmannibucau.wordpress.com/
>>>>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>>> >>> Github: https://github.com/rmannibucau
>>>>> >>>
>>>>> >>>
>>>>> >>>
>>>>> >>> 2013/11/21 jieryn <ji...@gmail.com>:
>>>>> >>>> This is happening again with the recently released Apache TomEE 1.6.0
>>>>> Plus.
>>>>> >>>>
>>>>> >>>> Aaargh.
>>>>> >>>>
>>>>> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>>>> >>>>> Some changes in between
>>>>> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>>>> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>>>> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>>>> >>>>> in a jar:
>>>>> >>>>>
>>>>> >>>>> SEVERE: Unable to deploy collapsed ear in war
>>>>> >>>>>
>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>>>> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
>>>>> Application
>>>>> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>>> >>>>>         at
>>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>>> >>>>>         at
>>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>>> >>>>>         at
>>>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>>> >>>>>         at
>>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>>> >>>>>         at
>>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>>> >>>>>         at
>>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>>> >>>>>         at
>>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>>> >>>>>         at
>>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>>> >>>>>         at
>>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>>> >>>>>         at
>>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>>> >>>>>         at
>>>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>>> >>>>>         at
>>>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>>> >>>>>         at
>>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>> >>>>>         at
>>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>>> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>>> >>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>> >>>>>         at
>>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>> >>>>>         at java.lang.Thread.run(Thread.java:724)
>>>>> >>>>> Caused by: java.lang.InstantiationException:
>>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>>> >>>>>         at java.lang.Class.newInstance(Class.java:359)
>>>>> >>>>>         at
>>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>>> >>>>>         ... 22 more
>>>>> >>>>>
>>>>> >>>>> To replicate this:
>>>>> >>>>>
>>>>> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
>>>>> javaee-example
>>>>> >>>>> $ mvn clean package tomee:run
>>>>>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
Oh, I see they are.. I requested they be ignored because of messages like:

22-Nov-2013 09:25:47.581 WARNING [localhost-startStop-1]
org.apache.tomee.catalina.TomEEClassLoaderEnricher.validateJarFile jar
'/tomee/webapps/ROOT/WEB-INF/lib/geronimo-annotation_1.1_spec-1.0.1.jar'
contains offending class: javax.annotation.PostConstruct. It will be
ignored.

On Fri, Nov 22, 2013 at 9:30 AM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> they are in: geronimo- (maybe i didnt get the note)
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2013/11/22 jieryn <ji...@gmail.com>:
>> I confirm that works, and the 'default-list' is also right. Verified
>> in the source.
>>
>> Maybe we ought to add all of the Apache geronimo-*-spec stuff as well?
>> I think a lot of folks have added geronimo-*-spec jars when they were
>> faking their own Apache TomEE with just Apache Tomcat and adding in
>> all their own stuff.
>>
>> Thanks for the hints, and fixing the root cause!
>>
>> On Fri, Nov 22, 2013 at 1:57 AM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>>> Add "default-list" line too (IIRC)
>>> Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :
>>>
>>>> You rock! :-)
>>>>
>>>> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
>>>> (assuming I have never done this before) with text wink-client ? Does
>>>> it need .jar suffix?
>>>>
>>>> Thanks!
>>>>
>>>> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
>>>> <rm...@gmail.com> wrote:
>>>> > Hi
>>>> >
>>>> > https://issues.apache.org/jira/browse/TOMEE-1085
>>>> >
>>>> > btw you can add  in  exclusions.list the line "wink-client" to
>>>> workaround it
>>>> >
>>>> > Romain Manni-Bucau
>>>> > Twitter: @rmannibucau
>>>> > Blog: http://rmannibucau.wordpress.com/
>>>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>> > Github: https://github.com/rmannibucau
>>>> >
>>>> >
>>>> >
>>>> > 2013/11/22 jieryn <ji...@gmail.com>:
>>>> >> Yes, I'm sure. Here is an example project which demonstrates the
>>>> >> problem: https://github.com/jieryn/tomee-wink-failure
>>>> >>
>>>> >> Make sure you run: mvn clean package tomee:run
>>>> >>
>>>> >> You will see the java.lang.InstantiationException being thrown.
>>>> >>
>>>> >>
>>>> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>>>> >> <rm...@gmail.com> wrote:
>>>> >>> Hi
>>>> >>>
>>>> >>> are you sure the binaries were well upgraded?
>>>> >>> Romain Manni-Bucau
>>>> >>> Twitter: @rmannibucau
>>>> >>> Blog: http://rmannibucau.wordpress.com/
>>>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>>> >>> Github: https://github.com/rmannibucau
>>>> >>>
>>>> >>>
>>>> >>>
>>>> >>> 2013/11/21 jieryn <ji...@gmail.com>:
>>>> >>>> This is happening again with the recently released Apache TomEE 1.6.0
>>>> Plus.
>>>> >>>>
>>>> >>>> Aaargh.
>>>> >>>>
>>>> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>>> >>>>> Some changes in between
>>>> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>>> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>>> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>>> >>>>> in a jar:
>>>> >>>>>
>>>> >>>>> SEVERE: Unable to deploy collapsed ear in war
>>>> >>>>>
>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>>> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
>>>> Application
>>>> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>> >>>>>         at
>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>> >>>>>         at
>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>> >>>>>         at
>>>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>> >>>>>         at
>>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>> >>>>>         at
>>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>> >>>>>         at
>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>> >>>>>         at
>>>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>> >>>>>         at
>>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>> >>>>>         at
>>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>> >>>>>         at
>>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>> >>>>>         at
>>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>> >>>>>         at
>>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>> >>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>> >>>>>         at
>>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>> >>>>>         at
>>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>> >>>>>         at
>>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>> >>>>>         at
>>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>> >>>>>         at
>>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>> >>>>>         at
>>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>> >>>>>         at
>>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>> >>>>>         at
>>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>> >>>>>         at java.lang.Thread.run(Thread.java:724)
>>>> >>>>> Caused by: java.lang.InstantiationException:
>>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>>> >>>>>         at java.lang.Class.newInstance(Class.java:359)
>>>> >>>>>         at
>>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>> >>>>>         ... 22 more
>>>> >>>>>
>>>> >>>>> To replicate this:
>>>> >>>>>
>>>> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
>>>> javaee-example
>>>> >>>>> $ mvn clean package tomee:run
>>>>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by Romain Manni-Bucau <rm...@gmail.com>.
they are in: geronimo- (maybe i didnt get the note)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/11/22 jieryn <ji...@gmail.com>:
> I confirm that works, and the 'default-list' is also right. Verified
> in the source.
>
> Maybe we ought to add all of the Apache geronimo-*-spec stuff as well?
> I think a lot of folks have added geronimo-*-spec jars when they were
> faking their own Apache TomEE with just Apache Tomcat and adding in
> all their own stuff.
>
> Thanks for the hints, and fixing the root cause!
>
> On Fri, Nov 22, 2013 at 1:57 AM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
>> Add "default-list" line too (IIRC)
>> Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :
>>
>>> You rock! :-)
>>>
>>> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
>>> (assuming I have never done this before) with text wink-client ? Does
>>> it need .jar suffix?
>>>
>>> Thanks!
>>>
>>> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
>>> <rm...@gmail.com> wrote:
>>> > Hi
>>> >
>>> > https://issues.apache.org/jira/browse/TOMEE-1085
>>> >
>>> > btw you can add  in  exclusions.list the line "wink-client" to
>>> workaround it
>>> >
>>> > Romain Manni-Bucau
>>> > Twitter: @rmannibucau
>>> > Blog: http://rmannibucau.wordpress.com/
>>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> > Github: https://github.com/rmannibucau
>>> >
>>> >
>>> >
>>> > 2013/11/22 jieryn <ji...@gmail.com>:
>>> >> Yes, I'm sure. Here is an example project which demonstrates the
>>> >> problem: https://github.com/jieryn/tomee-wink-failure
>>> >>
>>> >> Make sure you run: mvn clean package tomee:run
>>> >>
>>> >> You will see the java.lang.InstantiationException being thrown.
>>> >>
>>> >>
>>> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>>> >> <rm...@gmail.com> wrote:
>>> >>> Hi
>>> >>>
>>> >>> are you sure the binaries were well upgraded?
>>> >>> Romain Manni-Bucau
>>> >>> Twitter: @rmannibucau
>>> >>> Blog: http://rmannibucau.wordpress.com/
>>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> >>> Github: https://github.com/rmannibucau
>>> >>>
>>> >>>
>>> >>>
>>> >>> 2013/11/21 jieryn <ji...@gmail.com>:
>>> >>>> This is happening again with the recently released Apache TomEE 1.6.0
>>> Plus.
>>> >>>>
>>> >>>> Aaargh.
>>> >>>>
>>> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>> >>>>> Some changes in between
>>> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>> >>>>> in a jar:
>>> >>>>>
>>> >>>>> SEVERE: Unable to deploy collapsed ear in war
>>> >>>>>
>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
>>> Application
>>> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>> >>>>>         at
>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>> >>>>>         at
>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>> >>>>>         at
>>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>> >>>>>         at
>>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>> >>>>>         at
>>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>> >>>>>         at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>> >>>>>         at
>>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>> >>>>>         at
>>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>> >>>>>         at
>>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>> >>>>>         at
>>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>> >>>>>         at
>>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>> >>>>>         at
>>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>> >>>>>         at
>>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>> >>>>>         at
>>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>> >>>>>         at
>>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>> >>>>>         at
>>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>> >>>>>         at
>>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>> >>>>>         at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>> >>>>>         at
>>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>> >>>>>         at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>> >>>>>         at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>> >>>>>         at java.lang.Thread.run(Thread.java:724)
>>> >>>>> Caused by: java.lang.InstantiationException:
>>> >>>>> org.apache.wink.client.ClientConfig$1$1
>>> >>>>>         at java.lang.Class.newInstance(Class.java:359)
>>> >>>>>         at
>>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>> >>>>>         ... 22 more
>>> >>>>>
>>> >>>>> To replicate this:
>>> >>>>>
>>> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
>>> javaee-example
>>> >>>>> $ mvn clean package tomee:run
>>>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
I confirm that works, and the 'default-list' is also right. Verified
in the source.

Maybe we ought to add all of the Apache geronimo-*-spec stuff as well?
I think a lot of folks have added geronimo-*-spec jars when they were
faking their own Apache TomEE with just Apache Tomcat and adding in
all their own stuff.

Thanks for the hints, and fixing the root cause!

On Fri, Nov 22, 2013 at 1:57 AM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> Add "default-list" line too (IIRC)
> Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :
>
>> You rock! :-)
>>
>> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
>> (assuming I have never done this before) with text wink-client ? Does
>> it need .jar suffix?
>>
>> Thanks!
>>
>> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>> > Hi
>> >
>> > https://issues.apache.org/jira/browse/TOMEE-1085
>> >
>> > btw you can add  in  exclusions.list the line "wink-client" to
>> workaround it
>> >
>> > Romain Manni-Bucau
>> > Twitter: @rmannibucau
>> > Blog: http://rmannibucau.wordpress.com/
>> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> > Github: https://github.com/rmannibucau
>> >
>> >
>> >
>> > 2013/11/22 jieryn <ji...@gmail.com>:
>> >> Yes, I'm sure. Here is an example project which demonstrates the
>> >> problem: https://github.com/jieryn/tomee-wink-failure
>> >>
>> >> Make sure you run: mvn clean package tomee:run
>> >>
>> >> You will see the java.lang.InstantiationException being thrown.
>> >>
>> >>
>> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>> >> <rm...@gmail.com> wrote:
>> >>> Hi
>> >>>
>> >>> are you sure the binaries were well upgraded?
>> >>> Romain Manni-Bucau
>> >>> Twitter: @rmannibucau
>> >>> Blog: http://rmannibucau.wordpress.com/
>> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> >>> Github: https://github.com/rmannibucau
>> >>>
>> >>>
>> >>>
>> >>> 2013/11/21 jieryn <ji...@gmail.com>:
>> >>>> This is happening again with the recently released Apache TomEE 1.6.0
>> Plus.
>> >>>>
>> >>>> Aaargh.
>> >>>>
>> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>> >>>>> Some changes in between
>> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>> >>>>> in a jar:
>> >>>>>
>> >>>>> SEVERE: Unable to deploy collapsed ear in war
>> >>>>>
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
>> Application
>> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
>> >>>>> org.apache.wink.client.ClientConfig$1$1
>> >>>>>         at
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>> >>>>>         at
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>> >>>>>         at
>> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>> >>>>>         at
>> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>> >>>>>         at
>> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>> >>>>>         at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>> >>>>>         at
>> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>> >>>>>         at
>> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>> >>>>>         at
>> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>> >>>>>         at
>> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>> >>>>>         at
>> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>> >>>>>         at
>> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>> >>>>>         at
>> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>> >>>>>         at
>> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>> >>>>>         at
>> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>> >>>>>         at
>> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>> >>>>>         at
>> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>> >>>>>         at
>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>> >>>>>         at
>> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>> >>>>>         at
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>> >>>>>         at
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>> >>>>>         at java.lang.Thread.run(Thread.java:724)
>> >>>>> Caused by: java.lang.InstantiationException:
>> >>>>> org.apache.wink.client.ClientConfig$1$1
>> >>>>>         at java.lang.Class.newInstance(Class.java:359)
>> >>>>>         at
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>> >>>>>         ... 22 more
>> >>>>>
>> >>>>> To replicate this:
>> >>>>>
>> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
>> javaee-example
>> >>>>> $ mvn clean package tomee:run
>>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
I was giving you an example. You need to replace it wink-* junk with
whatever is causing the problems for you..

Romain: in my case, we don't use CXF directly because we have legacy
JAX-RS client stuff that pre-dates JAX-RS 2.0 client stuff. And even
if we didn't, TomEE doesn't yet bundle the nice javax.rs client code
anyway, so one specific implementation over another doesn't seem to
have any use. Bring on JavaEE 7 please! :-)

On Thu, Oct 30, 2014 at 10:39 AM, pankaj Mishra
<pa...@persistent.co.in> wrote:
> hi,
> Thanks for ur reply..
> Currently we are using apache-tomee-jaxrs-1.6.0.2.
> I have tried the steps mentioned
>
> bash$ cat conf/exclusions.list
> default-list
> wink-client
> wink-common
>
> But nothing seems working.The same exception trace I am able to see.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672685.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Recall having fixed it so should be ok with 1.7 for sure.

About an example I spoke about a project ready to run
Le 31 oct. 2014 06:05, "pankaj Mishra" <pa...@persistent.co.in> a
écrit :

> hi jieryn,Romain,
> I have tried both mechanism, suggested by your all.
>
> openejb.additional.exclude=org.apache.wink
>
> putting wink-* in exclusions.list
>
> I hope org.apache.wink.client.ClientConfig is the root cause as the
> exception trace
> "Unable to instantiate Application class:
> org.apache.wink.client.ClientConfig$1$1"
>
> Is this problem specific to apache-tomee-jaxrs-1.6.0.2??
>
>
> the exception trace ::
>
> Oct 31, 2014 10:24:44 AM org.apache.tomee.catalina.TomcatWebAppBuilder
> startInternal
> SEVERE: Unable to deploy collapsed ear in war
>
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]
> org.apache.openejb.OpenEJBException: Unable to instantiate Application
> class: org.apache.wink.client.ClientConfig$1$1:
> org.apache.wink.client.ClientConfig$1$1
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2033)
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1824)
>         at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1179)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: java.lang.InstantiationException:
> org.apache.wink.client.ClientConfig$1$1
>         at java.lang.Class.newInstance(Class.java:359)
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2019)
>         ... 21 more
>
> Oct 31, 2014 10:24:44 AM org.apache.catalina.core.ContainerBase removeChild
> SEVERE: ContainerBase.removeChild: destroy:
> org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
> attempted ([before_destroy]) for component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
> in state [S
>         at
>
> org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
>         at
> org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
>         at
> org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1485)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1466)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1219)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
>
> Oct 31, 2014 10:24:44 AM org.apache.catalina.core.ContainerBase
> addChildInternal
> SEVERE: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.tomee.catalina.TomEERuntimeException:
> org.apache.openejb.OpenEJBException: Unable to instantiate Application
> class: org.apache.wink.client.ClientConfig$1$1:
> org.apache.wink.client.ClientConfig$1$1
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1222)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
>         at
>
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>         at
>
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
>         at
>
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>         at
>
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>         ... 10 more
> Caused by: org.apache.openejb.OpenEJBException: Unable to instantiate
> Application class: org.apache.wink.client.ClientConfig$1$1:
> org.apache.wink.client.ClientConfig$1$1
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2033)
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1824)
>         at
>
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
>         at
>
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>         at
>
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>         at
>
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1179)
>         ... 16 more
> Caused by: java.lang.InstantiationException:
> org.apache.wink.client.ClientConfig$1$1
>         at java.lang.Class.newInstance(Class.java:359)
>         at
>
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2019)
>         ... 21 more
>
> Oct 31, 2014 10:24:44 AM org.apache.catalina.startup.HostConfig deployWAR
> SEVERE: Error deploying web application archive
> C:\TomEE_2\webapps\ClientWithoutMaven.war
> java.lang.IllegalStateException: ContainerBase.addChild: start:
> org.apache.catalina.LifecycleException: Failed to start component
>
> [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
>         at
>
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:262)
>         at
>
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>         at
>
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672696.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by pankaj Mishra <pa...@persistent.co.in>.
hi jieryn,Romain,
I have tried both mechanism, suggested by your all.

openejb.additional.exclude=org.apache.wink 

putting wink-* in exclusions.list  

I hope org.apache.wink.client.ClientConfig is the root cause as the
exception trace
"Unable to instantiate Application class:
org.apache.wink.client.ClientConfig$1$1"

Is this problem specific to apache-tomee-jaxrs-1.6.0.2??


the exception trace ::

Oct 31, 2014 10:24:44 AM org.apache.tomee.catalina.TomcatWebAppBuilder
startInternal
SEVERE: Unable to deploy collapsed ear in war
StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]
org.apache.openejb.OpenEJBException: Unable to instantiate Application
class: org.apache.wink.client.ClientConfig$1$1:
org.apache.wink.client.ClientConfig$1$1
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2033)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1824)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1179)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.lang.InstantiationException:
org.apache.wink.client.ClientConfig$1$1
        at java.lang.Class.newInstance(Class.java:359)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2019)
        ... 21 more

Oct 31, 2014 10:24:44 AM org.apache.catalina.core.ContainerBase removeChild
SEVERE: ContainerBase.removeChild: destroy:
org.apache.catalina.LifecycleException: An invalid Lifecycle transition was
attempted ([before_destroy]) for component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
in state [S
        at
org.apache.catalina.util.LifecycleBase.invalidTransition(LifecycleBase.java:409)
        at
org.apache.catalina.util.LifecycleBase.destroy(LifecycleBase.java:299)
        at
org.apache.catalina.core.ContainerBase.removeChild(ContainerBase.java:1041)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1485)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.undeploy(TomcatWebAppBuilder.java:1466)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1219)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)

Oct 31, 2014 10:24:44 AM org.apache.catalina.core.ContainerBase
addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: org.apache.tomee.catalina.TomEERuntimeException:
org.apache.openejb.OpenEJBException: Unable to instantiate Application
class: org.apache.wink.client.ClientConfig$1$1:
org.apache.wink.client.ClientConfig$1$1
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1222)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1054)
        at
org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
        at
org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
        at
org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
        at
org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
        at
org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        ... 10 more
Caused by: org.apache.openejb.OpenEJBException: Unable to instantiate
Application class: org.apache.wink.client.ClientConfig$1$1:
org.apache.wink.client.ClientConfig$1$1
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2033)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1824)
        at
org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:355)
        at
org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
        at
org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
        at
org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1179)
        ... 16 more
Caused by: java.lang.InstantiationException:
org.apache.wink.client.ClientConfig$1$1
        at java.lang.Class.newInstance(Class.java:359)
        at
org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2019)
        ... 21 more

Oct 31, 2014 10:24:44 AM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive
C:\TomEE_2\webapps\ClientWithoutMaven.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ClientWithoutMaven]]
        at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:904)
        at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:632)
        at
org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1073)
        at
org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857)
        at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672696.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Maybe try in conf/system.properties:

openejb.additional.exclude=org.apache.wink



Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau


2014-10-30 15:39 GMT+01:00 pankaj Mishra <pa...@persistent.co.in>:
> hi,
> Thanks for ur reply..
> Currently we are using apache-tomee-jaxrs-1.6.0.2.
> I have tried the steps mentioned
>
> bash$ cat conf/exclusions.list
> default-list
> wink-client
> wink-common
>
> But nothing seems working.The same exception trace I am able to see.
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672685.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by pankaj Mishra <pa...@persistent.co.in>.
hi,
Thanks for ur reply..
Currently we are using apache-tomee-jaxrs-1.6.0.2.
I have tried the steps mentioned 

bash$ cat conf/exclusions.list
default-list
wink-client
wink-common 

But nothing seems working.The same exception trace I am able to see.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672685.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
First, you ought to be using Apache TomEE 1.6.1 if you require the
1.6.x series, or preferrably the 1.7.1 release train.

Second, just add the file in $TOMEE_HOME/conf, here's mine as an example:

bash$ cat conf/exclusions.list
default-list
wink-client
wink-common


On Thu, Oct 30, 2014 at 10:18 AM, pankaj Mishra
<pa...@persistent.co.in> wrote:
> Hi,
> I have just started using TOMEE.I am facing the same issue, while deploying
> Apache Wink application on TOMEE.
> Could you please provide the detailed steps of adding entries in
> exclusions.list i.e wink-client,default.list as I am not able to get it
> working.
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672681.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

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

just add a jar prefix by line.

"default-list" is a shortcut for all our default exclusions.

exclusions.list can be in tomee/conf or WEB-INF of your war.

Just curious: why not using CXF and TomEE JAXRS?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2014-10-30 15:18 GMT+01:00 pankaj Mishra <pa...@persistent.co.in>:
> Hi,
> I have just started using TOMEE.I am facing the same issue, while deploying
> Apache Wink application on TOMEE.
> Could you please provide the detailed steps of adding entries in
> exclusions.list i.e wink-client,default.list as I am not able to get it
> working.
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672681.html
> Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by pankaj Mishra <pa...@persistent.co.in>.
<http://tomee-openejb.979440.n4.nabble.com/file/n4672684/issue.jpg> 

Forget to add the snapshot of the error.



--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672684.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by pankaj Mishra <pa...@persistent.co.in>.
Hi,
I have just started using TOMEE.I am facing the same issue, while deploying
Apache Wink application on TOMEE. 
Could you please provide the detailed steps of adding entries in
exclusions.list i.e wink-client,default.list as I am not able to get it
working. 




--
View this message in context: http://tomee-openejb.979440.n4.nabble.com/Apache-TomEE-1-6-0-SNAPSHOT-Recent-Regression-with-REST-Application-tp4665517p4672681.html
Sent from the TomEE Users mailing list archive at Nabble.com.

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Add "default-list" line too (IIRC)
Le 22 nov. 2013 07:55, "jieryn" <ji...@gmail.com> a écrit :

> You rock! :-)
>
> So, just $CATALINA_BASE/conf/exclusions.list file with a single line
> (assuming I have never done this before) with text wink-client ? Does
> it need .jar suffix?
>
> Thanks!
>
> On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
> > Hi
> >
> > https://issues.apache.org/jira/browse/TOMEE-1085
> >
> > btw you can add  in  exclusions.list the line "wink-client" to
> workaround it
> >
> > Romain Manni-Bucau
> > Twitter: @rmannibucau
> > Blog: http://rmannibucau.wordpress.com/
> > LinkedIn: http://fr.linkedin.com/in/rmannibucau
> > Github: https://github.com/rmannibucau
> >
> >
> >
> > 2013/11/22 jieryn <ji...@gmail.com>:
> >> Yes, I'm sure. Here is an example project which demonstrates the
> >> problem: https://github.com/jieryn/tomee-wink-failure
> >>
> >> Make sure you run: mvn clean package tomee:run
> >>
> >> You will see the java.lang.InstantiationException being thrown.
> >>
> >>
> >> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
> >> <rm...@gmail.com> wrote:
> >>> Hi
> >>>
> >>> are you sure the binaries were well upgraded?
> >>> Romain Manni-Bucau
> >>> Twitter: @rmannibucau
> >>> Blog: http://rmannibucau.wordpress.com/
> >>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> >>> Github: https://github.com/rmannibucau
> >>>
> >>>
> >>>
> >>> 2013/11/21 jieryn <ji...@gmail.com>:
> >>>> This is happening again with the recently released Apache TomEE 1.6.0
> Plus.
> >>>>
> >>>> Aaargh.
> >>>>
> >>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
> >>>>> Some changes in between
> >>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
> >>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
> >>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
> >>>>> in a jar:
> >>>>>
> >>>>> SEVERE: Unable to deploy collapsed ear in war
> >>>>>
> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
> >>>>> org.apache.openejb.OpenEJBException: Unable to instantiate
> Application
> >>>>> class: org.apache.wink.client.ClientConfig$1$1:
> >>>>> org.apache.wink.client.ClientConfig$1$1
> >>>>>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
> >>>>>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
> >>>>>         at
> org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
> >>>>>         at
> org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
> >>>>>         at
> org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
> >>>>>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
> >>>>>         at
> org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
> >>>>>         at
> org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
> >>>>>         at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> >>>>>         at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> >>>>>         at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
> >>>>>         at
> org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
> >>>>>         at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
> >>>>>         at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
> >>>>>         at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
> >>>>>         at
> org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
> >>>>>         at
> org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
> >>>>>         at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
> >>>>>         at
> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> >>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> >>>>>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >>>>>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >>>>>         at java.lang.Thread.run(Thread.java:724)
> >>>>> Caused by: java.lang.InstantiationException:
> >>>>> org.apache.wink.client.ClientConfig$1$1
> >>>>>         at java.lang.Class.newInstance(Class.java:359)
> >>>>>         at
> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
> >>>>>         ... 22 more
> >>>>>
> >>>>> To replicate this:
> >>>>>
> >>>>> $ git clone https://github.com/jieryn/javaee-example ; cd
> javaee-example
> >>>>> $ mvn clean package tomee:run
>

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
You rock! :-)

So, just $CATALINA_BASE/conf/exclusions.list file with a single line
(assuming I have never done this before) with text wink-client ? Does
it need .jar suffix?

Thanks!

On Fri, Nov 22, 2013 at 1:41 AM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> Hi
>
> https://issues.apache.org/jira/browse/TOMEE-1085
>
> btw you can add  in  exclusions.list the line "wink-client" to workaround it
>
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2013/11/22 jieryn <ji...@gmail.com>:
>> Yes, I'm sure. Here is an example project which demonstrates the
>> problem: https://github.com/jieryn/tomee-wink-failure
>>
>> Make sure you run: mvn clean package tomee:run
>>
>> You will see the java.lang.InstantiationException being thrown.
>>
>>
>> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
>> <rm...@gmail.com> wrote:
>>> Hi
>>>
>>> are you sure the binaries were well upgraded?
>>> Romain Manni-Bucau
>>> Twitter: @rmannibucau
>>> Blog: http://rmannibucau.wordpress.com/
>>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>>> Github: https://github.com/rmannibucau
>>>
>>>
>>>
>>> 2013/11/21 jieryn <ji...@gmail.com>:
>>>> This is happening again with the recently released Apache TomEE 1.6.0 Plus.
>>>>
>>>> Aaargh.
>>>>
>>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>>>> Some changes in between
>>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>>>> in a jar:
>>>>>
>>>>> SEVERE: Unable to deploy collapsed ear in war
>>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>>>> org.apache.openejb.OpenEJBException: Unable to instantiate Application
>>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>>>> org.apache.wink.client.ClientConfig$1$1
>>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>>>         at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>>>         at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>>>         at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>>>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>>>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>>>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>>>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>>         at java.lang.Thread.run(Thread.java:724)
>>>>> Caused by: java.lang.InstantiationException:
>>>>> org.apache.wink.client.ClientConfig$1$1
>>>>>         at java.lang.Class.newInstance(Class.java:359)
>>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>>>         ... 22 more
>>>>>
>>>>> To replicate this:
>>>>>
>>>>> $ git clone https://github.com/jieryn/javaee-example ; cd javaee-example
>>>>> $ mvn clean package tomee:run

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

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

https://issues.apache.org/jira/browse/TOMEE-1085

btw you can add  in  exclusions.list the line "wink-client" to workaround it

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/11/22 jieryn <ji...@gmail.com>:
> Yes, I'm sure. Here is an example project which demonstrates the
> problem: https://github.com/jieryn/tomee-wink-failure
>
> Make sure you run: mvn clean package tomee:run
>
> You will see the java.lang.InstantiationException being thrown.
>
>
> On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
> <rm...@gmail.com> wrote:
>> Hi
>>
>> are you sure the binaries were well upgraded?
>> Romain Manni-Bucau
>> Twitter: @rmannibucau
>> Blog: http://rmannibucau.wordpress.com/
>> LinkedIn: http://fr.linkedin.com/in/rmannibucau
>> Github: https://github.com/rmannibucau
>>
>>
>>
>> 2013/11/21 jieryn <ji...@gmail.com>:
>>> This is happening again with the recently released Apache TomEE 1.6.0 Plus.
>>>
>>> Aaargh.
>>>
>>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>>> Some changes in between
>>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>>> in a jar:
>>>>
>>>> SEVERE: Unable to deploy collapsed ear in war
>>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>>> org.apache.openejb.OpenEJBException: Unable to instantiate Application
>>>> class: org.apache.wink.client.ClientConfig$1$1:
>>>> org.apache.wink.client.ClientConfig$1$1
>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>>         at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>>         at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>>         at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>>         at java.lang.Thread.run(Thread.java:724)
>>>> Caused by: java.lang.InstantiationException:
>>>> org.apache.wink.client.ClientConfig$1$1
>>>>         at java.lang.Class.newInstance(Class.java:359)
>>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>>         ... 22 more
>>>>
>>>> To replicate this:
>>>>
>>>> $ git clone https://github.com/jieryn/javaee-example ; cd javaee-example
>>>> $ mvn clean package tomee:run

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

Posted by jieryn <ji...@gmail.com>.
Yes, I'm sure. Here is an example project which demonstrates the
problem: https://github.com/jieryn/tomee-wink-failure

Make sure you run: mvn clean package tomee:run

You will see the java.lang.InstantiationException being thrown.


On Thu, Nov 21, 2013 at 4:26 PM, Romain Manni-Bucau
<rm...@gmail.com> wrote:
> Hi
>
> are you sure the binaries were well upgraded?
> Romain Manni-Bucau
> Twitter: @rmannibucau
> Blog: http://rmannibucau.wordpress.com/
> LinkedIn: http://fr.linkedin.com/in/rmannibucau
> Github: https://github.com/rmannibucau
>
>
>
> 2013/11/21 jieryn <ji...@gmail.com>:
>> This is happening again with the recently released Apache TomEE 1.6.0 Plus.
>>
>> Aaargh.
>>
>> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>>> Some changes in between
>>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>>> failure at TomEE start up because of an javax.ws.rs.core.Application
>>> in a jar:
>>>
>>> SEVERE: Unable to deploy collapsed ear in war
>>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>>> org.apache.openejb.OpenEJBException: Unable to instantiate Application
>>> class: org.apache.wink.client.ClientConfig$1$1:
>>> org.apache.wink.client.ClientConfig$1$1
>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>>         at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>>         at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>>         at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>>         at java.lang.Thread.run(Thread.java:724)
>>> Caused by: java.lang.InstantiationException:
>>> org.apache.wink.client.ClientConfig$1$1
>>>         at java.lang.Class.newInstance(Class.java:359)
>>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>>         ... 22 more
>>>
>>> To replicate this:
>>>
>>> $ git clone https://github.com/jieryn/javaee-example ; cd javaee-example
>>> $ mvn clean package tomee:run

Re: Apache TomEE 1.6.0-SNAPSHOT -- Recent Regression with REST Application

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

are you sure the binaries were well upgraded?
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2013/11/21 jieryn <ji...@gmail.com>:
> This is happening again with the recently released Apache TomEE 1.6.0 Plus.
>
> Aaargh.
>
> On Wed, Oct 9, 2013 at 3:09 PM, jieryn <ji...@gmail.com> wrote:
>> Some changes in between
>> apache-tomee-1.6.0-20131008.041119-199-plus.tar.gz and
>> apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz are causing a
>> failure at TomEE start up because of an javax.ws.rs.core.Application
>> in a jar:
>>
>> SEVERE: Unable to deploy collapsed ear in war
>> StandardEngine[Catalina].StandardHost[localhost].StandardContext[/javaee-1-SNAPSHOT]
>> org.apache.openejb.OpenEJBException: Unable to instantiate Application
>> class: org.apache.wink.client.ClientConfig$1$1:
>> org.apache.wink.client.ClientConfig$1$1
>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2018)
>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:1813)
>>         at org.apache.openejb.config.AnnotationDeployer.deploy(AnnotationDeployer.java:349)
>>         at org.apache.openejb.config.ConfigurationFactory$Chain.deploy(ConfigurationFactory.java:396)
>>         at org.apache.openejb.config.ConfigurationFactory.configureApplication(ConfigurationFactory.java:938)
>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal(TomcatWebAppBuilder.java:1124)
>>         at org.apache.tomee.catalina.TomcatWebAppBuilder.configureStart(TomcatWebAppBuilder.java:1004)
>>         at org.apache.tomee.catalina.GlobalListenerSupport.lifecycleEvent(GlobalListenerSupport.java:127)
>>         at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
>>         at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
>>         at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5322)
>>         at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>>         at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
>>         at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
>>         at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
>>         at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:976)
>>         at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1653)
>>         at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
>>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
>>         at java.util.concurrent.FutureTask.run(FutureTask.java:166)
>>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
>>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
>>         at java.lang.Thread.run(Thread.java:724)
>> Caused by: java.lang.InstantiationException:
>> org.apache.wink.client.ClientConfig$1$1
>>         at java.lang.Class.newInstance(Class.java:359)
>>         at org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>>         ... 22 more
>>
>> To replicate this:
>>
>> $ git clone https://github.com/jieryn/javaee-example ; cd javaee-example
>> $ mvn clean package tomee:run