Need help in deploying BMP.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dimpi_Bhatia
Posted On:   Monday, October 7, 2002 05:03 AM

Hi, I am new to EJB..some how i deployed session beans... When I am deploying BMP, i am getting this error in server console ************************************************************ Failed to lookup JDBC Datasource. Please double check that the JNDI name defined in the resource-description of the EJB's weblogic-ejb-jar.xml file is the same as the JNDI name for the Datasource defined in your config.xml. ************************************************************** In log file, I am getting the following error. ***********************************************************    More>>

Hi,



I am new to EJB..some how i deployed session beans...
When I am deploying BMP, i am getting this error in server console




************************************************************



Failed to lookup JDBC Datasource. Please double check that
the JNDI name defined in the resource-description of the
EJB's weblogic-ejb-jar.xml file is the same as the JNDI name
for the Datasource defined in your config.xml.




**************************************************************



In log file, I am getting the following error.


***********************************************************



<> <1:aade9bc0> <010049>
- with nested exception:
[javax.naming.LinkException: [Root exception is javax.naming.NameNotFoundException: Unable to resolve demoPool. Resolved: '' Unresolved:'demoPool' ; remaining name '']; Link Remaining Name: 'demoPool']>
javax.naming.LinkException: . Root exception is javax.naming.NameNotFoundException: Unable to resolve demoPool. Resolved: '' Unresolved:'demoPool' ; remaining name ''
< >




***********************************************************


I am enclosing my deployment descriptors and config.xml



ejb-jar.xml is
--------------
<?xml version="1.0"?>


'-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>




beanManaged
examples.ejb20.basic.beanManaged.AccountHome
examples.ejb20.basic.beanManaged.Account
examples.ejb20.basic.beanManaged.AccountBean
Bean
java.lang.String
False

jdbc/demoPool
javax.sql.DataSource
Container







beanManaged
*

Required







weblogic-ejb-jar.xml is
-----------------------



<?xml version="1.0"?>


'-//BEA Systems, Inc.//DTD WebLogic 6.0.0 EJB//EN'
'http://www.bea.com/servers/wls600/dtd/weblogic-ejb-jar.dtd'>



beanManaged



jdbc/demoPool
examples-dataSource-demoPool



ejb20-beanManaged-AccountHome








Entry in config.xml is
----------------------





Name="examples-dataSource-demoPool"
Properties="user=none;password=none;server=none"
Targets="myserver" TestTableName="ejbAccounts" URL="jdbc:odbc:beanexample"/>









And I am using MSAccess as DB...I have created DSN 'beanexample'
In my client file, JNDI name is 'ejb20-beanManaged-AccountHome'

Is my configuration in config.xml is correct?
Do I need to change any more in this file or else where?
I have manually edited config.xml instead of doing it thru console..
Hope this doesn't make any diff..

Hope some one helps me in getting the solution.
Thanx in advance.

   <<Less

Re: Need help in deploying BMP.

Posted By:   Christopher_Koenigsberg  
Posted On:   Monday, October 7, 2002 10:02 AM

Just a naive quick guess -- since you define it as




jdbc/demoPool



maybe you need to refer to it in your code as "jdbc/demoPool"?

About | Sitemap | Contact