简体   繁体   English

Maven和Tomcat在Netbeans上的Jersey测试框架问题

[英]Jersey Test Framework issue on Netbeans with Maven and Tomcat

I'm using Jersey Test Framework in NetBeans 7.1 where my JSON webservices are hosted on the included Tomcat instance :8084. 我在NetBeans 7.1中使用Jersey测试框架,其中JSON Web服务托管在包含的Tomcat实例:8084上。

I'm getting the following exception when trying to run any tests: 尝试运行任何测试时出现以下异常:

Absent Code attribute in method that is not native or abstract in class file javax/mail/internet/ParseException

Any ideas? 有任何想法吗?

Add the following Maven fragment: 添加以下Maven片段:

    <dependency>
        <groupId>javax.mail</groupId>
        <artifactId>mail</artifactId>
        <version>1.4</version>
        <scope>provided</scope>
    </dependency>

As this adds the missing concrete implementations. 因为这增加了缺少的具体实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM