Java.io.FileNotFoundException:class path Resource. Cannot is opened because it does not exist exceptions are as follows: Java.io.FileNotFoundException:class path resource [Com/jxust/zjh/model/ac Count.hbm.xml] cannot is opened because it does not exist in spring I configure <property name= "Mappingresources" ><list& Gt <value>com/jxust/zjh/model/Account.hbm.xml</value></list></property> reported the above error, The Account.hbm.xml is indeed in this directory. However, I changed it to run normally, <property name= "Mappingdirectorylocations" ><list><value>classpath:/com/jxust/ Zjh/model/</value></list></property> Solution: 1. Path problem,,,,,, directly to the configuration file under src ..... Because MyEclipse by default will go to SRC to find the simplest method or honestly put XML under the SRC convenient. Or create a config when the source folder,,,, is equivalent to Classpath 2. To see the Classes folder under Web-inf in Tomcat, see if the error above does not find beans file exists in Tomcat .... If there is no,,,, explanation why the project deployed in Tomcat needs to be deleted. Then the project in MyEclipse clean, then redeploy, and all the files are deployed to Tomcat, and the project works perfectly.
Java.io.FileNotFoundException:class path Resource. cannot be opened because it does not exist