Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] How to prevent No Spring WebApplicationInitializer types detected on classpath?

On Wed, Oct 2, 2013 at 10:03 AM, Miguel Almeida
<migueldealmeida@xxxxxxxxx> wrote:

> On a bit of context, I am running a Struts web app, where Spring is used
> mainly for IoC.

You must be pulling in spring-web as a dependency. That's not required
for dependency injection so you might want to check what's pulling it
in.

That said there is a way to include/exclude specific web fragments
through <absolute-ordering> in web.xml. It is a Servlet spec specific
mechanism but also see this commit message:
https://github.com/spring-projects/spring-framework/commit/d309bb4bbbf41cac2c59808e0addebcaee5b9e29

Rossen


Back to the top