WebApplicationInitializer is not getting detected

970 views
Skip to first unread message

Burt Repine

unread,
Jul 21, 2022, 12:18:26 PM7/21/22
to WildFly
Hello,

I'm trying to port our application from WildFly 10.1 to WildFly 20 and our WebApplicationInitializers are not getting detected?
Is there additional configuration that needs to be done?

Googling the issue did not seem to turn up anything.

On 10 I can view the following console logging but nothing on 20:
INFO  [io.undertow.servlet] (ServerService Thread Pool -- 58) No Spring WebApplicationInitializer types detected on classpath
INFO  [io.undertow.servlet] (ServerService Thread Pool -- 64) 1 Spring WebApplicationInitializers detected on classpath

Thanks for the help!

James Perkins

unread,
Jul 21, 2022, 12:22:58 PM7/21/22
to WildFly
Is Spring included in your deployment or is it installed as a module?

Burt Repine

unread,
Jul 21, 2022, 12:27:51 PM7/21/22
to WildFly
It's installed as a module

James Perkins

unread,
Jul 21, 2022, 12:38:20 PM7/21/22
to WildFly
I would assume the deployment would fail if the module isn't being seen. I don't really know how Spring works, but I guess I'd make sure that the modules match.

Burt Repine

unread,
Jul 21, 2022, 2:07:19 PM7/21/22
to WildFly
The deployment is successful. Not sure what you mean by ' make sure that the modules match'?

Wei Nan Li

unread,
Jul 22, 2022, 11:05:15 AM7/22/22
to Burt Repine, WildFly
On Fri, Jul 22, 2022 at 2:07 AM Burt Repine <burtr...@gmail.com> wrote:
>
> The deployment is successful. Not sure what you mean by ' make sure that the modules match'?

Do you have a sample project that we could check?
> --
> You received this message because you are subscribed to the Google Groups "WildFly" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/4eb5aca3-0379-40b2-b206-8c2019dd344cn%40googlegroups.com.



--
Cheers,
Wei Nan | JBoss

Burt Repine

unread,
Jul 22, 2022, 12:49:14 PM7/22/22
to WildFly
Unfortunately not. That would be quite a bit of effort

Wei Nan Li

unread,
Jul 24, 2022, 12:48:56 PM7/24/22
to Burt Repine, WildFly
There are some examples related with `resteasy-spring` that may have
some reference values:

- https://github.com/resteasy/resteasy-examples
> To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/3e165d20-0851-4316-b4b8-e340bf615ec7n%40googlegroups.com.

Burt Repine

unread,
Aug 3, 2022, 1:39:19 PM8/3/22
to WildFly
I was finally able to get this working by making the following jboss-deployment-structure.xml change:

before:
<module name="our.module.that.contains.spring" services="export" slot="1.0"/>

after:
<module name="our.module.that.contains.spring" services="import" slot="1.0"/>

Don't know why 'services' was set to 'export' in the first place (before my time) or what the significance is by switching it to 'import'.
By significance I mean why did it work in WildFly 10 but not in WildFly 20.
The documentation around this is pretty sparse.
Can anyone help/explain?

Thanks,
Burt


Reply all
Reply to author
Forward
0 new messages