!MESSAGE An internal error occurred during: "Generating Artifacts".
!STACK 0
org.hibernate.tool.hbm2x.ExporterException: Error while processing template the second time
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.secondPass(VelocityProducer.java:57)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:33)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:120)
at com.genuitec.eclipse.hibernate.wizards.MEHibernateMappingExporter.exportPOJO(MEHibernateMappingExporter.java:83)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.exportPersistentClass(VGenericExporter.java:73)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.exportClasses(VGenericExporter.java:56)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.doStart(VGenericExporter.java:41)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VHibernateMappingExporter.doStart(VHibernateMappingExporter.java:36)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:412)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:388)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by: java.io.FileNotFoundException: D:\LiyqWorksSpace\virtuaSwitchl\src\com\srt\vas\bll\unitarycall\model\TabLtDepart.hbm.xml (鎷掔粷璁块棶銆??)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.genuitec.eclipse.hibernate.wizards.MEHibernateMappingExporter$1.getWriter(MEHibernateMappingExporter.java:75)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.secondPass(VelocityProducer.java:52)
... 13 more
不能生成映射文件,但是可以通过eclipse查询修改数据库表。
!STACK 0
org.hibernate.tool.hbm2x.ExporterException: Error while processing template the second time
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.secondPass(VelocityProducer.java:57)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:33)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.produce(VelocityProducer.java:120)
at com.genuitec.eclipse.hibernate.wizards.MEHibernateMappingExporter.exportPOJO(MEHibernateMappingExporter.java:83)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.exportPersistentClass(VGenericExporter.java:73)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.exportClasses(VGenericExporter.java:56)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VGenericExporter.doStart(VGenericExporter.java:41)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VHibernateMappingExporter.doStart(VHibernateMappingExporter.java:36)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VAbstractExporter.start(VAbstractExporter.java:97)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob$3.execute(GenerateArtifactsJob.java:412)
at org.hibernate.console.execution.DefaultExecutionContext.execute(DefaultExecutionContext.java:56)
at org.hibernate.console.ConsoleConfiguration.execute(ConsoleConfiguration.java:89)
at com.genuitec.eclipse.hibernate.wizards.GenerateArtifactsJob.run(GenerateArtifactsJob.java:388)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:58)
Caused by: java.io.FileNotFoundException: D:\LiyqWorksSpace\virtuaSwitchl\src\com\srt\vas\bll\unitarycall\model\TabLtDepart.hbm.xml (鎷掔粷璁块棶銆??)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(Unknown Source)
at java.io.FileOutputStream.<init>(Unknown Source)
at com.genuitec.eclipse.hibernate.wizards.MEHibernateMappingExporter$1.getWriter(MEHibernateMappingExporter.java:75)
at com.genuitec.eclipse.hibernate.tool.hbm2x.VelocityProducer.secondPass(VelocityProducer.java:52)
... 13 more
不能生成映射文件,但是可以通过eclipse查询修改数据库表。
应该是这里的问题 看看有没有配置错误的地方
这个是不是没有找到呀..才出现了FileNotFoundException呀
谢谢大家