Giter Site home page Giter Site logo

Comments (4)

larsgrefer avatar larsgrefer commented on June 4, 2024

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.

vitsin avatar vitsin commented on June 4, 2024

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.

vitsin avatar vitsin commented on June 4, 2024

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.

vitsin avatar vitsin commented on June 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.