Estou participando de um projeto que foi incluído o Spring Boot, porém não consigo executar o projeto na minha maquina.
Projeto Maven - Web.
pom (Referente a dependência Spring Boot)
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId>
<version>1.5.9.RELEASE</version>
<exclusions>
<exclusion>
<groupId>javax.annotation</groupId>
<artifactId>javax.annotation-api</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.joinfaces</groupId>
<artifactId>jsf-spring-boot-starter</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>6.1</version>
</dependency>
<dependency>
<groupId>org.glassfish.web</groupId>
<artifactId>el-impl</artifactId>
<version>2.2.1-b05</version>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId>
<version>1.5.9.RELEASE</version>
<scope>test</scope>
</dependency>
Classe que lança a exceção:
@SpringBootApplication
public class Aplicacao {
public static void main(String[] args) {
SpringApplication.run(Aplicacao.class, args);//Linha que lança o erro
}
}
Erro gerado na execução do projeto:
===================================================
:: Spring Boot :: (v1.5.9.RELEASE)
===================================================
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v1.5.9.RELEASE)
2017-12-01 22:47:10.085 INFO 6204 --- [ main] br.minhaaplicacao.Aplicacao : Starting Aplicacao on Junio with PID 6204 (started by Jose Junio in C:\Users\Jose Junio\Documents\NetBeansProjects\minhaplicacao)
2017-12-01 22:47:10.085 INFO 6204 --- [ main] br.minhaplicacao.Aplicacao : No active profile set, falling back to default profiles: default
2017-12-01 22:47:10.163 INFO 6204 --- [ main] ationConfigEmbeddedWebApplicationContext : Refreshing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@23a5fd2: startup date [Fri Dec 01 22:47:10 GMT-03:00 2017]; root of context hierarchy
2017-12-01 22:47:11.991 INFO 6204 --- [ main] f.a.AutowiredAnnotationBeanPostProcessor : JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-12-01 22:47:12.085 INFO 6204 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.joinfaces.javaxfaces.ProjectStageAutoConfiguration' of type [org.joinfaces.javaxfaces.ProjectStageAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-12-01 22:47:12.835 INFO 6204 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat initialized with port(s): 8080 (http)
2017-12-01 22:47:12.866 INFO 6204 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2017-12-01 22:47:12.866 INFO 6204 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet Engine: Apache Tomcat/8.5.20
2017-12-01 22:47:13.444 INFO 6204 --- [ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2017-12-01 22:47:13.475 INFO 6204 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-12-01 22:47:13.475 INFO 6204 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3328 ms
2017-12-01 22:47:14.866 INFO 6204 --- [ost-startStop-1] org.reflections.Reflections : Reflections took 688 ms to scan 6 urls, producing 728 keys and 3837 values
2017-12-01 22:47:15.522 INFO 6204 --- [ost-startStop-1] o.s.b.w.servlet.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-12-01 22:47:15.522 INFO 6204 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-12-01 22:47:15.522 INFO 6204 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-12-01 22:47:15.522 INFO 6204 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'httpPutFormContentFilter' to: [/*]
2017-12-01 22:47:15.522 INFO 6204 --- [ost-startStop-1] o.s.b.w.servlet.FilterRegistrationBean : Mapping filter: 'requestContextFilter' to: [/*]
2017-12-01 22:47:15.647 INFO 6204 --- [ost-startStop-1] j.e.resource.webcontainer.jsf.config : Inicializando Mojarra 2.2.14 ( 20161114-2152 unable to get svn info) para o contexto ''
2017-12-01 22:47:15.975 INFO 6204 --- [ost-startStop-1] j.e.r.webcontainer.jsf.application : JSF1048: Anotações PostConstruct/PreDestroy presentes. Os métodos ManagedBeans marcados com essas anotações informarão as anotações processadas.
2017-12-01 22:47:17.085 INFO 6204 --- [ost-startStop-1] .w.PostConstructApplicationEventListener : Running on PrimeFaces 6.1
2017-12-01 22:47:17.085 INFO 6204 --- [ost-startStop-1] .a.PostConstructApplicationEventListener : Running on PrimeFaces Extensions 6.1
2017-12-01 22:47:17.085 INFO 6204 --- [ost-startStop-1] o.omnifaces.VersionLoggerEventListener : Using OmniFaces version 1.14
2017-12-01 22:47:17.538 INFO 6204 --- [ main] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@23a5fd2: startup date [Fri Dec 01 22:47:10 GMT-03:00 2017]; root of context hierarchy
2017-12-01 22:47:17.678 INFO 6204 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-12-01 22:47:17.678 INFO 6204 --- [ main] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-12-01 22:47:17.725 INFO 6204 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-12-01 22:47:17.725 INFO 6204 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-12-01 22:47:17.788 INFO 6204 --- [ main] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-12-01 22:47:17.835 INFO 6204 --- [ main] oConfiguration$WelcomePageHandlerMapping : Adding welcome page: ServletContext resource [/index.html]
2017-12-01 22:47:18.085 INFO 6204 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-12-01 22:47:18.194 INFO 6204 --- [ main] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 8080 (http)
2017-12-01 22:47:18.210 INFO 6204 --- [ main] utoConfigurationReportLoggingInitializer :
Error starting ApplicationContext. To display the auto-configuration report re-run your application with 'debug' enabled.
2017-12-01 22:47:18.225 ERROR 6204 --- [ main] o.s.boot.SpringApplication : Application startup failed
java.lang.IllegalArgumentException: Unable to create WebResourceSet from [C:\Users\Jose%20Junio\.m2\repository\org\glassfish\javax.faces\2.2.14\javax.faces-2.2.14.jar]
at org.apache.catalina.webresources.StandardRoot.createWebResourceSet(StandardRoot.java:419) ~[tomcat-embed-core-8.5.20.jar:8.5.20]
at org.joinfaces.tomcat.JsfTomcatApplicationListener.addClasspathResourceSets(JsfTomcatApplicationListener.java:176) ~[jsf-spring-boot-autoconfigure-2.4.1.jar:2.4.1]
at org.joinfaces.tomcat.JsfTomcatApplicationListener.onApplicationEvent(JsfTomcatApplicationListener.java:152) ~[jsf-spring-boot-autoconfigure-2.4.1.jar:2.4.1]
at org.joinfaces.tomcat.JsfTomcatApplicationListener.onApplicationEvent(JsfTomcatApplicationListener.java:38) ~[jsf-spring-boot-autoconfigure-2.4.1.jar:2.4.1]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347) ~[spring-context-4.3.13.RELEASE.jar:4.3.13.RELEASE]
at org.springframework.boot.context.event.EventPublishingRunListener.finished(EventPublishingRunListener.java:101) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.callFinishedListener(SpringApplicationRunListeners.java:79) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at org.springframework.boot.SpringApplicationRunListeners.finished(SpringApplicationRunListeners.java:72) ~[spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:305) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.9.RELEASE.jar:1.5.9.RELEASE]
at br.edu.ifpe.garanhuns.sg.Aplicacao.main(Aplicacao.java:14) [classes/:na]
2017-12-01 22:47:18.225 INFO 6204 --- [ main] ationConfigEmbeddedWebApplicationContext : Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@23a5fd2: startup date [Fri Dec 01 22:47:10 GMT-03:00 2017]; root of context hierarchy
2017-12-01 22:47:18.225 INFO 6204 --- [ main] o.s.j.e.a.AnnotationMBeanExporter : Unregistering JMX-exposed beans on shutdown
Alguém tem alguma ideia de como resolver o erro?
Grato.