Deployments Missing Dependencies
sfriesen May 25, 2011 12:58 AMHi,
There are some similar posts with answers, but I'm still having issues. I am deploying a JSF app that has a bean with the following:
@Resource (name="jdbc/fisdb_dev")
private DataSource ds;
I have created a datasource xml file in my server\default\deploy directory. Initially I created it through the admin console, but then updated the file directly. The file is named jdbc_fisdb_dev-ds.xml and the datasource connects to an Oracle database. I test this through the admin console and it works correctly. I have added the ojdbc14.jar to the server\default\lib directory.
When I try to start the war file through the admin console, it fails with the following error. Any help understanding this is greatly appreciated.
java.lang.RuntimeException: org.jboss.deployers.client.spi.IncompleteDeploymentException:
Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss-switchboard:appName=sfRichFaces1,module=sfRichFaces1" is missing the following dependencies:
Dependency "jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding"
(should be in state "Installed", but is actually in state "** NOT FOUND
Depends on 'jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding',
whenRequired=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed},
dependentState=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed} **")
Deployment "jboss.web.deployment:war=/sfRichFaces1" is missing the following dependencies:
Dependency "jboss-switchboard:appName=sfRichFaces1,module=sfRichFaces1"
(should be in state "Installed", but is actually in state "Deploy")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding"
is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding',
whenRequired=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed},
dependentState=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed} **
at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:320)
at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.start(StreamingDeploymentTarget.java:197)
at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.start(DeploymentProgressImpl.java:232)
at org.jboss.profileservice.management.client.upload.DeploymentProgressImpl.run(DeploymentProgressImpl.java:89)
at org.rhq.plugins.jbossas5.util.DeploymentUtils.run(DeploymentUtils.java:155)
at org.rhq.plugins.jbossas5.AbstractManagedDeploymentComponent.invokeOperation(AbstractManagedDeploymentComponent.java:162)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.rhq.core.pc.inventory.ResourceContainer$ComponentInvocationThread.call(ResourceContainer.java:525)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.jboss.deployers.client.spi.IncompleteDeploymentException: Summary of incomplete deployments (SEE PREVIOUS ERRORS FOR DETAILS):
DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss-switchboard:appName=sfRichFaces1,module=sfRichFaces1" is missing the following dependencies:
Dependency "jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding"
(should be in state "Installed", but is actually in state "** NOT FOUND Depends on
'jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding',
whenRequired=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed},
dependentState=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed} **")
Deployment "jboss.web.deployment:war=/sfRichFaces1" is missing the following dependencies:
Dependency "jboss-switchboard:appName=sfRichFaces1,module=sfRichFaces1" (should be in state "Installed", but is actually in state "Deploy")
DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding"
is in error due to the following reason(s): ** NOT FOUND Depends on
'jboss.jca:name=internal/sfRichFaces1/sfRichFaces1/env/jdbc/fisdb_dev,service=DataSourceBinding',
whenRequired=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed},
dependentState=MapControllerStateModel$ControllerStateWrapper@19f2abf{Installed} **
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1370)
at org.jboss.deployers.plugins.deployers.DeployersImpl.checkComplete(DeployersImpl.java:1316)
at org.jboss.deployers.plugins.main.MainDeployerImpl.checkComplete(MainDeployerImpl.java:968)
at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.checkComplete(MainDeployerPlugin.java:82)
at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.checkComplete(ProfileControllerContext.java:138)
at org.jboss.profileservice.plugins.deploy.actions.DeploymentStartAction.doPrepare(DeploymentStartAction.java:104)
at org.jboss.profileservice.management.actions.AbstractTwoPhaseModificationAction.prepare(AbstractTwoPhaseModificationAction.java:101)
at org.jboss.profileservice.management.ModificationSession.prepare(ModificationSession.java:87)
at org.jboss.profileservice.management.AbstractActionController.internalPerfom(AbstractActionController.java:234)
at org.jboss.profileservice.management.AbstractActionController.performWrite(AbstractActionController.java:213)
at org.jboss.profileservice.management.AbstractActionController.perform(AbstractActionController.java:150)
at org.jboss.profileservice.plugins.deploy.AbstractDeployHandler.startDeployments(AbstractDeployHandler.java:168)
at org.jboss.profileservice.management.upload.remoting.DeployHandlerDelegate.startDeployments(DeployHandlerDelegate.java:74)
at org.jboss.profileservice.management.upload.remoting.DeployHandler.invoke(DeployHandler.java:156)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:898)
at org.jboss.remoting.transport.local.LocalClientInvoker.invoke(LocalClientInvoker.java:106)
at org.jboss.remoting.Client.invoke(Client.java:1961)
at org.jboss.remoting.Client.invoke(Client.java:804)
at org.jboss.profileservice.management.client.upload.StreamingDeploymentTarget.invoke(StreamingDeploymentTarget.java:312)
... 15 more
Thanks in advance.
-Steve