如何使用Apache cxf-2.4.8.jar作为我的war项目的依赖项,而不是使用安装在JBoss 7中的exo.ws.rest.core-2.3.3-GA?

时间:2013-11-01 13:28:06

标签: apache

我正在迁移到GateIn 3.6(JBOSS7)。发生以下错误,因为我的项目战与exo.ws.rest.core-2.3.3-GA有一定的依赖性,因为它部署在JBOSS7(GateIn3.6)

引起:java.lang.reflect.InvocationTargetException

18:36:02,711错误[stderr](http - 0.0.0.0-8087-1)at sun.reflect.NativeMethodAccessorImpl.invoke0(原生方法)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

18:36:02,727错误[stderr](http - 0.0.0.0-8087-1)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

18:36:02,727 java.lang.reflect.Method.invoke(Method.java:597)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)atg.apache.myfaces.el.PropertyResolverImpl.getProperty(PropertyResolverImpl.java:457)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)... 302更多

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)引起:org.apache.cxf.jaxrs.client.ClientWebApplicationException:java.lang.NullPointerException

18:36:02,727 org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:839)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 org.apache.cxf.jaxrs.client.WebClient.doChainedInvocation(WebClient.java:816)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:743)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 org.apache.cxf.jaxrs.client.WebClient.doInvoke(WebClient.java:717)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 org.apache.cxf.jaxrs.client.WebClient.invoke(WebClient.java:344)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at org.apache.cxf.jaxrs.client.WebClient.get(WebClient.java:469)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at com.radiant.cisms.services.WorkflowProcessService.getBusinessRuleList(WorkflowProcessService.java:489)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at com.radiant.cisms.services.WorkflowProcessService $$ FastClassByCGLIB $$ b715c2f2.invoke()

18:36:02,727错误[stderr](http - 0.0.0.0-8087-1)at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)atg.springframework.aop.framework.Cglib2AopProxy $ CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:700)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)atg.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at org.springframework.aop.framework.Cglib2AopProxy $ DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:635)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at com.radiant.cisms.services.WorkflowProcessService $$ EnhancerByCGLIB $$ 14154f1.getBusinessRuleList()

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at com.radiant.cisms.view.bean.BusinessRuleBean.getBusinessRuleList(BusinessRuleBean.java:69)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)... 307更多

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)引起:java.lang.NullPointerException

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at org.exoplatform.services.rest.impl.ResponseImpl $ ResponseBuilderImpl。(ResponseImpl.java:217)

18:36:02,727 ERROR [stderr](http - 0.0.0.0-8087-1)at org.exoplatform.services.rest.impl.ResponseImpl $ ResponseBuilderImpl.clone(ResponseImpl.java:284)

18:36:02,727 org.apache.cxf.jaxrs.client.AbstractClient.setResponseBuilder(AbstractClient.java:381)中的错误[stderr](http - 0.0.0.0-8087-1)

18:36:02,742 ERROR [stderr](http - 0.0.0.0-8087-1)at org.apache.cxf.jaxrs.client.WebClient.handleResponse(WebClient.java:829)

18:36:02,742 ERROR [stderr](http - 0.0.0.0-8087-1)... 322更多

期待解决方案......

1 个答案:

答案 0 :(得分:0)

正如我在gatein pom.xml中看到的那样,Gatein 3.6.x使用的exo.ws版本是

    <org.exoplatform.ws.version>2.3.4-GA</org.exoplatform.ws.version>

所以我认为升级你对exo.ws的依赖可以解决你的问题。

罗曼