Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

CDI Error for interceptor on Websphere 8.5  RSS feed

 
Vani Kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have just enabled CDI on Websphere 8.5.5 and added interceptors

In beans.xml file


SecurityChecked annotation





In JAX-RS class as below



When i deploy EAR, i get below error.

WebContainerL I WebContainerLifecycle startApplication OpenWebBeans Container is starting...

[10/15/14 14:53:15:259 EDT] 00000067 BeansDeployer E BeansDeployer deploy org.apache.webbeans.exception.WebBeansConfigurationException: Given class : interface com.example.jaxrs.SecurityChecked is not a interceptor class

Any suggestions what would be the cause of this error?
 
Vani Kumar
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My bad!, it should have been like below in beans.xml.

<interceptors>
<class>com.example.jaxrs.SecurityCheckInterceptor</class>
</interceptors>
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!