IRC log for #tomcat on 20081107

00:53.14*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de)
01:05.19*** join/#tomcat karstensrage (n=karstens@76.21.8.74)
01:47.23*** join/#tomcat roadt (n=roadt@61.191.27.34)
02:07.38*** join/#tomcat ptmahent (n=ptmahent@74.12.29.122)
04:02.36*** join/#tomcat Infinito- (n=kuhn@li6-217.members.linode.com) [NETSPLIT VICTIM]
04:02.36*** join/#tomcat ohsix (i=ohsix@66.220.111.222)
04:02.37*** join/#tomcat dyre (i=dyremahl@trivini.no) [NETSPLIT VICTIM]
04:02.37*** join/#tomcat crYpe (i=bnccrype@noxfire.org) [NETSPLIT VICTIM]
04:10.40*** join/#tomcat Infinito- (n=kuhn@li6-217.members.linode.com)
04:44.18*** join/#tomcat crYpe (i=bnccrype@noxfire.org) [NETSPLIT VICTIM]
04:44.29*** join/#tomcat victori_ (n=victori@75.80.141.237)
04:44.29*** join/#tomcat ohsix (i=ohsix@66.220.111.222)
04:44.29*** join/#tomcat dyre (i=dyremahl@trivini.no) [NETSPLIT VICTIM]
04:49.33*** join/#tomcat dyre (i=dyremahl@trivini.no)
04:53.36*** join/#tomcat acidjnk (i=acid@pD9509E82.dip0.t-ipconnect.de)
05:05.29*** join/#tomcat kvk (n=maddy@61.16.248.242)
06:00.14*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:50.05*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de)
07:39.40*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de)
07:49.34*** join/#tomcat raddy (n=raddy@59.92.204.234)
07:49.39raddyHello Everybody
07:49.53raddyWhat is Tomcat-Native?
07:51.50jasonbIt's a waste of time.  That's what it is.
07:51.58lykenlol
07:52.10jasonbhehe
07:52.17jasonbI'm into short answers now.  :)
07:52.26lykeni pimped the book so much yesterday
07:52.27lykenlol
07:52.42jasonbReally?  People were interested in it?
07:53.00raddyJasonb : what is it?
07:53.21lykenyeah 6 people bought it online
07:53.25lykenhehe
07:53.36jasonblyken: Wow.  Thanks for telling them about it.
07:53.42lykenno worries
07:53.49jasonblyken: I'm sure they'll like it.
07:53.56lykenthey better
07:54.11jasonbAnd, it's still up to date.  :)  Over a year later.
07:54.35lykenyups
07:56.00jasonbheh, it's funny, at work, when I tell some customers that their choice to run Tomcat behind Apache results in losing about half your performance, they say something like "yeah right.  How would you know".. I have such a great answer for that one!
07:56.11lykenlol
07:56.25jasonb"read it and weep!"
07:56.38lykencan i believe i forgot that i wrote bits of the os x stuff ?
07:56.47lykentill i was reading hte acknowledgements last night
07:57.58*** part/#tomcat raddy (n=raddy@59.92.204.234)
07:58.15jasonbhaha
07:58.46jasonbI sometimes forget I wrote a bunch of what's in there too..  I think my mind is blocking it out, trying to relax again.
08:00.07lykenlol
08:09.35deebojebus, im running an app that requires lots of memory but -Xmx2048m wont even start the damn jvm
08:09.47deeboError occurred during initialization of VM
08:09.47deeboCould not reserve enough space for object heap
08:10.00deebois it trying to reserve physical memory or wtf
08:10.12deebosurely a 32bit jvm on windows can map more than 2GB of mem?
08:14.17lykenhow much ram do you have ?
08:15.35jasonbNobody ever needs more than about 640k..
08:16.13deebolyken: 4GB
08:16.49deebobut apparently a windows app cant map more than 2GB for itself
08:17.12jasonbwindows.. heh
08:17.35deebodev enviroment is windows here, sadly
08:17.47deebonot my choice, believe me :)
08:22.26jasonbSure it is.
08:23.22jasonbNobody has you chained in a basement in Redmond where you can only run Windows Millenium Edition, you know..
08:23.58deebonope im semi chained at the clients IT consult farm forced to work on a ibm thinkpad with windows xp!
08:26.38*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de)
08:29.34*** join/#tomcat dvayanu (n=dvayanu@ppp-88-217-64-242.dynamic.mnet-online.de)
08:33.26*** join/#tomcat roadt (n=roadt@61.191.27.34)
08:40.54*** join/#tomcat tom17bombadil_ (n=tom@T1ff8.t.pppool.de)
08:42.24*** join/#tomcat icalvin (n=seh@gatekeeper.heise.de)
08:43.10icalvinHi everyone!
08:43.37icalvinhas somebody here successfully tried/used the new use_server_errors extension from mod_jk 1.2.27?
08:57.38*** join/#tomcat dvayanu (n=dvayanu@host-62-245-224-138.customer.m-online.net)
10:42.44*** join/#tomcat Alexander (n=Alexande@ip565ef036.direct-adsl.nl)
11:32.59*** join/#tomcat boogaa (n=adf@acl1-1375bts.gw.smartbro.net)
11:33.18boogaahi how can i access ejb from a separate tomcat container
11:34.00boogaajboss runs on a separate machine it has installed an ejb with jndi name of ejb/ejb3Service
11:34.06boogaahow can i access it in tomcat
11:34.21boogaai tried accessing it in a j2se client app it works
11:34.27boogaabut in in tomcat it doesnt
11:35.01boogaado i have to redeclare the jboss ejb 2.1 jndi name in my tomcat configuration
11:35.24boogaasomething like resource-ref
11:35.34boogaahave anyone tried doing this
13:05.40*** join/#tomcat theblackbox (n=sam@mail.edirectory.co.uk)
13:22.49*** join/#tomcat e319 (n=e319@user-12lc0jp.cable.mindspring.com)
13:25.21*** join/#tomcat ptmahent (n=ptmahent@net1.senecac.on.ca)
13:34.02MHSLboogaa, tomcat doesnt support ejb, you need to use something like openejb to deploy ejb on tomcat
13:40.24*** join/#tomcat PiyushK_ (n=PiyushK@202.54.232.135)
13:40.39PiyushK_Hi Can i have two appBase in a wepapp
13:40.44PiyushK_??
13:41.02*** join/#tomcat SteFex (n=opera@195-234-102-200.static.anw.at)
13:41.08SteFexhi
13:41.55SteFexwhat's the apaches httpd.conf in tomcat?
13:42.13PiyushK_server.xml
13:42.17MHSLPiyushK_, appBase is not per webapp, but it's per <Host>
13:42.30PiyushK_cab I have 2
13:42.34PiyushK_can*
13:42.40PiyushK_per Host
13:42.43SteFexoh, thanks! Can I use <Directory> there?
13:42.50PiyushK_no
13:42.52MHSLSteFex, read the doc, tomcat is not apache
13:43.14SteFexI hoped that I can maybe use <Directory> from httpd.conf in Tomcat ;)
13:43.31MHSLPiyushK_, as far as i know no, read http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
13:43.47PiyushK_ok Thanks!
13:43.49*** part/#tomcat PiyushK_ (n=PiyushK@202.54.232.135)
13:43.55MHSLSteFex, there is something similar to that in tomcat, which is called appBase as mentioned above
13:44.04MHSLSteFex, read http://tomcat.apache.org/tomcat-6.0-doc/config/host.html
13:44.17SteFexthanks, MHSL! :)
13:48.10*** join/#tomcat e319 (n=e319@user-12lc0jp.cable.mindspring.com)
13:50.56SteFexexit
13:51.16*** part/#tomcat SteFex (n=opera@195-234-102-200.static.anw.at)
13:51.30*** join/#tomcat randrew (n=raj@dyn-128-59-53-242.dyn.columbia.edu)
14:22.59*** join/#tomcat ptmahent__ (n=ptmahent@net1.senecac.on.ca)
14:39.04*** join/#tomcat ptmahent (n=ptmahent@kb-v832-130-63-234-498.airyork.yorku.ca)
15:37.27*** join/#tomcat jfclere (n=jfclere@63.85.187.2)
15:49.15*** join/#tomcat ananke (n=ananke@inferno.bioinformatics.vt.edu)
16:06.28anankei'm fairly new to tomcat, and i'm having a bit of a hard time figuring out the proper way to deploy an application, and have it act as if it was the root application
16:07.13anankeshould i be placing it in webapps/ROOT, or should i reconfigure tomcat to point to another location? is this a behavior which can be controlled from the app itself?
16:07.21MHSLyes, use ROOT
16:07.29anankethank you
16:07.35MHSLnp
16:07.58MHSLfor your reference http://tomcat.apache.org/tomcat-6.0-doc/config/context.html
16:08.31anankeyeah, i've been reading that page, but i couldn't figure out what's consider the 'proper' solution
16:09.16anankeafter reading a dozen documents, and spending quite some time with various configs, i figured it's time to ask a human being :)
16:12.06*** join/#tomcat freezey (i=hidden-u@gw.mypublisher.com)
16:12.58freezeydoes anybody have experience with mod_jk balancing with tomcat? i am seeing alot of odd errors in my mod_jk logs wondering if anybody can assist
16:20.27freezeymy tomcat version is 5.x and java 1.5 and centos 5.1
16:22.58MHSLit would be helpful if you can provide the errors that you're getting
16:26.28anankehmm, this is nuts. this application does not work when it's in ROOT, but it works as anything else
16:26.33freezeyhttp://pastebin.com/mbdf8820
16:26.33*** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-84ce244592f02aa5)
16:26.42freezeyMHSL: http://pastebin.com/mbdf8820
16:27.20MHSLfreezey, can you also post your server.xml + workers.properties?
16:28.03MHSLfreezey, and maybe your tomcat log
16:29.15freezeyMHSL: server.xml no i am running the app ofbiz and its some embedded server.xml file and my workers.properties is http://pastebin.com/m6df7c224
16:29.45freezeyMHSL: with the app you dont actually configure tomcat you would configure ofbiz
16:30.02MHSLbut you still need to configure tomcat, if you're using tomcat
16:30.08MHSLin one way or another
16:30.33freezeyMHSL: when you configure ofbiz that itself configures tomcat so server.xml is embedded
16:30.41MHSLfreezey, i assume you replaced this right? worker.node3.host=localwebaddresshere
16:30.42freezeyand you cant actually change settings in that
16:30.44freezeyyeah
16:30.48freezeyi replaced that
16:31.08MHSLso have you set jvmRoute?
16:31.14freezeyyup
16:31.26MHSLthe port is correct?
16:31.28freezeyyeah
16:31.40MHSLwhich mod_jk are you using?
16:31.46MHSLand from where?
16:32.10freezeymod_jk-1.2.25-https-2.2.4.so
16:32.28MHSLso from a package?
16:32.35freezeyyeah
16:32.39MHSLany tomcat log?
16:32.46MHSLso i'll assume that works
16:32.50freezeyits not a tomcat log actually an ofbiz log
16:32.52freezeyyeah like this works
16:33.01freezeywe can recieve tons and tons of orders
16:33.02MHSLcan you post the log?
16:33.03freezeybut sometimes it craps out
16:33.11freezeyha logs are huge
16:33.12MHSLsometimes? when?
16:33.14freezeyummm
16:33.23freezeyseems to enjoy going down at night =o)
16:33.31MHSLare you able to reproduce it?
16:33.34freezeybut this app is very noisy
16:33.35freezeynope
16:33.41freezeyit only does it when it wants
16:33.56*** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca)
16:33.58sub_limehello
16:34.39MHSLfreezey, are both apache and tomcat on the same machine?
16:34.44freezeyyea
16:37.51sub_limei installed Servlet Engine: Apache Tomcat/6.0.18 on xp home, jdk1.6.0_04. Do I also need to install a separate version of apache. i will require a virtual host
16:38.24deeboread the docs :p
16:38.33sub_limeIs it that i run apache on 80 and have a connector to tomcat? sorry for my naive question.
16:39.04MHSLsub_lime, if you just want to have virtual host, then no, you can use tomcat standalone
16:39.13MHSLfreezey, sorry not sure about it
16:39.35sub_limei will read thanks
16:39.36deebowhy do people complicate tomcat by having a plain httpd infront :P
16:39.44deeboive never gotten it
16:40.22sub_limei agree but this is the way this app is built
16:40.33sub_limeapache and tomcat with a connector
16:40.47*** join/#tomcat relachs (n=relachs@f051188247.adsl.alicedsl.de)
16:40.57sub_limeso my apache-tomcat installation does not include apache - it is standalone?
16:41.00sub_limethanks!
16:42.16relachshi there.
16:43.22freezeyMHSL: i do see in my logs that it comaplins about ajp connections as well
16:43.29freezeyin the ofbiz logs which is tomcat
16:43.41deeboyou can run tomcat on port 80 and it "just works"
16:43.56deebobut for some reason people put apache httpd infront of tomcat and then come here with their mod_jk logs :P
16:44.57freezeyMHSL: check this out http://pastebin.com/m16bdb3ef
16:45.51MHSLfreezey, any reason why you need to use apache?
16:46.56MHSLanything before this line? 2008-11-06 03:03:45,502 (TP-Processor2175) [      ChannelSocket.java:690:WARN ] Closing ajp connection 0
16:46.58freezeyMHSL: yeah we have to have apache ontop
16:47.06freezeyyeah their is tons let me look
16:47.06MHSLwhy so?
16:48.58MHSLyou havent given me the reason, this is not a reason "yeah we have to have apache ontop"
16:49.34freezeyMHSL: apache is just more sophisticated with all the modules etc etc apache is just the webserver and our tomcat is just our application server so how the application interfaces it needs apache ontop
16:49.52MHSLok
16:50.11MHSLthen that's a reason, should have said that from before
16:50.16freezeyMHSL: and its in production and apache can just handle and distribute the connectiosn way better
16:50.18freezeysorry man
16:50.48MHSLhm, if you're trying to compare tomcat standalone and apache + mod_jk + tomcat, tomcat will standalone is certainly faster
16:52.27MHSLs/tomcat will standalone/tomcat standalone
16:52.33freezeythe way that it handles our clients requests just works tons better
16:52.54freezeywhen apache passes it to tomcat and then passes it to ofbiz
16:53.04freezeyand thats how ofbiz really recommends
16:53.21deebothats just adding a needless layer of abstraction
16:53.37deebo95% of our apps run on plain tomcat on port 80
16:53.46MHSLthat's one thing, and another thing is, as i mentioned above tomcat standalone is definitely faster than mixing it with apache
16:53.58freezeyin alot of tomcat books they recommend not putting tomcat by itself in production.. cause apache gives tons more flexibility ie rewrite etc
16:54.22MHSLif you need apache flexibility then that makes sense, but if you just want to hide tomcat, it's not necessary
16:54.41freezeyits mainly for flexibility modules etc etc
16:54.56deeboif the httpd actually does nothing, why is it there
16:55.02freezeyit does alot
16:55.14freezeythe way ofbiz interacts with httpd it does alot
16:55.20deeboyou can achieve mod rewrite with a * mapped filter
16:55.24freezeyalot of settings alot of modules alot of prefork.c settings etc
16:55.38freezeyyeah well this is mainly how ofbiz recommends in prod
16:55.50freezeyso this is how we have been using it for a few years
16:55.54deebowell id never do that personally
16:56.02freezeyand everbody has their own perference
16:56.17MHSLthat's fine, as long as you have a good reason for it
16:56.33freezeythe way our client side application interacts with our systems apache is needed
16:56.46freezeythe amount of requests made and how many things it does in the backend
16:57.04freezeyhaving apache ontop it will distribute the load how ofbiz recommends
16:57.24MHSLdistributethe load... so you need load balancing, there are few load balancers out there
16:57.35freezeyi have it load balanced already
16:57.50MHSLyep, i'm just mentioning this, since i recommend not to use mod_jk to use load balance anymore
16:58.11freezeywell this is my current setup
16:58.38freezeyload balancer > 3 machines that are each running httpd and ofbiz > db on backend
16:58.43MHSLi used to use apache + mod_jk + tomcat, in fact some of the servers that i maintaining now are still using this setup, but i'm slowly moving away from this whenever possible
16:58.47freezeymod_jk is being used to connect to tomcat
16:59.04MHSLfreezey, apache is using mod_jk to have the load balancing capability for tomcat
16:59.16MHSLfreezey, mod_jk is not just a connector
16:59.32MHSL*not plain connector
16:59.51freezeythats the only connector i am using for apache tomcat
16:59.57MHSLi know
16:59.59freezeyapache on each machine is only lookin at that machines tomcat instance
17:00.06MHSLyou can always try other things and compared
17:00.19freezeywell do tell about other ways for it to connect
17:00.23MHSLso, how do you load balance apache?
17:00.30MHSLfew ways
17:00.43MHSLyou can also use mod_proxy
17:01.02MHSLi started using haproxy to load balance tomcat + terracotta to do session replication
17:01.08deebodoesnt tomcat do load balancing in a cluster nahow?
17:01.11deeboanyhow*
17:01.20freezeythe balancer is a hardware balancer
17:01.20MHSLdeebo, no, clustering is only for session replication not load balancing
17:01.28freezeyisnt mod_jk the better one out of the 2?
17:01.57MHSLfreezey, no, at least not according to jasonb and his benchmark
17:02.05freezeyso which is the better one?
17:02.19MHSLmod_proxy is certainly easier to configure
17:02.29freezeymore reliable?
17:02.39MHSLi've never tried it myself, since i've only tried mod_jk and haproxy
17:02.46freezeyhmm
17:02.51freezeyhaproxy?
17:02.59MHSLthe only way to find out is to try out yourself :)
17:03.02freezeyvery true
17:03.11MHSLit's a load balancer software
17:03.12freezeynow haproxy will connect apache and tomcat?
17:03.15MHSLno
17:03.33freezeyahhh i see
17:03.46MHSLi do not use apache anymore, if i only want to use apache as a load balancer, i do not need apache, i can use haproxy which is faster
17:03.53freezeyMHSL: ok so the one problem with this is
17:04.06freezeyi did do this setup
17:04.07freezeyBUT
17:04.21MHSLi'm not too sure about your problem, but you may want to wait a while
17:04.47MHSLi'm just giving my opinions related to apache + mod_jk + tomcat from what i experienced and discovered
17:05.37MHSLi think if jasonb is online, he'll also ask you to remove mod_jk (most of the time he'll recommend mod_proxy instead)
17:06.02freezeywe are a publishing company and we have a client where somebody created their book and uploads it to us with this mod_jk haproxy type setup it doesnt work because the client makes tons and tons of calls to the server and uploads files in 64k chunks and with this setup we saw that it was getting bounced around through machines and they were like well how can i put together your product if i dont kno whwere it is and we thought about a backend GFS but
17:06.49freezeyif i was running just strait tomcat i would love to try those
17:06.56freezeybut the application ofbiz and our client
17:06.57MHSLfreezey, your setup is 1 apache = 1 tomcat, so no load balancing needed
17:07.00freezeyits the wya it interacts
17:07.14freezeywell it is load balanced cause we have 3 servers with that same setup taking orders
17:07.18MHSLi dont believe ofbiz has any relation to apache
17:07.21freezeyso the load balancer distribute the orders
17:07.26MHSLyou're load balancing apache not tomcat
17:08.00freezeyyeah we have it actually lookin at the application tho when in the load balanced setup
17:08.04freezeythrough an embedded heartbeat
17:08.22MHSLas you mentioned before, 1 apache = 1 tomcat, hence no load balancing for tomcat, but you're load balancing apache
17:08.38freezeythats how the load balancer looks at it yeah
17:08.51freezeyi like the haproxy way
17:08.53freezeyi have set that up before
17:09.07MHSLso in this case, either you load balance apache which is associated with 1 tomcat or load balancing tomcat directly, there will be no different
17:09.13freezeythe only problem was how are client interacted the sessions got all screwy and chunks of a book were getting thrown all over
17:09.29MHSLfreezey, talking about session, this is the reason why you need session replication
17:09.39freezeybut even with session replication
17:09.57freezeythe data cant be stored on multiple different machines
17:10.07freezeyhow is it going to know to piece the chunks together
17:10.07freezeyit wont
17:10.15freezeyand thats when a backend mount came to mind
17:10.25freezeybut its just not ready yte
17:10.27MHSLfreezey, "chunks of a book were getting thrown all over" if you're saying this will happen with load balancing tomcat directly, why would it not happen with load balancing apache?
17:10.27freezeyyet**
17:10.44freezeywell when doing the HAproxy type of setup
17:10.53freezey2 apache on top each looks at every tomcat instance
17:11.00MHSLsince the load balancer will still be the one that decides where the requests supposed to go
17:11.01freezeythis way works cause only 1 apache can talk to 1 tomcat
17:11.16MHSLfreezey, stop for a while
17:11.24freezeyi have gone through all of this
17:11.29MHSLfreezey, when using haproxy, you dont use apache anymore, you directly load balance tomcat
17:11.43freezeyoh ok then it was the mod_jk setup i had at onpoint
17:11.47MHSLno you dont since you didnt know haproxy :)
17:11.52freezeyi had 2 apache talking to 4 tomcats
17:12.01freezeyyeah i just saw the diagram fast and though it interacted the same way
17:12.03freezeyapologies
17:12.07MHSLok, so for example 1 apache = 2 tomcats, so 2 apache = 4 tomcats, correct?
17:12.12freezeyyup
17:12.24MHSLso, now you have another layer that will load balance apache A and B
17:12.26MHSLcorrect?
17:12.31freezeyyeah
17:12.36freezeyhad to get rid of that tho
17:13.00freezeycause of the way the our clientside program interacted with the systems
17:13.03MHSLok, now go back to your concern "chunks of a book were getting thrown all over" -> this issue will be the same either you load balance apache or tomcat directly, correct?
17:13.13freezeyno
17:13.18freezeywhen you do them directly
17:13.21freezey1 apace 1 tomcat
17:13.23freezeyits fine
17:13.34freezeycause the book chunks stay on that machine and cant go anywhere else
17:13.42freezeyso they get grouped correctly
17:13.57MHSLfreezey, hold on, i'm not talking about apache anymore when talking about load balancing tomcat directly, so no apache
17:14.20MHSLi.e. compare load balancer -> apache -> tomcat with load balancer -> tomcat
17:14.29MHSLany difference?
17:14.49freezeyahhh yeahh i never lb'd it directly
17:15.06freezeynever just tomcat tomcat tomcat no apache on top
17:15.14MHSLso this holds "chunks of a book were getting thrown all over" for both, right?
17:15.31freezeyyeah when using the 2 apache 4 tomcats on back end using the workers.properties etc
17:15.32MHSLi mean, just by looking at it, there is no difference between the two
17:16.15MHSLexcept with load balancer -> apache load balance -> tomcat setup, there is an extra load balancing mechanism happening on apache side
17:16.28freezeyyeah
17:16.41freezeybut this goes back to the reason who use apache ontop is for the functionality it has
17:16.58MHSLso now, when you said "chunks of a book were getting thrown all over" how did you solve this problem?
17:17.10MHSLfrom the load balancer -> apache -> tomcat
17:18.15freezeyyup
17:18.24MHSLhow?
17:18.31MHSLyup what?
17:19.04freezeywe solved it by having 1 apache talk to 1 tomcat
17:19.08freezeyso we have 3 servers each with that setup
17:19.21freezeyand the load balancer distributes incoming connections
17:19.36MHSLok, so you still have load balancer -> apache -> tomcat with 1 apache = 1 tomcat, correct?
17:19.58freezeyand it has layer4 persistence so once a connection comes in and it hits 1 machine it stays their for an hour so each new call that ip makes it will always gto that machine till the upload has finished
17:20.02freezeyyeah
17:20.52MHSLnow, before we go to the one you just mentioned, let's compare the setting above with load balancer -> tomcat
17:21.07MHSLany difference? the answer is no, since 1 apache = 1 tomcat
17:21.11MHSLjust remove apache off
17:21.16MHSLagree?
17:22.16freezeyyeah no your tottally right but we use apache for its flexibility
17:22.25freezeydifferent modules we use
17:22.30MHSLok, so we agree on this
17:22.32freezeythe rewrites to close our shopping card
17:22.38freezeyyeah your tottally right their is no difference
17:22.47freezeyits just how we use apache for the flexibility
17:22.53MHSLso what i mentioned about haproxy is the load balancer part, i.e. haproxy (load balancer) -> tomcat
17:22.59freezeyhmm
17:23.06freezeyi am gonna have to test that then
17:23.17MHSLbut if you've got hardware load balancer, then it's ok :)
17:23.42MHSLwhat i'm saying is, if you can remove apache at all from the setup, that should make your life a lot easier :)
17:24.34MHSLdecrease the complexity and remove potential problems from the extra layer, if you can't then it's totally fine
17:24.45MHSLso another option for you is to use mod_proxy instead of mod_jk, that's all
17:25.20MHSLso don't worry about haproxy :)
17:25.40MHSLif you want to do session replication, you can either try tomcat clustering or terracotta
17:26.00MHSLand just to mention this, session replication has nothing to do with load balancing
17:27.20MHSLok, time go to to sleep
17:27.27MHSLgood luck
17:40.45*** join/#tomcat davedoom (n=dwilson@69.28.122.206)
17:41.51*** part/#tomcat davedoom (n=dwilson@69.28.122.206)
17:46.36freezeythanks
17:57.28*** join/#tomcat mib_3g2wu8 (i=dce02ccf@gateway/web/ajax/mibbit.com/x-af7c159593b9f79d)
17:57.41mib_3g2wu8Hello People!
17:58.19mib_3g2wu8Can somebody please explain me what exactly is an Application Server ? Is Tomcat qualify as an App Server or it is just an jsp/servelet container ?
17:58.33deebotomcat is a servlet container
17:58.50deeboapplication server is servlet container + whole lot of other crap :)
17:59.07mib_3g2wu8deebo: JBoss is also run as servelet container. Right ?
17:59.24deeboservlet container is a subset of application server
17:59.26mib_3g2wu8deebo: What crap are you talking about exactly?
18:00.05mib_3g2wu8deebo: I am confused with BEA Weblogic,IBM WebSphere,JBoss and what not!
18:01.56deebowell they add their own stuff ontop
18:02.27mib_3g2wu8deebo: What sort of stuff ?
18:02.34mib_3g2wu8deebo: You mean ESB support ?
18:02.41deebowell al lsorts of stuff :)
18:03.03mib_3g2wu8deebo: Can you please point me to some resource ?
18:04.10deebowell its simple really
18:04.20deeboservlet container is the minimum setup if you will
18:04.27deeboit hosts applications
18:04.39deeboapplication servers do that, but offer other stuff ontop
18:05.15deebomaybe integrations to other layers etc
18:06.27mib_3g2wu8Somebody with access to message board should change the URL http://www.webdroid.org/archives/tomcat-package. to http://www.webdroid.org/archives/tomcat-package i.e remove leading "."
18:06.42mib_3g2wu8Sorry trailing "."
18:11.15*** join/#tomcat jasonb (n=jasonb@75.144.23.117)
18:25.12*** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca)
18:26.18sub_limeApache Tomcat/6.0.18 on xp home, jdk1.6.0_04 Apache 2.2: how do i turn on the Apache auto-configure setting in Tomcat
18:26.33sub_limeplease
18:26.46mib_3g2wu8sub_lime: What is auto-configure ?
18:27.02sub_limei am following these instaructions: http://tomcat.apache.org/connectors-doc/webserver_howto/apache.html
18:27.11sub_limebut they are for tomcat 5
18:28.15sub_limei found references to  turn on the Apache auto-configure setting but these have not worked
18:28.37sub_limefor example: http://www.sitepoint.com/forums/showthread.php?t=148529
18:29.06sub_limeanyway i just want to run tomcat under apache with a virtual host
18:29.14mib_3g2wu8sub_lime: "Please note that this example is specific to Tomcat 5.x, unlike other sections of this document which also apply to previous Tomcat branches."
18:29.22sub_limeyes
18:29.34sub_limei canot find docs for 6
18:29.37sub_limelooking
18:30.21sub_limefound some
18:30.25sub_limei think
18:33.30randrewsub_lime: maybe http://tomcat.apache.org/connectors-doc/generic_howto/quick.html    attempting to use auto-configure will cause unnecessary stress
18:34.06sub_limeyes is true. i have unnecessary stress.
18:34.16sub_limethanks i will look
18:36.57sub_limecan i not use mod_jk.so on windows ??
18:38.21anankei'm trying to find documentation on a specific subject, but so far i haven't been successfull. my tomcat complains with the following error: "WARNING: User database is not persistable - no write permissions on directory". where would that be defined?
18:38.55anankeahh, i think i found something...
18:39.53anankeodd, it should have permission to it
18:45.07jasonbjust realizes that Spring is now 80 megabytes in size..
18:48.15*** part/#tomcat mib_3g2wu8 (i=dce02ccf@gateway/web/ajax/mibbit.com/x-af7c159593b9f79d)
18:51.58jasonboh man.. 80M compressed.. 211M unpacked..
18:55.59deebois it now packaged as a single jar?
18:57.40jasonbThere is a spring.jar, and then there are a zillion dependencies.. so I'm seeing a total of 146 jar files that come with Spring!
18:57.54jasonbThat's just.. bad.
18:58.10jasonbSuch a dumping ground for code..
19:00.41deebotho you anly need spring.jar for aop and injection?
19:00.50deeboall the other stuff is separate, not really dependencies
19:01.55jasonbSo then what's modules/spring-aop.jar for?  And lib/aopalliance/aopalliance.jar?
19:02.21deeboi only have, sec
19:03.01deebospring.jar
19:03.02deebospring-webmvc.jar
19:03.05deeboin my web project
19:03.30deebo2.9M + 400kB
19:03.51deebo+ other stuff naturally :)
19:04.09jasonbspring.jar might do aop all by itself.  I don't know.  2.9M isn't bad, if you don't need the other 146 jar files!  :)
19:04.23deebotheres one thing tho, something in my project (spring+hibernate+velocity) depends on logging and requires really weird stuff :)
19:04.26jasonbsomething tells me they exist for a reason though.  :)
19:04.53deeboid like a servlet container with all this stuff built in
19:05.13deebomy extremely simple webapp has 19 libs
19:05.54deebolike for database pojos' annotations i need jta + hibernate-annotations
19:06.14jasonbYeah, I know what you mean.
19:06.34deeboeven for the simple logging framework i need api (i guess its just interfaces) and then theres several implementation jars to choose from :)
19:06.49jasonbThey want you to use a Java EE 5 container because then JPA comes with that.. but there are still other huge libs we'd need to bundle.
19:07.02deebowhich again depend on commons collections etc
19:07.12deeboits kidna hellish
19:07.51deeboif you start out by doing "new project" in eclipse without using like maven stuff to help with that youll spend 30min easy digging up the jars required for even compiling the thing :P
19:09.05*** join/#tomcat pucko (i=andreas@81-234-246-21-o933.tbon.telia.com)
19:11.22*** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl)
19:11.41jasonbdeebo: Yeah, that sure looks like what it's devolved into.
19:12.52*** join/#tomcat zanberdo (n=mark@adsl-76-254-94-214.dsl.pltn13.sbcglobal.net)
19:14.30zanberdoI'm looking for direction on how to setup my tomcat 5.0.28 server to redirect the home page to another location?  At present if the user points his browser to https://my.tomcat.server/ they find the admin page staring them in the face.  I'd like that to redirect to something like https://my.tomcat/server/myapp/
19:15.33zanberdopart of the problem I'm having researching this is learning the terminology, so please bare with me and help me to use the correct terms.  This way I can be more successful with research and I won't have to ask as often.
19:15.54deeboyou can use vhosts via <context>
19:16.13deebothe ROOT context is the "default" view, e.g. http://mserver.com/
19:24.43zanberdohmmm... I've searched tomcat and vhosts, but I'm not finding what I think I need.  Maybe I'm just not thinking about this correctly.  For instance, I currently have an entry in my apache2.conf (for apache2 and not tomcat, of course) that redirects /index.html to some other path such that when the user hits the root of the server they redirect to this other path.  I'd thought tomcat might work the same.
19:24.43*** part/#tomcat ananke (n=ananke@inferno.bioinformatics.vt.edu)
19:25.28sub_limeon tomcat 6 would the Listener className="org.apache.jk.config.ApacheConfig
19:26.33*** join/#tomcat jfclere (n=jfclere@63.85.187.2)
19:41.26zanberdoall I want to do is redirect calls made to https://my.tomcat.server/ to https://my.tomcat.server/app.  I'm having a difficult time finding a resource that covers this particular requirement.
19:42.09zanberdoI don't want to write a redirector in ROOT thus replacing index.jsp, as this seems like a kludge and adds addition server calls...
19:42.27zanberdoI'm sure there is a fairly straight forward way to do what I seek, I'm just not finding it.
19:46.49*** join/#tomcat cgp_-_ (n=chatzill@165.215.94.13)
19:48.45*** part/#tomcat zanberdo (n=mark@adsl-76-254-94-214.dsl.pltn13.sbcglobal.net)
19:54.39*** join/#tomcat dyre (i=dyremahl@trivini.no)
20:19.15*** part/#tomcat jfclere (n=jfclere@63.85.187.2)
20:20.31*** join/#tomcat sub_lime (n=starfish@modemcable077.36-81-70.mc.videotron.ca)
20:20.33sub_limehello
20:21.55sub_limeApache Tomcat/6.0.18 on xp home, jdk1.6.0_04.
20:22.20sub_limesince i added apache 2 in front of tomcat 6 i get this error: XML.toString(Document): java.lang.ClassCastException: org.apache.xerces.dom.DeferredTextImpl cannot be cast to org.w3c.dom.Element
20:23.23sub_limeany idea
20:23.33*** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net)
20:52.49sub_lime!answerbot
21:48.37*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
22:02.38*** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu)
22:04.58*** part/#tomcat randrew (n=raj@dyn-128-59-53-242.dyn.columbia.edu)
22:07.06*** join/#tomcat yobo2 (i=y@ool-18bed8ce.dyn.optonline.net)
22:19.39*** join/#tomcat relachs (n=relachs@f051188247.adsl.alicedsl.de)
22:39.55*** join/#tomcat opr (n=opr@host86-150-90-216.range86-150.btcentralplus.com)
22:40.10oprsup homeboys?
22:40.15oprjust installed tomcat
22:41.05opr$CATALINA_HOME what is this likely to be
22:41.07opron a windows box
22:46.31lykenwhereever you installed tomcat to
22:46.55lykenmaybe
22:47.02lykenprogram files\apache\tomcat ?
22:51.14*** join/#tomcat Orphis (n=quassel@belgarath.moomoocamp.net)
22:54.10*** join/#tomcat x_andro (n=x_andro@88.247.172.243)
22:57.30oprta
23:04.05opryay works
23:16.28*** join/#tomcat nels_ (n=nels_@nat-vlan0201.sat4.rackspace.com)
23:29.01*** join/#tomcat jfclere (n=jfclere@63.85.187.2)
23:33.45deebojust as a tip
23:33.59deebowith java stuff, avoid directories with whitespaces at all costs
23:35.43*** part/#tomcat jfclere (n=jfclere@63.85.187.2)

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