portable >> jdbc on zaurus sl6000 with jeode

by insomniux » Mon, 25 Apr 2005 04:05:16 GMT

Hi,
I want to access a database on my zaurus sl6000 (sharp ROM 1.12) with
jdbc. Jeode (J2ME CDC-HI 1.0_v01) is installed by default.
My .java file compiles fine but when I run the class, I get the error
messages: java.lang.NoClassDefFoundError: java.sql.SQLException. It
seemed that in the personal.jar the directory java/sql was not present.
Based on information from one of the openzaurus forums, I added the
directory to the personal.jar and replaced the original file in
/home/Qtpalmtop/j2me/lib with the new version. The error however does
not go away. Still the SQLException.class is present in the
personal.jar file.
Is there a way to find out why the class is not recognised/found/used?
Thanks
insomniux



portable >> jdbc on zaurus sl6000 with jeode

by mike.bosschaert » Wed, 27 Apr 2005 04:24:02 GMT


> Hi,

For those who are interested, the problem was solved by replacing the
original personal.jar (the one in /home/Qtpalmtop/j2me/lib is a
symlink) in the /usr/QtPalmtop.rom/j2rme/lib directory, which is on
the read-only mounted root directory.
Full drscription on the www.oesf.org forums
( http://www.oesf.org/forums/index.php?showtopic=10934 )
insomniux



Similar Threads

1. JDBC Driver on Linux

2. Inactive JDBC sessions in Oracle 8.1.7 remain in Linux process list

3. Connecting to oracle (via JDBC) from unix through a firewall - Oracle

4. Apache / JDBC Tomcat adn Oracle problem

Hi all,

I'm using Apache 2.0.48, Tomcat 4.1.30 and Oracle 9.2.0.1. They work great
together until Oracle runs out of connection memory at some time.

This happens every two/three days, and I'm forced to reboot the Oracle
server. Everything is like the ConnectionPoolDatasource never releases the
connections, even though they are expired ( regarding the MaxIdle... in
tomcat's server.xml ).

I've also noticed that when I stop/start the webapp in tomcat, the
connections stay alive, while unreachable by the jvm.

Again, when I stress the application, connections seems no to be reusable
among sessions, ie a inactive session (which has released the connection,
i've checked that) doesn't effectively released the connexion to the pool...

What can I do from that point ??? Have I a spare solution, without rewriting
all the code ??? Should I use another object to connect ??

Cyril


5. Oracle jdbc perf on linux and windows : mostly SOLVED - Java

6. Mysql, JDBC on Linux

Greetings,

I've installed mysql on my linux Box and the server is up and running.

I then tried to access my server via JDBC and could not while my Java 
code is ok (comes from my course :) but we worked under W2K there :) ) 
and I get the following msg :

Server configuration denies access to data source.

I googled and found some info regarding the hosts file which needed to 
be set, it was the commonest error and so on ...

<QUOTE>
If you look at your mysql database user table. It probably has an entry for
localhost and bizservers.com. If you change the bizservers.com to be the
same as /etc/hosts or change the order in /etc/hosts or us the IP address in
the mysql database it will work.
</QUOTE>

So I cat my /etc/hosts :

127.0.0.1       localhost
127.0.0.1       localhost.lan.com       localhost
10.0.0.1        me.lan.com            me

I setted my hosts file and still no go ;  Moreover my user's table in 
Mysql has a root user on localhost, my firewall allows traffic on localhost.

I posted on a linux group but got no answer so if anybody here can help 
a student revise his exams and practise Java :)

Thx a lot !

7. jdbc class not found exception with tomcat in linux - Java

8. [SOLVED] Mysql, JDBC on Linux

After stopping checking in linux, I went back to the basics and check my 
users in MySql admin, and guess what :) the user I was using had a 
password :)

Feel dumb somewhat :)