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.38 | oxi | hi |
04:51.02 | oxi | jasonb: are you around? |
04:51.15 | jasonb | oxi: Yup. |
04:51.20 | oxi | nic |
04:51.22 | oxi | nice |
04:51.25 | oxi | I have some question |
04:51.32 | dvinchi | oxi, ask |
04:51.36 | dvinchi | just ask |
04:51.37 | dvinchi | :D |
04:51.39 | oxi | I'm setting up a cgiservlet for mercurial |
04:51.49 | dvinchi | i dotn know Xd |
04:51.59 | dvinchi | cgi s?? |
04:52.01 | dvinchi | no |
04:52.34 | oxi | now I have some servlet mapping: /cgi-bin/* |
04:52.36 | jasonb | dvinchi: Why don't you offer help when you know the answer, instead of throwing random confusing responses into the channel? |
04:52.40 | oxi | and a welcome file: hgwebdir.cgi |
04:53.20 | oxi | so, when I open in the browser: foobar.com/mercurial, it will run that servlet |
04:53.34 | oxi | I mean the cgi servlet which will run the cgi |
04:53.49 | oxi | now the cgi file can list a few repositories |
04:54.13 | oxi | normally you can easiliy list the contents of those repositories by clicking on the links |
04:54.51 | oxi | but you get an ugly url: http://foobar.com/mercurial/cgi-bin/hgwebdir.cgi/myrepo/ |
04:55.10 | oxi | now the cgi can be set to have http://foobar.com/mercurial as base |
04:55.37 | oxi | but the resulting links won't work ofcourse: http://foobar.com/mercurial/myrepo |
04:55.52 | jasonb | Why wouldn't it? |
04:56.39 | oxi | because tomcat doesn't know that http://foobar.com/mercurial/myrepo should point to cgi-bin/hgwebdir.cgi |
04:57.35 | oxi | opening 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.01 | oxi | so opening http://foobar.com/mercurial will open a cloaked http://foobar.com/mercurial/cgi-bin/hgwebdir.cgi |
04:58.57 | jasonb | The part of the URI that is "/myrepo" is called "path info" in the terminology of the Java Servlet Specification. |
04:59.03 | oxi | but 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.27 | jasonb | The part of the URI to the left of that is the servlet path, which is prefixed with the context path. |
04:59.29 | oxi | jasonb: I was just wondering which solutions exist |
04:59.46 | oxi | I guess I have to use a servlet filter, right? |
05:00.25 | jasonb | It 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.48 | oxi | tranparently? |
05:01.06 | jasonb | The trick is to make sure the CGI servlet has a servlet-mapping on /mercurial |
05:01.13 | oxi | without using servlet filters= |
05:01.23 | jasonb | Everything to the right of that then becomes path info. |
05:01.30 | jasonb | Yes, without using servlet filters. |
05:02.16 | oxi | well, but I think the cgi-servlet picks everything to the right to decide which cgi to execute |
05:02.18 | jasonb | Forget 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.53 | oxi | those a quite clear, as you described |
05:03.32 | oxi | jasonb: here's a more comprehensive example: http://javaevangelist.blogspot.com/2009/05/mercurial-on-glassfish-21-using.html |
05:04.02 | oxi | the way he is doing it is with ultra-ugly urls :-) |
05:04.31 | oxi | I would like to get foobar.com/mercurial/myrepo working for example |
05:05.06 | oxi | jasonb: if you try my host, you get the idea: cgi-bin/hgwebdir.cgi/alpha/ |
05:05.25 | oxi | oops, here: http://hyperhost.ch/mercurial/ |
05:05.56 | oxi | the links don't work |
05:05.59 | oxi | while http://hyperhost.ch/mercurial/cgi-bin/hgwebdir.cgi/alpha/ works |
05:06.22 | jasonb | oxi: Next you have to put all of your configs on a paste server. |
05:08.17 | oxi | jasonb: |
05:08.18 | oxi | http://pastebin.com/d2ac67f92 |
05:08.23 | oxi | the context is privileged |
05:09.30 | oxi | the 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.24 | oxi | here's a description of the cgi-servlet: http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html |
05:11.05 | oxi | my guess is that there's no way I can do it without using a servlet filter |
05:11.47 | oxi | but I came here to check with you and get a second opinion |
05:13.20 | jasonb | oxi: Your mappings are specifically configured so that your URIs show "/cgi-bin" in them. |
05:13.26 | oxi | the 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.33 | jasonb | (instead of making them just show "/mercurial"..) |
05:13.53 | oxi | jasonb: yeah, but even if I change that, I have the same trouble |
05:14.18 | oxi | jasonb: on the server it's actually changed to <url-pattern>/*</url-pattern> |
05:17.07 | oxi | jasonb: example: http://hyperhost.ch/mercurial/hgwebdir.cgi will run the cgi |
05:17.15 | oxi | jasonb: http://hyperhost.ch/mercurial/hgwebdir2.cgi will not run the cgi |
05:17.49 | oxi | because the cgi-servlet picks up everything after http://hyperhost.ch/mercurial/* to decide which cgi to execute |
05:18.15 | oxi | ... when the servlet mappings is set to <url-pattern>/cgi-bin/*</url-pattern> |
05:18.25 | oxi | in this case it's too smart :-) |
05:19.19 | oxi | I actually want to tell the cgi servlet to never ever run any other cgi than the default cgi |
05:19.25 | jasonb | No, in the declaration of the CGIServlet itself, set cgiPathPrefix to: <param-value>WEB-INF/cgi/hgwebdir.cgi</param-value> |
05:19.36 | oxi | ah!!!!!! |
05:19.48 | oxi | jasonb: unbelieveable, why didn't I think of this! |
05:20.17 | oxi | jasonb: your the brainy! |
05:20.17 | oxi | thanks a lot! |
05:20.17 | oxi | awesome |
05:20.17 | jasonb | Then, map the servlet to <url-pattern>/mercurial/*<uri-pattern> (or something like that) |
05:20.17 | oxi | sure |
05:20.17 | jasonb | Now, there's a reason why I know this.. |
05:20.27 | jasonb | I have read through the source of the CGI Servlet.. it is open source, and the code isn't that long. |
05:20.29 | oxi | argh, ... good that I asked you before fu-ing around with rewrite filters :-) |
05:20.43 | jasonb | It isn't wonderfully readable, but I've spent some time with it. |
05:20.56 | oxi | yeah, I've looked into it's source too a time ago |
05:21.03 | oxi | but I really didn't think of this |
05:21.48 | jasonb | What it ends up doing is a string append.. like thingToRun = cgiPathPrefix + uriPathMinusSlashMercurial :) |
05:22.15 | jasonb | Or something like that, anyway. |
05:22.23 | jasonb | It takes pathInfo into account though. |
05:22.44 | jasonb | So, the "/repo/whatever" is carved off, and handed to the CGI binary as PATH_INFO. |
05:23.11 | jasonb | Anyway, I've even done this before, so I know it is possible to configure it to do that. |
05:24.43 | oxi | yeah, but in this case that's luckily exactly what the mercurial cgi needs |
05:25.22 | jasonb | Yes, and the CGI servlet can do it that way because this isn't the first CGI program that works this way.. :) |
05:25.35 | oxi | :-) |
05:25.42 | oxi | very nice |
05:26.22 | oxi | im curious: what did you use the cgi for? |
05:26.56 | oxi | I'm just setting up the mercurial cgi and I tried some perl test |
05:28.05 | oxi | hey jasonb, ... another question I've been asking myself lately: |
05:28.41 | oxi | I would like to set up a webpage with a nice look (apple-like) |
05:28.42 | jasonb | I used it mainly for running viewvc to browse my svn repository.. before I found Sventon. |
05:28.57 | oxi | aha |
05:29.08 | oxi | I was actually also going to look inot viewvc |
05:29.32 | oxi | you kicked viewvc and replaced it with Sventon? |
05:31.12 | oxi | about the homepage: I've mostly done plain xhtml in the past and sometimes joomla |
05:31.23 | oxi | there's really a convenience in using a cms |
05:32.09 | oxi | I found joomla almost perfect from a usability standpoint, but the page loading was slow and it's php |
05:32.15 | oxi | so I looked into java solutions |
05:32.29 | oxi | some cool guy recommended LifeRay to me |
05:33.12 | jasonb | Yeah, Sventon is better than viewvc. |
05:33.22 | jasonb | (and not just because it doesn't need the CGI servlet!) |
05:33.28 | oxi | LifeRay showed >150 Javascript & xhtml errors on the first page and it had a slow page loading time and it took >600MB ram |
05:33.48 | oxi | jasonb: very nice, then I'll look into setting up also sventon |
05:33.55 | jasonb | Yeah, it's great! |
05:34.05 | oxi | the only thing that bothers me about it that subversion itself is native :-) |
05:34.34 | jasonb | Well, I seem to remember the quercus guy(s) saying they can run Joomla on it. |
05:34.35 | oxi | jasonb: so you use sventon for your svn communication? |
05:35.02 | oxi | yeah, but I don't trust the quercus solutions, even though I did some tries |
05:35.17 | oxi | a few guys recommended me not to use quercus for production |
05:35.19 | oxi | ... |
05:35.38 | oxi | then I found Alfresco: 200MB download |
05:35.44 | oxi | there's also XWiki |
05:36.20 | jasonb | Hmm, I'm not sure what else to suggest, really. |
05:36.38 | oxi | it seems to me that every java cms with ongoing development and community support is extremely bulky or slow or needs extreme resources |
05:36.43 | oxi | ok |
05:36.48 | jasonb | Yes, you're right about that. |
05:36.51 | oxi | about the sventon... |
05:37.04 | oxi | do you connect to it with your subversion client? |
05:37.36 | jasonb | Well, I run Tomcat on the same machine as my svn server, so sventon doesn't need to make any remote connection. |
05:37.50 | oxi | I mean, you use http for svn |
05:37.51 | oxi | ah, right |
05:38.01 | oxi | so you really only use it as a frontend |
05:38.03 | jasonb | No, do not use http for svn. |
05:38.10 | oxi | ok |
05:38.11 | jasonb | Use svnserve and use svn:// URLs. |
05:38.15 | oxi | right |
05:38.30 | jasonb | Using http for svn is very slow. |
05:38.32 | jasonb | (in comparison) |
05:38.35 | oxi | true |
05:38.40 | oxi | I also tried that |
05:38.45 | jasonb | svn+ssh:// is what I use. |
05:38.57 | oxi | I use https at the moment |
05:39.13 | jasonb | And, it's slow? |
05:39.23 | oxi | it performs quite okay |
05:39.34 | jasonb | I'm surprised. |
05:39.42 | jasonb | You must only access it over a short number of network hops. |
05:39.56 | oxi | though I haven't fiddled with anything, it's an exe installer: visualsvn |
05:40.09 | oxi | it uses apache2&svn |
05:40.30 | oxi | yes, I only tested it with a very short hop |
05:40.36 | jasonb | HTTPS over distant geographic connections is badly slow. |
05:40.52 | oxi | yeah, I can imagine that |
05:41.07 | oxi | another thing I wanted to check with you: which usefull java apps/webapps do you know? |
05:41.21 | jasonb | Hmm, I have a long list. :) |
05:41.24 | oxi | ... just because you mentioned sventon, and I didn't know about it |
05:41.37 | oxi | so I thought you might have discovered some goodies |
05:41.44 | jasonb | I certainly have. |
05:42.15 | oxi | I looked into: liferay, alfresco, xwiki, sgi-servlet, hudson, sonar, rewritefilter, artifactory |
05:42.41 | jasonb | I 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.54 | jasonb | They all have their pros and cons, I think. |
05:43.40 | oxi | further: apache ftpserver (mina), james, jackrabbit, quercus, davenport |
05:43.41 | jasonb | hang on. |
05:44.00 | oxi | I think they all have some good things |
05:44.10 | oxi | cocoon, jroller seem dead to me |
05:44.28 | oxi | I picked xwiki over jspwiki |
05:44.55 | oxi | mindterm applet is another nice thing |
05:45.39 | oxi | and Hoblink JWT |
05:46.46 | oxi | coldfusion, opendb, railo are also nice and run nicely in a webapp |
05:46.56 | oxi | the derbynet servlet is nice too |
05:51.17 | oxi | further emacs -> generate html is cool for syntax coloring code for the web |
05:54.19 | oxi | ofcourse: DWR, JRuby, Jython, GWT, Grails is nice java webapp dev stuff |
05:56.13 | oxi | the atlassian palette is cool but non-free |
06:00.04 | *** join/#tomcat |MHSL| (i=mhsl@cm9.eta6.maxonline.com.sg) |
06:00.58 | jasonb | oxi: back. |
06:01.08 | oxi | your solution works perfectly :-) |
06:01.15 | jasonb | oxi: Very cool! |
06:02.39 | jasonb | oxi: 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.00 | jasonb | Also, some may not exist anymore. :) |
06:03.03 | oxi | nice, I'd like to have a look at it |
06:03.06 | *** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9) |
06:03.18 | jasonb | Then, I have a separate list of Tomcat-related OSS technologies.. which is much longer. |
06:03.33 | oxi | hmm, that would also interest me :-) |
06:04.17 | oxi | I haven't got my stuff sorted, it's in random text files all over the place |
06:04.35 | oxi | I'm working on setting up xwiki for all this |
06:05.19 | jasonb | oxi: http://pastebin.org/58323 |
06:05.50 | jasonb | Actually, GWT belongs in the other list.. heh |
06:05.51 | oxi | awesome, thanks jasonb!!! |
06:05.58 | jasonb | oxi: You're welcome. Enjoy. |
06:06.02 | oxi | you were very helpfull today |
06:06.21 | oxi | yeah, the reason I included GWT is that it's quite good for rpc-ing |
06:06.41 | oxi | so it works great as a war webapp for remoting |
06:07.16 | oxi | ofcourse 99% of it is the clientside runtime emulation :-) |
06:07.34 | jasonb | oxi: I'm glad I could help. :) |
06:07.57 | oxi | me 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.05 | args | hi @ll |
13:31.13 | args | i have a problem |
13:31.18 | args | german ?= |
13:31.40 | args | can 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.15 | pdilip | Hi.. I am a newbie. I am running Tomcat 4.1.27, Java 1.4.2 in Linux |
13:49.49 | pdilip | I have my tomcat running at a remote location and would like to access some of my servlet files using the tomcat manager |
13:50.17 | pdilip | how 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.10 | pdilip | Buzz ! |
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.41 | amirite | hmmm |
14:46.45 | amirite | anyone 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.38 | tomd | Hello 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.38 | tomd | Can this be savely ignored? Tomcat is running fine (I think).. Tomcat has been installed with yum. |
20:02.07 | tomd | Sorry, here is the link http://pastebin.com/d6949b4fe |
20:14.10 | tomd | and 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.30 | Plushy | Hey guys, I'm using Apache Tomcat/6.0-snapshot, JVM 1.5.0_20-b02 and Windows XP x86 5.1 |
21:35.18 | Plushy | But 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.59 | oxi | what could be the reason that newly created hosts in the host-manager app are not persisted? |
21:36.35 | oxi | Plushy: yep, there should be a catalina.out |
21:37.41 | oxi | Plushy: stick with the release and compare to your shnapshot |
21:37.47 | oxi | -h |
21:38.43 | Plushy | I don't really have a clue about all that, I just installed tomcat for xampp |
21:39.24 | oxi | ah, that's a different thing |
21:39.37 | oxi | the xampp version is highly modified |
21:39.43 | oxi | I have not clue about that |
21:40.01 | oxi | I'd still download the release and compare it to your xampp version |
21:40.17 | oxi | the release surely creates a catalina.out |
21:44.25 | Plushy | okay, thanks, I guess I'll look in #xampp then |
21:45.35 | oxi | yeah, I guess those people know more what's going on |
22:17.14 | jasonb | oxi: 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.21 | oxi | jasonb: ah, I thought something is wrongly configured |
22:19.37 | oxi | jasonb: what's the host-manager good for then? |
22:20.08 | jasonb | oxi: 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.15 | oxi | I chose to add the manager and that also didn't work |
22:20.46 | oxi | well, but newly created hosts are fully functional? |
22:21.12 | oxi | what could be the reason the manager isn't working? |
22:25.14 | jasonb | Newly created hosts, created by the host manager, are indeed fully functional. |
22:25.41 | jasonb | How 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.40 | oxi | jasonb: no idea |
22:37.12 | oxi | jasbonb: 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.51 | moradan | how can I restart tomcat6 on ubuntu 9.10 (I need to activate the edits to the /etc/tomcat6/tomcat-users.xml |
22:46.17 | oxi | moaradan: maybe /etc/init.d/tomcat6 restart |
22:46.38 | oxi | or kill pid :-) |
22:48.50 | *** join/#tomcat dvinchi (n=dvinchi_@148.245.35.9) |
22:51.02 | moradan | thanaks 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) |