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
分享到:
相关推荐
在使用MyEclipse进行Web开发过程中,特别是利用Hibernate框架进行数据库反向工程(Hibernate Reverse Engineering)时,可能会遇到名为“Generating Artifacts”的错误。该错误通常发生在尝试自动生成POJO类或配置...
### Hibernate Reverse Engineering 详解 #### 一、简介 Hibernate 是一款开源的对象关系映射(Object-Relational Mapping,简称 ORM)框架,它为 Java 应用程序提供了对数据库的访问和操作功能。Hibernate 可以...
Mastering Reverse Engineering
iOS App ReverseEngineering
Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...
在IT领域,逆向工程被广泛应用于安全研究、软件调试、代码优化、漏洞发现、兼容性问题解决以及知识产权保护等多个方面。"Secrets of Reverse Engineering"很可能是一份关于这一主题的深入学习资源,包含丰富的理论...
Practical Reverse Engineering 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自网络,如有侵权,请联系上传...
6. **实战案例**:书中可能包含实际的调试案例,通过这些例子,读者可以将理论知识应用到实践中,提升解决问题的能力。 7. **代码分析**:如果提供了代码示例,读者可以通过实际操作,跟随书中的指导来调试这些代码...
practical reverse engineering
Anti-Reverse Engineering Guide Anti-debugging and anti-tracing techniques
Advanced Apple debugging & Reverse engineering 完整版加源码包
Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple's software debugger, LLDB, that can get more information out of any program than you ever ...
Introduction to Reverse Engineering Software.rar
Advanced Apple Debugging & Reverse Engineering, Second Edition ISBN: Learn the powerful secrets of Apple’s software debugger, LLDB, that can get more information out of any program than you ever ...
RayWenderlich 出版的关於在apple 平台上开发除错及逆向工程的书 xcode 9, swift 4
Reversing Secrets of Reverse Engineering.rar
这项技能在安全研究、恶意软件分析、软件兼容性问题解决、以及学习已有的系统和软件以创建更好的设计等方面非常重要。 x86和x64是英特尔处理器架构的命名,其中x86指的是32位架构,而x64代表64位架构。这些架构是...
The v2.0 release of Advanced Apple Debugging and Reverse Engineering brings everything up to the iOS 11 and Xcode 9.1 level.
Neural Reverse Engineering of Stripped Binaries,剥离二进制的神经逆向工程论文,小组做的ppt报告