jbossSeam部署错误
我正在使用 JBoss 工具从 Eclipse 中将 Seam 应用程序部署到 JBoss 服务器。我一直看到奇怪的行为。每次更改 .xhtml 文件时,seam 应用程序都会按预期自动部署。然而,实体管理器实例正在变为空,我被迫通过删除它并通过 eclipse 服务器视图添加它来重新启动接缝应用程序。整个过程花费的时间超出了我的承受能力。这个问题有解决方法吗?
I am using the JBoss Tools to deploy a seam application to a JBoss server from within eclipse. I am consistently seeing a strange behavior. Every time the .xhtml files are changed the seam application is auto-deployed as expected. However, the entity manager instance is becoming null and I am forced forced to restart the seam application by removing it and adding it through the eclipse server view. The whole process is taking more time than I can afford. Is there a workaround to this problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果更改 xhtml 文件,则仅应复制该单个文件,并且实体管理器不应受到影响。您正在刷新浏览器吗?在该页面上触发某些特定操作?
If you change a xhtml file only that single file should be copied and the entitymanager should not be affected. Are you refreshing the browser ? Triggering some specific action on that page ?
我猜你使用的是 JBoss 5.1.0 服务器?如果是的话,那么在使用 Seam 时,该服务器会出现很多问题,尤其是 2.2.0 版本。您还可以阅读有关部署到 JBoss5 容器的一般问题。
您必须记住的另一件事是设置Seam 的调试模式和facelets 的开发模式。如果没有这两个配置,热部署将无法工作。
I'm guessing you use JBoss 5.1.0 server? If yes, there are a bunch of problems with this server while working with Seam especially in version 2.2.0. You may also read about general problems with deployment to JBoss5 container.
The other thing you must remeber is to set debug mode for Seam and development mode for facelets. Whitout this two configurations hot deployment won't work.