Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

JUnit testing with a Maven project in NetBeans

Hello there!

I'm running a Maven project using NetBeans which uses RTC PlainJavaClient Api. I've added it to classpath and can use it with no problems. I'm trying to run some JUnit tests. Each time I'm getting the same error. It seems as though the platform can't start during JUnit test. I get the following error:

testAddListener caused an ERROR: class "org.eclipse.core.runtime.IContributor"'s signer information does not match signer information of other classes in the same package


Anyone can help?

Regards,
Paweł

0 votes



One answer

Permanent link
I get the following error:

testAddListener caused an ERROR: class "org.eclipse.core.runtime.IContributor"'s signer information does not match signer information of other classes in the same package



Greetings, Pawel

I've usually seen that message when I have two copies of a JAR on the classpath, each of which has different versions. Some classes are loaded from one JAR, and some from the other, which results in the error message you're seeing.

Since you're running JUnit, are you including a JUnit jar file on the classpath of your project, and also using the built-in Eclipse JUnit library? If so, try removing the built-in JAR (which is usually an earlier version), and see if that helps.

Keith McMillan

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,954

Question asked: Feb 19 '10, 8:27 a.m.

Question was seen: 8,894 times

Last updated: Feb 19 '10, 8:27 a.m.

Related questions
Confirmation Cancel Confirm