myEclipse 发布ejb3到JBoss,报错!请大家帮忙!!

tuanfuyao2008 2009-09-17 10:45:26
刚刚学习ejb,发布到JBoss上,报错:

org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):

DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'jndi:UserDao/local-test.ejb.dao.user.UserDaoHome' **")
Dependency "<UNKNOWN jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejb3testPU' **")
Deployment "jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "jboss.j2ee:jar=ejb3Study.jar,name=UserDao,service=EJB3" is missing the following dependencies:
Dependency "<UNKNOWN jboss.j2ee:jar=ejb3Study.jar,name=UserDao,service=EJB3>" (should be in state "Described", but is actually in state "** UNRESOLVED Demands 'persistence.unit:unitName=#ejb3testPU' **")
Deployment "jboss.j2ee:jar=ejb3Study.jar,name=UserDao,service=EJB3_endpoint" is missing the following dependencies:
Dependency "jboss.j2ee:jar=ejb3Study.jar,name=UserDao,service=EJB3" (should be in state "Configured", but is actually in state "PreInstall")
Deployment "persistence.unit:unitName=#ejb3testPU" is missing the following dependencies:
Dependency "jboss.jca:name=ejb3testDS,service=DataSourceBinding" (should be in state "Create", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=ejb3testDS,service=DataSourceBinding' **")

DEPLOYMENTS IN ERROR:
Deployment "<UNKNOWN jboss.j2ee:jar=ejb3Study.jar,name=UserDao,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejb3testPU' **
Deployment "jboss.jca:name=ejb3testDS,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=ejb3testDS,service=DataSourceBinding' **
Deployment "<UNKNOWN jboss.j2ee:jar=ejb3Study.jar,name=UserBusinessBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'persistence.unit:unitName=#ejb3testPU' **, ** UNRESOLVED Demands 'jndi:UserDao/local-test.ejb.dao.user.UserDaoHome' **

at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:939)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:873)
at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:369)
at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:255)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)

****************************
不知道什么原因,请高手指教!
...全文
1031 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xiaoyuyu0206 2011-11-16
  • 打赏
  • 举报
回复
这个问题可能是你引用EJB的时候,不是写的接口名字而是实际的Bean的名字,举例如下:

@EJB(beanName = "HelloChinaBean")//这是Bean的类名
HelloChina helloChina;//这个HelloChina是HelloChinaBean的本地接口名字(也可以是远程接口名字),如果改成“HelloChinaBean helloChina”就会出现你说的问题。希望对你有帮助。
xiaoyuyu0206 2011-11-16
  • 打赏
  • 举报
回复
这个问题可能是你引用EJB的时候,不是写的接口名字而是实际的Bean的名字,举例如下:

@EJB(beanName = "HelloChinaBean")//这是Bean的类名
HelloChina helloChina;//这个HelloChina是HelloChina的本地接口名字(也可以是远程接口名字),如果改成“HelloChinaBean helloChina”就会出现你说的问题。希望对你有帮助。
peng13482556193 2011-06-18
  • 打赏
  • 举报
回复
路过,帮你顶一下!!!
lxy15329 2011-03-25
  • 打赏
  • 举报
回复
用了好长时间了,我也出现了这个问题,怎么没人给解答一下呢?

6,787

社区成员

发帖
与我相关
我的任务
社区描述
JBoss技术交流
社区管理员
  • JBoss技术交流社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧