You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/04/10 07:13:31 UTC

[Bug 64335] New: org.apache.catalina.realm.TestJNDIRealm debug fails missing dependent jars

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: Brian@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64335] org.apache.catalina.realm.TestJNDIRealm debug fails missing dependent jars

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64335

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #37164|0                           |1
           is patch|                            |

--- Comment #1 from Mark Thomas <ma...@apache.org> ---
Comment on attachment 37164
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=37164
diffs to netbeans test classpaths

Mark attachment as a patch (enables easier viewing)

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


[Bug 64335] org.apache.catalina.realm.TestJNDIRealm debug fails missing dependent jars

Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64335

Mark Thomas <ma...@apache.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
         Resolution|---                         |FIXED
             Status|NEW                         |RESOLVED

--- Comment #2 from Mark Thomas <ma...@apache.org> ---
Thanks for the patch.

Fixed in:
- master for 10.0.0-M5 onwards
- 9.0.x for 9.0.35 onwards
- 8.5.x for 8.5.55 onwards

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org