[jboss-dev-forums] [Design the new POJO MicroContainer] - Inject descriptions

wolfc do-not-reply at jboss.com
Wed Jan 28 03:47:38 EST 2009


I'm separating out user configuration and system configuration in some beans.xml files, but I don't like the user configuration errors I might get.

Right now I can do:
<inject bean="QuartzSQLProperties"/>
But I really would like to have:
<inject bean="QuartzSQLProperties" description="QuartzSQLProperties is not configured, see wiki http://..."/>
So that this:
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
  | 
  | QuartzTimerServiceFactory
  |  -> QuartzSQLProperties{Configured:** NOT FOUND Depends on 'QuartzSQLProperties' **}
  | 
  | 
  | *** CONTEXTS IN ERROR: Name -> Error
  | 
  | QuartzSQLProperties -> ** NOT FOUND Depends on 'QuartzSQLProperties' **
  | 
  | 
  | 	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.deploy(MainDeployerImpl.java:427)
  | 	at org.jboss.ejb3.timerservice.quartz.test.simple.unit.SimpleUnitTestCase.setUpBeforeClass(SimpleUnitTestCase.java:110)
  | 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  | ...
Becomes more like this:
org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
  | 
  | *** CONTEXTS MISSING DEPENDENCIES: Name -> Dependency{Required State:Actual State}
  | 
  | QuartzTimerServiceFactory
  |  -> QuartzSQLProperties{Configured:** NOT FOUND Depends on 'QuartzSQLProperties' ** QuartzSQLProperties is not configured, see wiki http://...}
  | 
  | 
  | *** CONTEXTS IN ERROR: Name -> Error
  | 
  | QuartzSQLProperties -> ** NOT FOUND Depends on 'QuartzSQLProperties' **
  | 
  | 
  | 	at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:993)
  | ...

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

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



More information about the jboss-dev-forums mailing list