IRC log for #tomcat on 20100613

00:35.34*** join/#tomcat scribe (~scribe@wsip-70-166-116-62.ph.ph.cox.net)
00:36.50scribeHey guys.  Anyone have a recommendation for a bulk email engine written in Java (it's not for spamming).  We'd like to build an email notification system into our training software to notify users when their certifications are about to expire and need retraining, and javax.mail isn't robust enough by itself to handle resends, load leveling and other bulk mail functions.  So, I've just started hunting.  Any suggestions are welcome.  Is the
00:36.50scribere an apache project with this functionality?  JAMES sounds like a full email server.  Maybe a subsection of code from there?
00:40.55pawelzseems like a job for simple shell script + well configured exim MTA. And NO JAVA AT ALL :)
00:46.28*** join/#tomcat ack_syn (~ack_syn@200.218.196.12)
00:47.39*** part/#tomcat scribe (~scribe@wsip-70-166-116-62.ph.ph.cox.net)
00:47.42*** join/#tomcat ack_syn (~ack_syn@200.218.196.12)
01:32.29*** join/#tomcat huj (~chatzilla@221.4.214.138)
01:37.47*** part/#tomcat hello-a (~chatzilla@221.4.214.138)
02:16.15*** join/#tomcat MHSL (mhsl@cm42.eta6.maxonline.com.sg)
02:56.20*** join/#tomcat nitish_mythology (~myth@unaffiliated/nitish)
02:57.00*** part/#tomcat nitish_mythology (~myth@unaffiliated/nitish)
03:01.28RDovescribe i used bash scripting too with sendmail for that.... but if u want a pretty GUI with it
03:02.05RDovehttp://java.sun.com/products/javamail/FAQ.html
03:04.44herbzWhats the best way to debug a war file? Just by viewing the Tomcat log files?
03:04.58RDoveyeah is it it your code?
03:05.03RDoveor someone elses?
03:05.19herbzI compile it
03:06.12RDovewhenever I am debugging JSP / Java 2 EE I add in System.err.println(debug vars + " ")
03:06.20RDoveto see whats happening
03:06.25RDoveand then i tal the catalina.out
03:06.28RDovetail *
03:06.57herbzyep, me too, just I have been using System.out.println();
03:07.23RDovesome reason when i used .out. it didnt show up in catalina.out
03:07.29herbzbut- ya, you develop Java Dynamic projects?
03:07.46herbzcatalina.out hm okay only .err
03:07.50herbzgood to know
03:08.02herbznice to meet you ^^ hehe
03:08.16herbzI will test it monday
03:08.24RDoveok
03:08.46RDoveyeah i'm developing a content management system in j2ee/jsp as a learning experience
03:09.06herbzand when you say content you mean, issues/bugs/etc ?
03:09.49RDoveit lets a user create menus, news, photo gallaries, and user administration from a website
03:10.00RDoveso a user could build a site without knowing any programming
03:10.13herbzokay, sure
03:10.32RDoveit uses MySQL for the database
03:10.57herbznice, yep I like MySql as well
03:11.01RDoveits coming along but ran into an issue where if the user adds 1800 photos, it takes forever to process
03:11.04herbzone of my more fav.
03:11.27RDoveso im trying to figure out if its my java code that isn't handling it right, since when i type it in MySQL (select statement) it pops up quickly
03:11.36herbz<f'RDove> its coming along but ran into an issue where if the user adds 1800 photos, it takes forever to process
03:11.41herbz^ sounds like you need a better index?
03:11.49RDoveyeah i might im not sure
03:11.58herbzyep- that is what is sounds like
03:12.02herbzI design dbs as well
03:12.11RDovei have not done any indexing
03:12.19herbzyep, that is what you need
03:12.26herbzand it will speed that wayyyy up
03:12.43herbzmaybe also better design depending upon how large the db is planned to get
03:12.44RDoveok ill give it a shot
03:13.01RDovei guess it could get as big as the user wants it to
03:13.18herbzhow many fields?
03:13.29RDovei have a feature that lets the user scan a directory for all the images within and create a photo gallery out of it
03:13.33RDove(method)
03:14.04herbzyep- I wrote that script in php last year ^
03:14.05RDove6 fields in the photos table
03:14.18herbzthat is about 20lines of code in PHP
03:14.47RDovephoto_id prim key auto_increment, timestamp, filename, description, user, category
03:15.03RDovetimestamp is a timestamp, and the rest are varchar's
03:16.12herbzand what select statement is slowing it down?
03:17.02herbzand/or are you selecting before your attempt before an insert?
03:18.16RDovefirst i crawl through the files using an IO directory search
03:18.34RDovethen i create a file array
03:18.38RDoveerr List
03:19.11RDovethen i do a select filename from photos;
03:19.48RDovewhile results, i search through the file List for an indexOf
03:20.16RDoveif its in the db but not on the system, i delete it from the DB using delete from photos where filename =
03:20.58RDovethis is the first step it takes ^.... then it goes about taking all the files and inserting them if they dont exist already
03:21.08RDoveso a select photo_id from photos where filename = ?
03:21.23RDovefor each file
03:21.31RDoveto check if its there, if its not, then i insert it lol
03:21.38RDovesounds rough
03:22.07RDovei type top and sort by CPU and the java class is using up the CPU during this period
03:22.13RDoveim thinking maybe its the IO, not MySQL
03:22.27RDovecause MySQL is not doing anything.... and if i type these commands manually in MySQL its snappy snap
03:22.46herbzwhat is your select count(*) db_name_with_files
03:23.14RDovei cleared out my DB since i had so many in there, i have to recreate it... it was about 1700
03:23.51RDovewell its a table within a db
03:23.53herbzwell, ya.. if there was only 17k total... and Index might not speed anything up
03:24.16herbzya, all tables are within a db ^^
03:24.20RDoveya i think its my File IO that is causing it
03:24.37RDovei have to do further testing later tonight on my test box to figure it out
03:24.56herbzso you have apace installed with windows on your computer?
03:25.03RDove(its not really for a company btw)
03:25.14RDoveya i have NetBeans that has tomcat with it
03:25.19RDoveits just for fun
03:25.26herbzo nice, NetBeans comes with it?
03:25.43RDoveyeah u can install NetBeans and it has tomcat with it in the bundle
03:26.02RDoveand so when you compile and run, it launches Tomcat and shows all the logs in tabs
03:26.21RDoveand creates a war file that i upload to my web server (linux) afterward
03:26.28RDoveafter it looks pretty solid
03:26.47RDoveso i test windows, then send to linux
03:27.06RDovewhat project you working on?
03:27.25herbzyep, I am working on this project that has not been touched for a few years
03:27.43herbzit is using Spring
03:27.46RDoveoh ok
03:28.25RDoveim using Spring Web MVC 2.5
03:28.36herbzDynamic Webpage in eclipse.... code is using Spring framework and two databases a SqlServer and MySql db
03:28.45herbzo nice RDove
03:29.24RDovewhich framework is best
03:29.34RDovei still have to research the differences
03:29.47herbzI really don't have any idea
03:29.57herbzthey kind of just tossed it at me
03:30.06RDovenetbeans lets you pick Spring, JavaServer Faces,Struts, and Hibernate
03:30.21RDoveand you can actually pick all four if u wanted lol
03:31.01herbzNice, what is Hibernate? I see it alot in the <beans>
03:31.29RDoveIt has a connection area when i select it
03:31.48RDovewith Database connections....
03:32.13herbzokay, nice
03:32.37herbzand the database connects only come to live when TomCar runs our .war file?
03:32.49herbz*TomCat
03:33.22RDoveit says hibernate falls into the category object-relation-mapping-tool used for mapping db tables (relations) to java objects transparently
03:33.31RDoveOracle TopLink is a commercial tool that compares to it
03:33.54RDoveim not real sure lol
03:34.46herbzokay, so what are all the <beans> about?
03:34.53herbzthey are place holders for data?
03:36.58herbzThey remind me of little class files
03:37.22herbzBut when I complie them, they act like Function names
03:37.45RDoveit says its an application class that contains business logic
03:38.50herbzso what is the differentice between all the .xml files? like the connections.xml dataset.xml etc
03:39.00RDoveA Web Bean is an application class that contains business logic. A Web Bean may be called directly from Java code, or it may be invoked via Unified EL. A Web Bean may access transactional resources. Dependencies between Web Beans are managed automatically by the Web Bean manager. Most Web Beans are stateful and contextual. The lifecycle of a Web Bean is always managed by the Web Bean manager.
03:39.03herbzwhen we open the WEB-INF
03:39.33RDovewell mine are servlets within WEB-INF
03:40.00herbzhm?
03:40.03RDovebut web.xml should be in there and thats the master file to the servlets i think
03:40.55RDovei have servlets in WEB-INF on my project, that are xml files like (dothisandthat-servlet.xml)
03:41.19RDoveand that servlet does special things and calls certain classes through a bean id
03:41.32RDoveim still learning so forgive me lol
03:41.54herbzokay sure, I am learning this too ^^
03:42.13herbzyes, I do remember seeing a -servlet.xml file
03:42.37herbzokay, so the -servlet.xml will call beans
03:43.02RDovei programmed an IRC Bot using an API I found into my tomcat instance using a servlet
03:43.05herbzand the beans? some times they simple call other beans..
03:43.15RDovebasically it launches the IRC bot when tomcat starts
03:43.35herbzcoo
03:43.45herbzwhat does it do on the webside?
03:44.00RDoveit sends me stats to a private channel when someone visits
03:44.04RDoveand gives me there IP
03:44.40herbzokay, so the -servlet.xml file is for connecting remoty?
03:44.53RDoveno its for handling situations
03:45.17herbzsituations what arise from?
03:45.22RDovelike you could have a servlet used for convering all visits to something.jsp so they see something.html
03:46.02herbzokay i see
03:46.23RDovebean id="beanName"
03:46.33RDoveclass="myclass.methodName"
03:46.52RDovep:suffix=".jsp" />
03:47.01RDoveso if... someone visits a .jsp page with this bean active
03:47.09RDovethe bean automatically calls methodName on my class
03:47.13RDovei think
03:47.25RDoveand so my method can do something special
03:47.45RDoveso you could make it so if someone visits specialpage.jsp.... we call a method automatically to handle things
03:48.29RDoveyou can extend a ServletContextListener on your class and it allows you to manipulate sessions etc. from the website inside your class
03:48.33RDoveinstead of coding it in a JSP file
03:50.23herbzhm nice
03:51.51herbzokay so, the beans set up all the PageNames
03:52.16RDovethe beans call special methods that can do all sorts of things
03:52.22herbzthen, when the page is called... it will call the corresponding page
03:52.27herbzokay
03:52.46herbzwhen the bean calls the methods do any variables get passed in?
03:52.47RDovei have a dispatcher-servlet that changes index.jsp to index.html when someone visits
03:53.35RDoveyeah apparently you can
03:53.40RDovelemme show u example page
03:54.01RDovehttp://www.jguru.com/faq/view.jsp?EID=775216
03:54.26RDove<jsp:useBean class="java.lang.String" id="myBean" scope="session">
03:54.26RDove<PROTECTED>
03:54.26RDove</jsp:useBean>
03:55.12RDovei have to go AFK, good chatting with you good luck
03:56.29herbzokay thanks lots cya
03:56.32herbz<3
04:41.33*** join/#tomcat RDove (~rdove@unaffiliated/rdove)
05:05.40*** join/#tomcat umashanthi (~umashanth@112.135.150.138)
05:56.47*** join/#tomcat vraa (~vraa@h237.72.29.71.dynamic.ip.windstream.net)
05:58.03*** join/#tomcat nginxx (~chatzilla@173.50.79.212)
06:10.11*** join/#tomcat Alagar (~Administr@122.164.34.215)
06:21.59*** join/#tomcat ExtraSpice (~ExtraSpic@78-62-86-161.static.zebra.lt)
07:24.33*** part/#tomcat umashanthi (~umashanth@112.135.150.138)
09:18.29*** join/#tomcat ibot (~ibot@rikers.org)
09:18.30*** topic/#tomcat is Stable versions: 6.0.26, 5.5.29. Newbies use the official binary from tomcat.apache.org, an RPM from http://www.webdroid.org/archives/tomcat-package, or the latest tomcat6 testing deb. Check logs before you ask a question. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question including your TC, Java, & OS versions, then wait; check back often for answers.
09:19.53*** join/#tomcat acidjnk (~have@180-231-103-86.dynamic.dsl.tng.de)
11:37.23*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-151-178.netcologne.de)
11:41.31*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-151-178.netcologne.de)
12:55.04*** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt)
13:45.29*** join/#tomcat IceFacesIsAFix (~IceFacesI@xdsl-89-0-151-178.netcologne.de)
13:56.21*** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt)
14:35.39*** join/#tomcat kadams (~kadams@adsl-074-171-216-244.sip.bgk.bellsouth.net)
14:44.08*** join/#tomcat relachs (~relachs@g225237008.adsl.alicedsl.de)
15:23.13*** join/#tomcat relachs2 (~relachs@f050138077.adsl.alicedsl.de)
15:33.47*** join/#tomcat umashanthi (~umashanth@112.135.156.182)
16:33.13*** join/#tomcat relachs (~relachs@f050138077.adsl.alicedsl.de)
16:50.25*** join/#tomcat IceFacesIsAFix_ (~IceFacesI@xdsl-89-0-151-178.netcologne.de)
16:54.31*** join/#tomcat Alagar (~Administr@122.164.36.63)
16:58.19*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:01.50*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:02.12*** join/#tomcat jmimi (~mohammad@81.29.242.4)
17:02.42*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:04.58*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:08.20*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:09.56*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:11.24*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:29.57*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:38.08*** join/#tomcat Alagar (~Administr@122.164.36.63)
17:48.30*** join/#tomcat Alagar (~Administr@122.164.36.63)
18:17.29*** join/#tomcat nodie (~plat0n@158.Red-88-23-118.staticIP.rima-tde.net)
18:32.50*** part/#tomcat umashanthi (~umashanth@112.135.156.182)
18:48.00*** join/#tomcat km (~km@adsl-99-54-9-184.dsl.pltn13.sbcglobal.net)
18:51.14*** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt)
18:52.44*** join/#tomcat Alagar (~Administr@122.164.36.63)
18:53.30*** join/#tomcat Alagar (~Administr@122.164.36.63)
19:04.03*** join/#tomcat calavera (~calavera@83.50.67.221)
19:19.38*** join/#tomcat relachs (~relachs@f050138077.adsl.alicedsl.de)
19:20.24*** join/#tomcat freud_ (3e1476d4@gateway/web/freenode/ip.62.20.118.212)
19:23.30freud_tomcat 6.0.24, JVM 1.6.0_18, Ubuntu 10.04: I'm trying to add a favicon to my webapp(xwiki), i added the mime-type image/x-icon to web.xml, put a working favicon in the root folder(/webapps/xwiki/) and restarted tomcat, no go, is therer a step i'm missing?
19:30.25*** join/#tomcat cofeineSunshine (~justinas@78-60-23-252.static.zebra.lt)
19:33.32*** join/#tomcat factor (~factor@ip68-14-160-47.ok.ok.cox.net)
20:19.47*** join/#tomcat jumic (~micheju@g226213063.adsl.alicedsl.de)
20:34.30*** join/#tomcat km (~km@adsl-99-54-9-184.dsl.pltn13.sbcglobal.net)
22:26.49*** join/#tomcat mun_ (~mun@94-193-244-76.zone7.bethere.co.uk)
22:26.50mun_hi
22:27.07mun_I have a newbie question: what is Tomcat used for? isn't the Apache server enough?
22:34.42herbzTomcat is used to upack the .war file
22:35.06herbzand also run the webservice
22:59.37jasonbmun_: Tomcat competes with the Apache httpd web server.  Tomcat is a faster and newer web server written in pure Java.
23:00.06jasonbmun_: Tomcat also implements the popular standards Java Servlets and Java Server Pages (JSP).

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