[prev in list] [next in list] [prev in thread] [next in thread] 

List:       maven-user
Subject:    Re: Hi,
From:       Greg Chabala <greg.chabala () gmail ! com>
Date:       2021-07-24 21:40:12
Message-ID: CACSq72D245tZaC6pts5ZY2YOc+Ba9HH+UH5u2NEA5UvuQPVZyg () mail ! gmail ! com
[Download RAW message or body]


https://stackoverflow.com/a/27805058/62462

web.xml is usually provided in source, it is not something that maven or
> any build tool has to generate
>

Never heard of web.xml being generated. Please show us your project if you
think it is.

On Sat, Jul 24, 2021 at 3:32 PM Benjamin hansen <benjaminkakkesen@gmail.com>
wrote:

> I have read through this post:
>
> https://crunchify.com/how-to-run-java-program-automatically-on-tomcat-startup/
>
> which describes how to automatically start my project under tomcat during
> startup.
>
> Basically I have to add this to my web.xml
>
>
> <servlet>
>     <servlet-name>CrunchifyTutorials</servlet-name>
>     <servlet-class>crunchify.com
> .tutorials.CrunchifyServletExample</servlet-
> class>
>     <load-on-startup>1</load-on-startup>
> </servlet>
>
> however the web.xml is generated by maven, so somehow i think i have to put
> this into pom.xml which then will instruct maven to add this to the web.xml
> file.
>
> So my question is how i should put this into the pom.xml file?
>


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic