-----Original Message----- From: Toby Allsopp [mailto:[EMAIL PROTECTED]] Sent: Saturday, 13 January 2001 21:15 To: jBoss Subject: Re: [jBoss-User] jBoss jndi = no comp/env ? Ferguson, Doug wrote: > I will try to make this a little more clear. > > I have the following code in my bean and it doesn't work > ** DataSource ds = (DataSource)ctx.lookup("java:comp/env/Falcon"); > > When I changed the code to the code below, it works > ** DataSource ds = (DataSource)ctx.lookup("java:/Falcon"); > > I got the idea to try to change the jndi lookup when I saw jBoss > messages on start-up saying - loading datasource /Falcon > Any ideas what misconfiguration might casuse this behaviour? Well, it sounds like you have your datasource bound to "java:/Falcon". This is perfectly normal and how it should be. What you want in addition is for the datasource that is at "java:/Falcon" to be available at "java:comp/env/Falcon" in your bean. To do this you need two things: 1) in your ejb-jar.xml, specify a resource reference to be bound to "Falcon", i.e. <res-ref-name>Falcon</res-ref-name> 2) in your jboss.xml, specify that this is to point at "java:/Falcon" in the global namespace. I don't know the exact syntax for this off the top of my head, but I believe that it's documented on the web site. Toby. > Also, not sure what you didn't undestand about the 2nd sentence but was I > was trying to say was that my jboss.xml maps the res-ref xa.Falcon to the > jndi-name Falcon > > Thanks > d. > > -----Original Message----- > From: Toby Allsopp > To: jBoss > Sent: 1/13/01 6:48 AM > Subject: Re: [jBoss-User] jBoss jndi = no comp/env ? > > Ferguson, Doug wrote: > Hi, Here is how I got this to work - for your info - and comment... Got the latest source from CVS. In the jboss/lib and jboss/src/lib directories replace the file jaxp.jar with the xerces jar - renamed to be jaxp.jar. Also delete the xml.jar from both of these directories. The xerces (1.2.1 at least) jar does not seem to support encoding cp1252 (whatever that means...) - so I amended the jboss/src/etc/conf/default/standardjboss.xml and removed the encoding attribute at the top of the document. I am not sure whether this is something that could be done to the CVS version? You can now run build from jboss/src/build and generate your dist structure and your away... Have fun, Chris PS Now to work out how to configure Oracle with pre2.1 ... ================================================================================================ This electronic message (email) and any attachments to it are subject to copyright and are sent for the personal attention of the addressee. Although you may be the named recipient, it may become apparent that this email and its contents are not intended for you and an addressing error has been made. This email may include information that is legally privileged and exempt from disclosure. If you have received this email in error, please advise us immediately and delete this email and any attachments from your computer system.Rabobank International is the trading name of Coöperatieve Centrale Raiffeisen-Boerenleenbank B.A. which is incorporated in the Netherlands. Registered with the Registrar of Companies for England & Wales No. BR002630 and regulated by the SFA for the conduct of investment business in the UK. The presence of this footnote also confirms that this email has been automatically checked by Rabobank International for the presence of computer viruses prior to it being sent, however, no guarantee is given or implied that this email is virus free upon delivery. -- -------------------------------------------------------------- To subscribe: [EMAIL PROTECTED] To unsubscribe: [EMAIL PROTECTED] List Help?: [EMAIL PROTECTED]
