java.lang.IllegalArgumentException: Path must include project and resource name: /

java.lang.IllegalArgumentException:Pathmustincludeprojectandresourcename:/atorg.eclip... 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:560)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfigurationPreferences(HTUtils.java:185)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfigurationPreferences(HTUtils.java:137)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:129)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:110)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.createFromHibernateProject(ConsoleConfigurationRepository.java:53)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.find(ConsoleConfigurationRepository.java:40)
at org.hibernate.console.KnownConfigurations.find(KnownConfigurations.java:308)
at org.hibernate.eclipse.jdt.ui.internal.MEUtils.getConsoleConfiguration(MEUtils.java:23)
at org.hibernate.eclipse.jdt.ui.internal.HQLExpressionCompilerParticipant.getConsoleConfiguration(HQLExpressionCompilerParticipant.java:83)
at org.hibernate.eclipse.jdt.ui.internal.HQLExpressionCompilerParticipant.buildStarting(HQLExpressionCompilerParticipant.java:34)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.notifyParticipants(AbstractImageBuilder.java:534)
at org.eclipse.jdt.internal.core.builder.AbstractImageBuilder.compile(AbstractImageBuilder.java:285)
at org.eclipse.jdt.internal.core.builder.BatchImageBuilder.build(BatchImageBuilder.java:59)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.buildAll(JavaBuilder.java:269)
at org.eclipse.jdt.internal.core.builder.JavaBuilder.build(JavaBuilder.java:177)
at org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:197)
at org.eclipse.core.internal.events.BuildManager$1.run(BuildManager.java:246)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:249)
at org.eclipse.core.internal.events.BuildManager.basicBuildLoop(BuildManager.java:302)
at org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:334)
at org.eclipse.core.internal.events.AutoBuildJob.doBuild(AutoBuildJob.java:137)
at org.eclipse.core.internal.events.AutoBuildJob.run(AutoBuildJob.java:235)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
展开
 我来答
桂寄琴q4
推荐于2016-07-28
知道答主
回答量:66
采纳率:0%
帮助的人:54.9万
展开全部
根据“java.lang.IllegalArgumentException: Path must include project and resource name: /,即:文件异常类型:路劲必须包括工程或源文件名。和“at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:129)
at com.genuitec.eclipse.hibernate.util.HTUtils.getConsoleConfiguration(HTUtils.java:110)
at com.genuitec.eclipse.hibernate.util.ConsoleConfigurationRepository.createFromHibernateProject(ConsoleConfigurationRepository.java:53)at org.hibernate.console.KnownConfigurations.find(KnownConfigurations.java:308)

”,可能是配置hibernate时,文件映射路劲不对,还有HQL的映射是否对应(包括一对一,一对多,多对多),检查一下啊。 还有就是在提问题时最好加上与此相关的程式做补充说明(建议)
百度网友145f278fe
2009-06-14 · TA获得超过309个赞
知道小有建树答主
回答量:227
采纳率:0%
帮助的人:154万
展开全部
你用的ECLIEPCE软件吧,提示出现异常,应该在你所建的类名前加上相应的包名,在不同项目间转换应该也适当的加上包名。
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
th2qh
2009-06-14
知道答主
回答量:4
采纳率:0%
帮助的人:5803
展开全部
可能是导入的资源包不对吧,好好看看
http://www.itjs8.com IT技术网

参考资料: http://www.itjs8.com

已赞过 已踩过<
你对这个回答的评价是?
评论 收起
天天天天天天j
2009-06-14 · TA获得超过406个赞
知道答主
回答量:131
采纳率:100%
帮助的人:59.3万
展开全部
s
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
收起 2条折叠回答
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式