Skip to content
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

34 "Current WebApplicationContext is not available for processing of X" warnings when running server #808

Open
salvah22 opened this issue Feb 28, 2023 · 2 comments

Comments

@salvah22
Copy link

salvah22 commented Feb 28, 2023

problem

any time when running the server, 34 warnings pop related to the WebApplicationContext not being available to other beans, even thought it doesn't look like anything is broke, I'd like to corroborate if there is any way to address this warnings or if this is expected behavior that cannot be changed.

Line 19: 2023-02-27 20:12:16.607  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SLF4JLogAdapterFactory: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 28: 2023-02-27 20:12:18.846  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of JoinRewriteLifecycleListener: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 29: 2023-02-27 20:12:18.849  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of DefaultRewriteLifecycleListener: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 30: 2023-02-27 20:12:18.851  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of FacesRewriteLifecycleListener: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 31: 2023-02-27 20:12:18.856  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of Servlet25DispatcherTypeProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 32: 2023-02-27 20:12:18.857  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of Servlet3DispatcherTypeProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 33: 2023-02-27 20:12:18.873  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of HttpRewriteResultHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 43: 2023-02-27 20:12:18.891  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringExpressionLanguageProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 44: 2023-02-27 20:12:18.893  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of FacesExpressionLanguageProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 45: 2023-02-27 20:12:18.895  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringExpressionLanguageProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 47: 2023-02-27 20:12:18.900  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of NavigatingInvocationResultHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 49: 2023-02-27 20:12:18.903  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringBootServiceEnricher: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 50: 2023-02-27 20:12:18.904  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringServiceEnricher: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 52: 2023-02-27 20:12:18.908  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ServletContextConfigurationCacheProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 54: 2023-02-27 20:12:18.912  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of AnnotationConfigProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 55: 2023-02-27 20:12:18.916  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringBootAnnotationConfigProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 57: 2023-02-27 20:12:18.919  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ServletContextConfigurationCacheProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 58: 2023-02-27 20:12:18.921  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of AnnotationConfigProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 59: 2023-02-27 20:12:18.922  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of SpringBootAnnotationConfigProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 61: 2023-02-27 20:12:18.928  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of DomainHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 62: 2023-02-27 20:12:18.930  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of JoinHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 63: 2023-02-27 20:12:18.932  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of RuleHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 64: 2023-02-27 20:12:18.934  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of PathPatternHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 65: 2023-02-27 20:12:18.935  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of PriorityHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 66: 2023-02-27 20:12:18.938  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of RequestActionHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 67: 2023-02-27 20:12:18.939  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of RewriteConfigurationHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 68: 2023-02-27 20:12:18.941  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of RolesRequiredHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 69: 2023-02-27 20:12:18.943  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ParameterHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 70: 2023-02-27 20:12:18.947  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of MatchesHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 71: 2023-02-27 20:12:18.949  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ForwardToHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 72: 2023-02-27 20:12:18.951  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ConvertHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 73: 2023-02-27 20:12:18.954  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of ValidateHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 74: 2023-02-27 20:12:18.956  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of DeferredHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
Line 75: 2023-02-27 20:12:18.958  WARN 8380 --- [           main] o.s.w.c.s.SpringBeanAutowiringSupport    : Current WebApplicationContext is not available for processing of IgnorePostbackHandler: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.

environment

JoinFacesExampleApplication v4.7.x
Java 1.8.0_292
Mojarra 2.3.18
PrimeFaces 11.0.0
OmniFaces version 1.14.1

@salvah22 salvah22 changed the title 34 Current WebApplicationContext is not available for processing of X warnings 34 "Current WebApplicationContext is not available for processing of X" warnings Feb 28, 2023
@salvah22 salvah22 changed the title 34 "Current WebApplicationContext is not available for processing of X" warnings 34 "Current WebApplicationContext is not available for processing of X" warnings when running server Feb 28, 2023
@renanbaggio
Copy link

renanbaggio commented Jul 10, 2023

Same here. I've been looking for a solution to these warnings (one that doesn't just hide them), but I haven't had any luck yet.

I have been using Spring Boot 2.1.x and JoinFaces 4.0.x for about 4 years in my application and everything was fine. Now that I'm jumping to Java 17 I needed to upgrade Spring Boot and JoinFaces and so these warnings started to show up.

current environment

JoinFaces 4.7.13
Spring Boot 2.7.13
Mojarra 2.3.19
PrimeFaces 6.2
PrimeFaces Extensions 6.2.11
OmniFaces 1.14.1

@swissclash79
Copy link

Hello

I have the same problem too.

Environment

  • JoinFaces 5.0.9
  • Spring Boot 3.0.9

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants