[jboss-user] [EJB 3.0] New message: "Session Beans and Weld"

Juergen Zimmermann do-not-reply at jboss.com
Thu Feb 18 08:13:53 EST 2010


User development,

A new message was posted in the thread "Session Beans and Weld":

http://community.jboss.org/message/526969#526969

Author  : Juergen Zimmermann
Profile : http://community.jboss.org/people/Juergen.Zimmermann

Message:
--------------------------------------------------------------
Using JBossAS 6.0.0.M2 a stateless session bean shall access a Weld bean. Basically I'm thinking of:
 
@Stateless
public class Slsb {
   @PersistenceContext
   private EntityManager em;
 
   @Named
   private MyDao dao;
   ...
}
 
@Named
public class MyDao {
   @PersistenceContext
   private EntityManager em;
   ...
}
 
MyDao shall reuse the EntityManager of Slsb, and transaction shall be started in methods of Slsb. However, this doesn't work and I get a stacktrace (and no "previous" errors):
 
14:10:58,012 WARN  [org.jboss.weld.Servlet] WELD-000700 Not starting Weld/Servlet integration as Weld failed to initialize
14:10:58,118 WARN  [org.jboss.system.server.profileservice.hotdeploy.HDScanner] Failed to process changes: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
  Deployment "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:hska/BestellverwaltungDao/no-interface' **")
  Deployment "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'Class:de.hska.kundenverwaltung.db.KundenverwaltungDao' **")
  Deployment "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3" is missing the following dependencies:
    Dependency "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3>" (should be in state "Installed", but is actually in state "** UNRESOLVED Demands 'jndi:hska/Bestellverwaltung/no-interface' **")
  Deployment "jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3_endpoint" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3" (should be in state "Installed", but is actually in state "PreInstall")
  Deployment "vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/_WBInjector" is missing the following dependencies:
    Dependency "vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/_WeldBootstrapBean" (should be in state "Installed", but is actually in state "Create")
  Deployment "vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/_WeldBootstrapBean" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3" (should be in state "Start", but is actually in state "PreInstall")
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3" (should be in state "Start", but is actually in state "PreInstall")
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3" (should be in state "Start", but is actually in state "PreInstall")
  Deployment "vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/hskaEJB.jar/$Bestellverwaltung" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3" (should be in state "Described", but is actually in state "PreInstall")
  Deployment "vfsfile:/C:/Users/Public/Documents/eclipse-workspace-swe2/.metadata/.plugins/org.jboss.ide.eclipse.as.core/JBoss_6.0_Runtime_Server1266414248806/deploy/hska.ear/hskaEJB.jar/$BestellverwaltungDao" is missing the following dependencies:
    Dependency "jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3" (should be in state "Described", but is actually in state "PreInstall")
DEPLOYMENTS IN ERROR:
  Deployment "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=Bestellverwaltung,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:hska/BestellverwaltungDao/no-interface' **
  Deployment "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=testHskaEJB.jar,name=BestellverwaltungTestBean,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'jndi:hska/Bestellverwaltung/no-interface' **
  Deployment "<UNKNOWN jboss.j2ee:ear=hska.ear,jar=hskaEJB.jar,name=BestellverwaltungDao,service=EJB3>" is in error due to the following reason(s): ** UNRESOLVED Demands 'Class:de.hska.kundenverwaltung.db.KundenverwaltungDao' **
 at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1198)
 at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1144)
 at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:848)
 at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.checkComplete(MainDeployerAdapter.java:128)
 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:416)
 at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:294)
 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)


--------------------------------------------------------------

To reply to this message visit the message page: http://community.jboss.org/message/526969#526969




More information about the jboss-user mailing list