-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot load provider in a servlet setup with spring #9
Comments
Can you show me the full exception stack? Providing a minimal recurrence use case is certainly more welcome. |
Here is the stack trace.
|
I haven't tested this. But should be able to repeat the issue. web.xml
config.SpringConfg.java
service.account.AccountServiceImpl.java
|
Can you give me a scaffold project? Just push to you github repositories. |
Sorry, it will be too time consuming for me to make a scaffold project. By the way, I think the cause maybe because I start the server using maven (without fork), where maven somehow didn't load the provider |
The provider is only loaded in the runtime. At compile time, nothing runtime thing is touched. |
Experience an error
No provider of PromiseProvider found!
when running servlet application with spring.I guess it may be related to the class loader hierarchy or class loading sequence.
Currently I hack around this by adding a listener to the servlet
I think one approach to solve this issue is to lazy load the provider instead of loading it in the static phase at JAsync.class
The text was updated successfully, but these errors were encountered: