java.lang.IllegalArgumentException: Mapping directory location[url ...]does not denote a directory
来源:互联网 发布:通联数据面经 编辑:程序博客网 时间:2024/06/06 13:10
错误全部信息为:Caused by: java.lang.IllegalArgumentException: Mapping directory location [URL [file:/C:/apache-tomcat-6.0.30/webapps/SSH_Basic/WEB-INF/classes/com/student/model/Student.hbm.xml]] does not denote a directory
原因:
ApplicationContext.xml中配置hibernate配置有三种方式
如果配置错了、把mappingDirectoryLocations value配置成了mappingLocations的 value 会报上述错误
1、配置目录
<property name="mappingDirectoryLocations">
<list>
<!-- 用户hbm配置 -->
<value>classpath:com/cuser/model</value>
<!-- 学生hbm配置 -->
<value>classpath:com/student/model</value>
</list>
</property>
2、配置文件
<property name="mappingLocations">
<list>
<value>classpath:com/cuser/model/*.hbm.xml</value>
<value>classpath:com/student/model/*.hbm.xml</value>
</list>
</property>
3、配置jar
<property name="mappingJarLocations">
<list>
<value>WEB-INF/lib/jarName.jar</value>
</list>
</property>
- java.lang.IllegalArgumentException: Mapping directory location[url ...]does not denote a directory
- java.lang.IllegalArgumentException: Mapping directory location[url ...]does not denote a directory
- java.lang.IllegalArgumentException: Document base XXXXX does not exist or is not a readable directory
- tomcat java.lang.IllegalArgumentException probe does not exist or is not a readable directory
- java.lang.IllegalArgumentException: Document base does not exist or is not a readable directory错误解决
- java.lang.UnsatisfiedLinkError,(A file or directory in the path name does not exist.
- Tomcat启动IllegalArgumentException:。。。does not exist or is not a readable directory解决办法
- java. lang. IllegalArgumentException: Path does not start with a "/" character
- Path does not point to a directory.
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base (文件夹路) does not exist or is not a readable directo
- tomcat的java.lang.IllegalArgumentException:Document base *** does not exist or is not a readable
- java.lang.IllegalArgumentException: Document base C:\Users\jack\Desktop\ does not exist or is not a
- java.lang.IllegalArgumentException: Document base *** does not exist or is not a readable
- does not exist or is not a readable directory
- ..\TestApp does not exist or is not a readable directory
- poj 3260 DP
- 智能型指针auto_ptr
- LINUX压缩、解压文件
- hdu 一只小蜜蜂...
- Java基础:泛型类型的子类及通配符的使用
- java.lang.IllegalArgumentException: Mapping directory location[url ...]does not denote a directory
- java SE6.0中ParsePosition的介绍
- 现有市场上常用的智能家居方式和问题
- 输入两个字符串,比如abdbcc和abc,输出第二个字符串在第一个字符串中的连接次序(递归方法)
- FMDATABASE的一些基本操作小结
- C++命名规则【转】
- spring动态定时器
- mysql全备份和增量备份
- Java观察者模式例子