尝试导入maven项目时,在安装JAX-RS(REST Web服务)1.1时失败

时间:2015-05-14 16:33:19

标签: eclipse web-services maven jax-rs m2eclipse

我正在尝试在Eclipse中导入maven项目。它给出了一个错误 "更新Maven项目。安装JAX-RS(REST Web服务)1.1时失败。 '' :无法为JAX-RS"配置Web模块。无法为JAX-RS配置Web模块。

以下是来自工作区.metadeta的错误日志。有什么建议或修正吗? Java版本1.6和Jersey版本1.18.1。

ENTRY org.eclipse.wst.common.project.facet.core 4 0 2015-05-14 11:18:28.723
        !MESSAGE Failed while installing JAX-RS (REST Web Services) 1.1.
        !STACK 1
        org.eclipse.jst.ws.jaxrs.core.internal.project.facet.JAXRSFacetException: '<project-name>' : unable to configure web module for JAX-RS 
            at org.eclipse.jst.ws.jaxrs.core.internal.project.facet.JAXRSFacetInstallDelegate.execute(JAXRSFacetInstallDelegate.java:103)
            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.callDelegate(FacetedProject.java:1477)
            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.modifyInternal(FacetedProject.java:441)
            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.mergeChangesInternal(FacetedProject.java:1181)
            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject.access$2(FacetedProject.java:1117)
            at org.eclipse.wst.common.project.facet.core.internal.FacetedProject$1.run(FacetedProject.java:324)
            at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:2313)
        .....
        .....

    at org.eclipse.m2e.core.ui.internal.UpdateMavenProjectJob.runInWorkspace(UpdateMavenProjectJob.java:77)
        at org.eclipse.core.internal.resources.InternalWorkspaceJob.run(InternalWorkspaceJob.java:38)
        at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)
    !SUBENTRY 1 org.eclipse.jst.ws.jaxrs.core 4 0 2015-05-14 11:18:28.723
    !MESSAGE '<project-name>' : unable to configure web module for JAX-RS 

    !ENTRY org.eclipse.jface 4 2 2015-05-14 11:18:28.828
    !MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.jface".
    !STACK 0
    java.lang.NullPointerException
        at org.eclipse.jst.jee.ui.internal.navigator.web.WebAppProvider.getImage(WebAppProvider.java:99)
        at org.eclipse.jst.jee.ui.internal.navigator.Web25LabelProvider.getImage(Web25LabelProvider.java:47)
        at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.findImage(NavigatorContentServiceLabelProvider.java:197)
        at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.getColumnImage(NavigatorContentServiceLabelProvider.java:105)
        at org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.getImage(NavigatorContentServiceLabelProvider.java:98)
        at org.eclipse.ui.internal.navigator.NavigatorDecoratingLabelProvider$StyledLabelProviderAdapter.getImage(NavigatorDecoratingLabelProvider.java:59)

0 个答案:

没有答案