Forums Register Login

Spring program gives me error.

+Pie Number of slices to send: Send
This is my first spring program, but it gives me error...


welcomebean.java




clientlogic.java





spconfig.xml





Screenshot_1.png
this is the console errors
[Thumbnail for Screenshot_1.png]
+Pie Number of slices to send: Send
it is clearly telling that it couldnot find the xml file. where are you placing the file? what is your classparh?
+Pie Number of slices to send: Send
@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.
Blood pressure normal? What do I change to get "magnificent"? Maybe this tiny ad?
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 26585 times.
Similar Threads
Spring Bean Life Cycle
Spring aware servlets
Error - The type XMLBeanFactory is deprecated
How to have multiple public classes in one file for spring?
re: basic question on Spring framework
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 20:33:13.