ClassNotFoundException:在Jetty中运行时的CompositeUriComponentsContributor

皮肤

我刚开始运行Java Spring Web服务器时出现以下错误

    java.lang.ClassNotFoundException:org.springframework.web.method.support.CompositeUriComponentsContributor

该代码以前可以运行,并且我没有更改任何版本,所以我不确定发生了什么。我的pom中具有以下spring框架依赖项

<dependency>
    <groupId>org.springframework</groupId>
<artifactId>spring-core</artifactId>
<version>${spring.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-web</artifactId>
    <version>${spring.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-expression</artifactId>
    <version>${spring.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.security</groupId>
<artifactId>spring-security-web</artifactId>
<version>${springSecurity.version}</version>
</dependency> 

<dependency>
    <groupId>org.springframework.security</groupId>
    <artifactId>spring-security-config</artifactId>
<version>${springSecurity.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.social</groupId>
<artifactId>spring-social-core</artifactId>
<version>${springSocial.version}</version>
</dependency>

<dependency>
    <groupId>org.springframework.social</groupId>
<artifactId>spring-social-config</artifactId>
<version>${springSocial.version}</version>
</dependency>

<dependency>
<groupId>org.springframework.social</groupId>
<artifactId>spring-social-security</artifactId>
<version>${springSocial.version}</version>
</dependency>

与版本

<spring.version>3.2.3.RELEASE</spring.version>
<springSocial.version>1.1.0.BUILD-SNAPSHOT</springSocial.version>
<springSecurity.version>3.1.4.RELEASE</springSecurity.version>

此方法包含在org.springframework spring-web jar中,因此我还尝试使用maven依赖插件使用以下cli参数来跟踪是否有其他依赖项正在加载旧版本

mvn dependency:tree -Dverbose -Dincludes=spring-web

但是,这没有显示任何结果。使用Maven的上一个问题中,我还尝试了一些建议:获取java.lang.ClassNotFoundException:org.springframework.web.bind.support.WebDataBinderFactory但没有运气。

我最近添加到pom中的唯一其他工件是

<dependency>
    <groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<version>4.2.1</version>
</dependency>
<dependency>
<groupId>org.apache.axis</groupId>
<artifactId>axis</artifactId>
<version>1.4</version>
</dependency>
<dependency>
<groupId>commons-discovery</groupId>
<artifactId>commons-discovery</artifactId>
<version>0.5</version>
</dependency>
<dependency>
    <groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-api</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
<groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-commons-impl</artifactId>
<version>0.8.0</version>
</dependency>
<dependency>
    <groupId>org.apache.chemistry.opencmis</groupId>
<artifactId>chemistry-opencmis-client-impl</artifactId>
<version>0.8.0</version>
</dependency>

但我认为这些不会影响spring-web的依赖关系。有没有人曾经遇到过这个问题,或者对我可以尝试找出正在发生的事情有其他想法?

干杯,德姆

皮肤

因此,经过大量的试验和错误,添加以下依赖项似乎已经解决了我的问题

<dependency>
    <groupId>org.springframework</groupId>
    <artifactId>spring-beans</artifactId>
    <version>${spring.version}</version>
</dependency>

尚未能够使用CompositeUriConponentsContributor和spring-web来跟踪依赖关系,但看起来已经为我解决了这个问题...万一其他人遇到类似问题

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

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

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章

来自分类Dev

在Jetty中运行时发生IllegalTransactionStateException

来自分类Dev

在CMD中运行时发生ClassNotFoundException

来自分类Dev

在IDE外部运行时发生ClassNotFoundException

来自分类Dev

运行时在Android上怪异的ClassNotFoundException

来自分类Dev

运行时出现Android ClassNotFoundException错误

来自分类Dev

运行JAR时发生ClassNotFoundException,在IntelliJ IDEA中运行时没有错误

来自分类Dev

使用jetty-maven-plugin运行Jetty并在jetty运行时完成构建

来自分类Dev

使用jetty-maven-plugin运行Jetty并在jetty运行时完成构建

来自分类Dev

mvn jetty:运行时出现错误404

来自分类Dev

运行时Jetty 9(嵌入式)JSP编译

来自分类Dev

在Jetty运行时更新密钥库/信任库

来自分类Dev

在Jetty运行时更新密钥库/信任库

来自分类Dev

运行时Jetty 9(嵌入式)JSP编译

来自分类Dev

Eclipse RCP:java.lang.ClassNotFoundException运行时

来自分类Dev

Eclipse RCP:java.lang.ClassNotFoundException运行时

来自分类Dev

在Java / Jetty的运行时从我的代码中获得GAE flexible环境中的AppEngine服务名称和版本?

来自分类Dev

在TestNG中运行时,即使对于内置类型,使用反射创建类也会引发java.lang.ClassNotFoundException

来自分类Dev

Golang中的运行时常量

来自分类Dev

Java中的运行时多态示例?

来自分类Dev

Perl中的运行时错误

来自分类Dev

在python中运行时变量访问

来自分类Dev

seekbar Android中的运行时错误

来自分类Dev

Racket中的运行时模式匹配

来自分类Dev

C中的运行时错误(CodeChef)

来自分类Dev

customAdapter中的运行时错误

来自分类Dev

pymel中的运行时错误

来自分类Dev

运行时创建的控件中的事件

来自分类Dev

Perl中的运行时错误

来自分类Dev

Android中SQLite的运行时异常

Related 相关文章

热门标签

归档