IRC log for #tomcat on 20080518

00:36.25_ProZaC_thanks
00:36.25ibot_ProZaC_: de nada
02:44.27*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-116-109.dsl.emhril.ameritech.net)
03:21.13*** join/#tomcat Infinito_ (n=argos@200-140-59-206.gnace701.dsl.brasiltelecom.net.br)
03:46.39*** join/#tomcat acidjnk (n=have@pD9508D96.dip0.t-ipconnect.de)
04:11.57*** join/#tomcat _ProZaC_ (n=none@201.73.96.197)
06:37.45*** join/#tomcat andyt (n=andyt@THOMPSON-LAPTOP.ADMIN.SCPS.NYU.EDU) [NETSPLIT VICTIM]
06:38.19*** join/#tomcat schnee (n=schnee@squadslair.de) [NETSPLIT VICTIM]
06:44.10*** join/#tomcat ohsix (i=ohsix@66.220.111.222)
06:51.32*** join/#tomcat kjetilkWork (n=nnnnnnnn@news.computas.com) [NETSPLIT VICTIM]
07:40.10*** join/#tomcat bhushanvmishra (n=bhushanv@202.46.197.70)
07:41.12bhushanvmishratomcat not running can anyone help me plz
07:43.34bhushanvmishrahello can anyone listen me
07:45.01bhushanvmishrais anykind of help available here
07:47.55bhushanvmishrais there anyone who can help me
07:49.57*** part/#tomcat bhushanvmishra (n=bhushanv@202.46.197.70)
07:57.19*** join/#tomcat yassin1 (n=yassine@p54BB73DF.dip.t-dialin.net)
08:45.51*** join/#tomcat DB42 (n=wy@bzq-219-142-146.static.bezeqint.net)
08:55.53*** join/#tomcat gregor_k (n=a@stgt-4dbe1019.pool.einsundeins.de)
08:56.19*** join/#tomcat netolish (n=netolish@217.66.174.49)
08:57.02*** join/#tomcat DB42 (n=wy@bzq-219-142-146.static.bezeqint.net)
08:57.17DB42how threadsafe is accessing stuff like servlet context and session data?
09:18.00DB42anybody?\
09:43.27*** join/#tomcat keith80403 (n=keith804@71-208-218-103.hlrn.qwest.net)
09:45.57*** join/#tomcat MHSL (i=Linux@116.88.6.41)
09:51.40*** part/#tomcat netolish (n=netolish@217.66.174.49)
09:56.20*** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
10:22.54*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-116-109.dsl.emhril.ameritech.net)
10:37.45DB42how threadsafe is accessing stuff like servlet context and session data?
10:44.41DB42what is a good way to store an webapps settings ?
10:44.44DB42a properties file ?
11:03.33DB42blah
11:26.33MHSLDB42, it depends
11:28.26MHSLDB42, property file, web.xml, context.xml, all are good, it depends on what you're trying to do
11:29.21DB42well my servlet has lots of internal settings
11:29.32DB42that i want to expose in a sort-of a user friendly way
11:31.52DB42any recommendations ?
11:32.05DB42web.xml seems bad since not everything is bound to a context
11:36.28*** join/#tomcat ballpointpenthie (n=matt@host81-152-206-177.range81-152.btcentralplus.com)
11:38.32*** join/#tomcat ballpointpenthie (n=matt@host81-152-206-177.range81-152.btcentralplus.com)
11:44.20DB42MHSL ?
12:03.46MHSLDB42, then you can put in context or properties file
12:03.55MHSLDB42, it depends what you mean by "user friendly way"
12:07.40*** join/#tomcat numpsz1 (n=peter@195.146.149.75)
12:08.57numpsz1Hello! I am usin Ubuntu linux + Apache tomcat + Mysql + java(jsp)
12:10.01DB42MHSL: basically a non java file which you can edit
12:10.04numpsz1My problem is:
12:10.20DB42and how can i put it in context if not everything is bound to one directly ?
12:11.05numpsz1I try to connect with (in jsp):  ocon = DriverManager.getConnection("MYSERVER","MYUSER","MYPASS");
12:11.33numpsz1I get an error message: "org.apache.jasper.JasperException: Exception in JSP: "
12:11.45numpsz1How can I fix this?
12:14.01DB42basically by figuring out what the exception is
12:14.04DB42thats a good start
12:14.25DB42usually written in the next line after you pasted
12:15.53numpsz1http://pastebin.com/m42395e66
12:16.37numpsz1and the code:
12:16.38numpsz1http://pastebin.com/m18a772b8
12:20.05DB42javax.servlet.ServletException: No suitable driver found for jdbc:mysql:3306//localhost/MYDB
12:20.16DB42this is the problem, you didn't install/load the mysql connector/j
12:20.46*** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-116-109.dsl.emhril.ameritech.net)
12:22.03numpsz1Ok, i am going to install them...
12:24.41numpsz1i have a new error message!!
12:24.56DB42good for you
12:25.22numpsz1http://pastebin.com/m30d339f5
12:25.36numpsz1i know
12:25.46DB42could have fooled me
12:25.50DB42but it seems like the exact same problem
12:27.26numpsz1It is not the same...
12:27.54numpsz1If i have "org.gjt.mm.mysql.Driver" driver, I get Jasper exception
12:28.14DB42org.apache.jasper.JasperException: No suitable driver found for jdbc:mysql:3306//localhost/MYDB
12:28.16numpsz1I if have "com.mysql.jdbc.Driver", i get this...
12:28.29DB42it still can't find the connector/j
12:28.45numpsz1i know :(
12:29.29DB42as i said, same error
12:29.45DB42did you a. put the connector/j in your classpath b. initilize it in the code ?
12:31.02numpsz1I have only installed the "libmysql-java" package for ubuntu...
12:31.09numpsz1it contains the connector.
12:31.23numpsz1I don't know how the set the classpath
12:32.48MHSLnumpsz1, you need to put your db driver jar under tomcat common/lib for tomcat 5.5 or lib directory for tomcat 6
12:33.55MHSLDB42, then don't use context param, use properties file
12:34.38DB42MHSL: how can i set where the properties file is ?
12:34.49numpsz1<PROTECTED>
12:34.55DB42yea
12:35.10DB42you can d/l it from mysql.com site
12:35.15DB42it's a .tar.gz file with the .jar file inside
12:37.08numpsz1where to copy this file?
12:37.13numpsz1I am on linux.
12:39.04*** join/#tomcat acidjnk (n=have@pD9508D96.dip0.t-ipconnect.de)
12:39.20numpsz1i have copied to "/usr/share/tomcat5.5/server/lib/"
12:39.28numpsz1same error...
12:39.46numpsz1(yes, i have restarted the server)
12:40.04DB42i think it's common/lib
12:40.05DB42or so
12:40.30DB42MHSL: how do i know where to put/locate the prop file so tomcat will read it
12:40.37DB42my webapp that is
12:40.40numpsz1copied to common/lib....
12:41.11numpsz1same error
12:47.34DB42as i said
12:47.40DB42b. initilize the driver
12:47.44DB42type before the peroblematic line
12:47.46DB42Class.forName("com.mysql.jdbc.Driver").newInstance();
12:47.50numpsz1how can i initialize?
12:48.09DB42by doing what i say
12:49.26numpsz1http://pastebin.com/m184bed07
12:49.30numpsz1here is my code?
12:49.33numpsz1:
12:49.39numpsz1what can be wrong?
12:57.20numpsz1i workin nearly 10 hours on this problem :(
12:58.02DB42maybe the .jar needs to be someplace else
13:01.54DB42alo
13:01.55DB42also
13:01.59DB42try d/l'ing the connector from their site
13:07.34numpsz1i have downloaded the latest version...
13:08.02numpsz1copied to common/lib
13:08.05numpsz1No suitable driver found...
13:08.12DB42try putting it in the webapps's WEB-INF/lib as well
13:09.46numpsz1yes, i have already
13:10.16DB42try googling the exception, might find some insight
13:10.38numpsz1i have googled nearly 4 hours...
13:11.03DB42you might ask in #java as well
13:14.59*** join/#tomcat Calvin1602 (n=amassera@mult01.ens.insa-rennes.fr)
13:16.08Calvin1602Hi, I'm looking for a channel where I could find help about Apache's httpd.conf .... Am I at the right place ?
13:16.24DB42nop
13:16.26DB42#apache
13:16.42Calvin1602ok thanks ! bye
13:16.56DB42rofl, why quit..
13:22.27*** join/#tomcat clajo04 (n=clajo04@25.sub-75-205-165.myvzw.com)
13:23.37numpsz1It is impossible to use mysql...
13:23.39numpsz1:(
13:24.16DB42i'm using it just fine, but in a different way
13:24.35numpsz1Is there any web hostings with JSP and MYSQL support?
13:25.50numpsz1/i need to write a 50 lines long program for  mysql/jsp demonstration/
13:31.15MHSLDB42, just put it under your webapp WEB-INF/classes
13:32.29MHSLnumpsz1, who said it's impossible? i can get my webapp working with mysql without much effort
13:32.57MHSLDB42, just load it in usual manner, like how you load a resource file in a java app
13:33.01DB42k
13:33.31MHSLnumpsz1, put mysql-connector-java.jar under your tomcat common/lib, try to restart tomcat if it still cant find it
13:35.03MHSL<numpsz1> Is there any web hostings with JSP and MYSQL support? -> you're trying to avoid the problem instead of solving it
13:36.02DB42isn't what we all do ? :)
13:36.12numpsz1MHSL, yes i have copied it to every directory which contains the word "lib"
13:36.15MHSLDB42, nop
13:36.24MHSLnumpsz1, your code is not quite right
13:36.32numpsz1why?
13:37.04MHSLnumpsz1, Class.forName("com.mysql.jdbc.Driver").newInstance(); you're not supposed to create a new instance. you only need to load the class, not creating an instance of the class
13:37.23numpsz1Class.forName("com.mysql.jdbc.Driver") is enough?
13:37.34MHSLnumpsz1, do you know how to load a class?
13:37.46numpsz1No, i don't know
13:37.57MHSLnumpsz1, read Class class javadoc
13:38.17MHSLnumpsz1, what's the stacktrace you got?
13:38.43numpsz1If i read it, I will find my mysql driver?
13:38.51*** join/#tomcat _ProZaC_ (n=none@201.73.96.197)
13:38.52DB42rofl
13:38.58numpsz1:)
13:39.02MHSLnumpsz1, that's not the intention
13:40.41MHSLnumpsz1, however, putting that aside, try to stop your tomcat, delete all logs, start your tomcat, and try to access the jsp you have your sql code on, then paste the stacktrace on pastebin
13:41.06MHSLnumpsz1, trust me if you dont even know how to load a class you wont get far
13:42.09DB42numpsz1: btw, show me the exception log for the latest code you showed me
13:42.26numpsz1http://pastebin.com/m30d339f5
13:42.51MHSLnumpsz1, the jdbc url is also wrong
13:43.15MHSLnumpsz1, jdbc:mysql:3306//localhost/MYDB what's this? it's supposed to be jdbc:mysql://localhost:3306/MYDB
13:44.04DB42that might fix it all :)
13:44.14numpsz1oh sh*t!
13:44.28DB42especially since the Class.forName.newInstance didn't throw an exception
13:44.51MHSLhowever that's not the correct way to load jdbc driver, that's creating a new instance not loading it
13:45.10MHSLalthough since it's trying to create a new instance it'll also be loaded if it isnt loaded
13:45.47MHSLanother thing to mention is, it's recommended to use jndi resource with tomcat
13:46.10DB42yeap, that's what i'm using
13:49.57numpsz1I have tried to load an Oracle driver, it works
13:51.03*** join/#tomcat bhushanvmishra (n=bhushanv@202.46.197.70)
13:51.39bhushanvmishrahello phlber
13:52.17bhushanvmishraare u there
13:52.36DB42bhushanvmishra: heard of private messages ?
13:52.46bhushanvmishrano
13:52.51bhushanvmishrawhat's that
13:52.55DB42so start usnig them /msg ph|ber ...
13:54.12bhushanvmishrai got the message that private messages are currently block
13:54.29bhushanvmishrawell i need help <DB42>
13:54.29DB42so register like it tells you to
13:54.39DB42didn't seem like it, seemed like you wanted to talk to ph|ber
13:54.48DB42and it's DB42 not <DB42>
13:59.17*** join/#tomcat bhushanvmishra (n=bhushanv@202.46.197.70)
13:59.32bhushanvmishraI am sorry DB42
13:59.54bhushanvmishrabut i badly need the help and no one's responding
14:00.05bhushanvmishracould you help me plz
14:00.40MHSLbhushanvmishra, noone can help you if you dont even say your problem
14:00.56DB42true
14:01.25MHSLbhushanvmishra, and be patient next time
14:01.43bhushanvmishraok
14:02.15bhushanvmishrai am facing problem from last 3-4 days
14:03.44bhushanvmishrai have tomcat 6.0 on my windows xp evenif i try to open tomcat manager it just could,t open
14:06.36bhushanvmishrai on localhost:8080 it took lot of time to show tomcat manager, however sometime it doesn't open at all
14:06.37MHSLbhushanvmishra, what do you mean by couldn't open?
14:06.49MHSLbhushanvmishra, check tomcat log
14:08.09bhushanvmishraI have check logs there is no text and could not open means, when i put
14:08.14numpsz1javax.servlet.ServletException: Could not initialize class com.mysql.jdbc.CharsetMapping
14:08.21numpsz1this is my new "exception"
14:09.08bhushanvmishrahttp://localhost:8080 in url and hit enter it only shows connecting for all the time and page doesn't load at all
14:11.30MHSLbhushanvmishra, is there any ROOT webapp?
14:11.49DB42bhushanvmishra: normal webapps work ok ?
14:17.35numpsz1Problem solved!
14:17.57DB42can you solve my problem ? i hate java :0
14:18.01bhushanvmishrayes there is root webapp
14:18.09numpsz1i hate too
14:18.27MHSLDB42, what problem?
14:18.34DB42i hate java :)
14:18.41MHSLheh
14:18.44MHSLthen dont use it
14:18.47DB42i like c# much more
14:18.56DB42i try to stay away from it when i can
14:19.03MHSLnot much different
14:19.09DB42much different
14:19.27MHSLe.g.?
14:19.27DB42delegations, anonymous methods, unchecked exceptions to name a few
14:19.46MHSLDB42, so java doesnt have unchecked exceptions?
14:19.48DB42gui
14:20.03MHSLDB42, so there is no IDE for java?
14:20.04DB42it has, but is unfortunatly has checked ones as well (those are the ones i hate)
14:20.24DB42there is IDE, but there isn't a good GUI one
14:20.33MHSLDB42, yeah because C# makes you lazy to check for exceptions, makes your app unreliable without checking exceptions
14:20.49DB42yeap, no tons of "catch / throws" code out there
14:20.51MHSLDB42, I'll say eclipse and netbeans are quite good
14:20.58DB42and delegate / anonymous methods..
14:21.05DB42eclipse ? 3.3 doesn't even have a GUI editor @ all
14:21.25DB42and with all due respect, VS kicks VE and Netbeans in the ars
14:21.48DB42altough i must say i'm tempted to see java 6u10
14:22.00DB42finally native direct3d rendering for all of java gui in windows :)
14:22.06MHSLi've tried C# .NET myself and not really a fan of it
14:22.36bhushanvmishrait has ROOT webapp,and normal webapp sometime loads otherwise same problem as i mentioned above
14:22.43DB42the only downside for .net is that it's MS controled
14:22.50MHSLsimple reason, it hides lots of things from you, sometimes it's good sometimes it isnt, e.g. unchecked exceptions, if all are unchecked, it will make the code very unreliable
14:23.21DB42MHSL: didn't you like delegates ?
14:24.47MHSLDB42, function pointer?
14:24.54DB42yeap
14:25.32MHSLDB42, not really, it's not really OO
14:25.33DB42i'm not talking about c# 3 btw, which adds linq, anonymous methods, partial classes, type inference, extension methods, etc..
14:25.51DB42ahh, but doing anonymous class for one method is really OO...
14:26.06DB42also the event system is pretty nifty in .net as well
14:26.55MHSLDB42, there may be good and bad things from both and i wont argue with it, but all i can say is there is no such thing as the best platform/language etc in this world
14:27.36MHSLDB42, for me if i dont like it i dont use, end of story, but if i use it i wont complain about it
14:27.37ph|berhey guys..
14:27.44ph|berMHSL: !! sup..
14:27.50ph|berhey i figured my session problem.
14:27.58ph|berbut i have a question.. i have 2 tomcat machines.
14:28.04MHSLph|ber, what happened?
14:28.09DB42MHSL: but i have to do homework, which is usually in java :)
14:28.10ph|berwith multiple instances under multiple users.
14:28.20ph|berdidnt have  <distributable/>
14:28.22ph|berin web.xml
14:28.34bhushanvmishraMHSL:it has ROOT webapp but tomcat manager page is not displayed at all
14:28.59MHSLDB42, you can try to discuss with your java teacher why java is bad compared to .NET and see what he thinks, sometimes it's good to see what they think
14:29.01ph|beris it ok to have multiple instances on 1 machine? or should i just have all the apps deployed in 1 vm machine?
14:29.14DB42MHSL: i did, dont worry :)
14:29.18MHSLph|ber, yes, it's completely fine having multiple instances in 1 machine
14:29.30DB42my teacher is a doctor in this field
14:29.40ph|berhrm.. k.. well we are seeing some issues, with sites just dieing
14:29.49ph|berthen a bounce of tomcat brings them back.
14:29.51ph|berany ideas?
14:29.51MHSLph|ber, what do you mean by that
14:29.56MHSLDB42, that's good
14:30.36MHSLbhushanvmishra, are you running it locally or?
14:30.43ph|berand i need to figure out how to decrease the timeout on the session states.
14:30.50bhushanvmishrayes locally
14:30.51MHSLph|ber, a bounce?
14:30.55ph|berrestart of tomcat
14:31.29MHSLph|ber, session timeout, as far as i know you can simply set it in your web.xml
14:31.39MHSLbhushanvmishra, are you sure there is nothing on log?
14:31.49ph|berdo you have a syntax for that?? or a site explaining it..
14:31.50ph|berSEVERE: Unable to serialize delta request for sessionid [43C50E928B6DD395C6E47845B256DA4A.juiceplus0]
14:32.05MHSLph|ber, that's serialisation problem not timeout
14:32.12ph|beri know ..
14:32.13ph|berthat one.
14:32.17ph|beri pastes wrong thing
14:32.21bhushanvmishrayes i was trying while explaining you the problem
14:32.56MHSLph|ber, use session-config
14:33.09bhushanvmishrano text in log
14:33.25MHSLbhushanvmishra, where did you get tomcat?
14:33.25DB42MHSL: oh, i also like c#'s "out" and "ref" which java doesn't have (on function parameters)
14:34.56MHSLDB42, ic, there are certainly number of features that C# has but not in java, and vice versa. I'm not an expert in either, so that's all i can say
14:36.02bhushanvmishrafrom http://tomcat.apache.org/download-60.cgi
14:36.02MHSLDB42, so when you're either looking for a job or thinking to have your own business, you can be specialised in C# next time
14:36.02MHSLbhushanvmishra, how did you run tomcat?
14:37.16bhushanvmishrai just go into start menu->apche tomcat 6.0->monitor tomcat->start button click
14:37.42MHSLbhushanvmishra, oh so you use the windows service installer?
14:37.53bhushanvmishrayes
14:38.20MHSLbhushanvmishra, how about if you stop tomcat from there, and you start tomcat by running startup.bat under tomcat bin directory
14:38.58MHSLbhushanvmishra, i never use the windows service installer before, so i dont know whether that would be the reason why the log is empty
14:39.09bhushanvmishraok i just try this and get back
14:40.50bhushanvmishrano change i have click startup.exe to start tomcat but all in vain
14:41.06MHSLbhushanvmishra, hm.. startup.bat not startup.exe
14:41.39ph|berWARNING: Manager [/uploads], requesting session state from org.apache.catalina.cluster.mcast.McastMember[tcp://10.10.9.22:4000,catalina,10.10.9.22,4000, alive=4523]. This operation will timeout if no session state has been received within 60 seconds.
14:41.41bhushanvmishrano startup.bat in bin directory
14:41.43ph|berthats what im getting.
14:41.51ph|berand the session is set to 30 seconds.
14:43.53MHSLph|ber, i think that's the default (if i'm not wrong)
14:44.08ph|berwhich ? 30 or 60?? 30 is set, but the logs say 60
14:44.22MHSLph|ber, wait, that 60 seconds is not your session timeout
14:44.30ph|berwhat is that?
14:45.08MHSLph|ber, that indicates how long tomcat will wait for session state response from another instance in the cluster
14:45.18ph|berso how can i set that down?
14:45.32MHSLph|ber, hm that one i'm not sure
14:49.07*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-37ebb9af41c4ad6e)
15:12.10*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-46-101.dynamic.mnet-online.de)
15:35.47ph|berMHSL: any ideas on the other timeout??
15:50.29ph|berMHSL: you ever use jmon?
15:52.15*** join/#tomcat si|ent (n=silent@grunt.silent-system.net)
15:53.19si|enthi - lookingfor information on whether its possible to configured the server.xml odbc connections to use one for read access and one for write?  i have a single master/multiple slave mysq config
17:11.20*** join/#tomcat _change (n=_change@ip-89-102-196-241.karneval.cz)
17:40.38*** join/#tomcat IR1 (n=snetram_@p548CBD69.dip.t-dialin.net)
17:41.35*** part/#tomcat IR1 (n=snetram_@p548CBD69.dip.t-dialin.net)
17:41.46_changehi please, any suggestions? I got this mistake: validateJarFile(/home/loc/.apache-tomcat-6.0.16-e/webapps/aol-web/WEB-INF/lib/servlet-api.jar) - jar not loaded.See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
17:42.06_changeI googled that I should remove servlet-api.jar from WEB-INF/lib. It helped. But after I got NullPointerException on this line  _el_expressionfactory = _jspxFactory.getJspApplicationContext(getServletConfig().getServletContext());
17:42.37DB42check when that method returns a null
17:44.38_changein public void _jspInit().  I have only this in the start.jsf file:  <jsp:forward page="/index.faces"/> . So I'm not sure how.
17:50.00_changefrom localhost.date.log: http://pastebin.com/m373883a3
17:53.30_changepardon tomcat 6.0.16, java version "1.6.0_06" Linux
18:10.44DB42can i set a timeout ?
18:11.01DB42for a startup listener ?
18:11.11DB42i.e. if it doesn't return on init for 30 seconds to abort it?
18:50.46*** join/#tomcat pRoFiOn (i=pRoFiOn@89-201-135-219.dsl.optinet.hr)
18:54.45*** join/#tomcat a4akba (n=a4akb@62.215.156.215)
19:08.39*** join/#tomcat Infinito_ (n=argos@201-2-53-28.gnace701.dsl.brasiltelecom.net.br)
19:14.43*** join/#tomcat clajo04_ (n=clajo04_@cpe-72-229-214-63.nyc.res.rr.com)
19:23.05*** join/#tomcat b3nn3tt (n=bennett@adsl-69-110-23-99.dsl.pltn13.pacbell.net)
19:41.37*** join/#tomcat clajo04_ (n=clajo04_@cpe-72-229-214-63.nyc.res.rr.com)
20:15.40*** join/#tomcat Blissex2 (n=pcg@82-69-39-138.dsl.in-addr.zen.co.uk)
20:20.50*** join/#tomcat juanez (i=kemik@idlar.nu)
20:30.37*** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com)
21:41.36*** join/#tomcat Infinito_ (n=argos@201-2-53-28.gnace701.dsl.brasiltelecom.net.br)
21:47.06*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-46-101.dynamic.mnet-online.de)
22:31.29*** join/#tomcat stopgo (i=foobar@nowei.Stanford.EDU)
22:41.21*** part/#tomcat stopgo (i=foobar@nowei.Stanford.EDU)

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.