quality@glassfish.java.net

Re: Fwd: [Issue 11388] [other] [embedded] Unable to get basic unit test working in Maven

From: Ludovic Champenois <Ludovic.Champenois_at_Sun.COM>
Date: Wed, 06 Jan 2010 08:53:08 -0800

Richard Kolb wrote:
>
>
> 2010/1/6 Ludovic Champenois <Ludovic.Champenois_at_sun.com
> <mailto:Ludovic.Champenois_at_sun.com>>
>
>
>
>
>
> (2) If dependency order is not correct, issue more meaningful
> error message"
>
> Good luck with that i.e almost impossible to list all possible
> configuration cases that would trigger an issue with a classpath
> ordering scheme.
>
> In this example, the exception throws by the jvm runtime is not
> clear enough because the mentioned jar is a postprocessed jar that
> is not meant to be used at runtime including test-runtime.
>
>
> Unfortunately Maven by default puts scope provided in the test
> classpath which is the problem I hit.
The bug comment says " wonder if the javaeee-api-6.0.jar is needed at
all"...
Can you confirm that?
> I attached a Maven doc section in the issue tracker.
>
> https://glassfish.dev.java.net/issues/show_bug.cgi?id=11388
>
>
>
> Only solution is this thread and the bug filed that will be
> indexed by Google and Bing for people to find when searching for
> the exception text :-)
>
>
> And hopefully in the manual as well,
Which one? and which url do you suggest?
> maybe in a trouble shooting section.
Which one?
The one you find by doing a google search on "troubling shooting
glassfish"? :-)

> Seems this tripped up quite a few people already
>
> regards
> Richard.