• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

Spring program gives me error.

 
Ranch Hand
Posts: 100
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is my first spring program, but it gives me error...


welcomebean.java




clientlogic.java





spconfig.xml





Screenshot_1.png
[Thumbnail for Screenshot_1.png]
this is the console errors
 
Ranch Hand
Posts: 171
Hibernate Spring Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
it is clearly telling that it couldnot find the xml file. where are you placing the file? what is your classparh?
 
Ranch Hand
Posts: 734
7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
@op
The original tutorial that you follows may have the package named java4s, and then you change to your liking stringdemoo and that's fine. But you've to change more thoroughly: more particularly, in the application context (and that's what the class attribute means if you don't get it).

And now, they did it quite rightly following basic convention of having upper case in the first letter of the java class (W) and then the B for reading more easily. You better follow that convention just not to make the letter jumping out of the paper for other readers. In any case, though it is a convention only you have to make it at least consistent everywhere as the name is case sensitive.

And then, you follow an old article which still use spring-bean v2.0, but since v2.5 or about, the context xml no longer uses DOCTYPE for its validation, but instead uses the w3c schema language. So you better update that part as well.
 
reply
    Bookmark Topic Watch Topic
  • New Topic