IRC log for #tomcat on 20091129

00:45.31*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
01:42.07*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
02:18.16*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
02:27.04*** join/#tomcat Alagar (n=Administ@122.164.39.103)
03:16.23*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
03:47.27*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
03:56.40*** join/#tomcat NotInternat (n=nf@123-243-184-161.static.tpgi.com.au)
04:44.02*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
04:50.38oxihi
04:51.02oxijasonb: are you around?
04:51.15jasonboxi: Yup.
04:51.20oxinic
04:51.22oxinice
04:51.25oxiI have some question
04:51.32dvinchioxi, ask
04:51.36dvinchijust ask
04:51.37dvinchi:D
04:51.39oxiI'm setting up a cgiservlet for mercurial
04:51.49dvinchii dotn know Xd
04:51.59dvinchicgi s??
04:52.01dvinchino
04:52.34oxinow I have some servlet mapping: /cgi-bin/*
04:52.36jasonbdvinchi: Why don't you offer help when you know the answer, instead of throwing random confusing responses into the channel?
04:52.40oxiand a welcome file: hgwebdir.cgi
04:53.20oxiso, when I open in the browser: foobar.com/mercurial, it will run that servlet
04:53.34oxiI mean the cgi servlet which will run the cgi
04:53.49oxinow the cgi file can list a few repositories
04:54.13oxinormally you can easiliy list the contents of those repositories by clicking on the links
04:54.51oxibut you get an ugly url: http://foobar.com/mercurial/cgi-bin/hgwebdir.cgi/myrepo/
04:55.10oxinow the cgi can be set to have http://foobar.com/mercurial as base
04:55.37oxibut the resulting links won't work ofcourse: http://foobar.com/mercurial/myrepo
04:55.52jasonbWhy wouldn't it?
04:56.39oxibecause tomcat doesn't know that http://foobar.com/mercurial/myrepo should point to cgi-bin/hgwebdir.cgi
04:57.35oxiopening  http://foobar.com/mercurial works, because I can tell it to run the cgi, by setting the welcome file to cgi-bin/hgwebdir.cgi
04:58.01oxiso opening http://foobar.com/mercurial will open a cloaked  http://foobar.com/mercurial/cgi-bin/hgwebdir.cgi
04:58.57jasonbThe part of the URI that is "/myrepo" is called "path info" in the terminology of the Java Servlet Specification.
04:59.03oxibut the repository links won't work:  http://foobar.com/mercurial/myrepo ... because I guess it will try to run the cgi http://foobar.com/mercurial/cgi-bin/myrepo
04:59.27jasonbThe part of the URI to the left of that is the servlet path, which is prefixed with the context path.
04:59.29oxijasonb: I was just wondering which solutions exist
04:59.46oxiI guess I have to use a servlet filter, right?
05:00.25jasonbIt is possible for Tomcat to tell which part is the path info (it can notice that "/myrepo" is the path info in the URI "/mercurial/myrepo").
05:00.48oxitranparently?
05:01.06jasonbThe trick is to make sure the CGI servlet has a servlet-mapping on /mercurial
05:01.13oxiwithout using servlet filters=
05:01.23jasonbEverything to the right of that then becomes path info.
05:01.30jasonbYes, without using servlet filters.
05:02.16oxiwell, but I think the cgi-servlet picks everything to the right to decide which cgi to execute
05:02.18jasonbForget for a moment that the CGIServlet has to somehow figure out how to run that hgwebdir.cgi file.  Only think (at first) about the servlets and servlet-mappings.
05:02.53oxithose a quite clear, as you described
05:03.32oxijasonb: here's a more comprehensive example: http://javaevangelist.blogspot.com/2009/05/mercurial-on-glassfish-21-using.html
05:04.02oxithe way he is doing it is with ultra-ugly urls :-)
05:04.31oxiI would like to get foobar.com/mercurial/myrepo working for example
05:05.06oxijasonb: if you try my host, you get the idea: cgi-bin/hgwebdir.cgi/alpha/
05:05.25oxioops, here: http://hyperhost.ch/mercurial/
05:05.56oxithe links don't work
05:05.59oxiwhile http://hyperhost.ch/mercurial/cgi-bin/hgwebdir.cgi/alpha/ works
05:06.22jasonboxi: Next you have to put all of your configs on a paste server.
05:08.17oxijasonb:
05:08.18oxihttp://pastebin.com/d2ac67f92
05:08.23oxithe context is privileged
05:09.30oxithe hgwebdir.cgi is physically in http://hyperhost.ch/mercurial.war/WEB-INF/cgi or the exploded http://hyperhost.ch/mercurial/WEB-INF/cgi
05:10.24oxihere's a description of the cgi-servlet: http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html
05:11.05oximy guess is that there's no way I can do it without using a servlet filter
05:11.47oxibut I came here to check with you and get a second opinion
05:13.20jasonboxi: Your mappings are specifically configured so that your URIs show "/cgi-bin" in them.
05:13.26oxithe reason I believe that I can only do it using a servlet filter is because the cgiservlet seems to use the url in order to decide which cgi to run
05:13.33jasonb(instead of making them just show "/mercurial"..)
05:13.53oxijasonb: yeah, but even if I change that, I have the same trouble
05:14.18oxijasonb: on the server it's actually changed to <url-pattern>/*</url-pattern>
05:17.07oxijasonb: example: http://hyperhost.ch/mercurial/hgwebdir.cgi will run the cgi
05:17.15oxijasonb: http://hyperhost.ch/mercurial/hgwebdir2.cgi will not run the cgi
05:17.49oxibecause the cgi-servlet picks up everything after http://hyperhost.ch/mercurial/* to decide which cgi to execute
05:18.15oxi... when the servlet mappings is set to <url-pattern>/cgi-bin/*</url-pattern>
05:18.25oxiin this case it's too smart :-)
05:19.19oxiI actually want to tell the cgi servlet to never ever run any other cgi than the default cgi
05:19.25jasonbNo, in the declaration of the CGIServlet itself, set cgiPathPrefix to: <param-value>WEB-INF/cgi/hgwebdir.cgi</param-value>
05:19.36oxiah!!!!!!
05:19.48oxijasonb: unbelieveable, why didn't I think of this!
05:20.17oxijasonb: your the brainy!
05:20.17oxithanks a lot!
05:20.17oxiawesome
05:20.17jasonbThen, map the servlet to <url-pattern>/mercurial/*<uri-pattern>  (or something like that)
05:20.17oxisure
05:20.17jasonbNow, there's a reason why I know this..
05:20.27jasonbI have read through the source of the CGI Servlet.. it is open source, and the code isn't that long.
05:20.29oxiargh, ... good that I asked you before fu-ing around with rewrite filters :-)
05:20.43jasonbIt isn't wonderfully readable, but I've spent some time with it.
05:20.56oxiyeah, I've looked into it's source too a time ago
05:21.03oxibut I really didn't think of this
05:21.48jasonbWhat it ends up doing is a string append.. like thingToRun = cgiPathPrefix + uriPathMinusSlashMercurial  :)
05:22.15jasonbOr something like that, anyway.
05:22.23jasonbIt takes pathInfo into account though.
05:22.44jasonbSo, the "/repo/whatever" is carved off, and handed to the CGI binary as PATH_INFO.
05:23.11jasonbAnyway, I've even done this before, so I know it is possible to configure it to do that.
05:24.43oxiyeah, but in this case that's luckily exactly what the mercurial cgi needs
05:25.22jasonbYes, and the CGI servlet can do it that way because this isn't the first CGI program that works this way..  :)
05:25.35oxi:-)
05:25.42oxivery nice
05:26.22oxiim curious: what did you use the cgi for?
05:26.56oxiI'm just setting up the mercurial cgi and I tried some perl test
05:28.05oxihey jasonb, ... another question I've been asking myself lately:
05:28.41oxiI would like to set up a webpage with a nice look (apple-like)
05:28.42jasonbI used it mainly for running viewvc to browse my svn repository.. before I found Sventon.
05:28.57oxiaha
05:29.08oxiI was actually also going to look inot viewvc
05:29.32oxiyou kicked viewvc and replaced it with Sventon?
05:31.12oxiabout the homepage: I've mostly done plain xhtml in the past and sometimes joomla
05:31.23oxithere's really a convenience in using a cms
05:32.09oxiI found joomla almost perfect from a usability standpoint, but the page loading was slow and it's php
05:32.15oxiso I looked into java solutions
05:32.29oxisome cool guy recommended LifeRay to me
05:33.12jasonbYeah, Sventon is better than viewvc.
05:33.22jasonb(and not just because it doesn't need the CGI servlet!)
05:33.28oxiLifeRay showed >150 Javascript & xhtml errors on the first page and it had a slow page loading time and it took >600MB ram
05:33.48oxijasonb: very nice, then I'll look into setting up also sventon
05:33.55jasonbYeah, it's great!
05:34.05oxithe only thing that bothers me about it that subversion itself is native :-)
05:34.34jasonbWell, I seem to remember the quercus guy(s) saying they can run Joomla on it.
05:34.35oxijasonb: so you use sventon for your svn communication?
05:35.02oxiyeah, but I don't trust the quercus solutions, even though I did some tries
05:35.17oxia few guys recommended me not to use quercus for production
05:35.19oxi...
05:35.38oxithen I found Alfresco: 200MB download
05:35.44oxithere's also XWiki
05:36.20jasonbHmm, I'm not sure what else to suggest, really.
05:36.38oxiit seems to me that every java cms with ongoing development and community support is extremely bulky or slow or needs extreme resources
05:36.43oxiok
05:36.48jasonbYes, you're right about that.
05:36.51oxiabout the sventon...
05:37.04oxido you connect to it with your subversion client?
05:37.36jasonbWell, I run Tomcat on the same machine as my svn server, so sventon doesn't need to make any remote connection.
05:37.50oxiI mean, you use http for svn
05:37.51oxiah, right
05:38.01oxiso you really only use it as a frontend
05:38.03jasonbNo, do not use http for svn.
05:38.10oxiok
05:38.11jasonbUse svnserve and use svn:// URLs.
05:38.15oxiright
05:38.30jasonbUsing http for svn is very slow.
05:38.32jasonb(in comparison)
05:38.35oxitrue
05:38.40oxiI also tried that
05:38.45jasonbsvn+ssh:// is what I use.
05:38.57oxiI use https at the moment
05:39.13jasonbAnd, it's slow?
05:39.23oxiit performs quite okay
05:39.34jasonbI'm surprised.
05:39.42jasonbYou must only access it over a short number of network hops.
05:39.56oxithough I haven't fiddled with anything, it's an exe installer: visualsvn
05:40.09oxiit uses apache2&svn
05:40.30oxiyes, I only tested it with a very short hop
05:40.36jasonbHTTPS over distant geographic connections is badly slow.
05:40.52oxiyeah, I can imagine that
05:41.07oxianother thing I wanted to check with you: which usefull java apps/webapps do you know?
05:41.21jasonbHmm, I have a long list.  :)
05:41.24oxi... just because you mentioned sventon, and I didn't know about it
05:41.37oxiso I thought you might have discovered some goodies
05:41.44jasonbI certainly have.
05:42.15oxiI looked into: liferay, alfresco, xwiki, sgi-servlet, hudson, sonar, rewritefilter, artifactory
05:42.41jasonbI collect links.. even before I've used the software at the link I'm collecting.  So, some of my webapp links may point to bad software.
05:42.54jasonbThey all have their pros and cons, I think.
05:43.40oxifurther: apache ftpserver (mina), james, jackrabbit, quercus, davenport
05:43.41jasonbhang on.
05:44.00oxiI think they all have some good things
05:44.10oxicocoon, jroller seem dead to me
05:44.28oxiI picked xwiki over jspwiki
05:44.55oximindterm applet is another nice thing
05:45.39oxiand Hoblink JWT
05:46.46oxicoldfusion, opendb, railo are also nice and run nicely in a webapp
05:46.56oxithe derbynet servlet is nice too
05:51.17oxifurther emacs -> generate html is cool for syntax coloring code for the web
05:54.19oxiofcourse: DWR, JRuby, Jython, GWT, Grails is nice java webapp dev stuff
05:56.13oxithe atlassian palette is cool but non-free
06:00.04*** join/#tomcat |MHSL| (i=mhsl@cm9.eta6.maxonline.com.sg)
06:00.58jasonboxi: back.
06:01.08oxiyour solution works perfectly :-)
06:01.15jasonboxi: Very cool!
06:02.39jasonboxi: I have a list of webapps that I've been adding to for some years, if you want to see that.  Again, I haven't necessarily even run them (some I have), but when I find interesting OSS webapps I add them to the list.
06:03.00jasonbAlso, some may not exist anymore.  :)
06:03.03oxinice, I'd like to have a look at it
06:03.06*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
06:03.18jasonbThen, I have a separate list of Tomcat-related OSS technologies.. which is much longer.
06:03.33oxihmm, that would also interest me :-)
06:04.17oxiI haven't got my stuff sorted, it's in random text files all over the place
06:04.35oxiI'm working on setting up xwiki for all this
06:05.19jasonboxi: http://pastebin.org/58323
06:05.50jasonbActually, GWT belongs in the other list.. heh
06:05.51oxiawesome, thanks jasonb!!!
06:05.58jasonboxi: You're welcome.  Enjoy.
06:06.02oxiyou were very helpfull today
06:06.21oxiyeah, the reason I included GWT is that it's quite good for rpc-ing
06:06.41oxiso it works great as a war webapp for remoting
06:07.16oxiofcourse 99% of it is the clientside runtime emulation :-)
06:07.34jasonboxi: I'm glad I could help.  :)
06:07.57oxime too! :-D
06:35.15*** join/#tomcat dmo (n=jb@unaffiliated/dmo)
07:12.54*** join/#tomcat n0pst0rm (n=chatzill@adsl-160-2-121.asm.bellsouth.net)
07:13.09*** part/#tomcat n0pst0rm (n=chatzill@adsl-160-2-121.asm.bellsouth.net)
07:54.24*** join/#tomcat dvayanu (n=another@80.187.209.46)
08:43.04*** join/#tomcat _MHSL_ (n=mhsl@cm9.eta6.maxonline.com.sg)
09:41.12*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
09:43.14*** join/#tomcat acidjnk (i=acid@pD950843B.dip0.t-ipconnect.de)
09:52.24*** join/#tomcat dvayanu (n=another@80.187.217.49)
10:31.19*** join/#tomcat Dextorion (n=Dextorio@c80-217-7-63.bredband.comhem.se)
12:07.27*** join/#tomcat uwe_guenther (n=Notebook@p5B2837BF.dip.t-dialin.net)
13:30.48*** join/#tomcat args (i=args@p5B33D5B4.dip.t-dialin.net)
13:31.05argshi @ll
13:31.13argsi have a problem
13:31.18argsgerman ?=
13:31.40argscan me please help ?
13:43.02*** join/#tomcat pdilip (n=pdilip@ool-43520367.dyn.optonline.net)
13:47.14*** join/#tomcat pdilip (n=pdilip@ool-43520367.dyn.optonline.net)
13:49.15pdilipHi.. I am a newbie. I am running Tomcat 4.1.27, Java 1.4.2 in Linux
13:49.49pdilipI have my tomcat running at a remote location and would like to access some of my servlet files using the tomcat manager
13:50.17pdiliphow can that be done? I have the username and password that I need. But i don't know how i can access the .java files that are on it
13:53.55*** join/#tomcat relachs (n=relachs@f055170115.adsl.alicedsl.de)
14:06.10pdilipBuzz !
14:25.32*** join/#tomcat pdilip (n=pdilip@ool-43520367.dyn.optonline.net)
14:31.15*** join/#tomcat pdilip (n=pdilip@ool-43520367.dyn.optonline.net)
14:46.38*** join/#tomcat amirite (n=bar@c-98-212-200-2.hsd1.il.comcast.net)
14:46.41amiritehmmm
14:46.45amiriteanyone here?
15:53.40*** join/#tomcat uwe_guenther (n=Notebook@p5B2837BF.dip.t-dialin.net)
16:10.57*** part/#tomcat amirite (n=bar@c-98-212-200-2.hsd1.il.comcast.net)
16:28.47*** join/#tomcat bugz_ (n=bugz@adsl-99-129-208-82.dsl.lsan03.sbcglobal.net)
16:33.50*** join/#tomcat JabDesign (n=Jabber@c-69-142-19-84.hsd1.nj.comcast.net)
17:40.05*** join/#tomcat dvayanu (n=another@3ece4983.datahighways.de)
18:30.12*** join/#tomcat tomd (n=manuel@77-58-95-207.dclient.hispeed.ch)
19:03.00*** join/#tomcat karstensrage_alt (n=karstens@c-71-202-243-186.hsd1.ca.comcast.net)
20:01.38tomdHello all. I've got some questions. System: Centos 5.4 (64bit), Tomcat 5.5.23,  Sun Java 1.5.0_22-b03. First, when starting tomcat5 I get this:
20:01.38tomdCan this be savely ignored? Tomcat is running fine (I think).. Tomcat has been installed with yum.
20:02.07tomdSorry, here is the link http://pastebin.com/d6949b4fe
20:14.10tomdand second question would be. I want to change the path which is used to access the webapp. I put this http://pastebin.com/m4fb5d3a4 in  /etc/tomcat5/Catalina/localhost/magnoliaPublic.xml. Tomcat ignores the xml, what can I do?
21:03.25*** join/#tomcat oxi (n=oxi@unaffiliated/oxi)
21:17.09*** join/#tomcat altmattr (n=altmattr@203-206-15-162.dyn.iinet.net.au)
21:31.06*** join/#tomcat Plushy (n=Miranda@Wikipedia/Plushy)
21:34.30PlushyHey guys, I'm using Apache Tomcat/6.0-snapshot, JVM 1.5.0_20-b02 and Windows XP x86 5.1
21:35.18PlushyBut my question is rather trivial, where do I find a log file for system.out? THe wiki says there should be catalina.out in the logs directory but there isn't one
21:35.59oxiwhat could be the reason that newly created hosts in the host-manager app are not persisted?
21:36.35oxiPlushy: yep, there should be a catalina.out
21:37.41oxiPlushy: stick with the release and compare to your shnapshot
21:37.47oxi-h
21:38.43PlushyI don't really have a clue about all that, I just installed tomcat for xampp
21:39.24oxiah, that's a different thing
21:39.37oxithe xampp version is highly modified
21:39.43oxiI have not clue about that
21:40.01oxiI'd still download the release and compare it to your xampp version
21:40.17oxithe release surely creates a catalina.out
21:44.25Plushyokay, thanks, I guess I'll look in #xampp then
21:45.35oxiyeah, I guess those people know more what's going on
22:17.14jasonboxi: When you create a host via the host-manager, the host you created is only in memory (while Tomcat runs).  If you want it to persist, you must also edit your server.xml and add it there as well.
22:19.21oxijasonb: ah, I thought something is wrongly configured
22:19.37oxijasonb: what's the host-manager good for then?
22:20.08jasonboxi: It's good for adding new hosts to an already-running Tomcat, dynamically, without shutting it down and restarting it (no disruption of service).
22:20.15oxiI chose to add the manager and that also didn't work
22:20.46oxiwell, but newly created hosts are fully functional?
22:21.12oxiwhat could be the reason the manager isn't working?
22:25.14jasonbNewly created hosts, created by the host manager, are indeed fully functional.
22:25.41jasonbHow can I tell you what's wrong with your manager if you only say it isn't working?  :)
22:29.39*** join/#tomcat tess (n=tess@c-24-130-52-152.hsd1.ca.comcast.net)
22:36.40oxijasonb: no idea
22:37.12oxijasbonb: the webapp-manager just doesn't work for dynamically created hosts through the host-manager
22:42.57*** join/#tomcat moradan (n=chatzill@109.86.172.13)
22:43.51moradanhow can I restart tomcat6 on ubuntu 9.10 (I need to activate the edits to the /etc/tomcat6/tomcat-users.xml
22:46.17oximoaradan: maybe /etc/init.d/tomcat6 restart
22:46.38oxior kill pid :-)
22:48.50*** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9)
22:51.02moradanthanaks a lot
22:51.35*** join/#tomcat relachs (n=relachs@f055170115.adsl.alicedsl.de)
22:58.27*** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
23:12.56*** join/#tomcat uwe_guenther (n=Notebook@p5B2837BF.dip.t-dialin.net)
23:32.52*** join/#tomcat ciao (i=bd953b84@gateway/web/freenode/x-ceevzqkwoeskhbfi)

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