Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

@Resource problem

 
francesco Ierna
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i'm trying to inject a datasource in a bean but i have this error:

DEPLOYMENTS MISSING DEPENDENCIES:
Deployment "jboss-switchboard:appName=scbcd_ear,module=scbcd_ejb,name=ExStatelessBean" is missing the following dependencies:
Dependency "jboss.jca:name=internal/scbcd_ear/scbcd_ejb/ExStatelessBean/env/bookswap,service=DataSourceBinding" (should be in state "Installed", but is actually in state "** NOT FOUND Depends on 'jboss.jca:name=internal/scbcd_ear/scbcd_ejb/ExStatelessBean/env/bookswap,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@15630a{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@15630a{Installed} **")

DEPLOYMENTS IN ERROR:
Deployment "jboss.jca:name=internal/scbcd_ear/scbcd_ejb/ExStatelessBean/env/bookswap,service=DataSourceBinding" is in error due to the following reason(s): ** NOT FOUND Depends on 'jboss.jca:name=internal/scbcd_ear/scbcd_ejb/ExStatelessBean/env/bookswap,service=DataSourceBinding',whenRequired=MapControllerStateModel$ControllerStateWrapper@15630a{Installed},dependentState=MapControllerStateModel$ControllerStateWrapper@15630a{Installed} **

jboss-web is
<jboss-web>
<resource-ref>
<res-ref-name>bookswap</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:env/bookswap</jndi-name>
</resource-ref>
</jboss-web>

bean:
@Resource(name="bookswap")

tkx.

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic