IRC Networks
Irc Logs Stats
Start date: 2007-09-27 02:48:27
Last update: 2008-10-24 20:19:38
Channels: 41
Logged Lines: 6230436
Size: 1992.93 MB
Powered by
Channel Info
Network: freenodeChannel: #tomcat |
Search in www.irclog.org
Log from #tomcat at freenode 2006-06-02
Pages: 1
[12:12]<gyfnsxwww>[root@localhost home]# service tomcat5 restart
[12:12]<gyfnsxwww>Starting tomcat5: /usr/bin/rebuild-jar-repository: error: JVM_LIBDIR /usr/lib/jvm-exports/java does not exist or is not a directory
[12:13]<gyfnsxwww>can any one help me to solve this error?
[12:13]<fdcgg>thats not a fun error
[12:13]<fdcgg>heh
[13:04]<rrrdjg>hi, how do i prevent Integer.parseInt() from throwing a runtime exception ?
[13:18]<fdcgg>why would it ?
[13:19]<rrrdjg>eg the string is not only digits
[13:19]<fdcgg>then catch the error and do somethign with it
[13:19]<fdcgg>heh
[13:19]<fdcgg>and if your data isnt right
[13:20]<fdcgg>its doing what its supposed to do
[13:20]<rrrdjg>catch a runtime exception?
[13:20]<fdcgg>try { } catch (NumberFormatException ne) { //do nothing } ;
[13:21]<rrrdjg>ok..right now im checking if it matches the regular expression \d+.. is try-catch a better solution?
[13:21]<fdcgg>yer
[13:21]<fdcgg>definately
[13:21]<fdcgg>well id do both
[13:22]<fdcgg>just to be sure :)
[13:22]<rrrdjg>>_<
[13:23]<xzzljjg>lyken: do nothing is not realy good...
[13:23]<fdcgg>lol
[13:23]<fdcgg>well help him then
[13:23]<fdcgg>im cooking dinner :)
[13:23]<xzzljjg>catch and throw servlet exception
[13:24]<xzzljjg>then user sees that something went wrong
[13:24]<xzzljjg>your way ... nothing happens. user just wondering that nothing happens :-)
[13:27]<rrrdjg>thanks
[13:30]<fdcgg>heh
[13:30]<lvp>oi oi
[13:30]<fdcgg>oks how do you call it ?
[13:30]<fdcgg> Class.forName("org.postgresql.Driver");
[13:30]<lvp>yes
[13:30]<fdcgg>what version of the jdbc jar you have ?
[13:31]<lvp> postgresql-8.1-407.jdbc3.jar
[13:31]<lvp>i have tomcat 5 with pg 8.1
[13:32]<fdcgg>hmmz
[13:32]<fdcgg>oks
[13:32]<fdcgg>can you pastebin me a bit of code ?
[13:32]<fdcgg>show me whats killing it
[13:32]<lvp>in a sec
[13:33]<fdcgg>man my dinner smells good
[13:34]<lvp>http://sial.org/pbot/17527
[13:35]<fdcgg>man this powerbook is running like crap tonight : (
[13:35]<fdcgg>kill off all the MS products
[13:35]<fdcgg>wow, now its runing fast again !
[13:36]<fdcgg>pvf: and that code craps out?
[13:36]<lvp>yes
[13:36]<fdcgg>you import
[13:36]<fdcgg>import java.sql.*;
[13:36]<fdcgg>import java.util.*;
[13:37]<lvp>yes
[13:38]<lvp>try it yourself ...
[13:38]<fdcgg>what if you use
[13:39]<fdcgg>s.executeQuery(sql);
[13:39]<fdcgg>instead of update
[13:39]<lvp>i guess it's the same error ...but i'l try again
[13:40]<fdcgg>id also suggest pulling that code into normal java prog
[13:40]<fdcgg>and seeing if its tomcat being lame :)
[13:40]<lvp>it shows the same error
[13:40]<lvp>i'll try that
[13:49]<lvp>lyken,
[13:49]<fdcgg>?
[13:49]<lvp>it gives : java.lang.ClassNotFoundException: org.postgresql.Driver
[13:50]<lvp>my driver is at /usr/share/java
[13:51]<fdcgg>what happens if you specific the driver at runtime
[13:51]<fdcgg>java -cp post...jar
[13:56]<lvp>that's the command to "query" the driver only ?
[13:56]<fdcgg>nah
[13:56]<fdcgg>thats to load the driver when you java YourProgram
[13:57]<lvp>ok, i've done this : java -Djdbc.drivers=org.postgresql.Driver test
[13:58]<lvp>it returns this : java.lang.ClassNotFoundException: org.postgresql.Driver
[13:59]<fdcgg>hmmz
[14:01]<lvp>wich drivers are you using ?
[14:01]<fdcgg>same
[14:01]<fdcgg>thats why i dont understand heh
[14:02]<fdcgg>i just downloaded the new driver and tried it
[14:04]<lvp>if there are more that one jar drivers how does java know wich one to use ?
[14:04]<lvp>i have more than one jar drivers in /usr/share/java
[14:05]<lvp>if we not specify the drivers at runtime that is
[14:06]<fdcgg>yer
[14:06]<fdcgg>id assume it was
[14:06]<fdcgg>java -cp postgresql-8.1-407.jdbc3.jar YourJavaClass
[14:07]<fdcgg>assuming your jar is in the same dir
[14:07]<fdcgg>i gotta go now, sorry dude, ill be back in about an hour
[14:07]<lvp>ok
[14:07]<lvp>thanks
[19:02]<szrmfrzcyrr>ok mom
Pages: 1







