Ah, not deliberately. I am using Apache Wink for RestClient, until we
support Java EE 7 / JAX-RS 2.0 *cough,cough* :-)

And that wink-client had a dependency on wink-common which included
lots of core internal stuff. After having removed it, the application
starts!

Also, I would report that this 20131009-SNAPSHOT seems to have
resolved the issues with bad parsing for web-fragment.xml files,
thanks!!

On Wed, Oct 9, 2013 at 11:56 AM, Romain Manni-Bucau
<rmannibu...@gmail.com> wrote:
> Hmm
>
> I saw wink and thought it was what you were using as server.
>
> Note: it can be a side effect of another fix commited yesterday. I updated
> it this morning (for another reason) but it can have fixed it too. Maybe
> give it another try tomorrow (or build it from sources)
>
> *Romain Manni-Bucau*
> *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
> *Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
> *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
> *Github: https://github.com/rmannibucau*
>
>
>
> 2013/10/9 jieryn <jie...@gmail.com>
>
>> Sorry? This means I need to have a context-param defined for
>> javax.ws.rs.Application? I haven't done that before, TomEE used to
>> just auto-discover my javax.ws.rs.core.Application instance.
>>
>> On Wed, Oct 9, 2013 at 11:42 AM, Romain Manni-Bucau
>> <rmannibu...@gmail.com> wrote:
>> > Hi
>> >
>> > this is link to the config of wink javax.ws.rs.Application context param
>> > value maybe
>> >
>> >
>> >
>> > *Romain Manni-Bucau*
>> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> > *Blog: **http://rmannibucau.wordpress.com/*<
>> http://rmannibucau.wordpress.com/>
>> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> > *Github: https://github.com/rmannibucau*
>> >
>> >
>> >
>> > 2013/10/9 jieryn <jie...@gmail.com>
>> >
>> >> Thanks, I gave apache-tomee-1.6.0-20131009.041119-200-plus.tar.gz a
>> >> try, but am now taking other errors:
>> >>
>> >> INFO [localhost-startStop-1]
>> >> org.apache.openejb.config.ConfigurationFactory.configureApplication
>> >> Configuring enterprise application:
>> >> /srv/apache-tomee-plus-1.6.0-SNAPSHOT/webapps/ROOT
>> >> SEVERE [localhost-startStop-1]
>> >> org.apache.tomee.catalina.TomcatWebAppBuilder.startInternal Unable to
>> >> deploy collapsed ear in war
>> >> StandardEngine[Catalina].StandardHost[localhost].StandardContext[]
>> >>  org.apache.openejb.OpenEJBException: Unable to access Application
>> >> class: org.apache.wink.client.ClientConfig$1$1: Class
>> >> org/apache/openejb/config/AnnotationDeployer$ProcessAnnotatedBeans
>> >> illegally accessing " " class org/apache/wink/cl$
>> >>         at
>> >>
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2020)
>> >>         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:482)
>> >>         at
>> >> java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:345)
>> >>         at java.util.concurrent.FutureTask.run(FutureTask.java:177)
>> >>         at
>> >>
>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1121)
>> >>         at
>> >>
>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:614)
>> >>         at java.lang.Thread.run(Thread.java:779)
>> >> Caused by: java.lang.IllegalAccessException: Class
>> >> org/apache/openejb/config/AnnotationDeployer$ProcessAnnotatedBeans
>> >> illegally accessing " " class org/apache/wink/client/ClientConfig$1$1
>> >>         at java.lang.J9VMInternals.newInstanceImpl(Native Method)
>> >>         at java.lang.Class.newInstance(Class.java:1377)
>> >>         at
>> >>
>> org.apache.openejb.config.AnnotationDeployer$ProcessAnnotatedBeans.deploy(AnnotationDeployer.java:2004)
>> >>         ... 22 more
>> >>
>> >> On Tue, Oct 8, 2013 at 12:10 PM, Romain Manni-Bucau
>> >> <rmannibu...@gmail.com> wrote:
>> >> > pushed sthg about, not sure it is it since i didn't reproduce but saw
>> >> > something very weird (surely a typo due to IDE completion)
>> >> >
>> >> > *Romain Manni-Bucau*
>> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> >> > *Blog: **http://rmannibucau.wordpress.com/*<
>> >> http://rmannibucau.wordpress.com/>
>> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> >> > *Github: https://github.com/rmannibucau*
>> >> >
>> >> >
>> >> >
>> >> > 2013/10/8 jieryn <jie...@gmail.com>
>> >> >
>> >> >> Right,
>> >> >>
>> >> >> I have this: https://github.com/jieryn/web-fragment-example
>> >> >> But it works, much to my surprise and sadness.
>> >> >>
>> >> >> Would it be useful if the mergeWeb would print out the
>> >> >> web-fragment.xml it is processing if there is an error? I think this
>> >> >> will be more useful as more people take increasing advantage of
>> >> >> Servlet 3.x modular features.
>> >> >>
>> >> >>
>> >> >> On Tue, Oct 8, 2013 at 10:53 AM, Romain Manni-Bucau
>> >> >> <rmannibu...@gmail.com> wrote:
>> >> >> > Hi
>> >> >> >
>> >> >> > it doesn't reproduce creating a project with a dependency of the
>> same
>> >> >> kind
>> >> >> > (jar) with a web-fragment?
>> >> >> >
>> >> >> > *Romain Manni-Bucau*
>> >> >> > *Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
>> >> >> > *Blog: **http://rmannibucau.wordpress.com/*<
>> >> >> http://rmannibucau.wordpress.com/>
>> >> >> > *LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
>> >> >> > *Github: https://github.com/rmannibucau*
>> >> >> >
>> >> >> >
>> >> >> >
>> >> >> > 2013/10/8 jieryn <jie...@gmail.com>
>> >> >> >
>> >> >> >> I'm using Apache TomEE 1.6.0-SNAPSHOT from October 8th. I have
>> seen
>> >> >> >> these errors for a while now, but am not able to reproduce it in a
>> >> >> >> sample project. I have a lot of WEB-INF/lib/blah.jar files which
>> >> >> >> contain META-INF/web-fragment.xml files which configure the system
>> >> >> >> modularly. At start up, I see the following:
>> >> >> >>
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> >> >> local:"error-page").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> local:"filter").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> local:"listener").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> >> >> local:"mime-mapping").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> >> >> local:"security-constraint").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> >> >> local:"session-config").
>> >> >> >> javax.xml.bind.UnmarshalException: unexpected element
>> >> >> >> (uri:"http://www.openejb.org/System/Configuration";,
>> >> >> >> local:"welcome-file-list").
>> >> >> >>
>> >> >> >> Expected elements are
>> >> >> >> <{http://java.sun.com/xml/ns/javaee}session-config>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}servlet-mapping>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}pre-destroy>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}mime-mapping>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}message-destination>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}persistence-unit-ref>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}login-config>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}error-page>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}persistence-context-ref>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}icon>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}servlet>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}env-entry>,<{
>> http://java.sun.comf
>> >> >,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}ejb-ref>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}security-constraint>,<{
>> >> >> >> http://java.sun.com/xml/ns/javaee}ejb-local-ref>
>> >> >> >>
>> >> >> >> Each instance has that Expected elements long line after it,
>> however
>> >> I
>> >> >> >> truncated it for this email.
>> >> >> >>
>> >> >> >> Any ideas?
>> >> >> >>
>> >> >>
>> >>
>>

Reply via email to