Generating Artifacts问题解决
在myeclipse中使用hibernate进行“Hibernate Reverse Engineering”报如下错:
!ENTRY org.eclipse.core.jobs 4 2 2010-12-27 14:20:11.625
!MESSAGE An internal error occurred during: "Generating Artifacts".
!STACK 0
java.lang.IllegalArgumentException: Path must include project and resource name: /
at org.eclipse.core.runtime.Assert.isLegal(Assert.java:62)
at org.eclipse.core.internal.resources.Workspace.newResource(Workspace.java:1631)
at org.eclipse.core.internal.resources.Container.getFile(Container.java:123)
at com.genuitec.eclipse.hibernate.util.HibernateUtils.getConfigFile(HibernateUtils.java:510)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfigurationPreferences(HTUtils.java:184)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:175)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:165)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:361)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
解决方案:
修改.myhibernatedata(工程下)文件里面的configFile属性
指定applicationContext.xml路径。格式是/项目名称/路径/applicationContext.xml
.myhibernatedata文件
#
#Sat Sep 19 15:30:33 CST 2009
genBasicCompId=true
sessionFactoryName=liss.samples.myssh2.domain.HibernateSessionFactory
profile=
daoSFId=
version=3.3
jndiPath=
springDaoFile=
useJavaTypes=true
keyGenerator=increment
libInstallFolder=
addLibs2Project=false
genVersionTag=true
sessionFactoryId=
basePersistenceClass=
reSettingsFile=/myssh2/hibernate.reveng.xml
configFile=/myssh2/conf/applicationContext.xml
createConfigFile=false
addLibs2Classpath=false
baseDaoClass=BaseHibernateDAO
相关推荐
### Generating Artifacts问题解决知识点详解 #### 一、问题背景及概述 在使用MyEclipse进行Web开发过程中,特别是利用Hibernate框架进行数据库反向工程(Hibernate Reverse Engineering)时,可能会遇到名为...
描述中提到了具体的错误信息:"Problem Occurred Generating Artifacts",这个错误发生在2009年11月8日下午6:54:39(GMT+08:00),原因是"Could not get list of suggested identity strategies from database....
- **Model Transformation**: Transforms higher-level models into lower-level ones, eventually generating code or other artifacts. #### UML Scheme for AJAX UI Modeling To address the specific needs of ...
- **An internal error occurred during: "Generating Artifacts"**:这通常是由于MyEclipse的某些插件出现问题导致的,可以通过重启MyEclipse来尝试解决问题。如果问题依旧存在,可以尝试禁用不必要的插件或者升级...
Method and apparatus to reduce artifacts in a computed-tomography (CT) image by iterative reconstruction (IR) using a cost function with a de-emphasis operator Video emphasis encoding method and ...
对于数字操作,书中讲解了如何对数字进行四舍五入(Rounding numbers)、生成随机数(Generating random numbers)、将字符串转换为整数和小数(Converting strings to integers and decimals)、以及将数字转换为...
Common components include compiling sources, creating object files, linking, and generating documentation. ##### BUILD_VARIANTS (Build Variants) This setting defines the build variants for the ...
“polygonization” artifacts often encountered on mesh silhouettes and interior contours. Phong Tessellation can be implemented on today’s GPU using either uniform or adaptive instanced tessellation ...
12.1.1 Generating a Web Dynpro User Interface 12.1.2 Post-Configuration Steps 12.2 Integrating SAPUI5 into an SAP BPM Process 12.2.1 SAPUI5 Technology Platform 12.2.2 Model-View-Controller Concept...
| clean | Clean up build artifacts. | | all | Build all enabled targets (default target). | | Variables | Description | | --------------- | ----------- | | BUILD_UTILS | Build the `glewinfo` and `...
Q522716 - Automatic sizing enabled with EditAutoHeight produces painting artifacts in a cell whose vertical alignment does not match taTopJustify B233000 - Documentation - The TcxCustomGridTableView....
Q522716 - Automatic sizing enabled with EditAutoHeight produces painting artifacts in a cell whose vertical alignment does not match taTopJustify B233000 - Documentation - The TcxCustomGridTableView....
59. The DOM: Junk artifacts and nodeType(DOM:无用的元素和节点类型):识别和处理DOM中可能存在的无用元素和节点类型。 60. The DOM: More ways to target elements(DOM:更多选择元素的方法):介绍其他选择...