[jboss-user] [Installation, Configuration & DEPLOYMENT] - Re: Services with EJB dependency do not start up

tina99 do-not-reply at jboss.com
Sun Jan 20 13:02:23 EST 2008


"jaikiran" wrote : Maybe the name of the service corresponding to your EJB has changed from 4.0.5 to 4.2.2. Go the jmx-console (http://localhost:8080/jmx-console) and see what's the name of the service which corresponds to your EJB and then use this in the depends tag of your MBean

Hi,

thanks four your hint. But I still cannot find it out. Now I prepared a litte test:

I created a little test with just one EJB3 SessionBean and a JBoss Scheduler which depends on this Session Bean. 
I try to deploy the EJB3 app to JBoss 4.2.2.ga - so far with little success because I cannot get the Scheduler to work. 

In my META-INF subfolder of jbosstest.sar I put the jboss-service.xml for a ReImportScheduler with the following content:


  | <server>
  |     <mbean code="org.jboss.varia.scheduler.Scheduler" name="de.jbosstest:service=ReimportScheduler">
  |         <attribute name="StartAtStartup">true</attribute>
  |         <attribute name="SchedulableClass">de.jbosstest.service.ReImportScheduler</attribute>
  |         <attribute name="InitialStartDate">NOW</attribute>
  |         <attribute name="SchedulePeriod">3000</attribute>
  |         <attribute name="InitialRepetitions">-1</attribute>
  |         <depends>jboss.j2ee:service=EJB3,plugin=pool,jndiName=ImportManagerBean/remote</depends>
  |     </mbean>
  | </server>
  | 

As you can see the ReImportScheduler depends on an ImportManagerBean which is a Stateless Session Bean.
After creating the EAR I deployed the jbosstest.ear in my JBoss 4.2.2.ga and got the following log statements:


  | ...
  | 13:00:30,607 INFO  [EJBContainer] STARTED EJB: de.jbosstest.ejb.ImportManagerBean ejbName: ImportManagerBean
  | 13:00:30,994 INFO  [EJB3Deployer] Deployed: file:/home/tina/development/server/jboss-4.2.2.GA/server/default/deploy/JBossServiceTest-ejb.jar
  | 13:00:31,420 INFO  [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
  | 13:00:32,211 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
  | 
  | --- MBeans waiting for other MBeans ---
  | ObjectName: de.jbosstest:service=ReImportScheduler
  |   State: CONFIGURED
  |   I Depend On:
  |     jboss.j2ee:service=EJB3,plugin=pool,jndiName=ImportManagerBean/remote
  | 
  | --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
  | ObjectName: jboss.j2ee:service=EJB3,plugin=pool,jndiName=ImportManagerBean/remote
  |   State: NOTYETINSTALLED
  |   Depends On Me:
  |     de.jbosstest:service=ReImportScheduler
  | 
  | 
  | 13:00:33,170 INFO  [Http11Protocol] Starting Coyote HTTP/1.1 on http-127.0.0.1-8080
  | 13:00:33,308 INFO  [AjpProtocol] Starting Coyote AJP/1.3 on ajp-127.0.0.1-8009
  | 13:00:33,823 INFO  [Server] JBoss (MX MicroKernel) [4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA date=200705111440)] Started in 1m:7s:704ms
  | 

Obviously the ImportManagerBean has been started. The ReImportScheduler has also been configured successfully. However, the
URLDeploymentScanner informs about an incomplete deployment. As a result the ReImportScheduler has not been started. The global JNDI View
exposes that:


  | +- ImportManagerBean (class: org.jnp.interfaces.NamingContext)
  |   |   +- remote (proxy: $Proxy86 implements interface de.jbosstest.ejb.ImportManagerRemote,interface org.jboss.ejb3.JBossProxy)
  |   |   +- local (proxy: $Proxy87 implements interface de.jbosstest.ejb.ImportManagerLocal,interface org.jboss.ejb3.JBossProxy)
  | 

The mbean view of the domain jboss.j2ee for ImportManagerBean states


  | MBean Name:  	Domain Name:  	jboss.j2ee
  | 		service: 	EJB3
  | 		name: 	ImportManagerBean
  | 		jar: 	JBossServiceTest-ejb.jar
  | MBean Java Class:	org.jboss.ejb3.stateless.StatelessDelegateWrapper
  | 

Does anyone can point out where the misconfiguration is? Why does it state NOTYETINSTALLED when apparently the ImportManagerBean
has been started?! 

Thanks for any help.
Tina



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4121641#4121641

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4121641



More information about the jboss-user mailing list