Java 如果我添加jaxws-2.2,则给出org.apache.cxf.bus.osgi.OSGIBusListener错误
如果我在我的server.xml中添加我添加的Java 如果我添加jaxws-2.2,则给出org.apache.cxf.bus.osgi.OSGIBusListener错误,java,websphere,jax-ws,websphere-liberty,Java,Websphere,Jax Ws,Websphere Liberty,如果我在我的server.xml中添加我添加的jaxws-2.2特性,则其给出的org.apache.cxf.bus.osgi.OSGIBusListener错误。有人能告诉我我错过了什么吗? 如果我添加webProfile-7.0我的代码运行良好,但是如果我添加 javaee-7.0,它给出了相同的错误: Caused by: java.lang.InstantiationException: org.apache.cxf.bus.osgi.OSGIBusListener at java
jaxws-2.2
特性,则其给出的org.apache.cxf.bus.osgi.OSGIBusListener错误。有人能告诉我我错过了什么吗?
如果我添加webProfile-7.0
我的代码运行良好,但是如果我添加
javaee-7.0
,它给出了相同的错误:
Caused by: java.lang.InstantiationException: org.apache.cxf.bus.osgi.OSGIBusListener
at java.lang.Class.newInstance(Class.java:427)
at org.apache.cxf.bus.extension.Extension.load(Extension.java:218)
... 110 more
Caused by: java.lang.NoSuchMethodException: org.apache.cxf.bus.osgi.OSGIBusListener.()
at java.lang.Class.getConstructor0(Class.java:3082)
at java.lang.Class.newInstance(Class.java:412) .
以下是我启用的功能:
<featureManager>
<feature>javaee-7.0</feature>
<!-- <feature>webProfile-7.0</feature> -->
<feature>localConnector-1.0</feature>
<feature>servlet-3.1</feature>
<feature>jdbc-4.1</feature>
<feature>jndi-1.0</feature>
<feature>jsp-2.3</feature>
<feature>jaxrs-2.0</feature>
<feature>jsf-2.2</feature>
<feature>jaxws-2.2</feature>
</featureManager>
javaee-7.0
localConnector-1.0
servlet-3.1
jdbc-4.1
jndi-1.0
jsp-2.3
jaxrs-2.0
jsf-2.2
jaxws-2.2
此处信息不足,无法给出正确答案。您能否包括完整的server.xml配置(减去任何敏感数据)以及异常的完整堆栈跟踪?javaee-7.0 localConnector-1.0 servlet-3.1 jdbc-4.1 jndi-1.0 jsp-2.3 jaxrs-2.0 jsf-2.2 jaxws-2.2嗨,安迪,请找到上面复制的my server.xml,我删除了我的数据源配置。我验证了您提到的所有功能,并在Liberty 17.0.0.3中成功加载。您需要提供有关应用程序如何导致此情况的更多详细信息,包括完整堆栈跟踪。此处的信息不足,无法给出正确答案。您能否包括完整的server.xml配置(减去任何敏感数据)以及异常的完整堆栈跟踪?javaee-7.0 localConnector-1.0 servlet-3.1 jdbc-4.1 jndi-1.0 jsp-2.3 jaxrs-2.0 jsf-2.2 jaxws-2.2嗨,安迪,请找到上面复制的my server.xml,我删除了我的数据源配置。我验证了您提到的所有功能,并在Liberty 17.0.0.3中成功加载。您需要提供有关应用程序如何导致这种情况的更多详细信息,包括完整的堆栈跟踪。