Why use odbc? Mysql has a top notch jdbc driver.

On 12/11/09, Todd Grigsby <strutsu...@tgrigsby.com> wrote:
>
> Yes, thank you, I know that.  My question has to do with the
> architecture mismatch.  All the documentation I've seen on this
> indicates that there is a 32-bit/64-bit issue, but I'll be darned if I
> know which piece is at fault.  Given the versions of the various parts,
> does anyone have any idea what I need to do to be able to talk to MySQL?
>
> TG
>
> Martin Gainty wrote:
>> you're using InitialContext to lookup a DataSource registered to JNDI
>> registry
>>
>> Martin Gainty
>>
>>>>   Context context = new InitialContext();
>>>>   DataSource ds =
>>>> (DataSource)context.lookup("java:/comp/env/jdbc/odbc/tgecorp");
>>>>   Connection conn = datasource.getConnection();
>>>>
>>>> ...
>>>>
>>>> The last line throws an exception with the following message:  "The
>>>> specified DSN contains an architecture mismatch between the Driver and
>>>> Application."
>>>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


-- 
Wes Wannemacher

Head Engineer, WanTii, Inc.
Need Training? Struts, Spring, Maven, Tomcat...
Ask me for a quote!

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to