Я создал Java-приложение, используя Spring-Boot и Maven.Когда я запускаю это приложение из Eclipse, оно работает отлично, но когда я пытаюсь запустить это приложение как автономный jar через java -jar
, оно выдает мне эту ошибку
Ошибка
o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'placeRefillOrderControllerImpl':
Unsatisfied dependency expressed through field 'placeRefillOrderService'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException
Error creating bean with name 'placeRefillOrderServiceImpl':
Unsatisfied dependency expressed through field 'placeRefillOrderBiz'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'placeRefillOrderBizImpl':
Unsatisfied dependency expressed through field 'placeRefillOrderConnector'; nested exception is
org.springframework.beans.factory.UnsatisfiedDependencyException:
Error creating bean with name 'getConnector': Unsatisfied dependency expressed through field 'refillOrderRequestTransformer'; nested exception is
org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'refillOrderRequestTransformer':
Lookup method resolution failed; nested exception is
java.lang.IllegalStateException: Failed to introspect Class [com.sams.pharmacy.soapconnector.helper.RefillOrderRequestTransformer] from ClassLoader [org.springframework.boot.loader.LaunchedURLClassLoader@439f5b3d]