Maven Web项目无法启动

时间:2015-05-20 03:53:18

标签: java eclipse maven wildfly wildfly-8

将eclipse web项目转换为maven web项目后,并没有解决一些dependensies。

  

描述资源路径位置类型缺少工件   org.infinispan:infinispan-core:jar:4.2.1.FINAL pom.xml / Visual   表达式第2行Maven依赖问题

     

描述资源路径位置类型缺少工件   xalan:xalan:jar:2.7.1.jbossorg-2 pom.xml / Visual Expressions行   2 Maven依赖问题

然后我输入了pom.xml,eclipse显示没有错误。

<repositories>
        <repository>
            <id>jboss-public-repository-group</id>
            <name>JBoss Public Maven Repository Group</name>
            <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </repository>
    </repositories>
    <pluginRepositories>
        <pluginRepository>
            <id>jboss-public-repository-group</id>
            <name>JBoss Public Maven Repository Group</name>
            <url>https://repository.jboss.org/nexus/content/groups/public-jboss/</url>
            <layout>default</layout>
            <releases>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </releases>
            <snapshots>
                <enabled>true</enabled>
                <updatePolicy>never</updatePolicy>
            </snapshots>
        </pluginRepository>
    </pluginRepositories>

但项目未能启动。

Failed to start service
        Caused by: org.jboss.weld.exceptions.DefinitionException: WELD-000075: Normal scoped managed bean implementation class has a public field:  [EnhancedAnnotatedFieldImpl] public org.jboss.resteasy.core.AcceptHeaderByFileSuffixFilter.languageMappings"}}
    ...    
    06:30:56,796 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on http://127.0.0.1:9990/management
    06:30:56,796 INFO  [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
    06:30:56,796 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: WildFly 8.0.0.Final "WildFly" started (with errors) in 10500ms - Started 500 of 735 services (181 services failed or missing dependencies, 90 services are lazy, passive or on-demand)
    06:30:56,953 INFO  [org.jboss.weld.deployer] (MSC service thread 1-6) JBAS016009: Stopping weld service for deployment Visual Expressions.war
    06:30:57,234 INFO  [org.jboss.as.server.deployment] (MSC service thread 1-1) JBAS015877: Stopped deployment Visual Expressions.war (runtime-name: Visual Expressions.war) in 303ms
    06:30:57,390 INFO  [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS018558: Undeployed "Visual Expressions.war" (runtime-name: "Visual Expressions.war")
    06:30:57,421 INFO  [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
    JBAS014775:    New missing/unsatisfied dependencies:
          service jboss.deployment.unit."Visual Expressions.war".WeldBootstrapService (missing) dependents: [service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.xml.ParamTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.xml.ExprTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.el.xml.TransformTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.core.ParamTag".WeldInstantiator, JBAS014799: ... and 88 more ] 
          service jboss.deployment.unit."Visual Expressions.war".WeldStartService (missing) dependents: [service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.xml.ParamTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.xml.ExprTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.el.xml.TransformTag".WeldInstantiator, service jboss.deployment.unit."Visual Expressions.war".component."org.apache.taglibs.standard.tag.rt.core.ParamTag".WeldInstantiator, JBAS014799: ... and 86 more ] 
          ...............
    JBAS014777:   Services which failed to start:      service jboss.deployment.unit."Visual Expressions.war".WeldStartService

可能是什么问题?

1 个答案:

答案 0 :(得分:2)

事实证明,POM正在添加我认为我需要的一大堆东西,但实际上并没有。除了我在项目基于maven时添加的内容之外,我除去了所有内容,我添加了服务器运行时库,然后一切都很酷。