• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Mysterious Spring Configuration Errors

 
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
James Adams
Ranch Hand
Posts: 188
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm using Java 1.4 to run WebLogic and I was using Java 1.5 to build the Spring MVC project in Eclipse. After rebuilding the project in Eclipse using Java 1.4 I am having better luck.

I still can't figure out why Tomcat can't find the XMLNode class, since it is included in the in WEB-INF/lib/weblogic.jar, but I don't really need to deploy in Tomcat so that is a non-issue now that the WebLogic deployment is working.


--James
 
All of the following truths are shameless lies. But what about this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic