my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes @Resource problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "@Resource problem" Watch "@Resource problem" New topic
Author

@Resource problem

francesco Ierna
Greenhorn

Joined: Mar 20, 2011
Posts: 14
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.


SCJP 6.0, SCWCD, SCBCD, SCDJWS 5.0
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: @Resource problem
 
Similar Threads
Error on deploy
JBoss + JPA + Hibernate + MySql
ExceptionInInitializerError while running servlet in JBoss 5.0
please find this error in jboss please
JBOSS sample portlet