> -----Original Message----- > From: Bryan Baugher [mailto:bjb...@gmail.com] > Sent: Friday, May 03, 2013 6:52 AM > To: users@tomcat.apache.org > Subject: NoSuchMethodError loading class in webapp from common class > loader > > Hi, > > I am running Tomcat 7.0.28 on RHEL 6.2 with a single web app. The web app in > question uses reflection to load some implementations of our classes (kind > of like a service loader) knowing the class name. I am trying to add additional > implementations by dropping them in the tomcat's lib directory but I keep > seeing NoSuchMethodError for the constructor to the class. > > I know the constructor is there because if I move the jar into the web app's > lib directory (webapp/[WEB_APP]/WEB_INF/lib) everything works. > > I figure this must be some class loader issue I am not understanding but > these docs[1][2] don't seem to indicate there should be any issue. > > -Bryan > > [1] - http://tomcat.apache.org/tomcat-7.0-doc/class-loader-howto.html > > [2] - http://download.oracle.com/otndocs/jcp/servlet-2.4-fr-spec-oth- > JSpec/
Not to say this affects your specific problem, but I see you referencing the Servlet 2.4 Specification. Tomcat 7 is based on Servlet Specification v3.0: http://jcp.org/en/jsr/detail?id=315 Regards, Denise --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org