Buildfile: E:\workspace\Projects\hibernatetool\build.xml
[hibernatetool] Executing Hibernate Tool with a Standard Configuration
[hibernatetool] 1. task: hbm2java (Generates a set of .java files)
[hibernatetool] 2010-4-22 14:09:11 org.hibernate.cfg.Environment <clinit>
[hibernatetool] 信息: Hibernate 3.2.5
[hibernatetool] 2010-4-22 14:09:11 org.hibernate.cfg.Environment <clinit>
[hibernatetool] 信息: hibernate.properties not found
[hibernatetool] 2010-4-22 14:09:11 org.hibernate.cfg.Environment buildBytecodeProvider
[hibernatetool] 信息: Bytecode provider name : cglib
[hibernatetool] 2010-4-22 14:09:11 org.hibernate.cfg.Environment <clinit>
[hibernatetool] 信息: using JDK 1.4 java.sql.Timestamp handling
[hibernatetool] 2010-4-22 14:09:12 org.hibernate.cfg.Configuration configure
[hibernatetool] 信息: configuring from file: hibernate.cfg.xml
[hibernatetool] 2010-4-22 14:09:12 org.hibernate.cfg.Configuration addResource
[hibernatetool] 信息: Reading mappings from resource : DocumentCatalog.hbm.xml
[hibernatetool] 2010-4-22 14:09:12 org.hibernate.cfg.HbmBinder bindRootPersistentClassCommonValues
[hibernatetool] 信息: Mapping class: com.bigbuddy.oa.bean.DocumentCatalog -> documentCatalog
[hibernatetool] An exception occurred while running exporter #2:hbm2java (Generates a set of .java files)
[hibernatetool] To get the full stack trace run ant with -verbose
[hibernatetool] org.hibernate.InvalidMappingException: Could not parse mapping document from resource DocumentCatalog.hbm.xml
[hibernatetool] org.hibernate.MappingException: class com.bigbuddy.oa.bean.DocumentCatalog not found while looking for property: flag
[hibernatetool] java.lang.ClassNotFoundException: com.bigbuddy.oa.bean.DocumentCatalog
[hibernatetool] A class were not found in the classpath of the Ant task.
[hibernatetool] Ensure that the classpath contains the classes needed for Hibernate and your code are in the classpath.
BUILD FAILED
E:\workspace\Projects\hibernatetool\build.xml:17: org.hibernate.InvalidMappingException: Could not parse mapping document from resource DocumentCatalog.hbm.xml
Total time: 764 milliseconds
异常信息如上。
原因为:
HBM文件中的属性没有声明type类型,这种HBM文件在已经写好javaBean后再由HBM生成Shema时是没有问题的,因为它可以通过javaBean来得到相应的类型,但是,如果想从HBM中生成javaBean如果不指定类型就不可以了。
在hbm中加入属性的type后成功解决,根据相应的hbm和数据库表生成javaBean
参考:http://lisong0624.blog.163.com/blog/static/1887198620103202522410/
分享到:
相关推荐
Android Build 时报错: java.io.IOException: Could not parse XML from android/accounts/annotati...Android构建时报错: app:lintVitalRelease[Fatal Error] :3:214: 与元素类型 “item” 相关联的 “name” ...
在Java编程中,`ParseException` 是 `java.text.ParseException` 类的一个异常,通常在尝试解析日期或时间字符串时遇到无法解析的格式时抛出。在给定的标题 "java.text.ParseException: Unparseable date: 2/10/2010...
SELECT JSON_ARRAYAGG(obj) FROM (SELECT trt.relevance_id,JSON_OBJECT('id',CAST(trt.id AS CHAR),'taskName',trt.task_name,'openStatus',trt.open_status,'taskSort',trt.task_sort) as obj FROM tb_review_task...
import org.apache.http.ParseException; import org.apache.http.client.ClientProtocolException; import org.apache.http.client.HttpClient; import org.apache.http.client.methods.HttpUriRequest; import ...
javax.wsdl.WSDLException: WSDLException: faultCode=PARSER_ERROR: Problem parsing '- WSDL Document -'.: org.xml.sax.SAXParseException: The element type "p" must be terminated by the matching end-tag ...
用于解决,Android构建APk时报错: ...java.io.IOException: Could not parse XML from android/accounts/annotations.xml 将上述文件替换替换SDK目录下的/platform-tools/api/下对应的文件即可解决
安装JayDeBeApi时,如果报错,提示:error: Could not find suitable distribution for Requirement.parse('py4j') 需要先安装这个py4j
然而,当出现`javax.el.ELException: Failed to parse the expression`错误时,这通常意味着EL表达式没有被正确解析,导致程序无法正常运行。该错误通常是由于违反了EL表达式的语法规则,或者尝试执行了不合法的操作...
通过import org.springframework.web.multipart.MultipartFile;上传文件的一个工具性的jar.
Could not read /Users/panxin/Library/Android/sdk/platform-tools/api/annotations.zip java.io.IOException: Could not parse XML from annotations/android/widget/annotations.xml 请将本文件解压后的...
Jboss启动报Failed to parse WEB-INF/web.xml; - nested throwable错误解决方案 在Jboss应用服务器中,启动报错Failed to parse WEB-INF/web.xml; - nested throwable是一种常见的错误,本文将对此错误进行深入分析...
nested exception is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis- config.xml]; nested exception is org.apache.ibatis.builder....
distutils.errors.DistutilsError: Could not find suitable distribution for Requirement.parse('pytz>=2010') 下载后解压安装 tar zxvf pytz-2020.1.tar.gz cd pytz python setup.py install
1. UNIX时间戳转日期函数: from_unixtime 18 2. 获取当前UNIX时间戳函数: unix_timestamp 18 3. 日期转UNIX时间戳函数: unix_timestamp 18 4. 指定格式日期转UNIX时间戳函数: unix_timestamp 18 5. 日期时间转日期...
本文将深入探讨标题和描述中提到的问题:“解决dbf Failed to parse Number: For input string: "-.---""”,以及如何在不依赖特定jar包的情况下处理DBF文件。 首先,"Failed to parse Number: For input string: ...
编译时遇到以下报错:app:...java.io.IOException: Could not parse XML from annotations/android/widget/annotations.xml 请将本文件替换SDK目录下的/platform-tools/api/annotations.zip文件,建议替换前备份原文件
"org.jsoup.zip" 是一个与Java相关的压缩包文件,它包含了一个名为 "org.jsoup" 的开发包以及一些相关资源。这个开发包是用于处理HTML解析和提取数据的库,非常适用于网页抓取和数据挖掘任务。以下是关于org.jsoup库...
解决json数据中,返回的数据格式中带有反斜杠 如下所示{\"Count\":\"3\",\"ErrorString\":\"\",\"Success\":true,\"URL\":\"http:\\\/\\\/172.16.80.65:8080\\\/LoginSSO.aspx?UserCode=wubg&Type=WorkItem\",\...
3. **读取XML文件**:使用`DocumentFactory`的`parse()`方法,传入XML文件的路径,来读取XML文件并生成`Document`对象。 ```java File file = new File("mjy.xml"); DocumentFactory factory = DocumentFactory....
PhotoDraweeView PhotoView For Fresco ...mPhotoDraweeView.setPhotoUri(Uri.parse("http://your.image.url")); Using the ControllerBuilder PipelineDraweeControllerBuilder controller = Fres