帮助我希望您有以下错误:
22:50:45854错误[org.jboss.msc.service.fail](msc服务线程1-1)MSC000001:无法启动服务jboss。在船底。部署。默认服务器。默认主机/opciondefensa。UndertowDeploymentInfoService:org。jboss。理学硕士。服务服务jboss中的StartException。在船底。部署。默认服务器。默认主机/opciondefensa。UndertowDeploymentInfoService:java。lang.ClassNotFoundException:org。springframework。网状物servlet。DispatcherServlet来自org上的[Module“deployment.opciondefensa.war:main”,来自服务模块加载器]。野蝇。扩大在船底。部署。UndertowDeploymentInfoService。org上的createServletConfig(UndertowDeploymentInfoService.java:1066)。野蝇。扩大在船底。部署。UndertowDeploymentInfoService。从org开始(在deploymentinfoservice.java:281下)。jboss。理学硕士。服务ServiceControllerImpl$StartTask。startService(ServiceControllerImpl.java:1948)位于org。jboss。理学硕士。服务ServiceControllerImpl$StartTask。在java上运行(ServiceControllerImpl.java:1881)。util。同时发生的线程池执行器。java上的runWorker(ThreadPoolExecutor.java:1142)。util。同时发生的线程池执行器$Worker。在java上运行(ThreadPoolExecutor.java:617)。朗。丝线。运行(Thread.java:745)的原因是:java。lang.ClassNotFoundException:org。springframework。网状物servlet。DispatcherServlet来自org上的[Module“deployment.opciondefensa.war:main”,来自服务模块加载器]。jboss。模块。ModuleClassLoader。位于org的findClass(ModuleClassLoader.java:198)。jboss。模块。ConcurrentClassLoader。org上的performLoadClassUnchecked(ConcurrentClassLoader.java:363)。jboss。模块。ConcurrentClassLoader。org上的performLoadClass(ConcurrentClassLoader.java:351)。jboss。模块。ConcurrentClassLoader。loadClass(ConcurrentClassLoader.java:93)位于org。野蝇。扩大在船底。部署。UndertowDeploymentInfoService。createServletConfig(UndertowDeploymentInfoService.java:721)。。。还有6个
22:50:45860错误[org.jboss.as.controller.management operation](控制器引导线程)WFLYCTL0013:操作(“部署”)失败-地址:([(“部署”)=
**
我的POM下面跟着同样的麻烦。
**
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>cl.legal</groupId>
<artifactId>opciondefensa</artifactId>
<packaging>war</packaging>
<version>0.0.1-SNAPSHOT</version>
<name>opciondefensa Maven Webapp</name>
<url>http://maven.apache.org</url>
<properties>
<spring.version>4.2.5.RELEASE</spring.version>
<jstl.version>1.2</jstl.version>
<tiles.version>3.0.1</tiles.version>
<hibernate.version>4.3.5.Final</hibernate.version>
<log4j.version>1.2.17</log4j.version>
<slf4j.version>1.6.1</slf4j.version>
<logback.version>0.9.26</logback.version>
<postgresql.version>9.4.1208</postgresql.version>
<javax.version>3.1.0</javax.version>
<jsp.version>2.1</jsp.version>
<java.version>1.8</java.version>
</properties>
<dependencies>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>3.8.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>${slf4j.version}</version>
<scope>provided</scope>
</dependency>
<!-- SERVLET -->
<dependency>
<groupId>javax.servlet</groupId>
<artifactId>javax.servlet-api</artifactId>
<version>${javax.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax</groupId>
<artifactId>javaee-api</artifactId>
<version>7.0</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>javax.servlet.jsp</groupId>
<artifactId>jsp-api</artifactId>
<version>${jsp.version}</version>
<scope>provided</scope>
</dependency>
<!-- JSTL -->
<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
<version>${jstl.version}</version>
<scope>provided</scope>
</dependency>
<!-- SPRING FRAMEWORK -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context-support</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-web</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>${spring.version}</version>
<exclusions>
<exclusion>
<groupId>commons-logging</groupId>
<artifactId>commons-logging</artifactId>
</exclusion>
</exclusions>
</dependency>
<!-- <dependency> -->
<!-- <groupId>org.springframework</groupId> -->
<!-- <artifactId>spring-test</artifactId> -->
<!-- <version>${spring.version}</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- ORM HIBERNATE [JPA] -->
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-core</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-c3p0</artifactId>
<version>${hibernate.version}</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.hibernate.javax.persistence</groupId>
<artifactId>hibernate-jpa-2.0-api</artifactId>
<version>1.0.1.Final</version>
</dependency>
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-entitymanager</artifactId>
<version>5.1.0.Final</version>
</dependency>
<!-- <dependency> -->
<!-- <groupId>dom4j</groupId> -->
<!-- <artifactId>dom4j</artifactId> -->
<!-- <version>1.6.1</version> -->
<!-- <scope>provided</scope> -->
<!-- </dependency> -->
<!-- postgres Connector-->
<dependency>
<groupId>org.postgresql</groupId>
<artifactId>postgresql</artifactId>
<version>${postgresql.version}</version>
<scope>provided</scope>
</dependency>
<!-- Tiles -->
<dependency>
<groupId>org.apache.tiles</groupId>
<artifactId>tiles-extras</artifactId>
<version>${tiles.version}</version>
</dependency>
<!-- Apache Commons Upload -->
<dependency>
<groupId>commons-fileupload</groupId>
<artifactId>commons-fileupload</artifactId>
<version>1.2.2</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.4.1.3</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.jaxrs</groupId>
<artifactId>jackson-jaxrs-base</artifactId>
<version>2.4.4</version>
</dependency>
<!-- Log4j -->
<dependency>
<groupId>log4j</groupId>
<artifactId>log4j</artifactId>
<version>${log4j.version}</version>
</dependency>
</dependencies>
<build>
<finalName>opciondefensa</finalName>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-war-plugin</artifactId>
<version>2.4</version>
<configuration>
<warSourceDirectory>WebContent</warSourceDirectory>
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
</plugins>
</build>
</project>
这样做,
右键单击项目-
我希望它能解决你的问题。
很清楚
java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet
你试图使用spring,但你没有把它包括在你的战争中。
查看您的opciondefensa.war
中包含哪些罐
为什么提供范围的
spring mvc
?
Hibernate被设置为pom.xml中的依赖项: 当我们在Wildfly8和9上时,这些依赖关系运行良好。想知道我可能在配置中遗漏了什么?
启动jboss服务器时,出现错误,无法启动服务jboss.deployment.unit.“jbpm console.war”。但是当我使用start.demo运行jbpm6演示时,它工作得很好。
启动wildfly服务器时使用:/独立的。sh或部署我的war时,我收到错误: 据我所知,没有部署任何东西。部署文件夹中没有?杀了java,又试了一次,甚至尝试了重启。 我错过了什么?
我遵循了pom.xml 22:57:12,387信息[org.jboss.as.server](DeploymentScanner-Threads-1)WFLYSRV0016:将部署“Kuppiwar.war”替换为部署“Kuppiwar.war”22:57:12,388信息[org.jboss.as.controller“(DeploymentScanner-Threads-1)WFLYCTL0
我正在尝试为Windows配置服务总线,但在将主机添加到服务总线场的阶段,它无法启动服务总线网关。 事件日志中指出: 如何解决此问题?
问题内容: 我刚刚完成了重新安装操作系统的工作,并且像往常一样安装和测试了我使用的标准工具,现在当我尝试从eclipse启动Jboss 5时,出现了前所未有的错误: 以前有没有人遇到过类似的问题?到目前为止我从未遇到过 问题答案: 看起来像是JRE和OS版本的某些特定组合发生的错误(请参阅https://jira.jboss.org/jira/browse/JBAS-6981)。基本上,JBoss