irclog2html for #tomcat on 20060110

00:00.04solusits bad enough i have to use oracle
00:00.33solusi'm allergic to these super expensive super heavy super environments with super frameworks
00:00.35solusmakes me sick
00:01.10pfnheh, I use websphere 6 and db2... well... there you go....
00:01.23NorthDragonspring is framework...... it don't influence on IDE
00:01.44solusi'm not allergic to spring
00:01.55pfnnorthdragon I never said that--I just said that once I figured out spring, I'm less inclined to write ejbs
00:02.30pfnspring is great
00:02.47soluseverybody likes spring
00:03.02solusi dont know what it does, but I feel like i have to learn it
00:03.11solusi've never heard anyone say anything bad about spring
00:03.16NorthDragondoes spring support clustering(sorry for my english grammatic :))
00:03.50solusNorthDragon: if you hadn't excused yourself, the grammar had been perfect =)
00:04.06pfnspring has nothing to do with clustering
00:04.18pfnsolus spring just makes it incredibly easy to configure POJOs
00:04.46pfnand of course, bringing with it transaction management, db abstraction (through your preferred flavor of orm), jndi abstraction, etc.
00:05.05pfnof course, it also has its own web mvc framework... but I always go with writing my own, heh
00:05.49solusnobody seems to use that
00:06.00solusi'm thinking about looking into tapestry
00:06.17NorthDragondo you use spring as alternative of ejb?
00:06.20pfnI'm not a fan of most web-specific frameworks
00:06.27pfnnorthdragon I use it in complement with ejb
00:06.33pfnsince I have a need for remoting and j2ee security
00:06.56pfnalthough, for my home app, I have no ejb, just daos, and web mvc
00:07.15pfnhttp://www.hanhuy.com, rewriting my blog/album app, heh
00:09.28NorthDragoni want study tomcat source code...... Where i have start?
00:09.40pfndownloading it?  :p
00:09.48NorthDragon:) already do
00:10.06pfnwell, you're already there, so start reading  :p
00:10.27NorthDragonok..... where is old good public static void main :)
00:10.39NorthDragonor something like that :)
00:11.14NorthDragonwhere i can read about it?
00:13.54*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:14.59*** join/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:26.44*** join/#tomcat Ilgaz (i=ilgaz@195.174.25.100)
00:28.30*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:35.33*** join/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:35.41*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:35.52*** join/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:36.00*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:46.40*** join/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
00:46.43*** part/#tomcat NorthDragon (n=IzhikovN@213.251.192.43)
02:29.11*** join/#tomcat bdudney (n=bdudney@vbn.0056127.lodgenet.net)
02:41.05map7Is anyone here interested in talking about design patterns? puff are you there?
02:57.15*** join/#tomcat FreemaniaX (n=Freemani@pcp0011117215pcs.elkrdg01.md.comcast.net)
03:03.55jasonbI wish I had time, but I'm headed home.
03:04.06jasonbBut, I'm on here often.
03:05.59map7cool, do u normally leave at this time?
03:07.04jasonbMostly.. or even like 20 mins earlier.  :)
03:07.30map7ok cool, might catch ya tomorrow then
03:07.40jasonbOkay.
03:07.51jasonbI should be on in about another 2.5 hours as well.
03:08.14map7i'll be leaving then
03:08.26jasonbSee ya tomorrow..
03:11.43puffEvening.
03:14.09map7G'day puff, I've read the first 3 chapters of Patterns of Enterprise application architecture as you suggested
03:14.25map7and I've learnt a lot about design patterns
03:15.17map7If you remember I'm designing a large Accounting system and require a proper design method to go by.
03:16.29map7After all the reading I've decided to go with Domain logic with a Data Mapper to connect to my database as the structure of the project will be large and will expand over time with greater functionality
03:17.23map7Is this good basic design pattern to choose for my project puff?
03:44.16*** join/#tomcat craig (n=craig@cpc1-brig3-5-0-cust53.brig.cable.ntl.com)
03:44.38craighello?
03:45.18craigoh
03:47.27*** join/#tomcat vinse (n=vinse@ppp-71-139-114-52.dsl.snfc21.pacbell.net)
03:47.32craig...
03:47.44craiganyone home?
03:57.55*** join/#tomcat prolificgnosis (n=auroch@auroch.student.umd.edu)
03:58.40prolificgnosishey where can I get the files for the JSTL?
03:58.50prolificgnosisso I can install it
04:02.20lykenfrom the sun website.
04:02.43prolificgnosisi can't find it
04:02.49prolificgnosisi'm on the page but all I see is the docs
04:02.59lykenlemme have a looks
04:04.15prolificgnosishttp://jcp.org/en/jsr/detail?id=52
04:04.39prolificgnosiswait i don't even think thats the right one
04:05.31prolificgnosisi dunno
04:05.39prolificgnosisdo you know which one it is?
04:06.19*** join/#tomcat kadams (n=java_pro@adsl-80-22-61.bgk.bellsouth.net)
04:08.11lykenim hunting through my stuff to find the link
04:08.13lykeni cant find it, heh
04:09.23vinseit's included in the j2ee 1.4
04:09.34vinseor can be downloaded independently from apache
04:09.41vinsei dont think they're the same implementation
04:09.44vinsebut same api
04:09.54vinseapache was the ri i think, but now sun has their own
04:09.59vinsemaybe, something like that anyway
04:11.31vinsehttp://jakarta.apache.org/site/downloads/downloads_taglibs-standard.cgi
04:42.44*** join/#tomcat Snuff (n=tbel3393@CPE-149-167-204-115.sa.bigpond.net.au)
05:23.57*** join/#tomcat Snuff (n=tbel3393@CPE-149-167-204-115.sa.bigpond.net.au)
05:42.06*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
05:44.24*** join/#tomcat Netslayer (n=chris@c-24-126-202-231.hsd1.ca.comcast.net)
05:45.03NetslayerI want to do a jsp forward but I need all post data forwarded as well, is this possible?
05:49.06jasonbHmm, I think that is possible, but I'm not sure.  Try it and see.
05:50.03Netslayerwell i don't have any ideas for tying it heh.. except appending all that in the forwarding url.. but i'd prefer not too
05:50.20Netslayeractually what's stopping me from including the other jsp hrm
05:51.29Netslayerpost data would naturally be available to the page included right?
05:53.21jasonbYou *could* do an include.
05:53.33Netslayerwouldn't two pages imports conflict?
05:53.59jasonbI'm not sure what you mean, but it sounds as if there wouldn't be a conflict.
05:54.18Netslayeri call page B by itself and I also want to include it in page A
05:54.26Netslayerboth pages A and B have page imports at the top of them
05:54.59jasonbYou could try to conditionally import the header..  *shrug*
05:55.29Netslayeri don't see how you could do that
05:56.35jasonbIn page B, set a particular value in page scope and then include page A.  When page A loads, check for the variable.  If it isn't set, then include the header.
05:56.54Netslayeri understand that, just not the JSP syntax
05:56.59jasonbheh
05:57.27jasonbWell, you'd use something like the JSTL <c:if> tag.
05:57.29Netslayerif (...) { @page import="..." }
05:57.41jasonbOr, if your webapp is a JSP 2.0 webapp you can just use EL.
05:57.49jasonb(I think)
05:57.52NetslayerEL?
05:58.04jasonbExpression Language.
05:58.16jasonbIt makes JSP syntax into a more powerful scripting language.
05:58.47jasonbYou might want to see the EL example JSPs that come in the Tomcat example webapp.
06:00.59NetslayerI have a page A with forms. If on submit it loads Page B, is there a way of retrieving the name of page A somehow (built in)?
06:05.17jasonbOn the second request?
06:06.17NetslayerPage name index.jsp has a form action="blah.jsp"> I hit submit -> blah.jsp is called. How can i tell index.jsp called me without embedding hidden parameters..is there a built in way?
06:12.16jasonbSince those are two separate requests, all blah.jsp gets is the method (GET|POST), and the parameter name/value pairs.  That second request is unconnected from the first, except for the possibility that it's from the same Servlet session.
06:12.54jasonbYou could store data in the servlet session, but it is very tough to store information that would convey with 100% certainty that the last request was of index.jsp.
06:13.13Netslayeri'll just add another hidden input field and post it back heh
06:15.20jasonbheh
06:15.59jasonb<input type="hidden" name="monkey" value="flies at midnight"/>
06:16.04Netslayeryup
06:16.21Netslayerugg there's no way in sql todo a INSERT OR UPDATE is there
06:16.49jasonbHmm..  Nope!  :)
06:17.25Netslayerprob easier to call a delete first heh.. that'll work
06:18.06jasonbtry { /* UPDATE */ } catch (SQLException e) { /* INSERT */ }
06:18.33Netslayerother way around but ya good idea
06:18.34jasonberr, actually, that won't work.
06:18.49jasonbWell, maybe sorta.
06:19.08Netslayerit's easier for me to call delete though then update shit
06:19.23Netslayeralthough delting is over kill hrm
06:19.24jasonbdelete, then insert.
06:19.55Netslayernm can't delete it'll ballon ids in the db with simple back/next action heh
06:20.20jasonbThe db won't mind.  :)
06:20.31Netslayermy project manager might
06:20.46jasonbRaise his max ID limit.
06:21.56Netslayeri'm going to lookup the primary key with a select first, if found update else insert
06:24.57*** join/#tomcat draven (n=draven@user-0cdvmgb.cable.mindspring.com)
06:24.58dravenusing an html form i need to set the user entered value into a jsp variable
06:25.47jasonbNetslayer: That's really the way it's meant to be.  But, you're right, it would be way nicer if there was an INSERT OR UPDATE kind of feature.
06:26.16Netslayeri probably should know more sql.. i coded 100k lines of it last year alone :-P
06:26.51jasonbNetslayer: How many of those lines were "{" and "}"  ?  :)
06:27.09Netslayerstraight SQL
06:27.32Netslayerthen i left that job cause my internship ended, feel sorry for the sap that has to maintain it now
06:27.41jasonbhaha
06:27.52Netslayeractually i quit for a better job..it never ended hah
06:28.18jasonbCongrats on getting a better job.
06:28.24Netslayerthx
06:28.32jasonbI got a better one recently, and now I have far less free time.
06:29.21Netslayeractually i don't mind it, love the job so far and i'm really just voluntarily doing more work
06:29.47jasonbYou should code an OSS project on your own time instead.
06:30.10Netslayernetslayer.org - vortex framework .. not much 5-8k lines but it's a start
06:30.34Netslayeri have a few other proprietary projects of my own that should blossom soon
06:32.49Netslayerdoes ResultSet.getFetchSize() return me how many rows are in the returned result set?
07:08.05*** part/#tomcat jsisson (n=sissonj@210-0-83-196.nexnet.net.au)
07:15.41*** join/#tomcat Jara[zZ] (n=rimaraj@62.123.204.106) [NETSPLIT VICTIM]
08:57.20*** join/#tomcat olem_omay (n=omay@dslb-088-072-037-120.pools.arcor-ip.net)
09:48.18*** join/#tomcat totaler_hirntot (n=a@nyx.ipp-hgw.mpg.de)
09:51.29*** join/#tomcat Hugh (n=Hugh@puma.mxtelecom.com)
10:53.51*** join/#tomcat mnemonic (i=none@80.91.145.226)
11:19.41*** join/#tomcat mnemonic (i=none@80.91.145.226)
11:20.58*** join/#tomcat valmont (n=chrishol@dsl092-043-004.lax1.dsl.speakeasy.net)
11:27.48*** join/#tomcat dreivier (n=dreivier@port-212-202-43-109.dynamic.qsc.de)
12:13.02*** join/#tomcat mnemonic (i=none@80.91.145.226)
12:20.22*** join/#tomcat bdudney (n=bdudney@vbn.0056127.lodgenet.net)
14:04.29*** join/#tomcat bdudney (n=bdudney@vbn.0056127.lodgenet.net)
14:52.16*** join/#tomcat xyos (n=rlittle@216.237.225.254)
14:52.46xyosHello all
14:53.29xyosjasonb:  I have a question for you if you're at the keyboard
15:17.34*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
15:37.51*** join/#tomcat bdudney (n=bdudney@rrcs-24-227-127-244.se.biz.rr.com)
15:59.38*** join/#tomcat mnemonic_ (i=none@80.91.145.226)
16:13.33totaler_hirntotone question if i boot my pc , my tomcat also starts and the first time i want to undeploy sth he deletes the contextpath but not the real files , and i can't deploy the new version as long as i don't delete maunally the old files and .war file... is that normal?
16:14.49totaler_hirntotcould somebody understand what i want to describe? :)
16:21.17*** join/#tomcat linuxfreck (n=freck@fry.fmi.uni-passau.de)
16:31.48*** join/#tomcat putzel (n=putzel@183-237-221-213-pool.cable.lan.ch)
16:38.05*** join/#tomcat teddy (i=teddy@193.91.192.170)
16:58.04*** join/#tomcat Mattek (n=matte@host242-41.pool876.interbusiness.it)
16:59.26Mattekhello, i want to know if tomcat 5.0.x and tomcat 5.1.x are linked to two different version of J2EE standard
16:59.55linuxfreckthere is no tomcat 5.1.y
17:00.19linuxfreckbut tomcat 5.0 and 5.5 both use servlets 1.4 and jsp 2.0, which are part of j2ee 1.4
17:00.46Mattekoh man sorry
17:00.59Matteki really did a mistake i meant 5.5.x not 5.1.x
17:01.08linuxfreckno probs
17:01.17*** join/#tomcat bloritsch (n=chatzill@66.208.37.51)
17:02.43Mattekwell, so J2EE don't describe how configuration files into my web application root have to be done?
17:03.16linuxfreckwhat do you mean?
17:03.30linuxfreckWEB-INF/web.xml is part of the specs
17:03.54Mattekwell i am tring to port a war web-app from tomcat to resin
17:04.22linuxfreckI never used that one
17:05.14Mattekk, i should try a bit more
17:06.13Matteki was just worried couse the standard should let you just copy the war file and run the app but seem this is not so straight
17:06.42linuxfreckthe standard doesn't say much about deployment
17:09.00Mattekand the META-INF/content.xml is explained in J2EE?
17:10.06linuxfreckno, that is tomcat-specific
17:12.11Mattekoh, interesting, then that should be the difference
17:12.39pfnthe standard does say that wars should be portable between containers
17:12.54pfnbut that doesn't mean there are deployment specifics for each container that are separate from the spec
17:13.00pfns/are/aren't
17:16.28Mattekmmh and those deployment specific exist?
17:16.35Mattek*specifics
17:17.31pfnyes, e.g. context.xml for tomcat
17:17.40pfnor ibm-web-bnd.xmi for websphere, or whatever for weblogic, resin, etc.
17:19.04Mattekmmh resin use resin-web.xml under WEB-INF dir
17:21.28Mattekolso it has a different schema for defining a database resource, has a <database> tag instead of the <recource-ref> tag
17:21.31Mattek*also
17:22.02Mattekbut that should be J2EE specification, isn't it?
17:22.15Mattek(since its in WEB-INF/web.xml)
17:22.23linuxfreckresource-ref in web.xml is stated in the spec.
17:24.09Mattekwell maybe resin is not so J2EE compliant, or just add something...and that make all this much hard...
17:27.48pfnmattek you're being confusing
17:27.55pfnif it's web.xml, then it must be <resource-ref>
17:28.03pfnthere's no direct <database> tag in web.xml
17:28.24linuxfreckif they implement the spec correctly that is.
17:28.52pfnI don't think resin would go out of their way to make their developers completely interoperable with other containers
17:29.27pfnthat's just stupidity, when there are well-defined methods of having external deployment descriptors from the war itself
17:30.03pfnoh yeah, so, since someone's awake, have any idea why <Manager maxInactiveInterval="604800"/> in my <Context> does not change my session timeout any?  it still times out after ~20 mins or so
17:30.11pfnwhatever the default is
17:30.59linuxfreckisn't there a web.xml setting for session timeout?
17:31.18pfnhmm, indeed, there is as well, I wonder if I set it there, although, I would doubt it
17:31.53pfnhttp://svntrac.gofti.com/repo/browser/hanhuy/war/web.xml
17:36.59linuxfreckIf the attribute is not provided, a default of 60 seconds is used. <- sounds a bit small
17:37.14linuxfreckI'm not sure whether they use that at all
17:37.21pfnindeed
17:41.27pfnok, 1800 seconds by default, it seems...
17:48.01pfnit'd be nice if the PersistentManager could use a jndi datasource, instead of configuring a connection for it
17:49.26linuxfreckI'm not sure whether using the jdbc PersistentManager is any good at all
17:51.03pfnI assume if I set session-timeout to some long period on a public site, memory can get consumed pretty rapidly if it has a lot of visitors (of course, not an issue for me...)
17:51.41pfnsince I doubt I get many hits, but anyway, for best practices, it seems it would be nice to be able to persist sessions to disk to save ram
17:55.48pfnhmm, using session-config session-timeout 1440 didn't make a dent in the maxInactiveInterval, still sits at 1800 seconds
17:59.49pfnif you want to run jsp you need a servlet container
18:00.42pfnjakarta is the parent project name
18:00.51pfnit's the capital of indonesia or java or whatever
18:00.56pfnand it rules over everyone with an iron fist  :p
18:03.48linuxfreckwhat are you talking about? :)
18:10.57*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
18:10.57*** topic/#tomcat is http://tomcat.apache.org Latest stable versions of Tomcat are 5.5.12, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. Be sure to check the log files before you attempt to search for a solution. SLOW-MOTION CHANNEL (we all have jobs): Ask your question, then wait; check back often to see if anybody answered.
18:13.15*** join/#tomcat awt (n=awt@c-69-181-76-3.hsd1.ca.comcast.net)
18:14.43awtAnybody know where I can find a download that contains javax.portlet.*?
18:14.53pfngoogle
18:15.11awtor the Java Portlet API?
18:15.22pfnlinuxfreck mis-tab
18:16.04linuxfreckawt: probably at http://www.jcp.org/en/jsr/detail?id=168
18:16.39awtlinuxfreck:  I saw that but it looked a little fishy.
18:17.25linuxfreckit's the official site for things that people try to get added to the java standard
18:20.49awtI see. Looking at it it just seems to have the documentation, thoug I seem to recall seeing a reference implementation somewhere...
18:25.11*** join/#tomcat vinse_ (n=vinse_@208.253.223.146)
18:25.59linuxfreckawt: there is a whole apache top-level project for them: http://portals.apache.org/
18:50.50*** join/#tomcat mnemonic (i=none@80.91.145.226)
18:52.03*** join/#tomcat mnemonic (i=none@80.91.145.226)
19:01.35*** join/#tomcat ocnarfid9 (n=ocnarfid@207.34.36.50)
19:33.07*** join/#tomcat jajmon (i=xr4y@c-5a2fe055.72-1-64736c11.cust.bredbandsbolaget.se)
19:36.57jajmonhi, how come my server doesn't react immediately i change something in a jsp page? sometimes i hit refresh five times before it updates the page..
19:37.27jajmontomcat 5.5
19:38.02linuxfreckprobably the browser cache still has the old version
19:39.14jajmonbut i never experienced this when i was doing php with apache..
19:42.43linuxfreckwell php is a completely different thing
19:43.30*** join/#tomcat FreemaniaX (n=Freemani@ip67-153-106-58.z106-153-67.customer.algx.net)
19:44.02jajmonbut how is it different in terms of browser cache ?
19:45.37*** join/#tomcat titanium (i=foodserv@sunset.dreamhost.com)
19:46.48titaniumcan tomcat run on amd 64?
19:47.08*** part/#tomcat titanium (i=foodserv@sunset.dreamhost.com)
19:47.30*** join/#tomcat titanium (i=foodserv@sunset.dreamhost.com)
19:48.12jajmonyes it can
19:56.29titaniumdo i have to build from source?
19:57.04ocnarfid9Anyone do profiling with tomcat?  (if so what software do you like)
19:58.40jajmontitanium, nope.. im running it on amd 64 and i didnt build from source
20:01.05linuxfrecktitanium: this is java. you never build from source
20:01.32linuxfrecktitanium: just install the amd64 java vm
20:04.13titaniumwhat about dual processors? will tomcat mysql and jvm recognize them?
20:04.51linuxfreckif the operating system supports them, tomcat will too
20:04.59linuxfreckand think again about using mysql
20:05.39titaniumwhat would you recommend?
20:05.52titaniumim using mysql because that is what my app was built for. i didnt build the app.
20:06.33titaniumi've always been told that sql isnt vendor independent
20:07.13titaniumeven though sql in theory, should be.
20:08.17linuxfreckwell if you have to run a third party app that only supports mysql, you better should do it
20:08.35linuxfreckI thought you would develop a new app
20:09.06linuxfreckmysql processes a transaction using one processor. if there are more transactions, it can also use more procs
20:11.59titaniumI wish my app ran on something other than mysql. I want to beta test the latest version of our app on my mac and mac is horrible with mysql. like 5x slower than on linux.
20:12.33linuxfreckthe performance of mysql is a myth imo
20:13.04titanium:-)
20:14.18linuxfreckit got that myth in the version 3.x times where it didn't support many basic sql features
20:22.25titaniumhttp://www.anandtech.com/mac/showdoc.aspx?i=2436&p=6
20:22.43titanium<---- mysql on g5 benchmarks
20:22.55linuxfreckwhoops
20:23.00linuxfreckdidn't think it was that bad
20:23.58titaniumthey have an explaination in the article about the way osx handles certain operations that mysql uses.
20:27.51linuxfreckthe article confuses threads and processes
20:28.09linuxfreckmysql and apache httpd use several processes and ipc, which might be quite slow indeed
20:28.22linuxfrecktomcat uses threads, maybe that is better
20:28.46*** part/#tomcat Snuff (n=tbel3393@CPE-149-167-204-115.sa.bigpond.net.au)
20:29.12linuxfreckit basically sucks completely because they have no idea what the difference is
20:29.29titaniumwho doesnt? anandtech?
20:29.38linuxfreckyes
20:59.01*** join/#tomcat valmont (n=chrishol@germany.pspdev.pas.earthlink.net)
21:23.37*** join/#tomcat jedir0x0r (n=p00face@66.77.208.2)
21:23.53jedir0x0rwhere do you get the HTTP status code?  ie: 404, or 500, or 200, etc.
21:23.57jedir0x0rat runtime
21:25.43linuxfreckwhat do you mean?
21:25.50linuxfreckor better: what are you trying to do?
21:25.52jedir0x0rwell, i have an error page defined
21:26.00jedir0x0rfor 404, but i plan on sending other errors to it
21:26.07jedir0x0rie: 500
21:26.22jedir0x0ranyway, i want to access the HTTP status code so i can record it.
21:26.26jedir0x0rand do other things with it.
21:26.43linuxfreckah ok, the 200 confused me
21:27.20jedir0x0rany idea?
21:29.08jedir0x0rjavax.servlet.error.status_code
21:29.14jedir0x0rrequest.getAttribute("javax.servlet.error.status_code");
22:41.40*** part/#tomcat awt (n=awt@c-69-181-76-3.hsd1.ca.comcast.net)
23:52.55map7does anyone here use MVC design patterns?
23:55.52map7I'm designing a large accounting system and I'm thinking of using the Domain Model with a Data Mapper is this the best approach for large projects which require flexibility?  Will this model fit in well with programming in JSP and beans?

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.