Why SpringBootServletInitializer does not work in EAP 6 ?

Solution Unverified - Updated -

Issue

  • While trying to use "org.springframework.boot.context.web.SpringBootServletInitializer" inside EAP 6.2.2, The application throws 404 Error when the resource is accessed. Where as the same application works fine in WildFly 8.1 (8.0).

  • A Workaround of using the "org.springframework.web.WebApplicationInitializer" (rather than using the SpringBootServletInitializer) resolves the issue in EAP 6.x and the application is accessible.

    • 1) Is "org.springframework.boot.context.web.SpringBootServletInitializer" usage supported in EAP6 ?
    • 2) Why the same application works fine in WildFly 8.1 but responds with 404 error in EAP 6.2.2 (6.x).
    • 3). Why "SpringBootServletInitializer" behaves little differently in this case compared to WildFly 8

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content