gpt4 book ai didi

java - Maven Web 项目无法启动

转载 作者:行者123 更新时间:2023-12-02 04:39:30 25 4
gpt4 key购买 nike

将 eclipse web 项目转换为 maven web 项目后,它没有解决一些依赖项。

Description Resource Path Location Type Missing artifact org.infinispan:infinispan-core:jar:4.2.1.FINAL pom.xml /Visual Expressions line 2 Maven Dependency Problem

Description Resource Path Location Type Missing artifact xalan:xalan:jar:2.7.1.jbossorg-2 pom.xml /Visual Expressions line 2 Maven Dependency Problem

然后我将其放入 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

可能是什么问题?

最佳答案

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

关于java - Maven Web 项目无法启动,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30339973/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com