Closed rai20 closed 6 years ago
Hi -
MariaDB integration is canceled for now due to compatibility issues with EPL license. Please use the last version of the repo which is running on H2 DBMS.
Thanks, -fatih
Hi Fatih,
Thanks for the info.
I get the below exception when I follow the steps mentioned in the README file. The description in the prerequisite section is vague for someone with no experience with maven /Tomcat etc.
Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
Hi Pratheep -
Could you please share the scenario details while you get this exception?
thanks, -fatih
Hi Fatih, here are the steps I followed.
Machine used runs XUbuntu with OpenJDK version 11
Cheers, Pratheek
Hi Pratheep -
I think the root cause of the problem is your Java version. The app store supports Java version 8 and I guess there is something incompatible with version 11.
Is it possible to try it with version 8?
Thanks, -fatih
Hi Fatih,
It works with Java 8. Thanks:)
Hi Pratheek -
Good news. I think this issue can be closed now.
Thanks, -fatih
Hi Fatih, yes certainly. Cheers
Hi, I receive an exeception when i execute "Java -jar kuksa...jar". I have configured the mariadb and created a new database called "appstore". Below are the application.properties entries I have created a user admin2 with password admin in mariadb server. I have also checked for empty spaces in the properties file.
Here is the exception i get
kuksa@kuksa:~/kuksa-appstore/kuksa.cloud/kuksa.appstore/target$ java -jar kuksa.appstore-0.0.1-SNAPSHOT.jar 2018-10-22 15:26:17.644 INFO 1453 --- [ main] s.c.a.AnnotationConfigApplicationContext : Refreshing org.springframework.context.annotation.AnnotationConfigApplicationContext@52feb982: startup date [Mon Oct 22 15:26:17 CEST 2018]; root of context hierarchy WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by org.springframework.cglib.core.ReflectUtils$1 (jar:file:/home/kuksa/kuksa-appstore/kuksa.cloud/kuksa.appstore/target/kuksa.appstore-0.0.1-SNAPSHOT.jar!/BOOT-INF/lib/spring-core-5.0.8.RELEASE.jar!/) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of org.springframework.cglib.core.ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2018-10-22 15:26:18.214 INFO 1453 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'configurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$49730185] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
. _ _ /\ / '_ () \ \ \ \ ( ( )\ | ' | '| | ' \/ ` | \ \ \ \ \/ _)| |)| | | | | || (| | ) ) ) ) ' |__| .|| ||| |\, | / / / / =========|_|==============|__/=//// :: Spring Boot :: (v2.0.4.RELEASE)
2018-10-22 15:26:18.576 INFO 1453 --- [ main] o.e.kuksa.appstore.AppStoreApplication : No active profile set, falling back to default profiles: default 2018-10-22 15:26:18.608 INFO 1453 --- [ main] ConfigServletWebServerApplicationContext : Refreshing org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext@59309333: startup date [Mon Oct 22 15:26:18 CEST 2018]; parent: org.springframework.context.annotation.AnnotationConfigApplicationContext@52feb982 2018-10-22 15:26:20.244 INFO 1453 --- [ main] o.s.b.f.s.DefaultListableBeanFactory : Overriding bean definition for bean 'dataSource' with a different definition: replacing [Root bean: class [null]; scope=refresh; abstract=false; lazyInit=false; autowireMode=3; dependencyCheck=0; autowireCandidate=false; primary=false; factoryBeanName=org.springframework.boot.autoconfigure.jdbc.DataSourceConfiguration$Hikari; factoryMethodName=dataSource; initMethodName=null; destroyMethodName=(inferred); defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]] 2018-10-22 15:26:20.271 WARN 1453 --- [ main] o.s.c.a.ConfigurationClassPostProcessor : Cannot enhance @Configuration bean definition 'com.vaadin.spring.VaadinConfiguration' since its singleton instance has been created too early. The typical cause is a non-static @Bean method with a BeanDefinitionRegistryPostProcessor return type: Consider declaring such methods as 'static'. 2018-10-22 15:26:20.511 INFO 1453 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=4453f2db-b1eb-3014-bebb-2928591e446f 2018-10-22 15:26:20.869 INFO 1453 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$2d58fe88] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-22 15:26:20.963 INFO 1453 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration' of type [org.springframework.cloud.autoconfigure.ConfigurationPropertiesRebinderAutoConfiguration$$EnhancerBySpringCGLIB$$49730185] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2018-10-22 15:26:21.616 INFO 1453 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8082 (http) 2018-10-22 15:26:21.665 INFO 1453 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2018-10-22 15:26:21.666 INFO 1453 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.32 2018-10-22 15:26:21.684 INFO 1453 --- [ost-startStop-1] o.a.catalina.core.AprLifecycleListener : The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: [/usr/java/packages/lib:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib] 2018-10-22 15:26:21.802 INFO 1453 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2018-10-22 15:26:21.802 INFO 1453 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3195 ms 2018-10-22 15:26:21.828 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Registering Vaadin servlet 2018-10-22 15:26:21.828 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Servlet will be mapped to URLs [/vaadinServlet/, /VAADIN/] 2018-10-22 15:26:21.887 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Setting servlet init parameters 2018-10-22 15:26:21.888 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [productionMode] = [false] 2018-10-22 15:26:21.890 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [resourceCacheTime] = [3600] 2018-10-22 15:26:21.890 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [heartbeatInterval] = [300] 2018-10-22 15:26:21.890 INFO 1453 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration : Set servlet init parameter [closeIdleSessions] = [false] 2018-10-22 15:26:22.057 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/] 2018-10-22 15:26:22.058 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/] 2018-10-22 15:26:22.058 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/] 2018-10-22 15:26:22.058 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/] 2018-10-22 15:26:22.059 INFO 1453 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/] 2018-10-22 15:26:22.059 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet dispatcherServlet mapped to [/] 2018-10-22 15:26:22.062 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet springVaadinServlet mapped to [/vaadinServlet/, /VAADIN/] 2018-10-22 15:26:22.063 INFO 1453 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Servlet webServlet mapped to [/console/] 2018-10-22 15:26:22.325 INFO 1453 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting... 2018-10-22 15:26:22.441 INFO 1453 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Start completed. 2018-10-22 15:26:22.449 INFO 1453 --- [ main] o.s.jdbc.datasource.init.ScriptUtils : Executing SQL script from URL [jar:file:/home/kuksa/kuksa-appstore/kuksa.cloud/kuksa.appstore/target/kuksa.appstore-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/schema.sql] 2018-10-22 15:26:22.454 INFO 1453 --- [ main] o.s.jdbc.datasource.init.ScriptUtils : Executed SQL script from URL [jar:file:/home/kuksa/kuksa-appstore/kuksa.cloud/kuksa.appstore/target/kuksa.appstore-0.0.1-SNAPSHOT.jar!/BOOT-INF/classes!/schema.sql] in 5 ms. 2018-10-22 15:26:22.682 INFO 1453 --- [ main] j.LocalContainerEntityManagerFactoryBean : Building JPA container EntityManagerFactory for persistence unit 'default' 2018-10-22 15:26:22.713 INFO 1453 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [ name: default ...] 2018-10-22 15:26:22.861 INFO 1453 --- [ main] org.hibernate.Version : HHH000412: Hibernate Core {5.2.17.Final} 2018-10-22 15:26:22.864 INFO 1453 --- [ main] org.hibernate.cfg.Environment : HHH000206: hibernate.properties not found 2018-10-22 15:26:22.892 WARN 1453 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException 2018-10-22 15:26:22.893 INFO 1453 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown initiated... 2018-10-22 15:26:22.902 INFO 1453 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Shutdown completed. 2018-10-22 15:26:22.903 INFO 1453 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]