运行嵌入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

问题解决:

POM里引了一个servlet 2.5 ,换成3.0

jetty-all引了3.0



你可能感兴趣的:(运行嵌入JETTY报错)