I have an java web-project where ejb's (3.1) are configured. When I add (add projects) the ear-project to the local websphere aplication server v8.0 (in eclipse) and start the server I receive the following error:

我有一个java web项目,其中配置了ejb(3.1)。当我向本地websphere aplication服务器v8.0(在eclipse中)添加(添加项目),并启动服务器时,我收到以下错误:

Error while processing references for EJB-in-WAR: com.ibm.ejs.container.EJBConfigurationException: The bean class "nl.xx.xx.xx.xx.xx.GebruikerFacade" for EJB "xx-xx-ear#xx-xx-web.war#GebruikerFacade" is not found.

在处理ejb的引用时出错:com.ibm. ejb .container。EJBConfigurationException: bean类“nl.xx.xx.xx。”GebruikerFacade xx-xx-ear # xx-xx-web对于EJB。没有找到# GebruikerFacade战争”。

Because I couldn't find the problem I deployed the ear-file to the websphere application server via the admin console (new application). The ear-file I created using mvn clean install package. Then when starting the application from within de admin console the error is not given. In stead it is reporting that the remote interface of the GebruikerFacade is binded.

因为我无法找到问题,所以通过管理控制台(新应用程序)将ear文件部署到websphere application server。我使用mvn clean安装包创建的ear-file。然后,当从de admin控制台启动应用程序时,不会给出错误。相反,它报告GebruikerFacade的远程接口被绑定。

What can be the cause of the error when starting the application server where the ear-project is added using add project.

当启动使用add project添加ear-project的应用服务器时,错误的原因是什么?

Extra info: Added 20141211 The reason why the bean class cannot be found is the fact that when the ear is deployed to the webspere application server via add project the business interface is empty within the deployed ear. This is a property in Enterprise Java Bean properties/Bind EJB Business of an Enterprise bean. The module, bean and uri property are set but the business interface which has to be the full path to the Remote interface class is not. When de ear is deployed on the application server via new application the business interface contains the Remote interface Class.

额外信息:增加20141211无法找到bean类的原因是,当ear通过add project部署到webspere应用服务器时,部署的ear中的业务接口是空的。这是Enterprise Java Bean属性中的一个属性,是企业Bean的绑定EJB业务。模块、bean和uri属性已经设置,但是必须是远程接口类的完整路径的业务接口没有设置。当de ear通过新的应用程序部署到应用服务器时,业务接口包含远程接口类。

Console-output in new answer below.

在下面的新答案中输出。

3 个解决方案

#1


0

In the tab of Servers, make a full publish of your project. Even if you save it, you have to publish it into your server. It's a bit annoying the fact of having to publish everytime you make a small change, but is the way to deploy the .war into the server.

在Servers选项卡中,对您的项目进行完整的发布。即使您保存了它,也必须将它发布到您的服务器中。每次做一个小更改时都必须发布,这有点令人讨厌,但这是将.war部署到服务器的方式。

If that doesn't work, try to delete the server and configure a new one.

如果不能工作,请尝试删除服务器并配置一个新的服务器。

Have a nice code!

祝你有美好的代码!

更多相关文章

  1. android与后台服务器的前后端通信

随机推荐

  1. PHP在引号前面添加反斜杠及去除反斜杠的
  2. PHP中钩子的理解与实例教程
  3. PHP 核心特性之匿名函数
  4. PHP与Python进行数据交互
  5. php命令行下的常用命令总结
  6. 正确理解 PHP 的重载
  7. 2021最新swoole视频教程推荐(从入门到高级
  8. 匿名函数
  9. PHP中global与$GLOBALS的区别
  10. PHP中output buffering的原理及应用