注意:我是开发人员中使用JavaEE的新手。我的问题看起来很简单,但我无法理解它,我创建了一个简单的Maven项目,当我试图用Maven构建它并编写“wildfly:deploy”时,我遇到了部署“.war”的问题,这是.log:
Services which failed to start: service jboss.deployment.unit."pfeweb.war".component.AlimentationBD.START: org.jboss.msc.service.StartException in service jboss.deployment.unit."pfeweb.war".component.AlimentationBD.START: java.lang.IllegalStateException: WFLYEE0042: Failed to construct component instance 15:26:18,891 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:19990/management 15:26:18,892 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:19990 15:26:18,892 ERROR [org.jboss.as] (Controller Boot Thread) WFLYSRV0026: WildFly Full 9.0.1.Final (WildFly Core 1.0.1.Final) started (with errors) in 15180ms - Started 362 of 540 services (5 services failed or missing dependencies, 221 services are lazy, passive or on-demand) 15:26:18,969 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 18) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'pfeweb.war#pfe-ejb' 15:26:18,980 INFO [org.jboss.weld.deployer] (MSC service thread 1-8) WFLYWELD0010: Stopping weld service for deployment pfeweb.war 15:26:18,981 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 18) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'pfeweb.war#pfe-ejb' 15:26:19,051 INFO [org.jboss.as.server.deployment] (MSC service thread 1-3) WFLYSRV0028: Stopped deployment pfeweb.war (runtime-name: pfeweb.war) in 104ms 15:26:19,196 INFO [org.jboss.as.server] (DeploymentScanner-threads - 1) WFLYSRV0009: Undeployed "pfeweb.war" (runtime-name: "pfeweb.war") 15:26:19,198 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 1) WFLYCTL0183: Service status report WFLYCTL0184: New missing/unsatisfied dependencies: service jboss.deployment.unit."pfeweb.war".WeldStartService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component.AlimentationBD.START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".moduleDeploymentRuntimeInformationStart, service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component.AuthentificationService.START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".moduleDeploymentRuntimeInformationStart, service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."Beans.AccessBean".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."com.sun.faces.config.ConfigureListener".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."javax.faces.webapp.FacetTag".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."javax.servlet.jsp.jstl.tlv.PermittedTaglibsTLV".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."javax.servlet.jsp.jstl.tlv.ScriptFreeTLV".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."org.jboss.weld.servlet.WeldInitialListener".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".component."org.jboss.weld.servlet.WeldTerminalListener".START (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".ee.ComponentRegistry (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.deployment.unit."pfeweb.war".moduleDeploymentRuntimeInformation (missing) dependents: [service jboss.deployment.unit."pfeweb.war".moduleDeploymentRuntimeInformationStart] service jboss.persistenceunit."pfeweb.war#pfe-ejb" (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService, service jboss.undertow.deployment.default-server.default-host./pfeweb, service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.server.global-request-controller.control-point."pfeweb.war".undertow (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.undertow.deployment.default-server.default-host./pfeweb (missing) dependents: [service jboss.deployment.unit."pfeweb.war".deploymentCompleteService] service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb] service jboss.undertow.deployment.default-server.default-host./pfeweb.codec (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] service jboss.undertow.deployment.default-server.default-host./pfeweb.session (missing) dependents: [service jboss.undertow.deployment.default-server.default-host./pfeweb.UndertowDeploymentInfoService] WFLYCTL0186: Services which failed to start: service jboss.deployment.unit."pfeweb.war".component.AlimentationBD.START 15:26:23,416 INFO [org.jboss.as.server.deployment.scanner] (DeploymentScanner-threads - 1) WFLYDS0004: Found pfeweb.war in deployment directory. To trigger deployment create a file called pfeweb.war.dodeploy
有人能帮帮我吗
This is pom.xml of the war project
<modelVersion>4.0.0</modelVersion>
<groupId>tn.orange.pfe</groupId>
<artifactId>pfeweb</artifactId>
<version>0.0.1-SNAPSHOT</version>
<packaging>war</packaging>
<properties>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<failOnMissingWebXml>false</failOnMissingWebXml>
</properties>
<dependencies>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
</dependency>
<dependency>
<groupId>tn.orange.pfe</groupId>
<version>0.0.1-SNAPSHOT</version>
<artifactId>pfeejb</artifactId>
<type>ejb</type>
</dependency>
<dependency>
<groupId>org.primefaces</groupId>
<artifactId>primefaces</artifactId>
<version>5.2</version>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>1.0.2.Final</version>
<configuration>
<hostname>localhost</hostname>
<port>18181</port>
<finalName>${project.artifactId}</finalName>
</configuration>
</plugin>
</plugins>
</build>
我有这个错误,我试图解决它,但我不能。 组织。素面。扩展。组成部分格哈特。GChartRenderer'缺少一个运行时依赖项:java。lang.NoClassDefFoundError:com/google/gson/GsonBuilder 错误[org.jboss.msc.service.fail](ServerService线程池--64)MSC000001:无法开启服务jboss.unde
嗨,evryone,我是开发JavaEE的新手,我想创建一个应用程序web,我已经创建了BD和ejb部分,其中包含包持久性、接口和服务,在war部分,我创建了包bean和webapp。。。。。我做了一个 请我需要帮助它已经4天寻找解决方案,我没有找到任何东西来帮助感谢所有
我想用Maven构建一个Spring MVC webapp,它使用EclipseLink作为JPA提供程序,并在Wildfly application Server上运行。不幸的是,我不能让它运行。我想用所有东西的最新版本。 当我尝试在Wildfly8.2或Tomcat8上运行webapp时,我得到了以下错误: 下面是我的项目的文件层次结构。(我还不能在上面分享图像) 我没有打开实体包,因为我有大
我想在我的maven项目中使用Sikulix,但它不起作用,我试图像它所说的那样添加存储库(http://sikulix-2014.readthedocs.org/en/latest/faq/030-java-dev.html#a-comment-on-projects-using-maven),当我进行“MVN安装”时,它说“不能找到工件com.Sikulix:sikulixapi:jar:1.
我刚刚安装了,但是我很难启动它。有了我的项目,没有它,当我开始时,它在中显示相同的错误: 14:15:37571信息[org.jboss.modules](主)jboss模块版本1.5.2。最终14:15:37757信息[org.jboss.msc](main)jboss msc版本1.2.6。最终14:15:37829信息[org.jboss.as](MSC服务线程1-7)WFLYSRV0049
主要内容:创建 Maven 项目,目录结构Maven 提供了大量不同类型的 Archetype 模板,通过它们可以帮助用户快速的创建 Java 项目,其中最简单的模板就是 maven-archetype-quickstart,它只需要用户提供项目最基本的信息,就能生成项目的基本结构及 POM 文件。 创建 Maven 项目 下面我们将通过 maven-archetype-quickstart 原型,在 D:\maven 目录中创建一个基于