如果我添加jaxws-2.2给org.apache.cxf.bus.osgi.OSGIBusListener错误

时间:2017-10-30 15:54:58

标签: java websphere jax-ws websphere-liberty

如果我添加我在server.xml中添加jaxws-2.2功能,则会给出 org.apache.cxf.bus.osgi.OSGIBusListener错误。有谁能让我知道我在这里失踪了什么? 如果我添加<feature>webProfile-7.0</feature>我的代码工作正常,但如果我添加 <feature>javaee-7.0</feature>,它给出了同样的错误:

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>

0 个答案:

没有答案