Maven Web项目无法启动

andy007

将Eclipse Web项目转换为Maven Web项目后,仍无法解决某些依赖关系。

说明资源路径位置类型缺少工件org.infinispan:infinispan-core:jar:4.2.1.FINAL pom.xml / Visual Expressions第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

可能是什么问题呢?

andy007

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

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

Maven项目无法建立

来自分类Dev

Javafx项目无法使用Maven进行编译

来自分类Dev

Maven + Spring项目无法加载依赖的XSD文件

来自分类Dev

IntelliJ中具有Maven的Scala项目无法编译

来自分类Dev

项目无法启动错误

来自分类Dev

Eclipse,项目无法启动

来自分类Dev

无法使用Maven项目启动tomcat

来自分类Dev

Maven项目无法在OSX上使用Java 8进行编译

来自分类Dev

GWT Maven项目无法编译-类型没有源代码

来自分类Dev

IntelliJ 14.1.2中的Android Maven项目无法解析appcompat v7类

来自分类Dev

具有多个模块的Maven项目无法找到模块的pom.xml-Jenkins / Eclipse

来自分类Dev

Maven项目无法在OSX上使用Java 8进行编译

来自分类Dev

具有多个模块的Maven项目无法找到模块的pom.xml-Jenkins / Eclipse

来自分类Dev

Eclipse 无法导入 Maven 项目。无法启动所选向导

来自分类Dev

Android库项目无法启动?

来自分类Dev

maven:无法安装元数据项目无法解析元数据maven-metadata-local.xml:在开始标记之前仅允许空白内容

来自分类Dev

无法通过Tomcat7 Maven插件启动RESTEasy Maven项目(ExecutionException)

来自分类Dev

无法在Netbeans 8.2中创建Maven Web项目

来自分类Dev

Eclipse无法导入Maven项目

来自分类Dev

我无法建立Maven项目

来自分类Dev

无法生成新的Maven项目

来自分类Dev

Weber快速启动项目无法生成

来自分类Dev

Xamarin Forms-PCL项目无法启动该应用

来自分类Dev

添加XSuperObject时项目无法在iOS中启动

来自分类Dev

Xamarin Forms-PCL项目无法启动该应用

来自分类Dev

Maven错误:“更新Maven项目”

来自分类Dev

Maven错误:“更新Maven项目”

来自分类Dev

确定从maven项目启动VS Code的projectName

来自分类Dev

从 Maven 或 IDE 运行 Spring 启动项目

Related 相关文章

热门标签

归档