Hi Farasath, According to the product-is parent pom.xml[1], you have only added the filter-mapping section. But since filter entry is been removed from the default web.xml (which is packed with kernel) you are getting the "unknown filter name *CRLFPreventionFilter"* We didn't remove that class from the kernel, but the filter and filter-mapping entries from the web.xml. Therefore you have to add the filter entry in your web.xml [1] - https://github.com/wso2/product-is/blob/master/modules/distribution/pom.xml#L122
Thanks Thusitha On Mon, Aug 22, 2016 at 3:08 PM, Farasath Ahamed <farasa...@wso2.com> wrote: > Hi All, > > While starting an IS pack built on 4.4.9 we encountered the below error, > > [2016-08-22 13:27:23,225] ERROR {org.apache.catalina.core.ContainerBase} > - A child container failed during start > java.util.concurrent.ExecutionException: > org.apache.catalina.LifecycleException: > Failed to start component [StandardEngine[Catalina].Stan > dardHost[localhost].StandardContext[/]] > at java.util.concurrent.FutureTask.report(FutureTask.java:122) > at java.util.concurrent.FutureTask.get(FutureTask.java:192) > at org.apache.catalina.core.ContainerBase.startInternal(Contain > erBase.java:1119) > at org.apache.catalina.core.StandardHost.startInternal(Standard > Host.java:819) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) > at org.apache.catalina.core.ContainerBase$StartChild.call(Conta > inerBase.java:1571) > at org.apache.catalina.core.ContainerBase$StartChild.call(Conta > inerBase.java:1561) > at java.util.concurrent.FutureTask.run(FutureTask.java:266) > at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPool > Executor.java:1142) > at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoo > lExecutor.java:617) > at java.lang.Thread.run(Thread.java:745) > Caused by: org.apache.catalina.LifecycleException: Failed to start > component [StandardEngine[Catalina].StandardHost[localhost].StandardCo > ntext[/]] > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:153) > ... 6 more > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies > an unknown filter name *CRLFPreventionFilter* > at org.apache.catalina.core.StandardContext.validateFilterMap(S > tandardContext.java:3205) > at org.apache.catalina.core.StandardContext.addFilterMap(Standa > rdContext.java:3170) > at org.apache.catalina.deploy.WebXml.configureContext(WebXml.java:1343) > at org.apache.catalina.startup.ContextConfig.webConfig(ContextC > onfig.java:1355) > at org.apache.catalina.startup.ContextConfig.configureStart(Con > textConfig.java:887) > at org.apache.catalina.startup.ContextConfig.lifecycleEvent(Con > textConfig.java:387) > at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent > (LifecycleSupport.java:117) > at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(Li > fecycleBase.java:90) > at org.apache.catalina.core.StandardContext.startInternal(Stand > ardContext.java:5503) > at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147) > > > We found the root cause to be missing filter entries/mappings for > CRLFPreventionFilter, CSRFPreventionFilter which have been removed from > web.xml packed from the kernel 4.4.9[1]. These entries were available in > kernel 4.4.7[2]. > > We can fix this at IS level by modifying the pom.xml of the distribution. > But isn't this an API change that should not be done in a minor release? > Was this communicated to the product teams? > > > [1] https://github.com/wso2/carbon-kernel/blob/v4.4.9-rc1/ > distribution/kernel/carbon-home/repository/conf/tomcat/ > carbon/WEB-INF/web.xml > [2] https://github.com/wso2/carbon-kernel/blob/v4.4.7/ > distribution/kernel/carbon-home/repository/conf/tomcat/ > carbon/WEB-INF/web.xml#L73 > > > Thanks, > > Farasath Ahamed > Software Engineer, WSO2 Inc.; http://wso2.com > Mobile: +94777603866 > Blog: blog.farazath.com > Twitter: @farazath619 <https://twitter.com/farazath619> > <http://wso2.com/signature> > > > > On Mon, Aug 22, 2016 at 1:17 PM, Madhawa Gunasekara <madha...@wso2.com> > wrote: > >> Hi All, >> >> I couldn't able to build product DSS with kernel 4.4.9 RC1 due to some >> issues in h2 OSGi bundle's export packages. >> >> >> *Missing requirement: WSO2 Carbon - DB Console UI 4.3.6.SNAPSHOT >> (org.wso2.carbon.dbconsole.ui 4.3.6.SNAPSHOT) requires 'package >> org.h2.server.web [1.4.191,1.5.0)' but it could not be found* >> We need to register h2 Web Servlet in our carbon environment to access >> the db console. but in current h2 osgi bundle, it doesn't export [1]. >> therefore can we create an osgi orbit bundle for h2 database to mitigate >> this issue ? >> >> [1] https://github.com/h2database/h2database/blob/master/h2/src/ >> main/META-INF/MANIFEST.MF >> [2] https://github.com/madhawa-gunasekara/carbon-data/blob/maste >> r/components/dbconsole/org.wso2.carbon.dbconsole.ui/src/ >> main/java/org/wso2/carbon/dbconsole/ui/internal/DBConsoleCom >> ponent.java#L56 >> >> Thanks, >> Madhawa >> >> On Mon, Aug 22, 2016 at 10:44 AM, Thusitha Thilina Dayaratne < >> thusit...@wso2.com> wrote: >> >>> Hi DSS/IS Team, >>> >>> Can IS and DSS teams test their products with the carbon kernel 4.4.9 >>> and vote? >>> >>> Thanks >>> Thusitha >>> >>> On Sat, Aug 20, 2016 at 12:22 AM, Thusitha Thilina Dayaratne < >>> thusit...@wso2.com> wrote: >>> >>>> Hi Devs, >>>> >>>> This is the 1st release candidate of WSO2 Carbon Kernel 4.4.9. >>>> >>>> This release fixes the following issues >>>> *https://wso2.org/jira/issues/?filter=13289 >>>> <https://wso2.org/jira/issues/?filter=13289>* >>>> >>>> Please download, test your products with kernel 4.4.9 RC1 and vote. >>>> Vote will be open for 72 hours or as longer as needed. >>>> >>>> *Source and binary distribution files:* >>>> *https://github.com/wso2/carbon-kernel/archive/v4.4.9-rc1.zip >>>> <https://github.com/wso2/carbon-kernel/archive/v4.4.9-rc1.zip>* >>>> http://svn.wso2.org/repos/wso2/people/thusithad/4.4.9/wso2ca >>>> rbon-4.4.9-rc1.zip >>>> >>>> *Maven staging repository* >>>> *https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1035 >>>> <https://maven.wso2.org/nexus/content/repositories/orgwso2carbon-1035>* >>>> >>>> *The tag to be voted upon : * >>>> *https://github.com/wso2/carbon-kernel/releases/tag/v4.4.9-rc1 >>>> <https://github.com/wso2/carbon-kernel/releases/tag/v4.4.9-rc1>* >>>> >>>> [ ] Broken - Do not release (explain why) >>>> [ ] Stable - Go ahead and release >>>> >>>> Thank you >>>> Carbon Team >>>> >>>> -- >>>> Thusitha Dayaratne >>>> Software Engineer >>>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>>> >>>> Mobile +94712756809 >>>> Blog alokayasoya.blogspot.com >>>> About http://about.me/thusithathilina >>>> <http://wso2.com/signature> >>>> >>>> >>>> >>>> >>>> -- >>>> Thusitha Dayaratne >>>> Software Engineer >>>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>>> >>>> Mobile +94712756809 >>>> Blog alokayasoya.blogspot.com >>>> About http://about.me/thusithathilina >>>> <http://wso2.com/signature> >>>> >>>> >>> >>> >>> -- >>> Thusitha Dayaratne >>> Software Engineer >>> WSO2 Inc. - lean . enterprise . middleware | wso2.com >>> >>> Mobile +94712756809 >>> Blog alokayasoya.blogspot.com >>> About http://about.me/thusithathilina >>> <http://wso2.com/signature> >>> >>> >>> _______________________________________________ >>> Dev mailing list >>> Dev@wso2.org >>> http://wso2.org/cgi-bin/mailman/listinfo/dev >>> >>> >> >> >> -- >> *Madhawa Gunasekara* >> Software Engineer >> WSO2 Inc.; http://wso2.com >> lean.enterprise.middleware >> >> mobile: +94 71941102 <+94+71941102> >> 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 >> >> > -- Thusitha Dayaratne Software Engineer WSO2 Inc. - lean . enterprise . middleware | wso2.com Mobile +94712756809 Blog alokayasoya.blogspot.com About http://about.me/thusithathilina <http://wso2.com/signature>
_______________________________________________ Dev mailing list Dev@wso2.org http://wso2.org/cgi-bin/mailman/listinfo/dev