Re: SEVERE: A child container failed during start
Sent from Yahoo Mail for iPhone On Saturday, November 30, 2019, 8:09 PM, M. Manna wrote: Karen, On Sat, 30 Nov 2019 at 00:58, Karen Goh wrote: > > > > Sent from Yahoo Mail for iPhone > > > On Saturday, November 30, 2019, 6:18 AM, Mark Thomas > wrote: > > On 29/11/2019 21:28, Karen Goh wrote: > > I have done so but it is no use. I have deleted the Tomcat and add an > new instance before run the server again. > > caused by java.lang.IllegalArgumentException : Filter mapping specifies > an unknown filter name[SessionValidator] > > Sorry I am having problem with writing here using Yahoo mail n I have to > type things out in iPhone so I can’t copy n paste the entire error > message. Should you need more info in order to help me I hope I can just > write above the reply message. > > You seem to be missing the point. The problematic filter is named: > > httpHeaderSecurity > > You need to find where that is referenced in your code and/or > configuration. > I can’t find this filter at all, even though I am playing with something > along the line of httpHeaderSecurity (JWT/JSSE etc to be precise) but my > project is done intermittently cos most of the time I am meshing up the > code from various sources and use it... > What do I do in this case? Re-start a fresh project? > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > As I replied before, your best option would be: 1) remove all your custom filters from filter mappings so that there is no filter (only for this test). 2) Start tomcat and confirm that startup is normal without issues 3) Now put back your filters 1-by-1 and repeat step 1-2 to see what breaks. It's appears a big effort at first glance, but it's a good way to sift through the problem. Hi Manna, Thanks very much for your response. After I changed the tomcat server to 9.0.29, all the error disappeared. I have also changed the servlet api to 4.0.1 in maven n added the @WebFilter without incurring any error. Once again, thank you. Thanks,
Re: SEVERE: A child container failed during start
Karen, On Sat, 30 Nov 2019 at 00:58, Karen Goh wrote: > > > > Sent from Yahoo Mail for iPhone > > > On Saturday, November 30, 2019, 6:18 AM, Mark Thomas > wrote: > > On 29/11/2019 21:28, Karen Goh wrote: > > I have done so but it is no use. I have deleted the Tomcat and add an > new instance before run the server again. > > caused by java.lang.IllegalArgumentException : Filter mapping specifies > an unknown filter name[SessionValidator] > > Sorry I am having problem with writing here using Yahoo mail n I have to > type things out in iPhone so I can’t copy n paste the entire error > message. Should you need more info in order to help me I hope I can just > write above the reply message. > > You seem to be missing the point. The problematic filter is named: > > httpHeaderSecurity > > You need to find where that is referenced in your code and/or > configuration. > I can’t find this filter at all, even though I am playing with something > along the line of httpHeaderSecurity (JWT/JSSE etc to be precise) but my > project is done intermittently cos most of the time I am meshing up the > code from various sources and use it... > What do I do in this case? Re-start a fresh project? > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > As I replied before, your best option would be: 1) remove all your custom filters from filter mappings so that there is no filter (only for this test). 2) Start tomcat and confirm that startup is normal without issues 3) Now put back your filters 1-by-1 and repeat step 1-2 to see what breaks. It's appears a big effort at first glance, but it's a good way to sift through the problem. Thanks,
Re: SEVERE: A child container failed during start
Sent from Yahoo Mail for iPhone On Saturday, November 30, 2019, 6:18 AM, Mark Thomas wrote: On 29/11/2019 21:28, Karen Goh wrote: > I have done so but it is no use. I have deleted the Tomcat and add an new > instance before run the server again. > caused by java.lang.IllegalArgumentException : Filter mapping specifies an > unknown filter name[SessionValidator] > Sorry I am having problem with writing here using Yahoo mail n I have to type > things out in iPhone so I can’t copy n paste the entire error message. Should > you need more info in order to help me I hope I can just write above the > reply message. You seem to be missing the point. The problematic filter is named: httpHeaderSecurity You need to find where that is referenced in your code and/or configuration. I can’t find this filter at all, even though I am playing with something along the line of httpHeaderSecurity (JWT/JSSE etc to be precise) but my project is done intermittently cos most of the time I am meshing up the code from various sources and use it... What do I do in this case? Re-start a fresh project? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: A child container failed during start
On 29/11/2019 21:28, Karen Goh wrote: > I have done so but it is no use. I have deleted the Tomcat and add an new > instance before run the server again. > caused by java.lang.IllegalArgumentException : Filter mapping specifies an > unknown filter name[SessionValidator] > Sorry I am having problem with writing here using Yahoo mail n I have to type > things out in iPhone so I can’t copy n paste the entire error message. Should > you need more info in order to help me I hope I can just write above the > reply message. You seem to be missing the point. The problematic filter is named: httpHeaderSecurity You need to find where that is referenced in your code and/or configuration. Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: A child container failed during start
Sent from Yahoo Mail for iPhone On Saturday, November 30, 2019, 5:14 AM, M. Manna wrote: Karen, On Fri, 29 Nov 2019 at 20:51, Karen Goh wrote: > > > > Sent from Yahoo Mail for iPhone > > > On Friday, November 29, 2019, 8:39 PM, Karen Goh > wrote: > > > > > > > On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas < > ma...@apache.org> wrote: > > > On 29/11/2019 10:44, Karen Goh wrote: > > Hi experts, > > > > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 > and running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > > > Have been trying to tackling the problem with no avail. > > > > Would appreciate some tips on how to make these error go away. > > > > > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies > an unknown filter name [httpHeaderSecurity] > > > I am not sure why the error persists even if I change the filter mapping > to : > > SessionValidator/login.jsp > And here is snippet my Filter : > @WebFilter(“/SessionValidator”)public class SessionValidator implements > Filter > public void doFilter(ServletRequest request, ServletResponse response, > FilterChain chain) throws IOException, ServletException{ > ..HttpSession session = httpRequest.getSession();If(session.isNew()) > {httpResponse.sendRedirect(httpResponse.encodedRedirectURL(httpRequest.getContextPath() > + “/login.jsp”return;}And then redirect the user to error.html if log in > user is null. > Please let me know what’s wrong. > Thanks > Where and how is this filter specified as being required? > Where and how is this filter defined? > > Please see below > > > http://www.w3.org/2001/XMLSchema-instance; xmlns=" > http://xmlns.jcp.org/xml/ns/javaee; xsi:schemaLocation=" > http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0"> > Archetype Created Web Application > > > Restricted Area > /search.jsp > > > > SessionValidator > Controller.SessionValidator > > > 404 > /error.html > > > 403 > /error.html > > > 500 > /error.html > > > java.lang.Exception > /error.html > > > > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > I would advise that you remove @WebFilter and try again. Seems like it's conflicted with processing annotation based and web.xml supplied filter definitions. Once you remove the annotation, give it a try and let us know. I have done so but it is no use. I have deleted the Tomcat and add an new instance before run the server again. caused by java.lang.IllegalArgumentException : Filter mapping specifies an unknown filter name[SessionValidator] Sorry I am having problem with writing here using Yahoo mail n I have to type things out in iPhone so I can’t copy n paste the entire error message. Should you need more info in order to help me I hope I can just write above the reply message. Tks Please advise. Thanks. Thanks,
Re: SEVERE: A child container failed during start
Karen, On Fri, 29 Nov 2019 at 20:51, Karen Goh wrote: > > > > Sent from Yahoo Mail for iPhone > > > On Friday, November 29, 2019, 8:39 PM, Karen Goh > wrote: > > > > > > > On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas < > ma...@apache.org> wrote: > > > On 29/11/2019 10:44, Karen Goh wrote: > > Hi experts, > > > > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 > and running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > > > Have been trying to tackling the problem with no avail. > > > > Would appreciate some tips on how to make these error go away. > > > > > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies > an unknown filter name [httpHeaderSecurity] > > > I am not sure why the error persists even if I change the filter mapping > to : > > SessionValidator/login.jsp > And here is snippet my Filter : > @WebFilter(“/SessionValidator”)public class SessionValidator implements > Filter > public void doFilter(ServletRequest request, ServletResponse response, > FilterChain chain) throws IOException, ServletException{ > ..HttpSession session = httpRequest.getSession();If(session.isNew()) > {httpResponse.sendRedirect(httpResponse.encodedRedirectURL(httpRequest.getContextPath() > + “/login.jsp”return;}And then redirect the user to error.html if log in > user is null. > Please let me know what’s wrong. > Thanks > Where and how is this filter specified as being required? > Where and how is this filter defined? > > Please see below > > > http://www.w3.org/2001/XMLSchema-instance; xmlns=" > http://xmlns.jcp.org/xml/ns/javaee; xsi:schemaLocation=" > http://xmlns.jcp.org/xml/ns/javaee > http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0"> > Archetype Created Web Application > > > Restricted Area > /search.jsp > > > > SessionValidator > Controller.SessionValidator > > > 404 > /error.html > > > 403 > /error.html > > > 500 > /error.html > > > java.lang.Exception > /error.html > > > > > Mark > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > > > I would advise that you remove @WebFilter and try again. Seems like it's conflicted with processing annotation based and web.xml supplied filter definitions. Once you remove the annotation, give it a try and let us know. Thanks,
Re: SEVERE: A child container failed during start
Sent from Yahoo Mail for iPhone On Friday, November 29, 2019, 8:39 PM, Karen Goh wrote: On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas wrote: On 29/11/2019 10:44, Karen Goh wrote: > Hi experts, > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and > running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > Have been trying to tackling the problem with no avail. > > Would appreciate some tips on how to make these error go away. > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an > unknown filter name [httpHeaderSecurity] I am not sure why the error persists even if I change the filter mapping to : SessionValidator/login.jsp And here is snippet my Filter : @WebFilter(“/SessionValidator”)public class SessionValidator implements Filter public void doFilter(ServletRequest request, ServletResponse response, FilterChain chain) throws IOException, ServletException{ ..HttpSession session = httpRequest.getSession();If(session.isNew()) {httpResponse.sendRedirect(httpResponse.encodedRedirectURL(httpRequest.getContextPath() + “/login.jsp”return;}And then redirect the user to error.html if log in user is null. Please let me know what’s wrong. Thanks Where and how is this filter specified as being required? Where and how is this filter defined? Please see below http://www.w3.org/2001/XMLSchema-instance; xmlns="http://xmlns.jcp.org/xml/ns/javaee; xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0"> Archetype Created Web Application Restricted Area /search.jsp SessionValidator Controller.SessionValidator 404 /error.html 403 /error.html 500 /error.html java.lang.Exception /error.html Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: A child container failed during start
On Friday, November 29, 2019, 6:59:38 PM GMT+8, Mark Thomas wrote: On 29/11/2019 10:44, Karen Goh wrote: > Hi experts, > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and > running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > Have been trying to tackling the problem with no avail. > > Would appreciate some tips on how to make these error go away. > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an > unknown filter name [httpHeaderSecurity] Where and how is this filter specified as being required? Where and how is this filter defined? Please see below http://www.w3.org/2001/XMLSchema-instance; xmlns="http://xmlns.jcp.org/xml/ns/javaee; xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-app_4_0.xsd; version="4.0"> Archetype Created Web Application Restricted Area /search.jsp SessionValidator Controller.SessionValidator 404 /error.html 403 /error.html 500 /error.html java.lang.Exception /error.html Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: SEVERE: A child container failed during start
Hi, On Fri, 29 Nov 2019 at 10:45, Karen Goh wrote: > Hi experts, > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 > and running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > Have been trying to tackling the problem with no avail. > > Would appreciate some tips on how to make these error go away. > > Here's the error : > > Nov 29, 2019 6:25:18 PM org.apache.catalina.core.ContainerBase > startInternal > SEVERE: A child container failed during start > java.util.concurrent.ExecutionException: > org.apache.catalina.LifecycleException: Failed to start component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webApp-hi5]] > at > java.base/java.util.concurrent.FutureTask.report(FutureTask.java:122) > at > java.base/java.util.concurrent.FutureTask.get(FutureTask.java:191) > at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:916) > at > org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:841) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) > at > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > at > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) > at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) > at > org.apache.catalina.core.StandardEngine.startInternal(StandardEngine.java:262) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > at > org.apache.catalina.core.StandardService.startInternal(StandardService.java:421) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > at > org.apache.catalina.core.StandardServer.startInternal(StandardServer.java:930) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > at org.apache.catalina.startup.Catalina.start(Catalina.java:633) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native > Method) > at > java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) > at > java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) > at java.base/java.lang.reflect.Method.invoke(Method.java:567) > at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:344) > at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:475) > Caused by: org.apache.catalina.LifecycleException: Failed to start > component > [StandardEngine[Catalina].StandardHost[localhost].StandardContext[/webApp-hi5]] > at > org.apache.catalina.util.LifecycleBase.handleSubClassException(LifecycleBase.java:440) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:198) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1384) > at > org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1374) > at > java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264) > at > org.apache.tomcat.util.threads.InlineExecutorService.execute(InlineExecutorService.java:75) > at > java.base/java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:140) > at > org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:909) > ... 21 more > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an > unknown filter name [httpHeaderSecurity] > at > org.apache.catalina.core.StandardContext.validateFilterMap(StandardContext.java:3009) > at > org.apache.catalina.core.StandardContext.addFilterMap(StandardContext.java:2971) > at > org.apache.catalina.startup.ContextConfig.configureContext(ContextConfig.java:1288) > at > org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1168) > at > org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:774) > at > org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:301) > at > org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:123) > at > org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5051) > at > org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) > ... 27 more > > Nov 29, 2019 6:25:18 PM org.apache.catalina.core.ContainerBase > startInternal > SEVERE: A child container failed during start > java.util.concurrent.ExecutionException: >
Re: SEVERE: A child container failed during start
On 29/11/2019 10:44, Karen Goh wrote: > Hi experts, > > > Basically, I have now upgraded my dynamic MVC web app to use openJDK 13 and > running it with Tomcat 9.0.27. Windows OS. Eclipse 2019-09. > > Have been trying to tackling the problem with no avail. > > Would appreciate some tips on how to make these error go away. > Caused by: java.lang.IllegalArgumentException: Filter mapping specifies an > unknown filter name [httpHeaderSecurity] Where and how is this filter specified as being required? Where and how is this filter defined? Mark - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org