cxf-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Beryozkin <sberyoz...@gmail.com>
Subject Re: Shiro issue with CXF
Date Thu, 28 Apr 2016 20:54:32 GMT
Hi

I've never used Shiro, perhaps

https://ops4j1.jira.com/wiki/display/PAXSHIRO

can help

Sergey

On 28/04/16 18:39, Pratt, Jason wrote:
> Hello - I am having an issue popping up with Shiro to provide authentication to our front
end. The log says it's a beanutils issue, but I have a servicemix bundle that provides the
class in question so I am a bit confused. I've installed Shiro for Karaf via its feature.
>
> Has anyone encountered this or have a recommendation to correct it?
>
> <dependency>
>           <groupId>org.apache.servicemix.bundles</groupId>
>           <artifactId>org.apache.servicemix.bundles.commons-beanutils</artifactId>
>           <version>1.8.3_2</version>
> </dependency>
>
>
> 2016-04-27 11:43:22,573 | WARN  | tp1987743246-555 | PhaseInterceptorChain          
 | 174 - org.apache.cxf.cxf-core - 3.1.4 | Application ShiroServiceImpl has thrown exception,
unwinding now
> org.apache.cxf.interceptor.Fault: org/apache/commons/beanutils/PropertyUtils
>          at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:200)[187:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.4]
>          at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:99)[187:org.apache.cxf.cxf-rt-frontend-jaxrs:3.1.4]
>          at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)[174:org.apache.cxf.cxf-core:3.1.4]
>          at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)[82:javax.servlet-api:3.1.0]
>          at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)[200:org.apache.cxf.cxf-rt-transports-http:3.1.4]
>          at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:812)[133:org.eclipse.jetty.servlet:9.2.14.v20151106]
>          at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:587)[133:org.eclipse.jetty.servlet:9.2.14.v20151106]
>          at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:70)[151:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:577)[131:org.eclipse.jetty.security:9.2.14.v20151106]
>          at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:223)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1127)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:271)[151:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>          at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:515)[133:org.eclipse.jetty.servlet:9.2.14.v20151106]
>          at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1061)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80)[151:org.ops4j.pax.web.pax-web-jetty:4.2.4]
>          at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.Server.handle(Server.java:499)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:311)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:257)[132:org.eclipse.jetty.server:9.2.14.v20151106]
>          at org.eclipse.jetty.io.AbstractConnection$2.run(AbstractConnection.java:544)[124:org.eclipse.jetty.io:9.2.14.v20151106]
>          at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[135:org.eclipse.jetty.util:9.2.14.v20151106]
>          at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[135:org.eclipse.jetty.util:9.2.14.v20151106]
>          at java.lang.Thread.run(Thread.java:745)[:1.8.0_66]
> Caused by: java.lang.NoClassDefFoundError: org/apache/commons/beanutils/PropertyUtils
>          at org.apache.shiro.config.ReflectionBuilder.isTypedProperty(ReflectionBuilder.java:251)[320:org.apache.shiro.core:1.2.4]
>          at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:544)[320:org.apache.shiro.core:1.2.4]
>          at org.apache.shiro.config.ReflectionBuilder.applySingleProperty(ReflectionBuilder.java:206)[320:org.apache.shiro.core:1.2.4]
>          at org.apache.shiro.config.ReflectionBuilder.applyProperty(ReflectionBuilder.java:167)[320:org.apache.shiro.core:1.2.4]
>          at org.apache.shiro.config.ReflectionBuilder.buildObjects(ReflectionBuilder.java:124)[320:org.apache.shiro.core:1.2.4]
>
>
>
>


-- 
Sergey Beryozkin

Talend Community Coders
http://coders.talend.com/

Mime
View raw message