Help coderanch get a
new server
by contributing to the fundraiser
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

error in deploying ejb2.0 bmp in jboss4.5

 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 "jdbc:odbc:studentDSN" -->
<connection-url>jdbc:oracle: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>
 
Brace yourself while corporate america tries to sell us its things. Some day they will chill and use tiny ads.
We need your help - Coderanch server fundraiser
https://coderanch.com/t/782867/Coderanch-server-fundraiser
reply
    Bookmark Topic Watch Topic
  • New Topic