Hi,

>Can you please be more specific, I tried to follow up the documents but
>am unable to fix the bug. Can you please send me the example of the
>change? I would be very much thankful to you.
>
> I am assuming that
>
><Resource name="jdbc/myoracle" auth="Container"
>>              type="javax.sql.DataSource"/>
>>
>>      <ResourceParams name="jdbc/myoracle">
>
> Should make the tomcat recognise the database.

Your assumption is wrong.  I think the docs are clear, but here's an
explicit example to help you out hopefully:

Before </Host> in server.xml, add

<Context path="/myPath" docBase="myDir">
  <ResourceLink name="jdbc/myoracle" global="jdbc/myoracle"
type="javax.sql.DataSource" />
</Context>

Don't forget to turn off auto deploy in the Host definition when you add
an explicit Context for your webapp, or it will be deployed twice (once
with the error you've been seeing).

Yoav



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to