jboss 7 和 eclipse indigo:部署时奇怪的 ejb 项目名称
大家好,
我确实强调了几点。 我一直在尝试jboss 7 + jboss工具(3.3)。
当我尝试在 jboss6 上部署 ejb 项目时。什么也没发生。因此,我将 ejb-jar.xml 文件添加到我的项目中并进行了部署。奇怪的是,因为从 ejb3.0 开始部署描述符应该是可选的(并且对于 helios+ jbosstools 3.2 来说是可选的)。
到目前为止,还有更多问题和未解决的问题,当我创建一个项目并尝试在 jboss 7 上部署时,项目名称(例如“testejb”)被部署为“testejbnull”(即使设置了 ejb-jar.xml 文件) ): java:global/testejbnull/TestBean!test.ejb.TestBeanLocal
java:app/testejbnull/TestBean!test.ejb.TestBeanLocal
java:module/TestBean!test.ejb.TestBeanLocal
java:global/testejbnull/TestBean
java:app/testejbnull/TestBean
java:module/TestBean
嗯,很奇怪,但是当我尝试从我的 Servlet 中查找时(通过一个很好的旧的 InitialContext + 查找),我得到了:
10:14:07,681错误[stderr](http--127.0.0.1-8080-2)javax.naming.NameNotFoundException:名称'TestBean!test.ejb.TestBeanLocal'在上下文''中找不到
..无论我看什么名字准备(即TestBean,TestBean!......,java:app / ...)。
我在 ubuntu 上工作,我的一位同事在 windows 7 上尝试过,得到了相同的结果。
这是一个经典问题吗?我们该如何解决呢?
目前我决定保留Jboss6 + helios。
Hie all,
I indeed underline to points.
I have been trying jboss 7 + jboss tools (3.3).
When I tried to deploy an ejb project on jboss6. Nothing happend. I thus added an ejb-jar.xml file to my project and deployment occured. Strange, as the deployment descriptor is supposed to be optional since ejb3.0 (and is optional with helios+ jbosstools 3.2).
More problematic and unsolved until now, when I create a project and try to deploy on jboss 7, the project name, for instance, "testejb" is deployed as "testejbnull" (even with the ejb-jar.xml file set) :
java:global/testejbnull/TestBean!test.ejb.TestBeanLocal
java:app/testejbnull/TestBean!test.ejb.TestBeanLocal
java:module/TestBean!test.ejb.TestBeanLocal
java:global/testejbnull/TestBean
java:app/testejbnull/TestBean
java:module/TestBean
Well, weird, but when I try to lookup from my Servlet (by the mean of a good old InitialContext + lookup), I got :
10:14:07,681 ERROR [stderr] (http--127.0.0.1-8080-2) javax.naming.NameNotFoundException: Name 'TestBean!test.ejb.TestBeanLocal' not found in context ''
..Whatever the name I look up for (i.e. TestBean, TestBean!...., java:app/...).
I work on ubuntu, one of my colleagues tried on windows 7 and had the same result.
Is this a classical problem? How may we solve it?
For the moment I decided to keep Jboss6 + helios.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我也遇到了“null”问题,它已在里程碑 4
https://issues.jboss .org/browse/JBIDE-10106
https://issues.jboss.org/browse/JBIDE-9711
I ran into the "null" issues too, it's been fixed in milestone 4
https://issues.jboss.org/browse/JBIDE-10106
https://issues.jboss.org/browse/JBIDE-9711
显然,您遇到了一个错误,他的命名为“null”。
我可以建议您访问 http://community.jboss.org/en/tools?view=讨论并在那里发言,我们可以帮助找出您在使用里程碑工具时遇到的问题。
You obviously bumped into a bug witht he "null" in the naming.
May I suggest you visit http://community.jboss.org/en/tools?view=discussions and speak up there and we can help figure out what problem you got with the milestone tools.