使用cfx3.2.14插件根据wsdl生成webservices客户端,生成后服务无法启动

Blade 未结 1 694

一、该问题的重现步骤是什么?

1. 使用cfx3.2.14插件根据wsdl生成webservices客户端,生成后服务启动报错

2. 

3.


二、你期待的结果是什么?实际看到的又是什么?

      服务启动正常,接口调通


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

      bladex 2.6.0   window操作系统


四、请提供详细的错误堆栈信息,这很重要。

Exception in thread "main" java.lang.IllegalArgumentException: LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation (class org.slf4j.impl.JDK14LoggerFactory loaded from file:/E:/apache-cxf-3.2.14/lib/slf4j-jdk14-1.7.26.jar). If you are using WebLogic you will need to add 'org.slf4j' to prefer-application-packages in WEB-INF/weblogic.xml: org.slf4j.impl.JDK14LoggerFactory

at org.springframework.util.Assert.instanceCheckFailed(Assert.java:389)

at org.springframework.util.Assert.isInstanceOf(Assert.java:327)

at org.springframework.boot.logging.logback.LogbackLoggingSystem.getLoggerContext(LogbackLoggingSystem.java:280)

at org.springframework.boot.logging.logback.LogbackLoggingSystem.beforeInitialize(LogbackLoggingSystem.java:104)

at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationStartingEvent(LoggingApplicationListener.java:219)

at org.springframework.boot.context.logging.LoggingApplicationListener.onApplicationEvent(LoggingApplicationListener.java:200)

at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)

at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)

at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:122)

at org.springframework.boot.context.event.EventPublishingRunListener.starting(EventPublishingRunListener.java:70)

at org.springframework.boot.SpringApplicationRunListeners.starting(SpringApplicationRunListeners.java:47)

at org.springframework.boot.SpringApplication.run(SpringApplication.java:302)

at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140)

at org.springblade.core.launch.BladeApplication.run(BladeApplication.java:50)

at com.matrix.dinas.webservices.WebservicesApplication.main(WebservicesApplication.java:35)

Disconnected from the target VM, address: '127.0.0.1:56124', transport: 'socket'


Process finished with exit code 1


五、若有更多详细信息,请在下面提供。

1条回答
  • 2021-04-21 09:52

    同时引用了log4j和logback,需要做排除,具体可以去百度搜索报错关键词,截取前一段就行,比如:LoggerFactory is not a Logback LoggerContext but Logback is on the classpath. Either remove Logback or the competing implementation 

    0 讨论(0)
提交回复