简体   繁体   English

在Spring MVC应用程序中使用CXF创建SOAP客户端时出错

[英]Error while creating SOAP client using CXF in Spring MVC application

I am new to spring framework and this question may be a silly one. 我是Spring框架的新手,这个问题可能很愚蠢。 But please do provide a solution for this error. 但是请提供针对此错误的解决方案。

I am getting following error while trying to run Spring MVC application which consumes SOAP based web-service using Apache CXF. 我在尝试运行Spring MVC应用程序时遇到以下错误,该应用程序使用Apache CXF消耗了基于SOAP的Web服务。

    INFO: Starting service Catalina
Aug 08, 2012 2:09:28 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.27
Aug 08, 2012 2:09:29 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\rtProjectsWS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\dataservice-client\WEB-INF\lib\geronimo-servlet_2.5_spec-1.1.2.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
Aug 08, 2012 2:09:29 PM org.apache.catalina.loader.WebappClassLoader validateJarFile
INFO: validateJarFile(D:\rtProjectsWS\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\dataservice-client\WEB-INF\lib\geronimo-servlet_3.0_spec-1.0.jar) - jar not loaded. See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
SLF4J: The requested version 1.6 by your slf4j binding is not compatible with [1.5.5, 1.5.6, 1.5.7, 1.5.8, 1.5.9, 1.5.10]
SLF4J: See http://www.slf4j.org/codes.html#version_mismatch for further details.
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/D:/rtProjectsWS/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dataservice-client/WEB-INF/lib/slf4j-jdk14-1.6.2.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/D:/rtProjectsWS/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps/dataservice-client/WEB-INF/lib/slf4j-log4j12-1.5.10.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
Aug 08, 2012 2:09:29 PM org.apache.catalina.core.ApplicationContext log
INFO: Initializing Spring root WebApplicationContext
Aug 08, 2012 2:09:29 PM org.apache.catalina.core.StandardContext listenerStart
SEVERE: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
java.lang.AbstractMethodError: org.slf4j.impl.JDK14LoggerAdapter.log(Lorg/slf4j/Marker;Ljava/lang/String;ILjava/lang/String;Ljava/lang/Throwable;)V
    at org.apache.commons.logging.impl.SLF4JLocationAwareLog.info(SLF4JLocationAwareLog.java:159)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:194)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
    at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4779)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5273)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1566)
    at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1556)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)

The steps I followed to create the project as follows: 我按照以下步骤创建项目:

  1. Created Spring MVC Project by selecting MVC template in STS IDE. 通过在STS IDE中选择MVC模板来创建Spring MVC项目。
  2. Generated CXF SOAP Client using the wizard. 使用向导生成的CXF SOAP客户端。
  3. Modified spring config by adding following line. 通过添加以下行修改了spring配置。

Thanks in advance. 提前致谢。

Maybe this post can help or this . 也许这篇文章可以帮助或这个 it basically says that you have a version conflict or an old version of slf4j. 它基本上是说您有版本冲突或旧版本的slf4j。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Apache CXF 和 Java 11 中创建 SOAP 客户端时出错 - Error Creating SOAP Client In Apache CXF And Java 11 使用CXF的ExactTarget SOAP客户端 - ExactTarget SOAP Client Using CXF 使用cxf:jaxws-client时将soap:encodingStyle属性添加到soap:body - Adding soap:encodingStyle attribute to soap:body while using cxf:jaxws-client 为什么Spring-Boot应用程序在创建CXF SOAP服务步骤时冻结? - Why does Spring-Boot application freeze on creating CXF SOAP service step? 使用Apache CXF为SOAP客户端指定SSLContext - Specify SSLContext for SOAP Client Using Apache CXF 在Spring MVC应用程序中使用jclouds创建BlobContext时出错 - Error creating BlobContext using jclouds in a Spring MVC application CXF-SOAP-SPRING部署bean创建异常:创建名称为'accountDetailsS​​ervice'的bean时出错: - CXF-SOAP-SPRING deployment bean creation exception:Error creating bean with name 'accountDetailsService': 使用apache cxf从wsdl生成客户端时出错 - Error while generating client from wsdl using apache cxf 创建配置MAVEN,CXF和spring的示例应用程序 - Creating sample application configuring MAVEN, CXF and spring 由于Soap Message Factory,使用CXF和Spring 3 webserviceTemplate的Webservice在Jboss 5上出错 - Webservice using CXF and Spring 3 webserviceTemplate gets error on Jboss 5 due to Soap Message Factory
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM