• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • Devaka Cooray
Saloon Keepers:
  • Ganesh Patekar
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • salvin francis
Bartenders:
  • Ron McLeod
  • Frits Walraven
  • Pete Letkeman

Error with Spring 3.0 in deployment.  RSS feed

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm quite a newbie in spring. After doing the FormController in a easy way I tried to use Hibernate with spring but its giving me an error while deploying.



Am using JBoss 4.3,Spring 3.0.2 and Hibernate 3.2.1
Here are the xmls


persistenceContext.xml



construction-servlet.xml


and finally

web.xml



Regards
Mithil

 
Ranch Hand
Posts: 89
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Mithil,
I think the problem is you're missing a Spring JAR dependency. The file you need is the spring-aspects-3.0.2.RELEASE.jar file. If you are using Maven, you can add the following to your POM file.



I hope this helps.

Mark
 
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you deploying the appropriate Spring jar(s)?
 
Mithil Wane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I'm not using Maven. There are two eclipse projects Construction and ConstructionMVC. Construction has all of the base classes related to Hibernate and the MVC project has spring MVC things.

Am attaching screenshots of the two project so that you guys understand.
ScrShot-Construction.jpg
[Thumbnail for ScrShot-Construction.jpg]
Constrcution Project
MVC.jpg
[Thumbnail for MVC.jpg]
ConstructionMVC project
 
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"mithilwane",
Welcome to the ranch. You may not be aware of the ranch Naming Policy. Please read it carefully and change your name accordingly (you need to set both first and last name). Thank you.
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Make sure that all the necessary JARs are in your WAR file. Unpack it and check that they are all in there.
 
Mithil Wane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I did include more jars. So the previous error have gone. But another new one popped up. Let me know which jar to include.

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Let me know which jar to include.


Please check this post first.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!