tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Romain Manni-Bucau <rmannibu...@gmail.com>
Subject Re: Illegal access to woodstox classes
Date Thu, 03 Nov 2016 16:19:46 GMT
likely a dependency conflict (can be a transitive one for this)


Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<https://blog-rmannibucau.rhcloud.com> | Old Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-11-03 17:07 GMT+01:00 gchauvet <gchauvet@zatarox.com>:

> Hi,
>
> I've performed some empirical tests.... In my java class, I've added this
> line to test if DefaultInputResolver.class is really not in my classpath
> (and I force woodstox as a direct dependency in my POM):
>
> System.out.println(DefaultInputResolver.class);
>
> After restarting TomEE and try to connect to my CMIS server, I get this new
> stacktrace :
>
> java.lang.IllegalStateException: Illegal access: this web application
> instance has been stopped already. Could not load
> [*com.ctc.wstx.io.UTF8Reader*]. The following stack trace is thrown for
> debugging purposes as well as to attempt to terminate the thread which
> caused the illegal access.
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.
> checkStateForResourceLoading(WebappClassLoaderBase.java:1302)
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.
> checkStateForClassLoading(WebappClassLoaderBase.java:1290)
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
> WebappClassLoaderBase.java:1155)
>         at
> org.apache.tomee.catalina.TomEEWebappClassLoader.loadClass(
> TomEEWebappClassLoader.java:201)
>         at
> org.apache.catalina.loader.WebappClassLoaderBase.loadClass(
> WebappClassLoaderBase.java:1116)
>         at com.ctc.wstx.stax.WstxInputFactory.createSR(
> WstxInputFactory.java:627)
>         at
> com.ctc.wstx.stax.WstxInputFactory.createXMLStreamReader(
> WstxInputFactory.java:331)
>         at
> org.apache.cxf.staxutils.StaxUtils.createXMLStreamReader(
> StaxUtils.java:1704)
>         at
> org.apache.cxf.interceptor.StaxInInterceptor.handleMessage(
> StaxInInterceptor.java:123)
>         at
> org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(
> PhaseInterceptorChain.java:308)
>         at
> org.apache.cxf.transport.ChainInitiationObserver.onMessage(
> ChainInitiationObserver.java:121)
>         at
> org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(
> AbstractHTTPDestination.java:254)
>         at
> org.apache.cxf.transport.servlet.ServletController.invokeDestination(
> ServletController.java:234)
>         at
> org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:208)
>         at
> org.apache.cxf.transport.servlet.ServletController.
> invoke(ServletController.java:160)
>         at
> org.apache.cxf.transport.servlet.CXFNonSpringServlet.
> invoke(CXFNonSpringServlet.java:180)
>         at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(
> AbstractHTTPServlet.java:298)
>         at
> org.apache.chemistry.opencmis.server.impl.webservices.
> CmisWebServicesServlet.handleRequest(CmisWebServicesServlet.java:181)
>         at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> doPost(AbstractHTTPServlet.java:217)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
>         at
> org.apache.cxf.transport.servlet.AbstractHTTPServlet.
> service(AbstractHTTPServlet.java:273)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:230)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.tomcat.websocket.server.WsFilter.doFilter(
> WsFilter.java:52)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:192)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at org.apache.openejb.server.httpd.EEFilter.doFilter(
> EEFilter.java:65)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
> ApplicationFilterChain.java:192)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(
> ApplicationFilterChain.java:165)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(
> StandardWrapperValve.java:198)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(
> StandardContextValve.java:108)
>         at org.apache.tomee.catalina.OpenEJBValve.invoke(
> OpenEJBValve.java:44)
>         at
> org.apache.catalina.authenticator.AuthenticatorBase.invoke(
> AuthenticatorBase.java:522)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(
> StandardHostValve.java:140)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(
> ErrorReportValve.java:79)
>         at
> org.apache.catalina.valves.AbstractAccessLogValve.invoke(
> AbstractAccessLogValve.java:620)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(
> StandardEngineValve.java:87)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(
> CoyoteAdapter.java:349)
>         at
> org.apache.coyote.http11.Http11Processor.service(
> Http11Processor.java:1110)
>         at
> org.apache.coyote.AbstractProcessorLight.process(
> AbstractProcessorLight.java:66)
>         at
> org.apache.coyote.AbstractProtocol$ConnectionHandler.process(
> AbstractProtocol.java:785)
>         at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.
> doRun(NioEndpoint.java:1425)
>         at
> org.apache.tomcat.util.net.SocketProcessorBase.run(
> SocketProcessorBase.java:52)
>         at
> java.util.concurrent.ThreadPoolExecutor.runWorker(
> ThreadPoolExecutor.java:1142)
>         at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(
> ThreadPoolExecutor.java:617)
>         at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(
> TaskThread.java:61)
>         at java.lang.Thread.run(Thread.java:745)
>
> Well, I don't understand why DefaultInputResolver is resolved from my
> application side and com.ctc.wstx.io.UTF8Reader who is is the same package
> isn't.
>
>
>
>
>
>
> --
> View this message in context: http://tomee-openejb.979440.
> n4.nabble.com/Illegal-access-to-woodstox-classes-tp4680446p4680463.html
> Sent from the TomEE Users mailing list archive at Nabble.com.
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message