00:02.12 | hubick | waoh... my virtual hosts are seriously gimped up somehow |
00:06.46 | hubick | hmm...the ETags are the same between virtual hosts, I wonder if it's mixing up the cached gziped content between hosts |
00:12.34 | *** join/#tomcat another (n=another@ppp-62-245-208-174.dynamic.mnet-online.de) |
00:12.43 | *** join/#tomcat another (n=another@ppp-62-245-208-174.dynamic.mnet-online.de) |
00:35.27 | *** join/#tomcat kousuke (n=kikuchi@221x251x19x21.ap221.ftth.ucom.ne.jp) |
00:38.42 | *** join/#tomcat WarDog5 (n=chatzill@dslb-088-068-179-000.pools.arcor-ip.net) |
00:40.25 | WarDog5 | hi, working with tomcat 6.0.13 with java 1.5 on linux (kernel 2.6...) (doesnt really matter), my question is: did anyone get the @PersistenceContext annotation (the injection of the EM or EMF) of JPA working with tomcat 6 + hibernate? |
00:44.24 | hubick | accessing the tomcat manager from a virtual host in which it wasn't defined actually caused tomcat to swap the entire virtual hosts around to the opposite IP's momentarily (it magically reverted a minute or so later) |
00:44.52 | *** join/#tomcat Internat (n=nf@dsl-58-6-125-95.qld.westnet.com.au) |
00:45.55 | hubick | gah, ok, so maybe it wasn't the manager that did this, cuz they just magically swapped again. how how how *bangs head on desk* |
01:45.15 | *** join/#tomcat steve__ (n=steve@c-98-198-199-37.hsd1.tx.comcast.net) |
01:52.06 | hubick | Does anyone know what could be causing a repeat requests to a single IP running tomcat to alternate returning the content between the two virtual hosts provided on that machine? aka, why do I get content supposed to be hosted by the IP I'm not using, and why does it alternate randomly between the right/wrong content? |
02:24.27 | *** join/#tomcat odin_ (n=dlm@host86-128-80-64.range86-128.btcentralplus.com) |
02:30.41 | hubick | Gah, I sorted it out. "if (connector.getUseIPVHosts()) {serverName = req.localName();" not req.getLocalAddr as one would expect! What a horribly named property. |
03:03.06 | *** join/#tomcat acidjnk (i=acid@p5B3F3C1F.dip0.t-ipconnect.de) |
04:12.01 | *** join/#tomcat wltjr (n=wltjr@gentoo/developer/wltjr) |
04:34.11 | *** join/#tomcat acidjnk (i=acid@p5B3F3780.dip0.t-ipconnect.de) |
04:48.32 | *** join/#tomcat rtmex (n=salomon@189.130.198.157) |
04:49.32 | rtmex | Hi, I copyed all jar files of xmlrpc library to my $JAVA_HOME/jre/lib and I'm still getting the package org.apache.xmlrpc does not exist |
04:49.58 | rtmex | I also tryied with javac -cp /$JAVA_HOME/jre/lib/xmlrpc-client-3.1.jar |
04:50.06 | rtmex | Any idea please? |
05:08.14 | *** join/#tomcat npm (n=npm@cpe-75-83-171-237.socal.res.rr.com) |
05:12.31 | *** join/#tomcat acidjnk (i=acid@p5B3F3541.dip0.t-ipconnect.de) |
05:13.38 | rtmex | ??? |
05:14.30 | npm | <PROTECTED> |
05:14.57 | npm | does anybody know what happened to xwiki.org ? or does anybody have a copy of the source-code so i can deploy the latest version?? |
05:15.02 | rtmex | npm:I think they are all sleeping :) |
05:15.24 | npm | everywhere, someone is sleeping |
05:15.42 | rtmex | I mean all the people signed in this channel now |
05:16.13 | npm | they're awake at ##java |
05:16.34 | rtmex | But I can login there |
05:16.36 | rtmex | :( |
05:16.45 | rtmex | I get You need to be identified to join that channel |
05:20.58 | npm | <PROTECTED> |
05:21.07 | npm | oops |
05:22.07 | npm | <PROTECTED> |
05:22.44 | npm | i mean : "/msg NickServ IDENTIFY PASSWORD |
05:22.46 | npm | " |
05:23.01 | rtmex | ok, Thanks |
05:23.10 | *** part/#tomcat rtmex (n=salomon@189.130.198.157) |
07:35.23 | *** join/#tomcat TBBle_ (n=tbble@202.55.155.45) |
07:42.05 | *** join/#tomcat FCron (n=FCron@infodiz.tyumen.ru) |
07:51.22 | *** part/#tomcat FCron (n=FCron@infodiz.tyumen.ru) |
08:08.36 | *** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl) |
09:03.11 | *** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl) |
09:09.22 | *** join/#tomcat AlexWorX (n=alexworx@port-87-234-51-210.static.qsc.de) |
09:53.48 | *** join/#tomcat FormicAcid (n=ant@251.9.39-62.rev.gaoland.net) |
10:04.07 | FormicAcid | Hi, I'm trying to figure out why I get BAD PACKET SIGNATURE 30309 (see stack: http://pastebin.com/m203659fc). The setup is a apache mod_jk 1.2.25 and Jonas 4.8.5 (which use tomcat but not sure which version). So far on the net I only saw unreplied thread :( |
10:05.04 | FormicAcid | This is occuring on high load on methods that usually don't have this issue |
10:20.23 | *** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se) |
11:40.57 | *** join/#tomcat devel1 (n=zander@cons.jamalsoft.com) |
11:41.00 | devel1 | Hello! |
11:41.23 | devel1 | What is the best way to connect httpd and tomcat ? modjk or modproxy ? |
12:56.25 | ries | Hey Guys, where can I find sample init.d scripts for tomcat 6? I am currently using a hand crafted script that calls 'catalina.sh start' |
12:56.35 | ries | but then tomcat6 stops again after some time |
12:57.30 | *** join/#tomcat kjkoster5489 (n=kjkoster@office.telecom.tno.nl) |
13:00.36 | *** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net) |
13:14.36 | *** join/#tomcat isa (n=ighigiu@adsl-70-128-155-154.dsl.snantx.sbcglobal.net) |
13:20.40 | *** join/#tomcat randrewj (n=raj-user@user-160u617.cable.mindspring.com) |
13:45.43 | *** join/#tomcat memic (n=memic@timeoutd.org) |
13:46.45 | memic | is it possible to activate dirlisting for just for certain dirs? |
13:49.15 | deebo | look into 'DefaultServlet' |
13:49.50 | deebo | you can naturaly just map it to the folders you want it to work in |
13:50.54 | memic | hm |
13:52.03 | randrewj | memic: in conf/web.xml |
13:53.26 | *** part/#tomcat TBBle_ (n=tbble@202.55.155.45) |
13:57.05 | memic | randrewj just for certain dirs too? |
14:02.46 | *** join/#tomcat PirateLeChuck (n=A@c3amulet.gotadsl.co.uk) |
14:25.51 | FormicAcid | <FormicAcid> Hi, I'm trying to figure out why I get BAD PACKET SIGNATURE 30309 (see stack: http://pastebin.com/m203659fc). The setup is a apache mod_jk 1.2.25 and Jonas 4.8.5 (which use tomcat but not sure which version). So far on the net I only saw unreplied thread :( |
14:58.02 | randrewj | memic: you can configure the DefaultServlet to respond to whichever URIS you want |
14:59.32 | randrewj | FormicAcid: does your setup work some of the time? |
15:30.26 | *** join/#tomcat Kassec (n=Kassec@ves78-2-82-232-204-142.fbx.proxad.net) |
15:55.24 | ekimus_ | Hmm if I have n tomcats on n physical boxes. What would I like to do to get something like: restart all tomcats, but make sure that n/2 of the tomcats are up at all times. Is some kind of cluster config my only option? |
15:57.57 | *** join/#tomcat Tomasso (n=papito@201.216.202.89) |
15:58.25 | Kassec | ekimus_: how would you restart them ? |
15:59.46 | Tomasso | i changed tomcat version to the latest, when I try to use an app that was running in the old tomcat i get "org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null' Why is this db connection issue happening? |
16:00.21 | ekimus_ | Kassec: either thru a shell script on each node. where the node then communicates with the other nodes to make sure it is allowed to restart or by.. I have no idea what else could be good |
16:00.54 | ekimus_ | Kassec: it doesn't need to restart immediately but it should be reliable that not all servers are down at the same time |
16:01.13 | Kassec | ekimus_: good luck ;-) |
16:01.14 | Kassec | for a 10 servers cluster, we just have 'sleep X' in our shell ... |
16:01.19 | Kassec | overall, it works |
16:01.50 | Kassec | we know we need up to five minutes to reload a node, we sleep 90 seconds between each ... |
16:02.02 | ekimus_ | hmm so you just used a heuristic that is somewhat sure to keep some servers up |
16:03.05 | Kassec | "overall it works" is enough for us in this case, because we're always having a look at what's happening |
16:03.07 | Kassec | or you could have a look at ant's command to get status information do the computation yourself |
16:03.48 | Kassec | it depends on how much time you can afford to spend on it ;) |
16:04.19 | *** join/#tomcat kab (n=abarrera@148.229.1.11) |
16:04.43 | ekimus_ | Kassec: ah so you do something like: restart_servers.sh on a "master" and then just manually keep an eye on restarting (in the simplest form) |
16:06.22 | ekimus_ | hmm I guess I could do that, I could just prepend a sleep to the restart script and if it goes whacko there's enough time kill it so that not all the nodes go down |
16:07.15 | Kassec | this solution costs you 30 seconds, this is the real advantage of it ;) |
16:08.22 | ekimus_ | guess I'll go that way. in any case I can just wget a testfile from all remote nodes and if some condition isn't met the restart isn't done. That should be enough, in that case human interaction is required anyway |
16:12.03 | Kassec | you could wait for that condition to be met between each restart, meaning you only restart one node at a time ... |
16:12.27 | Kassec | that would ensure you never have all nodes down |
16:12.46 | Kassec | but could be quite slow to refresh a whole cluster of several nodes with a slow start application ! |
16:12.53 | *** join/#tomcat sene (n=sene@unaffiliated/sene) |
16:15.36 | sene | I need set the tomcat with apache2 using mod_jk, only that it needs context. Type http://localhost/ijij, must be only http://localhost |
16:17.24 | *** join/#tomcat ries (n=ries@200.110.78.134) |
16:17.46 | ekimus_ | sene: http://localhost/ijij is the tomcat? |
16:18.16 | ekimus_ | sene: ah sorry i thought mod_proxy, I don't use mod_jk |
16:19.43 | sene | ekimus_, I am using the server to respond both on port 8080 as using mod_jk to make a direct connection. Ijij would be the name of my application. |
16:20.52 | ekimus_ | Kassec: with mod_proxy you can do "RewriteRule ^/(.*) http://tomcatserver/ijij/$1 [P]" to make apache server your app in the root level |
16:21.16 | ekimus_ | Kassec: you can of course use the ajp protocol too if you use apache2 |
16:22.19 | sene | ekimus_, There is no other solution without using mod_proxy? Since I have a rather complex application that can not use this method. So are digital signatures. |
16:23.41 | ekimus_ | sene: what do you mean by digital signatures? |
16:23.57 | ekimus_ | what has ssl to do with that? |
16:25.23 | sene | ekimus_, |
16:25.24 | sene | The application is not being developed for me. So there is a complex here from 3 institutions involved in development. So the solution to the mod_proxy had already presented and tested and not satisfied because of ssl. |
16:27.40 | ekimus_ | as I said I don't use mod_jk so can't help you there. I'm on mod_proxy especially since apache2.2 where I found that it can do ajp:// too |
16:29.50 | sene | ekimus_, Thank .. But the problem is taking the whole door and context of the url of the application without using mod_proxy. Http://localhost now this accessing the application. |
16:47.27 | *** join/#tomcat jwisher (n=jwisher@87-194-191-78.bethere.co.uk) |
16:49.03 | jwisher | hello... is it possible to share a session between aliases of a virtual host? I would like to setup different domain names for different spoken-languages such as en.domain ar.domain nl.domain etc etc, but I don't want the user to have to reloggin if they change their language. |
16:52.00 | *** join/#tomcat dibri (n=gvtjonga@obelix.its-s.tudelft.nl) |
16:53.01 | dibri | anyone understand webservices with jax-ws? I made on object in mypackage but netbeans seem to think there is a mypackage.client andworks if I type that, but the .toString method is a complete differnt one :S |
16:54.30 | BULLE | dibri: your question dont make that much sense to me |
16:55.04 | BULLE | dibri: and, i have no clue on how netbeans do things, my best bet is to read the jee tutorial, its pretty explanatory |
16:56.37 | *** join/#tomcat melter (n=Melter@dyn082.morrill-116.ndsu.NoDak.edu) |
16:56.38 | dibri | BULLE: es, I'm not sure how to explain this, it seems netbeans created an output class with the same name, but with no implementatio |
16:57.23 | dibri | result.tostring() nl.tudelft.itss.obelix.gstock.client.GStockDescription@c50d24 <_ :S |
16:57.51 | dibri | I have a GStockDescription i package l.tudelft.itss.obelix.gstock with a toString implementation |
16:58.47 | BULLE | dibri: i would guess its some generated client code that netbeans generates for you ? |
16:59.55 | isa | hi, i have a different question: can anyone here help with InitialContext configuration? --specifically are the objects set up in this manner persisted across multiple sessions? |
17:00.04 | isa | my info is: tomcat version: apache-tomcat-5.5.25 / java version: 1.5.0_13 / OS: Windows XP Professional Version 2002, service pack 2 |
17:09.57 | dibri | BULLE: I would guess that too, but why without copying the implementation :S |
17:16.56 | dibri | bah it's annoying I'm getting the correct info in Java from my webservice, but it appears the jsp client doesn't seem to like it :S |
17:17.53 | *** join/#tomcat mindux (n=mindux@189-47-131-57.dsl.telesp.net.br) |
17:18.00 | *** part/#tomcat mindux (n=mindux@189-47-131-57.dsl.telesp.net.br) |
17:22.11 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
17:27.08 | *** join/#tomcat planta (n=planta@200.175.196.236.adsl.gvt.net.br) |
17:27.20 | *** part/#tomcat planta (n=planta@200.175.196.236.adsl.gvt.net.br) |
17:28.25 | dibri | whoo hoo woks :) |
18:04.22 | *** join/#tomcat fnord (n=fnord@24.151.90.116) |
18:04.52 | fnord | afternoon everyone |
18:06.10 | jasonb | hi fnord. |
18:06.15 | fnord | i'm working with 5.5.25, jvm 1.6.0_03-b05, on Windows, and I keep getting: |
18:06.16 | fnord | !!!!!!!!! Does this exist? C:\Program Files\Apache Software Foundation\Tomcat 5.5\webapps\aim\WEB-INF/app_config.xml |
18:06.34 | fnord | is there something I need to do do deal with windows paths instead of unix paths? |
18:06.38 | jasonb | That's pretty weird. |
18:06.41 | fnord | the file definitely exists in that location |
18:07.06 | jasonb | What I would suggest is: do not install Tomcat in a path that contains spaces, even if the installer wants to put it there. |
18:07.19 | fnord | i can see that |
18:07.35 | Kassec | c:\tomcat is fine ;) |
18:08.00 | fnord | that's what i've always done, but the client insisted on a specific installer |
18:08.18 | fnord | the \ to /path thing looks odd to me too, is that normal? |
18:08.23 | jasonb | fnord: You can still use the installer, and choose the installation path. |
18:08.30 | fnord | true |
18:08.39 | jasonb | fnord: On Windows, yes, that's probably normal, sadly. |
18:09.01 | fnord | i remember having to use \\ in config files to deal with escape characters and whatnot |
18:20.04 | fnord | yup, reinstalling to c:\tomcat took care of it |
18:20.11 | jasonb | Yup. :) |
18:20.24 | fnord | seems weird that the default install path would fail that easily though. |
18:28.20 | jasonb | Shows how much the committers are using what they've given the public. :) |
18:28.24 | jasonb | (on Windows) |
18:34.20 | fnord | heh |
18:34.30 | fnord | why bother if you don't absolutely have to? |
18:44.09 | fnord | heheheheh: |
18:44.11 | fnord | java.lang.NoClassDefFoundError: com/sun/tools/javac/Main |
18:45.30 | fnord | I am King of Breaking Things today |
18:46.50 | *** join/#tomcat ries (n=ries@200.110.78.134) |
18:46.51 | jasonb | Well, you _are_ using Windows.. so.. |
18:46.57 | andyt | fnord - windows uses a messed up filesystem. that said, i've used the default installer and installed fine to the blahblah/apache foundation/blah directory. |
18:48.34 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
18:49.13 | a4akba | hi all |
18:53.22 | *** join/#tomcat gregor_k (n=a@p54A19789.dip0.t-ipconnect.de) |
19:00.19 | *** join/#tomcat qupada (n=qupada@125-236-129-1.broadband-telecom.global-gateway.net.nz) |
19:10.37 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:19.09 | *** join/#tomcat kjkoster5489 (n=kjkoster@kjkoster.org) |
19:19.11 | *** join/#tomcat vinse (n=vinse_@208.253.223.146) |
19:21.54 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:24.51 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:27.28 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:31.00 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:33.16 | *** join/#tomcat eripme (i=empire@null.routed.org) |
19:33.54 | eripme | hey I'm having an issue with the follwing errors reporting out of the event viewer in windows 2003; The description for Event ID ( 4 ) in Source ( Apache Jakarta Connector2 ) cannot be found. |
19:33.59 | eripme | The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. |
19:34.02 | eripme | You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details. |
19:34.06 | eripme | The following information is part of the event: [jk_isapi_plugin.c (308)]: In HttpFilterProc Virtual Host redirection of www.jawhite.com : 80 |
19:34.09 | eripme | I also get this one; [jk_isapi_plugin.c (420)]: HttpFilterProc [/images/Company Profile.pdf] is not a servlet url |
19:34.13 | eripme | . |
19:34.16 | eripme | No idea ... anyone can assist? |
19:34.52 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:45.14 | melter | does anyone know of some detailed documentation for getting cgi apps running in tomcat 6? |
19:49.58 | pfn | tomcat is weak on documentation |
20:01.40 | randrewj | <PROTECTED> |
20:10.53 | melter | randrewj: i already did that, but i'm getting a "privileged" error message |
20:11.23 | melter | from my research, i'm guessing i need to put privileged=true somewhere, but i don't know where |
20:12.34 | melter | are there any official apache forums? |
20:14.00 | randrewj | melter: searchable archives: http://marc.info/?l=tomcat-user&r=1&w=2 http://marc.info/?l=tomcat-dev&r=1&w=2 |
20:14.41 | randrewj | melter: what is the error and what are you trying to do that causes it? |
20:15.19 | melter | I'm trying to get MapServer and TileCache running |
20:15.32 | melter | they run in 5.0 just fine, but everything is different in 6.0 |
20:15.40 | eripme | I'm dying for a resolution for my issue |
20:15.43 | eripme | I've never seen it before :\ |
20:16.14 | melter | Caused by: java.lang.SecurityException: Servlet of class org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded by this web application |
20:16.24 | randrewj | ah |
20:16.40 | *** join/#tomcat a4akb1 (n=a4akb@62.215.156.215) |
20:17.15 | melter | i assume i need a context.html somewhere with privileged="true", but i can't seem to find any information about doing this |
20:17.59 | melter | * context.xml |
20:18.44 | randrewj | http://tomcat.apache.org/tomcat-6.0-doc/config/context.html |
20:18.53 | *** join/#tomcat tomgato (n=tomgato@200.119.3.204) |
20:19.11 | *** join/#tomcat prgrmr (n=prgrmr@bzq-79-182-133-252.red.bezeqint.net) |
20:19.48 | randrewj | melter: you might be depending on autodeploy behavior for your context. I'd recommend specifying your context in server.xml, but there are those who will tell you that is wrong. : ) |
20:19.56 | *** join/#tomcat a4akb1 (n=a4akb@62.215.156.215) |
20:20.47 | a4akb1 | jasonb: hi |
20:25.00 | melter | i created META-INF/context.xml with docBase="tilecache" and privileged="true" and i still get the same error |
20:31.23 | tomgato | Hi people.. I need a little bit of help running (apache 2.2.6 tomcat 5.5 with mod-jk on dedian testing) I configure all of them.. looks fine.. .jsp files are working but servlets are not... I wrote a simple servlet, and configure the CLASSPATH and it works.. so servlets are "fine". My problem is, Im not a java developer but I migrate some webapp's from an old version to my new configuration (apache-tomcat-modjk), can somebody plz give an idea about odt |
20:31.24 | tomgato | s (ok, pdf or doc), or a tip about what kind of thing should I have (configured) to be able to migrate. |
20:36.25 | randrewj | melter: heheh. maybe you've got a $CATALINA_HOME/conf/[enginename]/[hostname]/[some_context].xml file. if you're using autodeploy maybe your app's docBase should be outside of appBase. |
20:37.29 | randrewj | tomgato: how old is old? |
20:38.16 | tomgato | ...I knew it. |
20:38.43 | tomgato | "old".. I guess |
20:40.04 | *** join/#tomcat prgrmr (n=prgrmr@bzq-79-182-133-252.red.bezeqint.net) |
20:40.07 | tomgato | randrewj, I know.. looks like an stupid question.. and probably Im not thinking "clear".. and sure enough my english sucks! |
20:40.34 | tomgato | But I need help. |
20:42.43 | tomgato | Ok, Have u seen that movie where the american guy stays at the door of the monastery.. |
20:43.08 | tomgato | .. im gonna stay here till I can fix it. |
20:45.02 | tomgato | ..like stones wait for the river... or like dd hope that Canonica broke! |
20:47.14 | melter | tomgato: do you have a RELEASE-NOTES file? |
20:56.52 | tomgato | melter, no.. I dont. |
20:57.40 | randrewj | tomgato: sometimes if you hit an invalid uri, tomcat will tell you it's version in the error |
21:01.32 | melter | tomgato: do you have any identifying files in the root directory? |
21:18.09 | *** join/#tomcat khelll (n=khelll@91.186.226.59) |
21:18.13 | khelll | hello |
21:18.34 | khelll | anybody here? |
21:19.13 | khelll | am trying to run https and followed the instructions in the doc, but it didnt work! |
21:20.27 | *** join/#tomcat Administrator (n=chatzill@91.186.226.59) |
21:20.38 | Administrator | hello |
21:21.45 | melter | khelll: read the topic |
21:23.42 | khelll | tc: 6.0.14 \jdk1.6.0_03 winxp profesional sp2 |
21:26.27 | jasonb | khelll: Step by step verbose documentation on that is in our new book Tomcat: The Definitive Guide, 2nd Edition (O'Reilly), covering Tomcat 6. |
21:26.55 | khelll | where is that |
21:27.21 | melter | jasonb: you work for o'reilly? |
21:27.47 | jasonb | melter: I'm an O'Reilly author. I guess that qualifies. |
21:28.07 | jasonb | melter: I don't work full time for them if that's what you're asking. :) |
21:28.55 | melter | i was talking to a colleague about o'reilly at lunch today |
21:29.05 | khelll | heeeeeeeeeeelp |
21:29.10 | melter | i was wondering what ever happened to safari? |
21:29.17 | jasonb | It's still there. |
21:29.26 | jasonb | safari.oreilly.com. |
21:29.27 | melter | it seemed like an idea ahead of its time |
21:29.34 | jasonb | It is.. still. |
21:30.02 | melter | that just goes to proquest, which is a big mess |
21:30.53 | khelll | anyone to help or what? |
21:30.55 | jasonb | hmm, I don't know what proquest is, but when I go to safari.oreilly.com, I see O'Reilly's Safari web site. |
21:31.44 | melter | that's odd, i get forwarded to http://proquest.safaribooksonline.com/ |
21:32.00 | jasonb | Hmm.. I don't. |
21:32.17 | melter | let me try another browser... |
21:32.32 | melter | now i'm intrigued |
21:35.08 | melter | jasonb: i tried a couple other browsers and they do the same thing |
21:35.22 | randrewj | melter: you may have an institutional subscription |
21:35.47 | melter | yeah, it tries to log me in, and i can't log out |
21:35.52 | melter | is there a way around it? |
21:36.09 | melter | this proquest thing is a disaster |
21:36.30 | jasonb | Set up a web proxy on your home machine and then use that to browse the web. :) |
21:36.30 | randrewj | khelll: "it didn't work" is not a sufficient problem description |
21:36.42 | melter | jasonb: :) |
21:37.01 | khelll | Unable to connect, Firefox can't establish a connection to the server at localhost:8443. |
21:37.29 | melter | khelll: what do the log files say? |
21:37.34 | randrewj | melter: it may be a disaster, but it's likely to give you more content free of charge than no-subscription. |
21:38.00 | randrewj | melter: if you can proxy through an IP outside of your institution, that would work |
21:39.21 | melter | all the free c#/.net books in the world are of no use to me |
21:39.42 | melter | at the very least, it should make it perfectly clear that safari != proquest |
21:39.59 | randrewj | khelll: that suggests either tomcat not running, tomcat not listening on port 8443, or firewall preventing browser connecting to port 8443 |
21:40.14 | melter | going to safari.oreilly.com should give me an option |
21:40.54 | melter | sorry for being off-topic :) |
21:40.56 | khelll | tomcat is running cause i can run another project... i configured it to listen to 8443 in the server.xml |
21:41.05 | khelll | and my firewall is turned off |
21:41.41 | randrewj | khelll: is tomcat successfully listening on any other port? |
21:41.48 | khelll | how shall i know |
21:42.19 | randrewj | khelll: you will know by the content of server.xml and by having tested |
21:42.53 | randrewj | khelll: a default tomcat server.xml will have a http listener on 8080 |
21:43.07 | khelll | <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true" maxThreads="150" scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"/> |
21:43.55 | khelll | and i restarted the server after configuring it ... |
21:44.13 | khelll | i worked on tomcat before 2 years... when i was at uni... |
21:44.26 | khelll | and the funny thing is that i worked on ssl... |
21:44.27 | *** join/#tomcat IIVQ (n=IIVQ@wikipedia/Iivq) |
21:44.41 | IIVQ | hello |
21:45.59 | IIVQ | Question. I'm new to tomcat. Experienced in "plain" java. I need to learn the basic principles to *understand* (not necessarily write) Tomcat / JSP in a few hours. Where do I look? |
21:48.35 | andyt | worked with servlets? |
21:49.13 | *** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu) |
21:49.52 | IIVQ | andyt: nope |
21:55.30 | khelll | i used netstat |
21:55.46 | khelll | to watch the ports but i didnt find anyone used by tomcat |
22:02.53 | pucko | IIVQ: I would suggest you go to your closest bookstore and pick up this: http://www.oreilly.com/catalog/9780596101060/ |
22:03.20 | pucko | it's is a very good investment if you're serious about learning tomcat/jsp/servlets |
22:03.27 | IIVQ | pucko: I wish my closest bookstore would a) be open at 11:05 PM and b) carry such books :-) |
22:03.33 | IIVQ | but thx, I'll try tomorrow |
22:04.04 | pucko | trust me, it'll save you hours and hours of work. |
22:04.04 | IIVQ | pucko: that book works for beginners as well? |
22:04.07 | IIVQ | ok |
22:05.10 | pucko | yes. it goes from installing & using tomcat and upwards with servlets/jsp and suck |
22:05.14 | pucko | such |
22:05.31 | IIVQ | ok |
22:05.34 | IIVQ | thx |
22:05.51 | pucko | if you want to go deeper in JSP though I'd suggest a book by Hans Bergsten |
22:06.17 | pucko | http://www.oreilly.com/catalog/jserverpages3/index.html |
22:06.35 | pucko | it's a bit old but covers pretty much everything you need to know |
22:10.16 | IIVQ | no, I want the start first |
22:10.39 | isa | pucko: u got suggestions for books on Liferay? |
22:10.46 | isa | i'm using LR w/Tomcat |
22:11.14 | isa | & the documentation online is not so good, nor do they have an irc channel :( |
22:11.27 | pucko | no idea about liferay |
22:11.35 | pucko | haven't even heard abvout it :) |
22:12.07 | isa | it's an open source portal dev tool, we're using it for app dev & tomcat as the server, thx anyway |
22:12.25 | BULLE | pucko: i like your nick |
22:13.19 | jasonb | heh! |
22:13.20 | isa | pucko: does the book u recommend talk about how to store objects in memory at server start-up? |
22:14.02 | jasonb | isa: For learning webapp development, I suggest Java Servlet Programming by Jason Hunter (O'Reilly) |
22:14.27 | jasonb | pucko: Yeah, we really need a good wiki, don't we? |
22:15.09 | BULLE | i wouldnt mind a good simple wiki either, running on java |
22:15.41 | pucko | I like mediawiki, too bad it runs on php only |
22:15.44 | isa | huh, what i need to do is webapp dev? thought it was more server configuration.. |
22:16.17 | jasonb | isa: It depends on what you mean. Your request is very unspecific. |
22:17.27 | isa | well, i have a class that pulls data from a db & stores that data, so i would like for that object to be created when tomcat starts so my Liferay web app can use it |
22:17.37 | isa | that make more sense? |
22:17.51 | jasonb | isa: Yes, and that's webapp-specific, really. |
22:18.35 | isa | wow, i've been way off base then :S i need to go back & look at liferay's documenation, not tomcat (sigh...) |
22:19.37 | isa | at least i have some direction now so thx to both of u! :) |
22:21.07 | jasonb | You're welcome. |
22:21.26 | jasonb | Don't blame us if we steer you into a tree. :) |
22:24.59 | isa | no, no -i take responsibility for my actions :D |
22:26.03 | IIVQ | pucko: thx |
22:26.27 | IIVQ | pucko: if you're porting mediawiki to jsp, why not also make it a more generic wiki? |
22:27.00 | IIVQ | Wikimedia will not soon switch to JSP. Many people out there running their own mediawiki's would like some more generic features |
22:27.09 | IIVQ | such as a little more user control |
22:27.17 | IIVQ | and linkable images :-P |
22:28.16 | IIVQ | I've been working with mediawiki as a company wiki for over a year now and I've come to hate it more and more. It rules for wikipedia, but not for small or big business wikis. (too bloated for the first, to simple for the latter) |
22:37.15 | IIVQ | pucko: is it very useful as a beginner to buy the tomcat and the JSP books (from o'reilly) or will tomcat cover JSP in enough detail? |
22:40.07 | pucko | I don't think the guide covers JSTL and such (which IMO is very cool stuff) |
22:41.18 | pfn | jstl isn't *very* cool stuff |
22:41.29 | pfn | but it's certainly necessary to not write spaghetti garbage in jsp |
22:42.58 | pucko | that's the reason I think jstl is so cool. no more garbage in the jsps! ^^ |
22:50.14 | jasonb | That in itself is quite cool. |
22:52.46 | jasonb | I think the JSTL project should be renamed, and/or merged into the JSP JSR. It always had a bad project name, IMO. |
22:54.58 | IIVQ | what's JSTL? |
22:55.36 | jasonb | Exactly! |
23:02.12 | *** join/#tomcat chowells79_ (n=c_wraith@c-24-21-109-55.hsd1.mn.comcast.net) |
23:06.50 | chowells79_ | Using Tomcat 6.0.14, Debian 4.0, sun jdk 1.6.0_03. Is there any way to have a servlet run on /, but not every subpath? <url-pattern>/</url-pattern> doesn't seem to do that. |
23:07.55 | pfn | no, set your <welcome-page> to point to /yourServlet |
23:08.05 | pfn | and map your servlet to /yourServlet |
23:09.18 | chowells79_ | Oh. Sounds obvious. wonder why I didn't try it. >_> |
23:09.26 | chowells79_ | thanks. :) |
23:09.27 | pfn | it's not that obvious, imo |
23:13.44 | chowells79_ | Hmmm. Seems to not be working as I'd hope. |
23:15.19 | chowells79_ | relevant chunk of web.xml http://pastebin.com/d674fec08 |
23:15.34 | chowells79_ | /home works correctly |
23:15.40 | chowells79_ | but I get an error message at / |
23:21.14 | pfn | what's the error |
23:21.45 | chowells79_ | 404 |
23:21.49 | chowells79_ | http://commie.pwrsrc.net/ |
23:21.57 | chowells79_ | and http://commie.pwrsrc.net/home for the working case |
23:22.03 | chowells79_ | Yes, it's dumb. Just a test app. :) |
23:22.33 | pfn | I wonder why that is... |
23:22.39 | pfn | google welcome-file servlet I suppose |
23:23.03 | chowells79_ | I remember seeing a lot of complaints about it on the tomcat-user mailing list. |
23:23.17 | chowells79_ | I guess it was never resolved. |
23:24.04 | jasonb | This has always been one of the weakness of the Java Servlet specification: you can't elegantly map a single servlet to just "/" for some reason. |
23:24.26 | pfn | sounds like you need a workaround |
23:24.34 | pfn | map your servlet to /index.html |
23:24.39 | pfn | and create index.html as an empty file |
23:24.43 | pfn | set your welcome-file to /index.html |
23:24.49 | pfn | I know that's worked on websphere |
23:24.57 | pfn | (tried something similar a long time ago on websphere 6) |
23:25.37 | chowells79_ | Hmm. I'm seeing suggestions to just set up an index.jsp with only a <jsp:forward> tag in it. |
23:25.41 | chowells79_ | I guess that'll work. |
23:27.39 | jasonb | That's really similar to configuring a welcome file though. |
23:27.58 | pfn | bah, apple passed on me--at least this group |
23:30.23 | chowells79_ | well, the jsp:forward thing works. It's really silly, but it works. |