स्प्रिंग बूट 1.3.7 से 1.4.0 तक अपग्रेड करने के बाद सिग्नल जार स्टार्टअप विफल रहा, हम अब स्प्रिंग बूट मेवेन प्लगइन के साथ एक जार बिल्ड के रूप में अपना आवेदन शुरू नहीं कर सकते हैं। हमारा आवेदन जर्सी और जेट्टी का उपयोग कर एक छोटा सा आरईएसटी इंटरफ़ेस है। हम मेवेन का उपयोग करते हैं और हमारी पोम फ़ाइल सुंदर मानक वसंत बूट है।स्प्रिंग बूट 1.3.7 से 1.4.0
हम अभी भी mvn spring-boot:run
और ग्रहण के भीतर से का उपयोग कर आवेदन चला सकते हैं, लेकिन जब एक भी जार के रूप में चलाने जर्सी ResourceFinder
शिकायत है कि यह .jar!/BOOT-INF/classes
नहीं मिल रहा।
जब मैं जार को अनपैक करता हूं तो फ़ोल्डर BOOT-INF/classes
मौजूद है और अपेक्षित कक्षाएं और संसाधन शामिल हैं।
किसी भी मदद की सराहना की।
2016-08-10 14:58:31.162 ERROR 16071 --- [ main] o.s.boot.SpringApplication
: Application startup failed
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'jerseyConfig' defined in URL
[jar:file:/acmesource/acme/acme-core/acme-core-api/target/acme-core-api-0.1
SNAPSHOT.jar!/BOOT-INF/classes!/com/acme/core/api/JerseyConfig.class]: Bean
instantiation via constructor failed; nested exception is
org.springframework.beans.BeanInstantiationException: Failed to instantiate
[com.acme.core.api.JerseyConfig]: Constructor threw exception; nested
exception is
org.glassfish.jersey.server.internal.scanning.ResourceFinderException:
java.io.FileNotFoundException: /acmesource/acme/acme-core/acme-core
api/target/acme-core-api-0.1-SNAPSHOT.jar!/BOOT-INF/classes (No such file or directory)
धन्यवाद! उसको याद किया। जब संसाधन अलग-अलग पंजीकृत होते हैं तो काम करता है। – oleb
@oleb आपने मेरा दिन बचा लिया है !! धन्यवाद –