Re: Spring Boot Circular reference error
Hi, I think there is no release of Wicket-Spring-Boot-Starter for Spring Boot 2.6. Maybe you have both 2.5.x and 2.6.1 on the classpath. Check with "mvn dependency:tree" On Sun, Dec 12, 2021, 09:03 Pranav Kacholia wrote: > Hi, > > I started the same app with spring boot version 2.5.7 and it works fine. > If I change it to 2.6.1 it fails with the above. > > On Sat, 11 Dec, 2021, 7:45 pm Andrea Del Bene, > wrote: > > > Hi, > > > > I've recently started a new project with wicket-spring-boot-starter and > > wicket 9.7.0 and everything is fine. I would blame your dependencies on > > spring-boot-starter-web and spring-boot-starter-test. I don't have them > > in my pom and I don't think you need them. Try to remove them to see if > > StockyApplication starts up. > > > > On 11/12/21 11:10, Pranav Kacholia wrote: > > > HI, > > > > > > I am trying to start a new spring boot project with wicket. > > > Even with no dependencies added and only a basic home page i am facing > > > errors. > > > > > > My POM file:- > > > > > > > > > > > > org.springframework.boot > > > spring-boot-starter-web > > > > > > > > > > > > org.springframework.boot > > > spring-boot-starter-test > > > test > > > > > > > > > com.giffing.wicket.spring.boot.starter > > > wicket-spring-boot-starter > > > 3.0.4 > > > > > > > > > > > > > > > Application class: > > > > > > package com.stocky; > > > > > > import org.springframework.boot.SpringApplication; > > > import org.springframework.boot.autoconfigure.SpringBootApplication; > > > > > > @SpringBootApplication > > > public class StockyApplication { > > > > > > public static void main(String[] args) { > > > SpringApplication.run(StockyApplication.class, args); > > > } > > > > > > } > > > > > > > > > Home Page Class > > > > > > package com.stocky; > > > > > > import org.apache.wicket.markup.html.WebPage; > > > > > > import com.giffing.wicket.spring.boot.context.scan.WicketHomePage; > > > > > > @WicketHomePage > > > public class HomePage extends WebPage{ > > > > > > } > > > > > > > > > I am getting the following error. > > > > > > [INFO] Attaching agents: [] > > > > > >. ___ _ _ > > > /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ > > > ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ > > > \\/ ___)| |_)| | | | | || (_| | ) ) ) ) > > >' || .__|_| |_|_| |_\__, | / / / / > > > =|_|==|___/=/_/_/_/ > > > :: Spring Boot ::(v2.6.1) > > > > > > 2021-12-11 15:33:45.814 INFO 6540 --- [ main] > > > com.stocky.StockyApplication : Starting StockyApplication > > using > > > Java 17.0.1 on DESKTOP-CS8GGG8 with PID 6540 (C:\Users\Pranav > > > Kacholia\eclipse-workspace\Stocky\target\classes started by Pranav > > Kacholia > > > in C:\Users\Pranav Kacholia\eclipse-workspace\Stocky) > > > 2021-12-11 15:33:45.817 INFO 6540 --- [ main] > > > com.stocky.StockyApplication : No active profile set, > falling > > > back to default profiles: default > > > 2021-12-11 15:33:46.990 INFO 6540 --- [ main] > > > o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with > > port(s): > > > 8080 (http) > > > 2021-12-11 15:33:47.003 INFO 6540 --- [ main] > > > o.apache.catalina.core.StandardService : Starting service [Tomcat] > > > 2021-12-11 15:33:47.003 INFO 6540 --- [ main] > > > org.apache.catalina.core.StandardEngine : Starting Servlet engine: > > [Apache > > > Tomcat/9.0.55] > > > 2021-12-11 15:33:47.110 INFO 6540 --- [ main] > > > o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded > > > WebApplicationContext > > > 2021-12-11 15:33:47.110 INFO 6540 --- [ main] > > > w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: > > > initialization completed in 1231 ms > > > 2021-12-11 15:33:47.251 ERROR 6540 --- [ main] > > > o.a.wicket.protocol.http.WicketFilter: The initialization of an > > > application with name 'wicket-filter' has failed. > > > > > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > > creating bean with name 'wicketBootWebApplication': Unsatisfied > > dependency > > > expressed through field 'configurations'; nested exception is > > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > > creating bean with name 'wicketextensionApplicationSettingsConfig': > > > Unsatisfied dependency expressed through field 'holder'; nested > exception > > > is org.springframework.beans.factory.BeanCreationException: Error > > creating > > > bean with name > > > > > > 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': > > > Invocation of init method failed; nested exception is > > > org.springframework.beans.factory.BeanCurrentlyInCreationException: > Error > > > creating bean with name > > > > > > 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': > > > Requested bean is currently
Re: Spring Boot Circular reference error
Hi, I started the same app with spring boot version 2.5.7 and it works fine. If I change it to 2.6.1 it fails with the above. On Sat, 11 Dec, 2021, 7:45 pm Andrea Del Bene, wrote: > Hi, > > I've recently started a new project with wicket-spring-boot-starter and > wicket 9.7.0 and everything is fine. I would blame your dependencies on > spring-boot-starter-web and spring-boot-starter-test. I don't have them > in my pom and I don't think you need them. Try to remove them to see if > StockyApplication starts up. > > On 11/12/21 11:10, Pranav Kacholia wrote: > > HI, > > > > I am trying to start a new spring boot project with wicket. > > Even with no dependencies added and only a basic home page i am facing > > errors. > > > > My POM file:- > > > > > > > > org.springframework.boot > > spring-boot-starter-web > > > > > > > > org.springframework.boot > > spring-boot-starter-test > > test > > > > > > com.giffing.wicket.spring.boot.starter > > wicket-spring-boot-starter > > 3.0.4 > > > > > > > > > > Application class: > > > > package com.stocky; > > > > import org.springframework.boot.SpringApplication; > > import org.springframework.boot.autoconfigure.SpringBootApplication; > > > > @SpringBootApplication > > public class StockyApplication { > > > > public static void main(String[] args) { > > SpringApplication.run(StockyApplication.class, args); > > } > > > > } > > > > > > Home Page Class > > > > package com.stocky; > > > > import org.apache.wicket.markup.html.WebPage; > > > > import com.giffing.wicket.spring.boot.context.scan.WicketHomePage; > > > > @WicketHomePage > > public class HomePage extends WebPage{ > > > > } > > > > > > I am getting the following error. > > > > [INFO] Attaching agents: [] > > > >. ___ _ _ > > /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ > > ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ > > \\/ ___)| |_)| | | | | || (_| | ) ) ) ) > >' || .__|_| |_|_| |_\__, | / / / / > > =|_|==|___/=/_/_/_/ > > :: Spring Boot ::(v2.6.1) > > > > 2021-12-11 15:33:45.814 INFO 6540 --- [ main] > > com.stocky.StockyApplication : Starting StockyApplication > using > > Java 17.0.1 on DESKTOP-CS8GGG8 with PID 6540 (C:\Users\Pranav > > Kacholia\eclipse-workspace\Stocky\target\classes started by Pranav > Kacholia > > in C:\Users\Pranav Kacholia\eclipse-workspace\Stocky) > > 2021-12-11 15:33:45.817 INFO 6540 --- [ main] > > com.stocky.StockyApplication : No active profile set, falling > > back to default profiles: default > > 2021-12-11 15:33:46.990 INFO 6540 --- [ main] > > o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with > port(s): > > 8080 (http) > > 2021-12-11 15:33:47.003 INFO 6540 --- [ main] > > o.apache.catalina.core.StandardService : Starting service [Tomcat] > > 2021-12-11 15:33:47.003 INFO 6540 --- [ main] > > org.apache.catalina.core.StandardEngine : Starting Servlet engine: > [Apache > > Tomcat/9.0.55] > > 2021-12-11 15:33:47.110 INFO 6540 --- [ main] > > o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded > > WebApplicationContext > > 2021-12-11 15:33:47.110 INFO 6540 --- [ main] > > w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: > > initialization completed in 1231 ms > > 2021-12-11 15:33:47.251 ERROR 6540 --- [ main] > > o.a.wicket.protocol.http.WicketFilter: The initialization of an > > application with name 'wicket-filter' has failed. > > > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name 'wicketBootWebApplication': Unsatisfied > dependency > > expressed through field 'configurations'; nested exception is > > org.springframework.beans.factory.UnsatisfiedDependencyException: Error > > creating bean with name 'wicketextensionApplicationSettingsConfig': > > Unsatisfied dependency expressed through field 'holder'; nested exception > > is org.springframework.beans.factory.BeanCreationException: Error > creating > > bean with name > > > 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': > > Invocation of init method failed; nested exception is > > org.springframework.beans.factory.BeanCurrentlyInCreationException: Error > > creating bean with name > > > 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': > > Requested bean is currently in creation: Is there an unresolvable > circular > > reference? > > at > > > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) > > ~[spring-beans-5.3.13.jar:5.3.13] > > at > > > org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) > > ~[spring-beans-5.3.13.jar:5.3.13] > > at >
Re: Spring Boot Circular reference error
Hi, I've recently started a new project with wicket-spring-boot-starter and wicket 9.7.0 and everything is fine. I would blame your dependencies on spring-boot-starter-web and spring-boot-starter-test. I don't have them in my pom and I don't think you need them. Try to remove them to see if StockyApplication starts up. On 11/12/21 11:10, Pranav Kacholia wrote: HI, I am trying to start a new spring boot project with wicket. Even with no dependencies added and only a basic home page i am facing errors. My POM file:- org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test com.giffing.wicket.spring.boot.starter wicket-spring-boot-starter 3.0.4 Application class: package com.stocky; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class StockyApplication { public static void main(String[] args) { SpringApplication.run(StockyApplication.class, args); } } Home Page Class package com.stocky; import org.apache.wicket.markup.html.WebPage; import com.giffing.wicket.spring.boot.context.scan.WicketHomePage; @WicketHomePage public class HomePage extends WebPage{ } I am getting the following error. [INFO] Attaching agents: [] . ___ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' || .__|_| |_|_| |_\__, | / / / / =|_|==|___/=/_/_/_/ :: Spring Boot ::(v2.6.1) 2021-12-11 15:33:45.814 INFO 6540 --- [ main] com.stocky.StockyApplication : Starting StockyApplication using Java 17.0.1 on DESKTOP-CS8GGG8 with PID 6540 (C:\Users\Pranav Kacholia\eclipse-workspace\Stocky\target\classes started by Pranav Kacholia in C:\Users\Pranav Kacholia\eclipse-workspace\Stocky) 2021-12-11 15:33:45.817 INFO 6540 --- [ main] com.stocky.StockyApplication : No active profile set, falling back to default profiles: default 2021-12-11 15:33:46.990 INFO 6540 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2021-12-11 15:33:47.003 INFO 6540 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-12-11 15:33:47.003 INFO 6540 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.55] 2021-12-11 15:33:47.110 INFO 6540 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-12-11 15:33:47.110 INFO 6540 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1231 ms 2021-12-11 15:33:47.251 ERROR 6540 --- [ main] o.a.wicket.protocol.http.WicketFilter: The initialization of an application with name 'wicket-filter' has failed. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wicketBootWebApplication': Unsatisfied dependency expressed through field 'configurations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wicketextensionApplicationSettingsConfig': Unsatisfied dependency expressed through field 'holder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.13.jar:5.3.13]
Spring Boot Circular reference error
HI, I am trying to start a new spring boot project with wicket. Even with no dependencies added and only a basic home page i am facing errors. My POM file:- org.springframework.boot spring-boot-starter-web org.springframework.boot spring-boot-starter-test test com.giffing.wicket.spring.boot.starter wicket-spring-boot-starter 3.0.4 Application class: package com.stocky; import org.springframework.boot.SpringApplication; import org.springframework.boot.autoconfigure.SpringBootApplication; @SpringBootApplication public class StockyApplication { public static void main(String[] args) { SpringApplication.run(StockyApplication.class, args); } } Home Page Class package com.stocky; import org.apache.wicket.markup.html.WebPage; import com.giffing.wicket.spring.boot.context.scan.WicketHomePage; @WicketHomePage public class HomePage extends WebPage{ } I am getting the following error. [INFO] Attaching agents: [] . ___ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' || .__|_| |_|_| |_\__, | / / / / =|_|==|___/=/_/_/_/ :: Spring Boot ::(v2.6.1) 2021-12-11 15:33:45.814 INFO 6540 --- [ main] com.stocky.StockyApplication : Starting StockyApplication using Java 17.0.1 on DESKTOP-CS8GGG8 with PID 6540 (C:\Users\Pranav Kacholia\eclipse-workspace\Stocky\target\classes started by Pranav Kacholia in C:\Users\Pranav Kacholia\eclipse-workspace\Stocky) 2021-12-11 15:33:45.817 INFO 6540 --- [ main] com.stocky.StockyApplication : No active profile set, falling back to default profiles: default 2021-12-11 15:33:46.990 INFO 6540 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8080 (http) 2021-12-11 15:33:47.003 INFO 6540 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2021-12-11 15:33:47.003 INFO 6540 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.55] 2021-12-11 15:33:47.110 INFO 6540 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2021-12-11 15:33:47.110 INFO 6540 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1231 ms 2021-12-11 15:33:47.251 ERROR 6540 --- [ main] o.a.wicket.protocol.http.WicketFilter: The initialization of an application with name 'wicket-filter' has failed. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wicketBootWebApplication': Unsatisfied dependency expressed through field 'configurations'; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'wicketextensionApplicationSettingsConfig': Unsatisfied dependency expressed through field 'holder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': Invocation of init method failed; nested exception is org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner': Requested bean is currently in creation: Is there an unresolvable circular reference? at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.13.jar:5.3.13] at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.13.jar:5.3.13] at