logo
Oct
26

Tomcat, JNDI, JSTL, and “No suitable driver”

Been mucking around with getting JSTL to use a JNDI data source, and Tomcat has been giving me all sorts of grief. I knew my web.xml was right… and I’d created the JNDI source using Tomcat’s own admin interface, so I *figured* that was ok. But every time I gave it a whirl, I’m getting the dreaded: DataSource invalid: "No suitable driver" deal. The mysql jar file was happily in...
Oct
20

First Experiences with JNI

Never done any JNI before, but recently had a need, and it turns out that it’s a whole lot more straightforward than I was anticipating. In my case, I needed to make some mods to an existing Win32 DLL, so YMMV. In a nutshell, the process goes like this: Define the methods you need as public native in your Java class. These guys are just stubs to the C calls you’ll be making down the track, do...
Oct
16

POPing with JavaMail

I’ve been toying with building a simple Java spam filter for a while, and last night I actually got things off the ground. First things first, I need to get the stuff off the server, so I had a scout for some POP3 libs. Turns out there’s a few out there, but I figure that JavaMail from Sun has got to be worth a look (and I’ve got Elliotte Rusty Harold’s excellent “Java Network...
Oct
10

PocketPC one month on…

About a month ago, after years of faithful service, my Psion Revo Plus died. After looking for a suitable replacement, I ended up with a HP Ipaq 1940. Very cool little pda – ultralight/thin with bluetooth built in, and came with 128 Mb SD thrown in. Well, I never thought I would be able to live without an actual keyboard, but it definitely can be done. At first I used the on-screen keyboard, which...

logo
Powered by WordPress | Designed by Elegant Themes