Suppressed: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type NisQueryExecutor with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private nis.spro.seisan.domain.menu.StationMenuLogic.queryExecutor
at nis.spro.seisan.domain.menu.StationMenuLogic.queryExecutor(StationMenuLogic.java:0)
WELD-001474: Class nis.framework.sql.NisQueryExecutor is on the classpath, but was ignored because a class it references was not found: org.apache.logging.log4j.Logger.
Suppressed: org.jboss.weld.exceptions.DeploymentException: WELD-001408: Unsatisfied dependencies for type MstsubDto with qualifiers @Default
at injection point [BackedAnnotatedField] @Inject private nis.spro.seisan.domain.master.mstsub.service.impl.MstsubServiceImpl.mstsubDto
at nis.spro.seisan.domain.master.mstsub.service.impl.MstsubServiceImpl.mstsubDto(MstsubServiceImpl.java:0)
WELD-001474: Class nis.spro.seisan.domain.master.mstsub.dto.MstsubDto is on the classpath, but was ignored because a class it references was not found: org.apache.logging.log4j.Logger.
先解释下报异常的意思:
WELD-001474:类NisQueryExecutor位于类路径上,但被忽略,因为找不到它引用的类:Logger
意思是:NisQueryExecutor它里面依赖的’Logger’找不到,
但是我检查了jar包,引用import org.apache.logging.log4j.Logger;
都没问题.
因其原因:
\项目\src\main\java\META-INF\MANIFEST.MF
../log4j-api-2.12.1.jar
../log4j-core-2.12.1.jar
实际版本是
../log4j-api-2.17.0.jar
../log4j-core-2.17.0.jar