ratcashdev / authenticroast

Automatically exported from code.google.com/p/authenticroast
1 stars 0 forks source link

NoSuchMethodError with Tomcat 7 #20

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Using the existing JAR files produces a NoSuchMethodError trying to instantiate 
org.apache.catalina.realm.GenericPrincipal, as the first Realm parameter has 
been removed.

The attached Reflection-based patch finds the new constructor and passes the 
new argument list, and appears to work correctly, so there don't seem to be any 
other 6/7 incompatibilities at this stage.

However you need to make a decision as to how to handle Tomcat 7. You will 
either need to (i) continue compiling against Tomcat 6 with this reflective 
patch for 7, or else (ii) start a new submodule that compiles against the 
Tomcat 7 binaries, and all the implications that flow from that such as 
configuring which TomcatAuthenticator you want to use. Or maybe the existing 
Tomcat6 authenticator needs to be split out into another submodule so you can 
just install the one you want.

Patched TomcatAuthenticator is attached for review.

Original issue reported on code.google.com by EsmondP...@gmail.com on 30 May 2012 at 8:13

Attachments: