Create a data source called something like crmdatasource and then change the
<jndi-name>crm</jndi-name> to <jndi-name>crmdatasource</jndi-name>. This
should then work. I think the data source name can be anything you choose.
Lee
_________________________________
Lee Turner
Systems Developer
Information Technology Leeds
_________________________________
Watt Gilchrist Ltd
Ring Road, West Park
Leeds, LS16 6RA
Tel: 0113 288 3200
Fax: 0113 275 1690
http://www.wattgilchrist.co.uk
_________________________________
> -----Original Message-----
> From: Hardeep Singh [SMTP:[EMAIL PROTECTED]]
> Sent: Wednesday, February 28, 2001 12:02 PM
> To: [EMAIL PROTECTED]
> Subject: Sorry: Weblogic
>
> Hi all,
>
> I am trying to deploy a session bean in weblogic. I have created a pool
> named crm, the file ejb-jar.xml contains the lines:
>
> <resource-ref>
> <description>No Description</description>
> <res-ref-name>jdbc/DealerDataBeanDB</res-ref-name>
> <res-type>javax.sql.DataSource</res-type>
> <res-auth>Container</res-auth>
> </resource-ref>
>
> and the weblogic-ejb-jar.xml:
>
> <reference-descriptor>
> <resource-description>
> <res-ref-name>jdbc/DealerSBeanDB</res-ref-name>
> <jndi-name>crm</jndi-name>
> </resource-description>
> </reference-descriptor>
>
> However, on calling the bean through jsp or java client, on doing
> create(),
> i get:
>
> java.rmi.RemoteException: Exception in ejbCreate(); nested exception is:
> javax.naming.LinkException: [Root exception is
> javax.naming.NameNotFoun
> dException: Unable to resolve crm. Resolved: '' Unresolved:'crm' ;
> remaining
> name '']; Link Remaining Name: 'crm'
> javax.naming.LinkException: . Root exception is
> javax.naming.NameNotFoundExcept
> ion: Unable to resolve DealerDataBeanDB. Resolved: '' Unresolved:'crm' ;
> remaining name ''
> <<no stack trace available>>
>
> Do I need to craeate a datasource? If so, by what name and how will i
> need
> to modify the xml files as given above?
>
> Hardeep Singh
> http://SeeingWithC.cjb.net
>
> ==========================================================================
> =
> To unsubscribe, send email to [EMAIL PROTECTED] and include in the
> body
> of the message "signoff EJB-INTEREST". For general help, send email to
> [EMAIL PROTECTED] and include in the body of the message "help".
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".