I have written a Spring MVC application and I�m having trouble deploying the application on both WebLogic and
Tomcat. In both containers the errors are happening when Spring is configuring beans declared in the application context configuration file. Maybe someone can give me some suggestions as to what�s going wrong, as it looks like it should work to me.
I have packaged the web application in a WAR file, the contents of which look like this:
When I deploy the WAR on WebLogic I get the following error message:
So when Spring is configuring the beans declared in the configuration file it croaks at the first bean declared in the file, complaining that it can�t find the class file for GetHubClliDetailsVerifier. However the class file is present where it should be, under WEB-INF/classes. Maybe I�m mistaken in assuming that WebLogic knows to look in WEB-INF/classes for class files, my understanding is that this is the standard place to locate class files in a web application.
The configuration for this bean in the application context configuration file looks like so:
When I deploy the web application on Tomcat I get a different error, this time Tomcat complains that it can�t find the class for the WebLogic class XMLNode, which is present in a JAR file included in the WEB-INF/lib directory. Again my understanding is that this is the standard location that a
servlet container uses for locating JAR files used in a web application. The error message from Tomcat is below:
As you can see in the WAR listing above the JAR containing weblogic.xml.xmlnode.XMLNode is present as WEB-INF/lib/weblogic-8.1.3.jar, so I would assume that Tomcat should be able to find it without error, but unfortunately that�s not happening.
If anyone can give me any insight as to what is happening here I�ll certainly appreciate your help!
--James