使用 JAXB 生成的类在 Eclipse 中构建错误
我遇到一个奇怪的问题,即在 JBoss 上调试时 Eclipse 找不到 JAXB 生成的类。
这是导致障碍的步骤。
- 我在调试模式下启动 JBoss 4.2.3
- 我将 Java 项目部署到服务器
- 我对源代码进行了微小的更改(例如附加空格)
- Eclipse 构建了一个新的项目
- Eclipse 无法找到 JAXB 生成的类外部库
- Eclipse 中的构建错误
- 热代码替换失败
当我不在调试模式下启动 JBoss 时,一切正常。
我怀疑问题在于 Eclipse 和 JAXB 生成的类的相互作用。我正在使用 Eclipse Indigo 和 m2eclipse 插件。
I'm experiencing a strange problem where Eclipse can't find JAXB generated classes when debugging on JBoss.
Here the steps that lead to the obstacle.
- I start my JBoss 4.2.3 in debug mode
- I deploy my Java project to the server
- I perform a minor change in the source code (like appending a whitespace)
- Eclipse builds the project a new
- Eclipse can't find the JAXB generated classes of an external library
- Build errors in Eclipse
- Hot code replacement fails
When I don't start JBoss in debug mode, everything works fine.
I suspect that the problem lies in the interplay of Eclipse and the JAXB generated classes. I'm using Eclipse Indigo and the m2eclipse plugin.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
使用 JBossAS Tools,从此插件创建一个新服务器并部署我的
.war
爆炸在某种程度上缓解了这个问题。Using the JBossAS Tools, creating a new server from this plugin and deploying my
.war
exploded has somehow mitigated this problem.