Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [m2e-users] Classpath issue running JUnit/Application - Javassist MethodFilter not found.

Thanks, Igor. I'll see what I can figure out. If I can't make it work, I'll try to supply a project that exhibits the problem.


On 02/07/2011 03:23 PM, Igor Fedorenko wrote:
Runtime classpath for tests and application launched via standard "Run
as Java Application" and "Run as JUnit test" launch configuration types
is explained in [1]. If this does not explain the behaviour you see,
please provide sample project and steps to reproduce the problem.

[1] https://docs.sonatype.org/display/M2ECLIPSE/Runtime+classpath

--
Regards,
Igor

On 11-02-07 01:36 PM, Dave Hicks wrote:
I've got a Maven based project that I work on using Eclipse and
M2Eclipse. I've encountered a problem with the classpath that only comes
up when I attempt to run JUnit test cases and Application classes from
within Eclipse. I get a NoClassDefFound error on the Javassist
"MethodFilter" class when trying to load the Spring application context.
All of these work without problem when I run the same tests and/or
applications directly in Maven from the command line. I have updated
dependencies and project configuration on my project, but those did not
have any effect. I've also tried swapping between the built-in Maven
instance (3.0 SNAPSHOT) included with M2Eclipse and my installed version
(2.2.1). That, too, had no effect.

I don't know for sure that this is an M2Eclipse issue. It's just my
first point of attack, having failed all other avenues that I could
think of. In looking at the .classpath file for my project, I see that
the classpath refers to "MAVEN2_CLASSPATH_CONTAINER". Is there some way
that I can inspect that container to see what's really in it? I'm just
unsure how to debug this problem from here.

Thanks,
Dave
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users
_______________________________________________
m2e-users mailing list
m2e-users@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2e-users


Back to the top