jboss 7 和 eclipse indigo:部署时奇怪的 ejb 项目名称

发布于 2024-12-11 07:32:19 字数 986 浏览 7 评论 0原文

大家好,

我确实强调了几点。 我一直在尝试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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

睫毛溺水了 2024-12-18 07:32:19

显然,您遇到了一个错误,他的命名为“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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文