I have an application that is WARred up in the typical J2EE fashion. There are a bunch of 3rd party JAR files that need to be included in its lib folder. I put them in there and deployed the WAR, but when weblogic starts up it gives all these errors about not being able to find certain classes from the JARs. As an alternative, I tried putting the paths to those JARs in the CLASSPATH system variable and it worked.
Why doesn't weblogic find my JAR files if they are inside \WEB-INF\lib? Is it something to do with the order things are loaded by the classloader? Could it be that it's trying to load my classes first and the library JARs second when I put those JARs in the lib? Would it load the JARs first when I put them in the CLASSPATH instead?
Sounds like your WAR is broken. What is the output of:
Putting third-party JAR's on the system classpath is a Bad Idea. Weblogic itself depends on a number of third-party JAR's and it's possible that your versions may introduce conflicts with Weblogic's.
CvgActionServlet is inside of pf-web.jar. I just looked inside it with WinZip. Do you suppose it could be that it's loading the classes before it loads that library and that's what's making it crash?
[ September 08, 2006: Message edited by: Rebecca Witmer ] [ JCE: Edited long line] [ September 08, 2006: Message edited by: Joe Ess ]
CvgActionServlet is obviously loaded fine, otherwise he wouldn't appear in the stack trace. The NoSuchMethodException is usually caused by having one version of a library one compiles against (that has the getInstance method) and a different one the app runs against (that does not). I don't suppose you have the source so you an see class CvgActionServlet is acting on. Is CvgActionServlet an extension of the Struts ActionServlet? You may have a misconfigured struts-config.xml. Have you tried contacting the vendor?
Look into the code of CvgActionServlet, find the class that is having getInstance invoked on it (hint: the stack trace says it's in the initModels method) and he's the culprit. Find out where that class is coming from. Make sure that the version of that jar corresponds to the version CvgActionServlet resides in.
Is ModelConfig in WEB-INF/lib/pf-web.jar? Did you have a previous version of this com.convergys library? Are you certain that this library is working? Have you contacted the vendor?