• Post Reply Bookmark Topic Watch Topic
  • New Topic

error in deploying ejb2.0 bmp in jboss4.5  RSS feed

 
Ami Ambre
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Caused by: javax.naming.NamingException: resource-ref: jdbc/studentbmpHo has no valid JNDI binding. Check the jboss-web/resource-ref.
at org.jboss.web.AbstractWebDeployer.linkResourceRefs(AbstractWebDeployer.java:623)
at org.jboss.web.AbstractWebDeployer.parseWebAppDescriptors(AbstractWebDeployer.java:512)
at org.jboss.web.AbstractWebDeployer$DescriptorParser.parseWebAppDescriptors(AbstractWebDeployer.java:878)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeployInternal(TomcatDeployer.java:159)
at org.jboss.web.tomcat.service.TomcatDeployer.performDeploy(TomcatDeployer.java:104)
at org.jboss.web.AbstractWebDeployer.start(AbstractWebDeployer.java:375)
... 137 more


ejb-jar
<ejb-jar>
<enterprise-beans>
<entity>
<ejb-name>studentbmpEjb</ejb-name>
<home>com.studentbmpHome</home>
<remote>com.studentbmpRemote</remote>
<ejb-class>com.StudenbmpBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>java.lang.Integer</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<res-ref-name>jdbc/studentbmpHo</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
</ejb-jar>

-----------------------------------------------
jboss.xml
<jboss>
<container-configurations>
<container-configuration>
<container-name>Standard BMP EntityBean</container-name>
<commit-option>A</commit-option>
</container-configuration>
</container-configurations>
<enterprise-beans>
<entity>
<ejb-name>studentbmpEjb</ejb-name>
<jndi-name>studentbmpHo</jndi-name>
<resource-ref>
<res-ref-name>jdbc/studentbmpHo</res-ref-name>
<res-type>javax.sql.DataSource</res-type>
<jndi-name>java:studentbmpHo</jndi-name>
</resource-ref>
<configuration-name>Standard BMP EntityBean</configuration-name>
</entity>
</enterprise-beans>
</jboss>

--------------------------------------------
student-ds.xml

<datasources>
<local-tx-datasource>
<jndi-name>studentbmpHo</jndi-name>
<!-- format of URL is "jdbcdbc:studentDSN" -->
<connection-url>jdbcracle:thin:@ho-ud5x6m32km3l:1521: SID NAME</connection-url>
<driver-class>oracle.jdbc.driver.OracleDriver</driver-class>
<user-name>scott</user-name>
<password>tiger</password>
<max-pool-size>50</max-pool-size>
<min-pool-size>1</min-pool-size>
<idle-timeout-minutes>1</idle-timeout-minutes>
</local-tx-datasource>
</datasources>
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!