This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Error with Spring 3.0 in deployment.

 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 12617
IntelliJ IDE Ruby
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Are you deploying the appropriate Spring jar(s)?
 
Mithil Wane
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Let me know which jar to include.


Please check this post first.
 
reply
    Bookmark Topic Watch Topic
  • New Topic