- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我有一个java 8 spring 5项目/spring ws 3。它在tomcat 8中运行。它已经从旧版本的spring迁移并使用web服务的xml配置。当我启动应用程序时,出现以下错误
ERROR: [May-04 15:03:25,263] web.context.ContextLoader - Contextinitialization failedorg.springframework.beans.factory.BeanCreationException: Errorcreating bean with name'org.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping#0':Instantiation of bean failed; nested exception isorg.springframework.beans.BeanInstantiationException: Failed toinstantiate[org.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping]:Constructor threw exception; nested exception isjava.lang.ExceptionInInitializerError
This bean is getting created by Spring and is not specially called bymy application. I checked the code here
and looked at all the constructors getting called but still can'tfigure out what could be going wrong. Anyone ever see this? Or haveany idea what I could look at to track down the error?
Thanks
Edit: Should have added the final exception
Caused by: java.lang.ExceptionInInitializerError atorg.springframework.xml.xpath.XPathExpressionFactory.createXPathExpression(XPathExpressionFactory.java:73)atorg.springframework.ws.soap.addressing.version.AbstractAddressingVersion.createNormalizedExpression(AbstractAddressingVersion.java:116)atorg.springframework.ws.soap.addressing.version.AbstractAddressingVersion.(AbstractAddressingVersion.java:88)atorg.springframework.ws.soap.addressing.version.Addressing200408.(Addressing200408.java:36)atorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping.initDefaultStrategies(AbstractAddressingEndpointMapping.java:107)atorg.springframework.ws.soap.addressing.server.AbstractAddressingEndpointMapping.(AbstractAddressingEndpointMapping.java:98)atorg.springframework.ws.soap.addressing.server.AbstractActionEndpointMapping.(AbstractActionEndpointMapping.java:38)atorg.springframework.ws.soap.addressing.server.AbstractActionMethodEndpointMapping.(AbstractActionMethodEndpointMapping.java:34)atorg.springframework.ws.soap.addressing.server.AnnotationActionEndpointMapping.(AnnotationActionEndpointMapping.java:60)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod) atsun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)atsun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)at java.lang.reflect.Constructor.newInstance(Constructor.java:408)
编辑 2:运行的最后一行代码是org.springframework.xml.xpath.XPathExpressionFactory.java:36
这调用org.springframework.xml.xpath.Jaxp13XPathExpressionFactory.createXPathExpression()
包含以下数据
expression = normalize-space(wsa:To)
namespaces = ["wsa" -> "http://schemas.xmlsoap.org/ws/2004/08/addressing"]
我在 Jaxp13XPathExpressionFactory.createXPathExpression()
中有一个断点,但它永远不会被击中。很困惑为什么会这样,它说找不到该类,但该类与调用它的类位于同一个包中。
编辑3。它实际上确实发现了类,intellij 中的断点工作得不太好。该错误似乎是由
引起的jar:file:.../saxon9he-9.2.1.5.jar!/META-INF/services/javax.xml.xpath.XPathFactory:2: Illegal configuration-file syntax
最佳答案
最后简单回答一下。是旧的 Maven 依赖项导致了该问题。我将 saxon9he v9.2.1.5 升级到 Saxon-HE v9.8.0-11,错误不再发生,我的应用程序启动也没有问题。
关于java - 创建 AnnotationActionEndpointMapping bean 时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50177071/
我有一个java 8 spring 5项目/spring ws 3。它在tomcat 8中运行。它已经从旧版本的spring迁移并使用web服务的xml配置。当我启动应用程序时,出现以下错误 ERRO
AbstractAddressingEndpointMapping(AnnotationActionEndpointMapping 的祖先)从 BeanFactory 检索所有 SmartInterc
我是一名优秀的程序员,十分优秀!