Re: Hibernate not finding Oracle driver - despite straight JDBC working
From: IINET (mjinteractive_at_iinet.net.au)
Date: 12/23/04
- Next message: Dieter Bender: "Re: JDBC Connection and ClassNotFoundException"
- Previous message: Mark Scott: "Re: Does this Hibernate generated SQL mean anything to anyone?"
- In reply to: Mark Scott: "Re: Hibernate not finding Oracle driver - despite straight JDBC working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 23 Dec 2004 19:44:22 +0800
re:
You commented in one of your posts on typos in a book. The words 'pot',
'kettle' and 'black' come to mind ;-)
Hey, when I put this post on sale at $75 a pop, I will ficks upp the
mincsteaks, okay.
re:
> believe Tomcat is actually binding your DataSource into JNDI (although you
> say somewhere that it is).
It is - has been for ages, no issues there whatsoever.
re:
> FWIW, I prefer to leave server.xml alone when defining this sort of thing,
> and create context-specific files for the relevant virtual host.
Actually, I did that too. I am using JBuilder with tomcat in embedded mode,
this is the only way you can do it.
Thanks for the feedback though - much appreciated.
"Mark Scott" <usenet@codebrewer.com> wrote in message
news:pan.2004.12.23.11.35.41.706515@codebrewer.com...
> On Thu, 23 Dec 2004 09:52:41 +0800, IINET wrote:
>
> [Please don't top-post]
>
>> Sorry - heres my resource declareation in server.xml and the relavant
>> web.xml
>
> You commented in one of your posts on typos in a book. The words 'pot',
> 'kettle' and 'black' come to mind ;-)
>
>> SERVER.XML
>>
>> <resource name="jdbc/webApps" auth="container"
>> type="javax.sql.DataSource">
>> <resourceParams>
>
> These elements should be Resource and ResourceParams, respectively (note
> the capitalisation, and apply the same to the closing elements). I don't
> believe Tomcat is actually binding your DataSource into JNDI (although you
> say somewhere that it is).
>
> During startup, I get NameNotFoundException and HibernateException if I
> use your spelling (with Tomcat 5.0.28 and Hibernate 2.1.7b).
>
> I'm not saying that's the only error you've made (and you acknowledge
> at least one other in later posts), but it's one I spotted having fallen
> foul of it myself in the past.
>
> FWIW, I prefer to leave server.xml alone when defining this sort of thing,
> and create context-specific files for the relevant virtual host.
>
> HTH.
>
> --
> Mark Scott
> mark@codebrewer.com
>
> GPG Key ID: 0x2CCE1173 - signed/encrypted mail
> preferred
>
- Next message: Dieter Bender: "Re: JDBC Connection and ClassNotFoundException"
- Previous message: Mark Scott: "Re: Does this Hibernate generated SQL mean anything to anyone?"
- In reply to: Mark Scott: "Re: Hibernate not finding Oracle driver - despite straight JDBC working"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|