Re: Removing version string from banner
I have an error-page in my app (lets say http://myhost/app). But if someone uses http://myhost/appNAMEDOESNOTEXIST TomEE will disclose the version in its own error page -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Re: Removing version string from banner
Sorry, I did not understand ver well. In Tomcat, you just modify a properties file. I am not trying to change the way the message is displayed, I am just trying to change the strings "Tomee" and "7.0.0" to something else. Do you know in which file these strings are located? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html
Re: Removing version string from banner
or just add an tag in your web.xml. Because usually one wants to brand the error page anyway. LieGrue, strub > Am 14.02.2018 um 18:51 schrieb Jean-Louis Monteiro: > > Oups message left too quickly. > > The default error valve from Tomcat generates this HTML with information > you may not need to discard for security reasons. > You can create your own and add it into the server.xml > > https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/ErrorReportValve.html > https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Error_Report_Valve > > Hope it helps > > > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > On Wed, Feb 14, 2018 at 6:45 PM, Jean-Louis Monteiro < > jlmonte...@tomitribe.com> wrote: > >> You need to plugin in the error valve from Tomcat >> >> -- >> Jean-Louis Monteiro >> http://twitter.com/jlouismonteiro >> http://www.tomitribe.com >> >> On Wed, Feb 14, 2018 at 6:23 PM, Rourke wrote: >> >>> When an error happens I get an error saying: >>> Apache Tomcat (TomEE)/8.0.0 (7.0.0) >>> >>> I know how to get rid of "Tomcat" and "8.0.0"... How can I do the same >>> with >>> "Tomee" and its version? >>> >>> >>> >>> -- >>> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f97944 >>> 1.html >>> >> >>
Re: Removing version string from banner
Oups message left too quickly. The default error valve from Tomcat generates this HTML with information you may not need to discard for security reasons. You can create your own and add it into the server.xml https://tomcat.apache.org/tomcat-7.0-doc/api/org/apache/catalina/valves/ErrorReportValve.html https://tomcat.apache.org/tomcat-7.0-doc/config/valve.html#Error_Report_Valve Hope it helps -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Wed, Feb 14, 2018 at 6:45 PM, Jean-Louis Monteiro < jlmonte...@tomitribe.com> wrote: > You need to plugin in the error valve from Tomcat > > -- > Jean-Louis Monteiro > http://twitter.com/jlouismonteiro > http://www.tomitribe.com > > On Wed, Feb 14, 2018 at 6:23 PM, Rourkewrote: > >> When an error happens I get an error saying: >> Apache Tomcat (TomEE)/8.0.0 (7.0.0) >> >> I know how to get rid of "Tomcat" and "8.0.0"... How can I do the same >> with >> "Tomee" and its version? >> >> >> >> -- >> Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f97944 >> 1.html >> > >
Re: Removing version string from banner
You need to plugin in the error valve from Tomcat -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Wed, Feb 14, 2018 at 6:23 PM, Rourkewrote: > When an error happens I get an error saying: > Apache Tomcat (TomEE)/8.0.0 (7.0.0) > > I know how to get rid of "Tomcat" and "8.0.0"... How can I do the same with > "Tomee" and its version? > > > > -- > Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users- > f979441.html >
Removing version string from banner
When an error happens I get an error saying: Apache Tomcat (TomEE)/8.0.0 (7.0.0) I know how to get rid of "Tomcat" and "8.0.0"... How can I do the same with "Tomee" and its version? -- Sent from: http://tomee-openejb.979440.n4.nabble.com/TomEE-Users-f979441.html