开发者社区> 问答> 正文

运行嵌入JETTY报错?报错

想用JAVA代码运行JETTY

jetty版本用最新的9

    <dependency>  
            <groupId>org.eclipse.jetty.aggregate</groupId>  
            <artifactId>jetty-all</artifactId>  
            <version>9.0.6.v20130930</version>  
            <type>jar</type>  
            <scope>provided</scope>  
        </dependency> 

拷了springside里的org.springside.examples.showcase.Main
运行后

Exception in thread "main" java.lang.SecurityException: class "javax.servlet.HttpConstraintElement"'s signer information does not match signer information of other classes in the same package


展开
收起
爱吃鱼的程序员 2020-06-22 14:34:56 616 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    这个解决了

    POM里引了一个servlet2.5

    jetty-all引了3.0

    jdk版本不对?今天我也遇到了,同样的东西,一个在用Maven,一个没用Maven(这个正常运行)
    2020-06-22 14:35:14
    赞同 展开评论 打赏
问答分类:
问答标签:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载