MarcGiffing / wicket-spring-boot

Spring Boot starter for Apache Wicket
154 stars 62 forks source link

Consider autoconfiguration, documentation or simplification for clustered environment #99

Closed MarcGiffing closed 7 years ago

MarcGiffing commented 7 years ago

https://github.com/MarcGiffing/wicket-spring-boot-examples/tree/master/cluster

MarcGiffing commented 7 years ago

Any feedback is welcome!

ghost commented 7 years ago

I have problem to integrate hibernate search

MarcGiffing commented 7 years ago

What exactly is the problem? Is it Wicket related?

ghost commented 7 years ago

following configuration: pom.xml parent:

4.0.0 braunimmobilien project 1.0.9-SNAPSHOT pom braunimmobilien Parent com.giffing.wicket.spring.boot.starter wicket-spring-boot-starter-parent 2.0.0 wicket-spring-boot-starter-example

pom.xml wicket-spring-boot-starter-example:

4.0.0 wicket-spring-boot-starter-example braunimmobilien project 1.0.9-SNAPSHOT .. Spring boot starter example An example project which uses the wicket-spring-boot-starter autoconfiguration project true org.hibernate hibernate-search-orm 4.5.1.Final org.hibernate hibernate-entitymanager .........your dependencies application.properties : security.basic.enabled=false wicket.stuff.datastore.hazelcast.enabled=false core.resourcesettings.packageresourceguard.pattern=- +*.map server.compression.enabled=true management.port=8081 spring.jpa.hibernate.ddl-auto=none liquibase.change-log=classpath:/db/changelog/db.changelog-master.xml spring.datasource.url=jdbc:mysql://localhost:3306/CountryData spring.datasource.username=root spring.datasource.password=Braun spring.jpa.properties.hibernate.search.default.directory_provider=filesystem spring.jpa.properties.hibernate.search.default.indexBase=/home/braun/development/java/java1.8/spring-boot-wicket/wicket-spring-boot-master-own/lucene/indexes/ mvn -X spring-boot:run 2017-06-07 21:02:39.309 ERROR 31585 --- [ restartedMain] o.s.boot.SpringApplication : Application startup failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError 2017-06-07 19:45 GMT+02:00 MarcGiffing : > What exactly is the problem? Is it Wicket related? > > — > You are receiving this because you commented. > Reply to this email directly, view it on GitHub > , > or mute the thread > > . >
martin-g commented 7 years ago

This is not Wicket related issue so you should ask for help at Spring Boot forums - StackOverflow and/or Gitter! The problem looks like incompatible versions of Hibernate and Hibernate-Search-ORM. Check your versions with mvn dependency:tree.

ghost commented 7 years ago

I was successful with wicket-spring-boot-starter-parent 2.0.0 and hibernate-search-orm 5.6.1.Final At the moment i only upgrade my wicket application to spring boot. The latest hibernate-search doesn't have the same funtionality as before. I started with 3 applications after this success i will go on with your application.Still investigate the usage of spring-webflow angular2 and react-usage. the examples i started with all use spring boot

ghost commented 7 years ago

I try to use

de.agilecoders.wicket
        <artifactId>wicket-bootstrap-core</artifactId>
        <version>${wicketBootstrapVersion}</version>
    </dependency>
    <dependency>
        <groupId>de.agilecoders.wicket</groupId>
        <artifactId>wicket-bootstrap-extensions</artifactId>
        <version>${wicketBootstrapVersion}</version>
    </dependency>
    <dependency>
        <groupId>de.agilecoders.wicket</groupId>
        <artifactId>wicket-bootstrap-themes</artifactId>
        <version>${wicketBootstrapVersion}</version>
    </dependency>-

but the de.agilecoders.wicket artifacts use maximum wicket 6.15 so that the de.agilecoders.wicket artifacts can not be used

ursjoss commented 7 years ago

@braunimmobilien What's your ${wicketBootstrapVersion}?

AFAIK 0.8.4 and 0.9.x stay with wicket 6. 0.10.x uses wicket 7 and 2.x goes along with wicket 8.

ghost commented 7 years ago

When i use

de.agilecoders.wicket wicket-bootstrap-core 2.0.0-M5

and

com.giffing.wicket.spring.boot.starter wicket-spring-boot-starter-parent 2.0.0

i get in the tests the following error: Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.giffing.wicket.spring.boot.starter.app.verifier.WicketDependencyVersionChecker': Invocation of init method failed; nested exception is com.giffing.wicket.spring.boot.starter.app.verifier.WicketDependencyMismatchDetectedException

2017-06-11 19:33 GMT+02:00 Urs Joss notifications@github.com:

@braunimmobilien https://github.com/braunimmobilien What's your ${wicketBootstrapVersion}?

AFAIK 0.8.4 and 0.9.x stay with wicket 6. 0.10.x uses wicket 7 and 2.x goes along with wicket 8.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/MarcGiffing/wicket-spring-boot/issues/99#issuecomment-307644211, or mute the thread https://github.com/notifications/unsubscribe-auth/AKZkZ7ChiQvmIc31r80y_ozSE-_RanxEks5sDCTYgaJpZM4MzPtx .

martin-g commented 7 years ago

@braunimmobilien Please create new issues for new problems/questions! These issue is for other topic!