Comments (4)
The log messages from org.springframework.web.context.support.SpringBeanAutowiringSupport
can be ignored.
Do you have any more information about what is not working correctly?
from joinfaces.
Ah sorry, the main reason for the possible issue is that no ocpsoft.rewrite rules get picked up anymore after upgrade.
What was working fine before upgrade is simple: GET on /sv URL, ocpsoft.rewrite will redirect to page /bla/bla.xhtml.
After upgrade: /error/404 page. (log below)
31-Mar.-2023 11:39:39,817 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.authenticator.AuthenticatorBase:173] - Security checking request GET /sv
31-Mar.-2023 11:39:39,817 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.realm.RealmBase:173] - No applicable constraints defined
31-Mar.-2023 11:39:39,820 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl:173] - Loading persistent provider registrations from [C:\my-logs\my-tomcat\conf\jaspic-providers.xml]
31-Mar.-2023 11:39:39,820 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.authenticator.AuthenticatorBase:173] - Not subject to any constraint
31-Mar.-2023 11:39:39,820 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost]:173] - Processing ErrorPage[errorCode=404, location=/error/404.jsf]
31-Mar.-2023 11:39:39,825 DEBUG [http-nio-8080-exec-1] [jakarta.enterprise.resource.webcontainer.faces.lifecycle:100] - getLifecycle: DEFAULT com.sun.faces.lifecycle.LifecycleImpl@7f6cf329
31-Mar.-2023 11:39:39,835 WARN [http-nio-8080-exec-1] [org.springframework.web.context.support.SpringBeanAutowiringSupport:88] - Current WebApplicationContext is not available for processing of WildcardParameterProvider: Make sure this class gets constructed in a Spring web application after the Spring WebApplicationContext has been initialized. Proceeding without injection.
31-Mar.-2023 11:39:39,835 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Enriched instance of service [org.ocpsoft.rewrite.instance.WildcardParameterProvider]
31-Mar.-2023 11:39:39,837 INFO [http-nio-8080-exec-1] [unknown.jul.logger:29] - Loaded [1] org.ocpsoft.rewrite.spi.GlobalParameterProvider [org.ocpsoft.rewrite.instance.WildcardParameterProvider<0>]
31-Mar.-2023 11:39:39,843 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - RewriteFilter passing control of request to underlying application.
31-Mar.-2023 11:39:39,854 DEBUG [http-nio-8080-exec-1] [org.springframework.security.web.FilterChainProxy:223] - Securing GET /error/404.jsf
I did not touch the ocpsoft.rewrite rules themselves, but upgraded from working fine Spring Boot 2.7.4+JoinFaces 4.5 to Spring Boot 3.0.5 + JoinFaces 5.0.5
from joinfaces.
What I saw before upgrade (and of course redirect occurred fine):
31-Mar.-2023 09:40:42,152 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.authenticator.jaspic.AuthConfigFactoryImpl:173] - Loading persistent provider registrations from [C:\my-logs\my-tomcat\conf\jaspic-providers.xml]
31-Mar.-2023 09:40:42,153 DEBUG [http-nio-8080-exec-1] [org.apache.catalina.authenticator.AuthenticatorBase:173] - Not subject to any constraint
31-Mar.-2023 09:40:42,153 INFO [http-nio-8080-exec-1] [org.apache.catalina.core.ContainerBase.[Tomcat].[localhost].[/]:173] - Initializing Spring DispatcherServlet 'dispatcherServlet'
31-Mar.-2023 09:40:42,170 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Enriched instance of service [org.ocpsoft.rewrite.instance.WildcardParameterProvider]
31-Mar.-2023 09:40:42,171 INFO [http-nio-8080-exec-1] [unknown.jul.logger:29] - Loaded [1] org.ocpsoft.rewrite.spi.GlobalParameterProvider [org.ocpsoft.rewrite.instance.WildcardParameterProvider<0>]
31-Mar.-2023 09:40:42,174 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Rule [.addRule().when(Direction.isInbound().and(Path.matches("/sv"))).perform(Redirect.temporary("/view/landing.jsf"))] matched and will be performed.
31-Mar.-2023 09:40:42,176 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Temporary Redirect (302) requested: [/view/landing.jsf]
31-Mar.-2023 09:40:42,178 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Rewrite rule evaluation for event [OutboundRewrite [flow=UN_HANDLED, outboundURL=/view/landing.jsf, dispatchResource=null]]
Rule 0: .addRule().when(Direction.isInbound().and(Path.matches("/sv"))).perform(Redirect.temporary("/view/landing.jsf")) defined at com.sv.urlrewrite.RedirectConfigurationProvider.getConfiguration(RedirectConfigurationProvider.java:29)
31-Mar.-2023 09:40:42,178 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Event flow marked as HANDLED. No further processing will occur.
31-Mar.-2023 09:40:42,178 DEBUG [http-nio-8080-exec-1] [unknown.jul.logger:29] - Issuing 302 temporary REDIRECT to [/view/landing.jsf].
thanks!!!
from joinfaces.
not joinfaces related issue.
Once spring.mvc.servlet.path is commented in, the ocpsoft rewrite configuration rules are getting picked up fine.
from joinfaces.
Related Issues (20)
- I fixed Mojarra just for JoinFaces, please update Mojarra
- War deployment of Joinfaces 5.0.2 Startup Error. HOT 1
- Doesn't see the webapp when there are multiple modules. HOT 3
- Include instructions on how to switch from Mojarra 3 to 4 (Jakarta Faces) HOT 3
- Current Spring/Spring Boot Vulnerabilities: Please release JoinFaces 4.7.11 + 5.0.6! HOT 2
- Can't build gradle project with 5.0.6 HOT 2
- Angularfaces link is broken HOT 1
- Blank page as no faces EL is resolved in page. HOT 2
- Tomcat war deployment not working HOT 1
- Problem with Spring Boot Container HOT 3
- Provide a joinfaces bom without spring-boot-dependencies HOT 8
- Could not release joinfaces 5.2.0-rc1 HOT 1
- omnifaces not working in packaged jar in spring boot 3.2.0-RC1 HOT 1
- rewrite-spring-boot-starter not working with spring-aot
- Error with rewrite with joinfaces 3.2.0-rc2 HOT 3
- How to generate a preparedScanResult? HOT 2
- Support for OmniFaces @ViewScoped HOT 7
- WAR file example not starting on Tomcat 10.1.16 with openjdk version "17.0.9" 2023-10-17 HOT 1
- Could not resolve plugin artifact 'org.joinfaces:org.joinfaces.gradle.plugin:5.2.1' HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from joinfaces.