Gradle Buildpath Issue

Hi ,
I am facing an issue in gradle build while doing “build cleanupresource” for one of my project it is throwing exception as below :-
CHKJ2907E:Type, or one of its supertypes, cannot be reflected. Check the classpath.

When I Checked the dependency tag in build.gradle , it has all the jars which consist these classes .I am unable to undrstand why when gradle do the compilation before ejb deploy it is not throwing any compilation error but during ejbdeploy it is throwing validation error as above.


This sounds like you need the EJB classes on the classpath of the build itself, not just the classpath of the application you’re building.

If you run the tasks with gradle --stacktrace, what’s the output? That will help determine whether that is indeed the problem.