Hi All, We can specify this filter in global web.xml. However some profiles don't need this feature, therefore, OSGI won't load this bundle. If we use tomcat annotations, we get this CNF exception. since we are using a shared plugins folder among the profiles. therefore we can't use annotations.
@Identity Team: Can you fix this properly. [1] https://github.com/wso2/carbon-deployment/blob/4.7.x/components/webapp-mgt/org.wso2.carbon.webapp.mgt/src/main/java/org/wso2/carbon/webapp/mgt/filter/AuthorizationHeaderFilter.java Thanks, Madhawa On Fri, May 11, 2018 at 8:49 AM, Madhawa Gunasekara <madha...@wso2.com> wrote: > Hi All, > > I'm getting this ClassNotFound exception, I have seen that this issue can > be avoid by installing web app hosting features to the p2-profile [1]. but > I don't need web apps hosting feature for the p2-profile > > How can I avoid this issue? > > [2018-05-11 08:39:03,831] [EI-Lightweight] ERROR - StandardContext > Exception starting filter org.wso2.carbon.webapp.mgt.filter. > AuthorizationHeaderFilter > java.lang.ClassNotFoundException: org.wso2.carbon.webapp.mgt.filter. > AuthorizationHeaderFilter > at org.apache.catalina.loader.WebappClassLoaderBase.loadClass( > WebappClassLoaderBase.java:1907) > at org.apache.catalina.loader.WebappClassLoaderBase.loadClass( > WebappClassLoaderBase.java:1750) > at org.apache.catalina.core.DefaultInstanceManager.loadClass( > DefaultInstanceManager.java:534) > at org.apache.catalina.core.DefaultInstanceManager. > loadClassMaybePrivileged(DefaultInstanceManager.java:516) > at org.apache.catalina.core.DefaultInstanceManager.newInstance( > DefaultInstanceManager.java:148) > at org.apache.catalina.core.ApplicationFilterConfig.getFilter( > ApplicationFilterConfig.java:264) > at org.apache.catalina.core.ApplicationFilterConfig.<init> > (ApplicationFilterConfig.java:108) > at org.apache.catalina.core.StandardContext.filterStart( > StandardContext.java:4958) > at org.apache.catalina.core.StandardContext.startInternal( > StandardContext.java:5660) > at org.apache.catalina.util.LifecycleBase.start( > LifecycleBase.java:145) > at org.apache.catalina.core.ContainerBase$StartChild.call( > ContainerBase.java:1700) > at org.apache.catalina.core.ContainerBase$StartChild.call( > ContainerBase.java:1690) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker( > ThreadPoolExecutor.java:1149) > at java.util.concurrent.ThreadPoolExecutor$Worker.run( > ThreadPoolExecutor.java:624) > at java.lang.Thread.run(Thread.java:748) > [2018-05-11 08:39:03,833] [EI-Lightweight] ERROR - StandardContext One or > more Filters failed to start. Full details will be found in the appropriate > container log file > [2018-05-11 08:39:03,833] [EI-Lightweight] ERROR - StandardContext Context > [/] startup failed due to previous errors > > [1] https://github.com/wso2/product-ei/issues/1275 > > Thanks, > Madhawa > > -- > *Madhawa Gunasekara* > Senior Software Engineer > WSO2 Inc.; http://wso2.com > lean.enterprise.middleware > > mobile: +94 719411002 <+94+719411002> > blog: *http://madhawa-gunasekara.blogspot.com > <http://madhawa-gunasekara.blogspot.com>* > linkedin: *http://lk.linkedin.com/in/mgunasekara > <http://lk.linkedin.com/in/mgunasekara>* > -- *Madhawa Gunasekara* Senior Software Engineer WSO2 Inc.; http://wso2.com lean.enterprise.middleware mobile: +94 719411002 <+94+719411002> blog: *http://madhawa-gunasekara.blogspot.com <http://madhawa-gunasekara.blogspot.com>* linkedin: *http://lk.linkedin.com/in/mgunasekara <http://lk.linkedin.com/in/mgunasekara>*
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev