2016-11-28 3 views
1

나는 부모 버전을 시작하는 봄 부팅 프로젝트를 빌드 1.4.2.RELEASE, 그것은 성공적으로 이클립스에 의해 실행되지만 자바 CLI를 실행하면, 이 이상한 오류가 발생, 명령이 mvn clean packagejava -jar target/yishi-service-0.5.0.war입니다자바에서 CLI를 실행하는 봄 부팅 java.io.FileNotFoundException 이상한 오류가있다

는 예외입니다 :

[main] ERROR o.a.c.c.C.[Tomcat].[localhost].[/] - StandardWrapper.Throwable 
org.glassfish.jersey.internal.ServiceConfigurationError: org.glassfish.jersey.internal.spi.AutoDiscoverable: : java.io.FileNotFoundException: JAR entry !/META-INF/services/org.glassfish.jersey.internal.spi.AutoDiscoverable not found in /tmp/jar_cache7985854176820315027.tmp 
    at org.glassfish.jersey.internal.ServiceFinder.fail(ServiceFinder.java:433) 
    at org.glassfish.jersey.internal.ServiceFinder.parse(ServiceFinder.java:512) 
    at org.glassfish.jersey.internal.ServiceFinder.access$400(ServiceFinder.java:155) 
    at org.glassfish.jersey.internal.ServiceFinder$AbstractLazyIterator.hasNext(ServiceFinder.java:572) 
    at org.glassfish.jersey.internal.ServiceFinder.toClassArray(ServiceFinder.java:418) 
    at org.glassfish.jersey.internal.ServiceFinderBinder.configure(ServiceFinderBinder.java:90) 
    at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:172) 
    at org.glassfish.hk2.utilities.binding.AbstractBinder.install(AbstractBinder.java:342) 
    at org.glassfish.jersey.server.ServerBinder.configure(ServerBinder.java:94) 
    at org.glassfish.hk2.utilities.binding.AbstractBinder.bind(AbstractBinder.java:172) 
    at org.glassfish.jersey.internal.inject.Injections.bind(Injections.java:157) 
    at org.glassfish.jersey.internal.inject.Injections._createLocator(Injections.java:147) 
    at org.glassfish.jersey.internal.inject.Injections.createLocator(Injections.java:123) 
    at org.glassfish.jersey.server.ApplicationHandler.<init>(ApplicationHandler.java:330) 
    at org.glassfish.jersey.servlet.WebComponent.<init>(WebComponent.java:392) 
    at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:177) 
    at org.glassfish.jersey.servlet.ServletContainer.init(ServletContainer.java:369) 
    at javax.servlet.GenericServlet.init(GenericServlet.java:158) 
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1183) 
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992) 
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4913) 
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedContext.deferredLoadOnStartup(TomcatEmbeddedContext.java:78) 
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.startConnector(TomcatEmbeddedServletContainer.java:256) 
    at org.springframework.boot.context.embedded.tomcat.TomcatEmbeddedServletContainer.start(TomcatEmbeddedServletContainer.java:181) 
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.startEmbeddedServletContainer(EmbeddedWebApplicationContext.java:297) 
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.finishRefresh(EmbeddedWebApplicationContext.java:145) 
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) 
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) 
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:761) 
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:371) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1186) 
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1175) 
    at com.jiajian.yishi.YishiServiceProjectApplication.main(YishiServiceProjectApplication.java:17) 
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) 
    at java.lang.reflect.Method.invoke(Method.java:498) 
    at org.springframework.boot.loader.MainMethodRunner.run(MainMethodRunner.java:48) 
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:87) 
    at org.springframework.boot.loader.Launcher.launch(Launcher.java:50) 
    at org.springframework.boot.loader.WarLauncher.main(WarLauncher.java:59) 

이 포함 된 바람둥이 버전은 다음과 같습니다 8.5.6.

도움 주셔서 감사합니다.

답변

0

Spring Boot issue tracker에 같은 질문을 교차 게시했습니다 (그렇게하지 마십시오). Spring Boot의 버그처럼 보입니다. Spring Boot 문제에 대한 논의를 계속하겠습니다.

+0

OK! 고마워요! –