https://bz.apache.org/bugzilla/show_bug.cgi?id=64335
Bug ID: 64335 Summary: org.apache.catalina.realm.TestJNDIRealm debug fails missing dependent jars Product: Tomcat 8 Version: 8.5.54 Hardware: PC OS: Linux Status: NEW Severity: normal Priority: P2 Component: Meta Assignee: dev@tomcat.apache.org Reporter: br...@pingtoo.com Target Milestone: ---- Created attachment 37164 --> https://bz.apache.org/bugzilla/attachment.cgi?id=37164&action=edit diffs to netbeans test classpaths Tests run: 3, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.079 sec Testcase: testAuthenticateWithUserPassword(org.apache.catalina.realm.TestJNDIRealm): Caused an ERROR Class mocking requires to have cglib and objenesis librairies in the classpath java.lang.RuntimeException: Class mocking requires to have cglib and objenesis librairies in the classpath at org.easymock.internal.MocksControl.getClassProxyFactory(MocksControl.java:149) at org.easymock.internal.MocksControl.createMock(MocksControl.java:111) at org.easymock.internal.MocksControl.createMock(MocksControl.java:88) at org.easymock.internal.MocksControl.createMock(MocksControl.java:79) at org.easymock.EasyMock.createNiceMock(EasyMock.java:170) at org.apache.catalina.realm.TestJNDIRealm.mockDirContext(TestJNDIRealm.java:156) at org.apache.catalina.realm.TestJNDIRealm.buildRealm(TestJNDIRealm.java:122) at org.apache.catalina.realm.TestJNDIRealm.testAuthenticateWithUserPassword(TestJNDIRealm.java:80) Caused by: java.lang.NoClassDefFoundError: net/sf/cglib/core/NamingPolicy at org.easymock.internal.MocksControl.getClassProxyFactory(MocksControl.java:147) Caused by: java.lang.ClassNotFoundException: net.sf.cglib.core.NamingPolicy at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351) these missing jars are downloaded by "ant extras" tomcat-dependencies-lib/objenesis-1.2/objenesis-1.2.jar tomcat-dependencies-lib/cglib-2.2.2/cglib-nodep-2.2.2.jar adding them to the netbeans classpath resolves the problem. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org