daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Aug 14th, 2016 136 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. spring.datasource.url=jdbc:postgresql://localhost:5432/sehati
  2. spring.datasource.username=sehati
  3. spring.datasource.password=password
  4.    
  5. <?xml version="1.0" encoding="UTF-8"?>
  6. <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  7.     xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  8.     <modelVersion>4.0.0</modelVersion>
  9.  
  10.     <groupId>com.sehatigroup</groupId>
  11.     <artifactId>siapotek</artifactId>
  12.     <version>0.0.1-SNAPSHOT</version>
  13.     <packaging>jar</packaging>
  14.  
  15.     <name>siapotek</name>
  16.     <description>Demo project for Spring Boot</description>
  17.  
  18.     <parent>
  19.         <groupId>org.springframework.boot</groupId>
  20.         <artifactId>spring-boot-starter-parent</artifactId>
  21.         <version>1.4.0.RELEASE</version>
  22.         <relativePath/>
  23.     </parent>
  24.  
  25.     <properties>
  26.         <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  27.         <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
  28.         <java.version>1.8</java.version>
  29.     </properties>
  30.  
  31.     <dependencies>
  32.         <dependency>
  33.             <groupId>org.springframework.boot</groupId>
  34.             <artifactId>spring-boot-starter-jdbc</artifactId>
  35.         </dependency>
  36.         <dependency>
  37.             <groupId>org.springframework.boot</groupId>
  38.             <artifactId>spring-boot-starter-security</artifactId>
  39.         </dependency>
  40.         <dependency>
  41.             <groupId>com.vaadin</groupId>
  42.             <artifactId>vaadin-spring-boot-starter</artifactId>
  43.             <version>1.0.0</version>
  44.         </dependency>
  45.         <dependency>
  46.             <groupId>org.springframework.boot</groupId>
  47.             <artifactId>spring-boot-starter-web</artifactId>
  48.         </dependency>
  49.  
  50.         <dependency>
  51.             <groupId>org.postgresql</groupId>
  52.             <artifactId>postgresql</artifactId>
  53.             <scope>runtime</scope>
  54.         </dependency>
  55.  
  56.          <!--
  57.         <dependency>
  58.             <groupId>com.h2database</groupId>
  59.             <artifactId>h2</artifactId>
  60.         </dependency>
  61.          -->
  62.  
  63.         <dependency>
  64.             <groupId>org.springframework.boot</groupId>
  65.             <artifactId>spring-boot-starter-test</artifactId>
  66.             <scope>test</scope>
  67.         </dependency>
  68.         <dependency>
  69.             <groupId>org.springframework.boot</groupId>
  70.             <artifactId>spring-boot-starter-jersey</artifactId>
  71.         </dependency>
  72.     </dependencies>
  73.  
  74.     <dependencyManagement>
  75.         <dependencies>
  76.             <dependency>
  77.                 <groupId>com.vaadin</groupId>
  78.                 <artifactId>vaadin-bom</artifactId>
  79.                 <version>7.6.3</version>
  80.                 <type>pom</type>
  81.                 <scope>import</scope>
  82.             </dependency>
  83.         </dependencies>
  84.     </dependencyManagement>
  85.  
  86.     <build>
  87.         <plugins>
  88.             <plugin>
  89.                 <groupId>org.springframework.boot</groupId>
  90.                 <artifactId>spring-boot-maven-plugin</artifactId>
  91.             </plugin>
  92.         </plugins>
  93.     </build>
  94. </project>
  95.    
  96. @SpringBootApplication
  97. public class SiaApplication {
  98.  
  99.     public static void main(String[] args) {
  100.         SpringApplication.run(SiaApplication.class, args);
  101.     }
  102. }
  103.    
  104. @SpringUI
  105. @Theme("valo")
  106. public class SehatiDashboardUI extends UI {
  107.     @Override
  108.     protected void init(VaadinRequest request) {
  109.         setContent(new Label("Hello World"));
  110.     }
  111. }
  112.    
  113. @Component
  114. public class LookupService {
  115.  
  116.     @Autowired
  117.     private JdbcTemplate jdbcTemplate;
  118.  
  119.     public List<Lookup> findAll() {
  120.         return jdbcTemplate.query("select id, type, label, name from lookup",
  121.                 (rs, rowNum) -> new Lookup(rs.getLong("id"), rs.getString("type"), rs.getString("label"), rs.getString("label")));
  122.     }
  123. }
  124.    
  125. .   ____          _            __ _ _
  126.  /\ / ___'_ __ _ _(_)_ __  __ _    
  127. ( ( )___ | '_ | '_| | '_ / _` |    
  128.  \/  ___)| |_)| | | | | || (_| |  ) ) ) )
  129.   '  |____| .__|_| |_|_| |___, | / / / /
  130.  =========|_|==============|___/=/_/_/_/
  131.  :: Spring Boot ::        (v1.4.0.RELEASE)
  132.  
  133. 2016-08-15 07:03:09.329  INFO 1387 --- [           main] com.sehatigroup.SiaApplication           : Starting SiaApplication on learn2fly with PID 1387 (/home/hameed/workspace/siapotek/target/classes started by hameed in /home/hameed/workspace/siapotek)
  134. 2016-08-15 07:03:09.333  INFO 1387 --- [           main] com.sehatigroup.SiaApplication           : No active profile set, falling back to default profiles: default
  135. 2016-08-15 07:03:09.530  INFO 1387 --- [           main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@5656be13: startup date [Mon Aug 15 07:03:09 WIB 2016]; root of context hierarchy
  136. 2016-08-15 07:03:11.329  WARN 1387 --- [           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'.
  137. 2016-08-15 07:03:11.892  INFO 1387 --- [           main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
  138. 2016-08-15 07:03:12.069  INFO 1387 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration' of type [class org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration$$EnhancerBySpringCGLIB$$666445bd] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
  139. 2016-08-15 07:03:12.776  INFO 1387 --- [           main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
  140. 2016-08-15 07:03:12.795  INFO 1387 --- [           main] o.apache.catalina.core.StandardService   : Starting service Tomcat
  141. 2016-08-15 07:03:12.797  INFO 1387 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet Engine: Apache Tomcat/8.5.4
  142. 2016-08-15 07:03:12.931  INFO 1387 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/]       : Initializing Spring embedded WebApplicationContext
  143. 2016-08-15 07:03:12.932  INFO 1387 --- [ost-startStop-1] o.s.web.context.ContextLoader            : Root WebApplicationContext: initialization completed in 3414 ms
  144. 2016-08-15 07:03:13.065  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Registering Vaadin servlet
  145. 2016-08-15 07:03:13.065  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Servlet will be mapped to URLs [/vaadinServlet/*, /VAADIN/*]
  146. 2016-08-15 07:03:13.086  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Setting servlet init parameters
  147. 2016-08-15 07:03:13.086  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Set servlet init parameter [productionMode] = [false]
  148. 2016-08-15 07:03:13.086  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Set servlet init parameter [resourceCacheTime] = [3600]
  149. 2016-08-15 07:03:13.087  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Set servlet init parameter [heartbeatInterval] = [300]
  150. 2016-08-15 07:03:13.087  INFO 1387 --- [ost-startStop-1] c.v.s.b.i.VaadinServletConfiguration     : Set servlet init parameter [closeIdleSessions] = [false]
  151. 2016-08-15 07:03:13.218  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'characterEncodingFilter' to: [/*]
  152. 2016-08-15 07:03:13.218  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
  153. 2016-08-15 07:03:13.219  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'httpPutFormContentFilter' to: [/*]
  154. 2016-08-15 07:03:13.219  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean   : Mapping filter: 'requestContextFilter' to: [/*]
  155. 2016-08-15 07:03:13.221  INFO 1387 --- [ost-startStop-1] .s.DelegatingFilterProxyRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
  156. 2016-08-15 07:03:13.221  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'dispatcherServlet' to [/]
  157. 2016-08-15 07:03:13.223  INFO 1387 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean  : Mapping servlet: 'springVaadinServlet' to [/vaadinServlet/*, /VAADIN/*]
  158. 2016-08-15 07:03:13.302  WARN 1387 --- [           main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'lookupService': Unsatisfied dependency expressed through field 'jdbcTemplate': No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency [org.springframework.jdbc.core.JdbcTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency [org.springframework.jdbc.core.JdbcTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  159. 2016-08-15 07:03:13.307  INFO 1387 --- [           main] o.apache.catalina.core.StandardService   : Stopping service Tomcat
  160. 2016-08-15 07:03:13.338  WARN 1387 --- [           main] o.s.boot.SpringApplication               : Error handling failed (Error creating bean with name 'delegatingApplicationListener' defined in class path resource [org/springframework/security/config/annotation/web/configuration/WebSecurityConfiguration.class]: Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.transaction.annotation.ProxyTransactionManagementConfiguration': Initialization of bean failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'org.springframework.context.annotation.ConfigurationClassPostProcessor.importRegistry' is defined)
  161. 2016-08-15 07:03:13.355 ERROR 1387 --- [           main] o.s.boot.SpringApplication               : Application startup failed
  162.  
  163. org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'lookupService': Unsatisfied dependency expressed through field 'jdbcTemplate': No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency [org.springframework.jdbc.core.JdbcTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency [org.springframework.jdbc.core.JdbcTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  164.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:569) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  165.     at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:88) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  166.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessPropertyValues(AutowiredAnnotationBeanPostProcessor.java:349) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  167.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1214) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  168.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  169.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  170.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  171.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  172.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  173.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  174.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:776) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  175.     at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:861) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  176.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:541) ~[spring-context-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  177.     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  178.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  179.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  180.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:313) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  181.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  182.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174) [spring-boot-1.4.0.RELEASE.jar:1.4.0.RELEASE]
  183.     at com.sehatigroup.SiaApplication.main(SiaApplication.java:10) [classes/:na]
  184. Caused by: org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [org.springframework.jdbc.core.JdbcTemplate] found for dependency [org.springframework.jdbc.core.JdbcTemplate]: expected at least 1 bean which qualifies as autowire candidate for this dependency. Dependency annotations: {@org.springframework.beans.factory.annotation.Autowired(required=true)}
  185.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.raiseNoMatchingBeanFound(DefaultListableBeanFactory.java:1406) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  186.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1057) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  187.     at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1019) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  188.     at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:566) ~[spring-beans-4.3.2.RELEASE.jar:4.3.2.RELEASE]
  189.     ... 19 common frames omitted
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top