00:32.04 | *** part/#tomcat {eng}bar4ka (~chatzilla@200216116148.user.veloxzone.com.br) |
00:34.51 | *** join/#tomcat ohsix_ (ohsix@bc111222.bendcable.com) |
00:47.08 | *** join/#tomcat aiyaiyairc (aleuaooouu@c-67-161-177-74.client.comcast.net) |
01:14.17 | *** join/#tomcat pucko_ (andreas@h47n2fls31o809.telia.com) |
01:39.08 | *** join/#tomcat pucko (andreas@h47n2fls31o809.telia.com) |
02:21.33 | *** join/#tomcat kurtas (~chatzilla@h0030bdc853e3.ne.client2.attbi.com) |
02:23.54 | kurtas | hi all, I'm getting NoClassDefFoundError for ...ByteChunk, and I thought I'd ask about it here before filing a bug; is this the right place? |
02:31.25 | *** part/#tomcat kurtas (~chatzilla@h0030bdc853e3.ne.client2.attbi.com) |
02:31.59 | *** join/#tomcat simplebird (~lind@user-12ldaq6.cable.mindspring.com) |
02:39.28 | *** join/#tomcat MarkT (~Mark@markt.user) |
04:26.32 | *** part/#tomcat ohsix (ohsix@bc111222.bendcable.com) |
04:26.46 | *** join/#tomcat ohsix (ohsix@bc111222.bendcable.com) |
04:36.20 | *** join/#tomcat dustbunnyman (~sable@CPE000625a6a206-CM013349900582.cpe.net.cable.rogers.com) |
04:38.42 | dustbunnyman | can I run tomcat behind apache? (apache as a reverse proxy)? If so are there any good mod_rewrite instructions? I can't get webdav to work since linked content keeps wanting to appear as appearing as /webdav/ so the rewrite on the proxy fails |
04:40.35 | dustbunnyman | I am running an old tomcat because I am on FreeBSD to which java is not friendly :-| |
05:04.18 | *** join/#tomcat warthog9 (~warthog9@12-216-157-202.client.mchsi.com) |
05:17.25 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
05:30.06 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-080.lsanca1.elnk.dsl.genuity.net) |
06:16.18 | *** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se) |
06:20.12 | *** join/#tomcat kool (~kamal@61.247.233.207) |
06:20.49 | kool | hello |
06:25.31 | puff | Hello. |
06:39.16 | kool | hey |
06:39.24 | kool | anybdy there |
06:55.40 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) |
06:56.35 | loquace | lo$ |
06:57.56 | kool | i m facing problem with servlet sessions in tomcat.. can anybdy help |
07:01.52 | kool | whenever i restart tomcat server, all session gets destroyed... any idea |
07:44.45 | *** join/#tomcat linuxfreck (~freck@pD9EB5460.dip0.t-ipconnect.de) |
07:57.15 | *** join/#tomcat JackStorm (~none@ip68-11-89-95.no.no.cox.net) |
08:27.52 | *** join/#tomcat nrz (~nrz@202.79.36.170) |
08:28.44 | nrz | jbos |
08:28.49 | nrz | jboss |
08:39.10 | *** join/#tomcat philihp (~user@rdu163-96-081.nc.rr.com) |
08:40.09 | kool | any ideas bout servlets |
08:41.15 | kool | any ideas bout servlets |
08:47.25 | *** join/#tomcat deeeed (~dd@m85.net195-132-129.noos.fr) |
08:47.26 | deeeed | hey |
09:17.23 | *** join/#tomcat JackStorm (~none@ip68-11-89-95.no.no.cox.net) [NETSPLIT VICTIM] |
09:17.23 | *** join/#tomcat valmont (~chrisholl@valmont.bronze.supporter.pdpc) [NETSPLIT VICTIM] |
09:17.24 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-2168.l5.c1.dsl.pol.co.uk) [NETSPLIT VICTIM] |
09:17.24 | *** join/#tomcat KtK- (~krijnhoet@ktk.xs4all.nl) [NETSPLIT VICTIM] |
09:17.24 | *** join/#tomcat frno (~frno@eject.mogul.se) [NETSPLIT VICTIM] |
09:17.24 | *** join/#tomcat enginerd (enginerd@69.50.182.186) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat kool (~kamal@61.247.233.207) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat ohsix (ohsix@bc111222.bendcable.com) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat spencer (tspencer@adara.cs.pdx.edu) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat tang^ (~tang@S010600104b05711f.cg.shawcable.net) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat crem (~crem@epmsa005.epam.com) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat Sir_Fawnpug (~raving@cpe-24-242-126-156.sport.res.rr.com) [NETSPLIT VICTIM] |
09:17.56 | *** join/#tomcat Raboo (rabi@212.37.0.75) [NETSPLIT VICTIM] |
09:20.33 | kool | any ideas bout servlets |
09:21.02 | *** join/#tomcat deeeed (~dd@m85.net195-132-129.noos.fr) [NETSPLIT VICTIM] |
09:22.42 | *** join/#tomcat eidolon (~dbs@seawall.homeport.org) [NETSPLIT VICTIM] |
09:22.42 | *** join/#tomcat FaeLLe (~FaeLLe@join.me.fuckmicrosoft.info) [NETSPLIT VICTIM] |
09:23.53 | *** join/#tomcat memic (~memic@chicago089.server4free.de) [NETSPLIT VICTIM] |
09:31.51 | *** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net) |
09:38.50 | *** join/#tomcat cutmasta (~cutmasta@62.225.134.190) |
09:39.01 | cutmasta | hi |
09:58.17 | *** join/#tomcat mdiz (user@68-185-93-131.ca.charter.com) |
09:59.13 | mdiz | i have tomcat5+apache2+mod_jk working if I let tomcat handle all parts of a request for a webapp, but when I try to get apache to serve the images for the webapp, things fall apart |
09:59.36 | mdiz | apache gives me a 404 because it can't find the images |
09:59.44 | mdiz | so I symlink to the webapps/images dir |
09:59.53 | mdiz | and then the jsp is all screwed up |
10:00.06 | mdiz | any ideas/tips? |
10:01.43 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) |
10:02.37 | loquace | re |
10:03.44 | memic | why do u want apache server the images? |
10:03.59 | memic | serv |
10:04.00 | mdiz | its faster i think |
10:04.04 | memic | no |
10:04.06 | memic | not really |
10:04.08 | mdiz | well |
10:04.14 | mdiz | I tried having tomcat do everything |
10:04.17 | mdiz | and it was so slow |
10:04.20 | mdiz | using mod_jk |
10:04.30 | mdiz | but if I went to 8080 |
10:04.33 | mdiz | it was blazing fast |
10:04.36 | memic | tried mod_proxy? |
10:04.42 | mdiz | so I assume the image transfer over mod_jk was slow |
10:04.47 | mdiz | no |
10:05.06 | mdiz | perhaps I should? |
10:05.31 | memic | do u have referer check @ tomcat? |
10:05.46 | mdiz | i dont understand |
10:06.22 | memic | mod_proxy eats your referer means where u come from |
10:06.41 | memic | for tomcat everyting comes from your host |
10:06.53 | memic | mod_jk keeps orgiginal host |
10:07.08 | mdiz | i see - apache and tomcat are on the same machine |
10:07.21 | mdiz | so I don't think this is an issue |
10:07.30 | memic | so try mod_proxy |
10:07.40 | mdiz | i guess I will |
10:07.44 | mdiz | i am a little dissapointed |
10:07.50 | mdiz | as I wanted to use the load balancing |
10:07.56 | mdiz | of mod_jk |
10:08.06 | mdiz | but I'm sure it can be hacked with mod_proxy |
10:08.21 | memic | never tried but tell me if u know :O) |
10:08.57 | kool | i am facing problems with tomcat running as service |
10:09.16 | kool | sessions get destroyed everytime i restart the server |
10:09.21 | kool | any ideas... |
10:09.51 | kool | things work fine when i run tomcat from command line |
10:10.05 | kool | is there any setting in tomcat |
10:10.32 | kool | to specify that session should not be destroyed on restart |
10:15.21 | deeeed | how can i keep save the result of a query in a database ? |
10:15.34 | deeeed | for example each time i click on a link |
10:15.43 | deeeed | the data in the session are destroyed |
10:15.49 | deeeed | i would like to keep them alive |
10:25.17 | *** join/#tomcat zaba (~m@wwsx24.win-screen.uni-wuerzburg.de) |
10:27.20 | zaba | hi, could anyone explain it to me: while working offline i get this error: http://132.187.22.12/java/exception. but everything works till tomcat stops [even this line image = Toolkit.getDefaultToolkit().getImage(orgImageName);]. whereas while working online the presented line throws classnot found exception. when i use getDefaultToolkit() instead it kills tomcat: roots-, now it says Mar 22, 2005 11:12:20 AM org.apache.coyote.http11.Http11Prot |
10:27.20 | zaba | ocol pause INFO: Pausing Coyote HTTP/1.1 on http-8080 and hangs up |
10:27.29 | zaba | any clue? |
10:29.08 | kool | i had problems with toolkit class.. but that was when i was running code on server machine |
10:29.39 | zaba | hmm, thats the case |
10:29.43 | kool | where we dont have any display device... |
10:30.30 | kool | actully it seems that toolkit class looks for display driver and if it doesnot find that it throws error |
10:30.32 | zaba | yeah, i got this problem also, installed Xvfb |
10:30.59 | zaba | and the problem w/ display is not nore there |
10:31.19 | zaba | well, by me it coulnd connect to display 0 |
10:31.24 | *** part/#tomcat mdiz (user@68-185-93-131.ca.charter.com) |
10:32.00 | zaba | so started Xvfb on dosplay 1 and set enviroment var DISPLAY for tomcat to 1 |
10:32.15 | zaba | *display |
10:34.52 | kool | sound like better solution... i ended up changing code for image handling |
10:35.20 | zaba | just thinking about it as well |
10:38.26 | zaba | kool: btw, the display problem could be also solved w/ using System.setProperty("java.awt.headless", "ture"); [at best in init()] or setting env variable CATALINA_OPTS tp "-Djava.awt.headless=true" [but it didnt worked for me] |
10:40.41 | kool | I remember that i had tried this... but it didn't worked for me as well :-) |
10:40.59 | zaba | hmm, and the class works while running it from command line |
10:41.33 | zaba | fsck |
10:41.34 | kool | ye.. it crashes only when tomcat is running as service |
10:42.00 | zaba | oh |
10:42.34 | kool | i am facing another problem with tomcat running as service... |
10:42.51 | kool | whenever i restart server all session gets destroyed |
10:43.08 | kool | but when using commandline .. it works fine |
10:43.18 | kool | any ideas... |
10:43.48 | kool | are there any settings in tomcat .. |
10:44.02 | zaba | well,im nOOb, so im afraid i cant help :( |
10:46.05 | kool | nevermind ... i will look for some workaround |
10:48.01 | zaba | kool: could you tell me [in few words how have you replaced Tookit]? |
10:49.11 | kool | I dont remeber it exactly... but i think i used Image and ImageIO classes to handle images in java |
10:49.32 | kool | actully i was using toolkit only for handlking images |
10:49.45 | kool | so it was no much problem |
10:49.59 | zaba | yea, i need scaling them... |
10:50.26 | kool | ha.. then it is the same problem |
10:50.33 | deeeed | what's the best way to store a resultset in a javabean ? |
10:50.34 | zaba | exactly |
10:50.53 | zaba | brb |
11:16.58 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) |
11:17.53 | loquace | re |
11:39.00 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
11:49.12 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
11:52.58 | *** join/#tomcat louis_ (~chatzilla@203.200.142.18) |
12:15.08 | *** join/#tomcat linuxfreck (~freck@pD9EB5460.dip0.t-ipconnect.de) |
12:39.59 | *** join/#tomcat gnozil (~gnozil-ma@211.100.11.220) |
12:40.16 | gnozil | hello, |
12:40.29 | linuxfreck | hi gnozil |
12:40.50 | gnozil | I run apache 2.0.52 with mod_jk2 connect to jboss 3.2.6 with tomcat 5.0.28 |
12:41.22 | gnozil | during our load test, we found tomcat ajp13 interface stops responding soon |
12:41.51 | gnozil | any access to apache will get a "internal server error" from tomcat |
12:42.42 | gnozil | from jboss jmx-console page, we found jk2_threadPool properties are very strange |
12:42.55 | gnozil | the currentBusyThread is -1 |
12:42.59 | linuxfreck | well |
12:43.08 | linuxfreck | mod_jk2 is deprecated anyway |
12:43.28 | linuxfreck | use the tomcat built-in webserver if you can |
12:43.40 | linuxfreck | or mod_proxy if you can't |
12:44.00 | gnozil | if we use built-in webserver, it seems ok, |
12:44.15 | linuxfreck | only use mod_jk if you need its features |
12:45.13 | gnozil | as I think it is a tomcat's problem, do you think mod_jk or mod_proxy will work? |
12:46.34 | linuxfreck | mod_proxy uses the tomcat webserver internally |
12:46.45 | linuxfreck | mod_jk does use ajp though |
12:47.18 | gnozil | we want to apache host the static resources such as images, applets, etc. |
12:48.03 | linuxfreck | gnozil: that won't give you much better performance though |
12:50.21 | gnozil | in additional, we promise customer we will provide a scalable system, if we must shift to a cluster structure, a front end web server is must have |
12:51.43 | gnozil | please give me recommend choose among mod_jk, mod_jk2, mod_proxy or mod-webapp |
12:51.56 | linuxfreck | try mod_proxy, then mod_jk |
12:52.36 | gnozil | and I want to know, is there any difference in tomcat side if we use this proxy module? |
12:52.53 | noodl | gnozil: also, if the httpd guys ever get their act together, you'll be able to do balancing with mod_proxy in the next major version. |
12:53.05 | gnozil | if we choose mod_proxy, how about squid compare with apache? |
12:53.33 | linuxfreck | gnozil: tomcat needs to know the proxy servers hostname |
12:53.39 | linuxfreck | you can set that somewhere in server.xml |
12:54.07 | linuxfreck | I don't have any figures on mod_proxy vs squid though |
12:54.25 | noodl | linuxfreck: do you run tomcat on port 80 and if so, how? |
12:54.50 | linuxfreck | I don't |
12:54.57 | linuxfreck | using mod_proxy myself |
12:55.11 | noodl | cool. thanks. |
12:55.11 | linuxfreck | since I need to support php stuff |
12:55.36 | noodl | I was just wondering about using a second ip for tomcat though. |
12:56.00 | gnozil | maybe my above question is not clear, i mean whether I use mod_proxy or mod_jk, tomcat will use AJP13 interface to talk with apache. But I wonder if AJP13 contains bug or is not stable now |
12:56.27 | linuxfreck | gnozil: mod_proxy doesn't use ajp13, but it is considered stable |
12:57.29 | gnozil | i c , mod_proxy will forward all requests to tomcat, how do I seperate static resouces from dynamic servlet and jsp? |
12:57.59 | memic | gnozil tomcat can handle static stuff also |
12:58.33 | gnozil | do you think tomcat can do well same as apache for static resources? |
12:58.40 | memic | sure. |
12:59.32 | gnozil | but, |
13:00.10 | linuxfreck | gnozil: it can do almost as well, see http://jakarta.apache.org/tomcat/articles/performance.pdf |
13:00.28 | linuxfreck | that was the wrong one |
13:00.33 | linuxfreck | http://jakarta.apache.org/tomcat/articles/benchmark_summary.pdf |
13:00.36 | linuxfreck | that one |
13:00.53 | gnozil | I don't know how to implement load balance or cluster if dose not use a front end web server |
13:01.22 | gnozil | linuxfreck, thanks for the link! |
13:02.31 | linuxfreck | you can use standard web server load balancing software, or tcp nat based solutions etc... |
13:03.40 | gnozil | open/free solution or commercial one? |
13:06.57 | *** join/#tomcat gnozil (~gnozil-ma@211.100.11.220) |
13:07.45 | gnozil | hi, linuxfreck, I lost connection just now as I use ssh tunnel through proxy |
13:08.54 | linuxfreck | I'm planning on doing an evaluation of possible load balancing solutions for tomcat, I'm not far yet though |
13:09.08 | linuxfreck | some days ago sombody was here using balancer.sf.net |
13:09.30 | gnozil | thanks, i will take a look too |
13:11.31 | gnozil | I read the PDF file you just recommended, but the conclustion is in two sides: standalone tomcat for normal situation |
13:12.15 | gnozil | apache+tomcat for high performance and availability requirements |
13:12.39 | *** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-080.lsanca1.elnk.dsl.genuity.net) [NETSPLIT VICTIM] |
13:12.52 | *** join/#tomcat enginerd (enginerd@69.50.182.186) [NETSPLIT VICTIM] |
13:13.31 | gnozil | I seek through tomcat 5 bug database, and can not find related ajp13 bugs |
13:13.58 | *** part/#tomcat kool (~kamal@61.247.233.207) |
13:14.19 | gnozil | I want to know, if I switch to mod_jk, if tomcat still use ajp13 and related thread pool? |
13:14.58 | linuxfreck | mod_jk does use ajp13 |
13:16.05 | gnozil | thank you, linuxfreck, till now, I will try follow methods: 1) use mod_jk instead of mod_jk2 |
13:16.37 | gnozil | 2) use mod_proxy with apache or squid backforward proxy |
13:17.48 | gnozil | 3) try implement the loadbanlance with jboss's cluster without any frontend web server |
13:18.16 | gnozil | any suggestion? |
13:19.22 | linuxfreck | gnozil: sounds ok |
13:19.38 | gnozil | TO ALL: any body re-compile successfully JBoss Profiler under HPUX 11i? |
13:20.03 | linuxfreck | noodl: sorry, the project was called "balance" not balancer |
13:21.24 | noodl | k :) |
13:24.48 | *** join/#tomcat frno (~frno@eject.mogul.se) [NETSPLIT VICTIM] |
13:26.55 | *** join/#tomcat gnozil (~gnozil-ma@211.100.11.220) |
13:27.50 | gnozil | hi, linuxfreck, do you have experience for ajp13 jni channel of jboss-tomcat? |
13:30.08 | sopel | hmm.. |
13:32.51 | sopel | i just noticed that tomcat eats quiet a fuckton of memory. |
13:32.56 | sopel | for it's own purposes. |
13:34.36 | gnozil | how about socket channel? this is the typical configuration appear in many reference documents |
13:37.23 | gnozil | dose tomcat provide a mbean for releasing stalled ajp13 connection? |
13:38.37 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-2168.l5.c1.dsl.pol.co.uk) |
13:58.46 | *** join/#tomcat zaba (~m@wwsx24.win-screen.uni-wuerzburg.de) |
14:03.22 | *** join/#tomcat pucko (andreas@h47n2fls31o809.telia.com) |
14:05.48 | *** join/#tomcat pucko (andreas@h47n2fls31o809.telia.com) |
14:14.37 | *** join/#tomcat Alexys (~Alexys@201.245.131.106) |
14:27.02 | *** join/#tomcat a4akb (bbwpleaser@as13-230.qualitynet.net) |
14:59.40 | *** join/#tomcat luuk (~Luuk@ip503cbd76.speed.planet.nl) |
15:18.52 | *** join/#tomcat JackStorm (~none@ip68-11-89-95.no.no.cox.net) |
15:20.24 | *** join/#tomcat KtK- (~krijnhoet@ktk.xs4all.nl) |
15:25.12 | *** join/#tomcat warthog9 (~warthog9@165.206.219.145) |
15:29.02 | puff | Morning. |
15:33.53 | linuxfreck | hi puff |
16:10.09 | *** join/#tomcat frosch_ (~m@wwsx24.win-screen.uni-wuerzburg.de) |
16:28.58 | deeeed | hmm in a javabean in order to stock the result a sql query |
16:29.10 | deeeed | i store them in an ArrayList of ArrayList |
16:29.22 | deeeed | but when i want to access the second ArrayList |
16:29.26 | deeeed | i get an error |
16:29.43 | deeeed | found : java.lang.Object |
16:29.43 | deeeed | required: java.util.ArrayList |
16:31.38 | deeeed | how can i cast an Object to an ArrayList ? |
16:31.59 | linuxfreck | ArrayList foo = (ArrayList) myObject |
16:32.13 | linuxfreck | if you're using java 1.5 look into generics instead |
16:32.23 | linuxfreck | or templates or how they call it in java |
16:32.52 | deeed | i have a nullpointerexception |
16:33.22 | linuxfreck | then you make some other mistake |
16:33.41 | linuxfreck | and it's not at the cast, since you can cast a null pointer to anything |
16:36.23 | deeed | linuxfreck, http://rafb.net/paste/results/DU1Fl677.html |
16:36.27 | deeed | that is the code i use |
16:36.35 | deeed | i think it's correct |
16:38.40 | deeed | any idea ? |
16:39.12 | linuxfreck | where does the exception occur? |
16:39.31 | *** join/#tomcat joered (~chatter@81-208-74-182.fastres.net) |
16:40.20 | deeed | tmp = (ArrayList)stock.get(1) ; |
16:41.18 | linuxfreck | then db.getStock() probably returns null |
16:42.08 | deeed | if i do out.println(stock) |
16:42.12 | deeed | there are some results |
16:43.16 | linuxfreck | hmm |
16:43.32 | linuxfreck | maybe stock.get(1) returns the null |
16:44.08 | deeed | no |
16:44.39 | deeed | out.println(stock.get(1)) --> [00011691, CO20040400104, SRT 57500/ ATELIERS VENABLOIS, JULIETTE maxi repique, ATELIERS VENABLOIS, P2935, 220, null, En cours d'impressio, semaine 47, null, V] |
16:45.44 | linuxfreck | then that line can't cause the nullpointerexception |
16:46.23 | eidolon | hey folks, have any of you used apache Axis? I need to tack on webservices to a couple servlets i wrote so i can call them from a Swing app... |
16:46.31 | eidolon | i'd like to do this in Plain Ol Tomcat :) |
16:46.57 | linuxfreck | well we're running axis, but all I know is that it likes to eat your ram :/ |
16:47.44 | eidolon | mmm. tasty ram. *burp* |
16:48.02 | eidolon | any suggestions for other soap proxyies to use? |
16:48.06 | eidolon | er, proxies. those things. |
17:02.36 | *** join/#tomcat scorp (~sco@81-202-248-9.user.ono.com) |
17:02.56 | *** join/#tomcat bigred (~big@nat-vlan0201.sat4.rackspace.com) |
17:03.03 | *** join/#tomcat Azer (greg@11-55-178-69.gci.net) |
17:03.14 | scorp | hi, is there someone who can help me ? |
17:03.17 | *** part/#tomcat Azer (greg@11-55-178-69.gci.net) |
17:04.09 | linuxfreck | scorp: hi. that probably depends on your question :) |
17:04.18 | scorp | lilalinux, thanks :) |
17:04.27 | scorp | I am using Apache Tomcat/4.1.30 and I cant find where to put my website, wich directory.. |
17:04.38 | scorp | can you help me ? |
17:05.28 | linuxfreck | they usually are in the webapps/ directory |
17:06.02 | scorp | and where is webapps directory ? where i can find it ? |
17:06.28 | linuxfreck | in the directory of the tomcat installation |
17:06.50 | bigred | Is it possible to define all of my Resources in a web.xml instead of having to set them up on my Context? |
17:07.36 | linuxfreck | bigred: which resources do you mean? |
17:08.13 | bigred | linuxfreck, i have stuff like my db pooling info setup in my <Context> |
17:08.33 | linuxfreck | ok |
17:08.43 | bigred | and I want to know if I can put all of this into my web.xml instead of having to set it up in my context also |
17:08.51 | linuxfreck | this is where that stuff belongs conceptionally |
17:09.24 | linuxfreck | so if your environment changes, all you have to adjust is the context, and you can leave your .war archive alone |
17:09.43 | linuxfreck | you could hack the stuff into the .war archive, but I don't know an easy way |
17:10.01 | bigred | linuxfreck, but it does not allow me to unzip a fresh tomcat install, drop in my war and run |
17:10.16 | bigred | because i need to configure my context |
17:10.41 | linuxfreck | true |
17:10.58 | lilalinux | linuxfreck: I got so many highlights for linuxfreck by now, I stopped counting :) |
17:11.20 | linuxfreck | yea, life sucks :) |
17:11.30 | lilalinux | I think about setting up an autoresponder :) |
17:12.13 | linuxfreck | heh |
17:13.25 | scorp | linuxfreck, i put my webpage where you have told me (webapps) and doesnt work.. do you have any other ideea ? |
17:13.51 | scorp | in webapps I have ROOT directory, do I have to put there my webpage ? |
17:14.23 | linuxfreck | scorp: you can either do that, or define a context in your server.xml |
17:15.03 | scorp | and where i can find the server.xml ? |
17:15.47 | linuxfreck | it's in the conf/ dir of tomcat |
17:16.04 | scorp | oh, i find it |
17:16.23 | scorp | but, my php running and my php files doesnt work, do you have any ideea ? |
17:16.45 | linuxfreck | tomcat doesn't do php |
17:17.25 | linuxfreck | you may be able to make it work using cgi, but you may want to use the apache web server instead |
17:24.01 | *** join/#tomcat FreemaniaX (~Freemania@ip67-153-106-58.z106-153-67.customer.algx.net) |
17:25.29 | scorp | using cgi ???? |
17:25.56 | scorp | it is to complicate for me |
17:26.03 | scorp | with simple apache it works ? |
17:26.10 | linuxfreck | why do you want to run tomcat anyway? |
17:26.24 | eidolon | scorp, if you have php apps also, you probably want to have an apache server as the front end, not using tomcat's internal webserver. |
17:26.29 | eidolon | use apache plus mod_jk |
17:26.40 | eidolon | tomcat's purpose is running servlets. |
17:26.53 | eidolon | if youire not running servlets, you shouldn't be using tomcat :) |
17:27.00 | scorp | ok, so do i have to download apache simple, right ? |
17:27.17 | eidolon | it depends, i'll reiterate waht linuxfreck said. waht are you trying to do? |
17:28.04 | scorp | my website is in php |
17:28.09 | scorp | and i want to run it lol |
17:28.24 | linuxfreck | you don't want tomcat then |
17:28.34 | scorp | so, i have to download simple apache, right ? |
17:28.37 | linuxfreck | since tomcat is for java servlets |
17:28.43 | scorp | i seee |
17:28.46 | linuxfreck | yes, and php |
17:29.07 | scorp | and if i download simple apache and runing it, it will be some conflicts if it runs tomcat and this other apache ? |
17:29.42 | linuxfreck | you can run tomcat and apache in parallel, even in the default configuration |
17:29.48 | scorp | i see |
17:30.04 | scorp | and when i have donwloaded apache and instaled, where i have to put my webpage ? |
17:30.10 | scorp | in wich directory ? do you know ? |
17:31.09 | linuxfreck | wherever the DocumentRoot directive of apache is set to |
17:31.26 | linuxfreck | this is going quite offtopic now though |
17:31.35 | scorp | ok man, thank you very much |
17:32.23 | linuxfreck | np |
17:32.46 | eidolon | fwee. |
17:32.55 | linuxfreck | n00bs... |
17:32.58 | eidolon | quite. |
17:33.41 | eidolon | dunno. is that common? |
17:33.57 | eidolon | (goal today: get tomcat connected up with netbeans and import my projects into it, and get Axis working with tomcat) |
17:34.32 | linuxfreck | we had another php guy here yesterday |
17:34.37 | linuxfreck | have fun :) |
17:35.12 | eidolon | eh. working on convincing a Windows shop not to port to .NET. |
17:35.19 | eidolon | that means they need pretty interfaces and easy dev environments. |
17:44.46 | *** join/#tomcat noxexplorer (Mirouf@d83-177-224-161.cust.tele2.fr) |
17:44.54 | noxexplorer | hello everybody |
17:46.03 | eidolon | 'lo. |
17:46.44 | noxexplorer | I am a beginner in Web Apps and i have a problem with Tomcat with Windows |
17:47.55 | *** join/#tomcat alx_ (~alx@213-140-17-111.fastres.net) |
17:49.13 | eidolon | noxexplorer: a hint. State the problem, don't wait for folks to draw it out of you :) |
17:50.09 | noxexplorer | the service starts but when i type localhost:8080 in my browser nothing happens |
17:50.36 | eidolon | nothing happens, or you get a warning or an error? |
17:51.02 | noxexplorer | the page is inaccessible |
17:52.12 | noxexplorer | and the service seems tushutdown automatically |
17:53.14 | eidolon | then it's not starting :) |
17:53.34 | eidolon | under windows, i'm not sure where the tomcat error log is. |
17:53.34 | eidolon | but you need to see why tomcat is failing. |
17:53.57 | noxexplorer | but if the port is busy it would'nt start no ? |
17:54.55 | eidolon | sure, but that's only if something else is on the port. |
17:54.59 | eidolon | do you have something on it? |
17:55.08 | noxexplorer | oki i see its because i HAVE JDK 1.4.2 |
17:55.35 | eidolon | that shouldn't make a difference. |
17:55.58 | noxexplorer | but |
17:56.06 | linuxfreck | tomcat 5.5 doesn't work with 1.4 out of the box |
17:56.13 | noxexplorer | i havve the message |
17:56.14 | noxexplorer | This release of Apache Tomcat was packaged to run on J2SE 5.0 or later. It can be run on earlier JVMs by downloading and installing a compatibility package from the Apache Tomcat binary download page. |
17:56.24 | eidolon | oh. |
17:56.49 | eidolon | dbs@hunter:~$ java -version |
17:56.49 | eidolon | java version "1.4.2_07" |
17:56.59 | noxexplorer | lol |
17:57.44 | noxexplorer | thx a lot |
18:03.43 | *** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
18:04.07 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
18:20.13 | *** join/#tomcat majic (~majic@24-49-51-247.chvlva.adelphia.net) |
18:20.59 | eidolon | netbeans is asking about 2 different webapp structures. Java Blueprints and Jakarta... i'm assuming i want to use jakarta, since i'm using tomcat, yes? |
18:21.02 | eidolon | or does it really matter? |
18:21.39 | linuxfreck | imo tomcat should work with both |
18:22.12 | eidolon | mmokee... but we -may- be deploying to some other persons servlet environment, like jboss or websphere or some such... |
18:23.08 | linuxfreck | well I don't know netbeans, but I think those are only 2 different ways how your directories are organized |
18:23.19 | eidolon | *nod* |
18:23.42 | linuxfreck | and both ways should work with any container that implements the servlet specs |
18:23.46 | eidolon | k |
18:24.08 | linuxfreck | you may want to try both and see which one you like better |
18:24.49 | eidolon | i'd just like to get it working first :) i have been using eclipse, but i have to get a stronger handle on moving webapps around, and my employers are going to be using netbeans. so the goal is to move the entire project into netbeans, really get a grip on directory structures and deployment, then document it. |
18:25.30 | linuxfreck | k |
18:31.42 | eidolon | <-- schmart. |
18:45.39 | eidolon | when configuring a Context, there's 2 settings. theres docBase and workDir ... when netbeans 'built' this sample app, it actually generated a war file... but looking at the generated trees, i see in my project a dir called 'web' with subdirs META-INF and WEB-INF |
18:45.54 | eidolon | is that META-INF and WEB-INF directory my docBase or my workDir? |
18:47.15 | linuxfreck | neither |
18:47.25 | linuxfreck | the parent dir of web-inf is your workDir |
18:47.30 | linuxfreck | oops |
18:47.39 | linuxfreck | <PROTECTED> |
18:47.43 | eidolon | heh. okay. |
18:47.45 | eidolon | *changes* |
18:47.47 | eidolon | what is workDir? |
18:47.59 | linuxfreck | the workDir is where tomcat stores compiled jsp pages and other temporary files |
18:48.16 | eidolon | okay, i could probably leave the undefined, and it'll pick something? |
18:48.22 | linuxfreck | yes |
18:48.23 | eidolon | k |
18:48.47 | linuxfreck | it will be in $CATALINA_HOME/work/<context name> then |
18:48.51 | eidolon | INFO: Missing application web.xml, using defaults only StandardEngine[Catalina].StandardHost[localhost].StandardContext[/Arete] |
18:48.52 | eidolon | hmm. |
18:48.59 | eidolon | it -didnt- do that before. |
18:49.20 | eidolon | dbs@hunter:~/src/arete$ find . -name web.xml -print |
18:49.20 | eidolon | ./Arete/web/WEB-INF/web.xml |
18:49.20 | eidolon | ./Arete/build/web/WEB-INF/web.xml |
18:49.38 | eidolon | right now i have docRoot set to .../Arete/ |
18:50.16 | linuxfreck | ./Arete/build/web/ is your workdir |
18:50.33 | linuxfreck | since it's the the parent dir of WEB-INF |
18:50.46 | eidolon | hm. |
18:50.52 | eidolon | yeah, but i have 2 web-inf's. |
18:51.30 | linuxfreck | bah |
18:51.38 | eidolon | :) |
18:51.38 | linuxfreck | s/workdir/docbase/ |
18:51.42 | eidolon | oh oh. |
18:51.54 | linuxfreck | the workdir is the one for temp files ... |
18:53.21 | eidolon | <PROTECTED> |
18:53.21 | eidolon | <PROTECTED> |
18:53.21 | eidolon | <PROTECTED> |
18:53.55 | eidolon | dbs@hunter:~/src/arete/Arete/build/web$ ls -l |
18:53.55 | eidolon | total 12 |
18:53.55 | eidolon | -rw-r--r-- 1 dbs dbs 996 2005-03-22 13:40 index.jsp |
18:53.55 | eidolon | drwxr-xr-x 2 dbs dbs 4096 2005-03-22 13:40 META-INF |
18:53.55 | eidolon | drwxr-xr-x 3 dbs dbs 4096 2005-03-22 13:40 WEB-INF |
18:54.02 | linuxfreck | hmm |
18:54.04 | eidolon | looks right. |
18:54.14 | linuxfreck | does accessing index.jsp directly work? |
18:54.39 | eidolon | oops oops |
18:54.59 | eidolon | sorry, i still had localhost:8080/Arete/web/index.jsp in the browser. |
18:55.05 | eidolon | now it's working :) |
18:55.07 | linuxfreck | :) |
18:55.33 | eidolon | dynamic compiling is working too. just made a change in netbeans and it changed immediately. |
18:56.31 | linuxfreck | have fun :) |
18:56.34 | eidolon | eh. it's not that big. |
18:56.39 | eidolon | next i need to learn is how to deploy war files. |
18:56.46 | eidolon | since i'll need to deploy axis to this. |
18:57.35 | linuxfreck | you copy them into the webapps folder |
18:57.36 | linuxfreck | done |
18:57.45 | eidolon | what webapps folder? :) |
18:57.54 | eidolon | owait |
18:57.56 | eidolon | that webapps folder. |
18:57.59 | eidolon | ~/tomcat/webapps/ |
18:58.00 | linuxfreck | $CATALINA_HOME/webapps :) |
18:58.08 | eidolon | yea yea. hey, i'm slow today :) |
18:58.27 | linuxfreck | heh |
18:58.50 | linuxfreck | that method works if autodeploy is enabled and you don't have to configure the context |
18:59.26 | eidolon | actually, next thing i need to do is noodle web.xml for the servlets i'm importing. one thing at a time :) |
18:59.51 | eidolon | HOLY SHIT |
18:59.59 | eidolon | netbeans has an xml context editor for web.xml |
19:00.02 | eidolon | d00d. |
19:02.16 | eidolon | it's pretty sexy. |
19:02.22 | eidolon | i haven't edited it yet, but stay tuned :) |
19:02.27 | jasonb | heh. |
19:02.38 | jasonb | You've got a servlet 2.3 web.xml? |
19:02.54 | jasonb | (with a DTD instead of schema?) |
19:03.32 | eidolon | i just shut down netbeans so i can import my servlets. stand by. |
19:04.34 | *** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se) |
19:07.52 | eidolon | aww. and when you wizard to 'add a new servlet', it automatically updates web.xml for you. how sweet! |
19:11.51 | majic | eidolon, which version of NB's are you using? I fell in love with 4.1beta |
19:12.12 | eidolon | 4.1b |
19:12.13 | eidolon | yeah |
19:15.24 | *** part/#tomcat JackStorm (~none@ip68-11-89-95.no.no.cox.net) |
19:16.39 | *** join/#tomcat bigred (~big@nat-vlan0201.sat4.rackspace.com) |
19:16.57 | *** join/#tomcat deeeed (~dd@m85.net195-132-129.noos.fr) |
19:20.52 | eidolon | AIEEE! |
19:20.54 | eidolon | netbeans NPE'ed! |
19:21.44 | linuxfreck | npe? |
19:22.07 | eidolon | null pointer exception |
19:22.41 | eidolon | restart seems to have fixed it, but ow. |
19:22.42 | linuxfreck | ah ok |
19:23.58 | jasonb | eidolon: Well, it *is* a beta. :) |
19:24.13 | eidolon | heh |
19:41.47 | *** join/#tomcat bastin (~bastin@201.137.177.137) |
19:47.39 | eidolon | hah. all jsps and servlets working after editing in netbeans. excelllllllent. |
19:47.45 | eidolon | import complete! time to hit the shower. |
19:48.20 | jasonb | Very cool. |
19:48.33 | jasonb | Sounds like Gosling's been hard at work. |
20:04.11 | puff | Gosling? |
20:13.18 | eidolon | gosling's the architect of java. |
20:18.49 | *** join/#tomcat Sou|cutter (~soul@soulcutter.user) |
20:40.30 | *** join/#tomcat ohsix (ohsix@bc111222.bendcable.com) |
20:41.58 | *** join/#tomcat puff (puff@66.45.34.102) |
20:56.57 | *** join/#tomcat valmont (~chrisholl@ppp-69-237-24-52.dsl.irvnca.pacbell.net) |
21:04.49 | *** join/#tomcat valmont_ (~chrisholl@germany.pspdev.pas.earthlink.net) |
21:47.51 | *** join/#tomcat Kasica (~Kasica@bex141.neoplus.adsl.tpnet.pl) |
21:47.54 | Kasica | hi |
21:48.01 | Kasica | i have added user with role : standard |
21:48.07 | Kasica | and he can not list host servlets |
21:48.14 | Kasica | <PROTECTED> |
21:48.20 | Kasica | how to allow him to list em |
21:49.18 | Kasica | anyone |
21:57.28 | Kasica | here |
22:04.21 | linuxfreck | there are 38 other people here :) but they either sleep or don't know the answer... |
22:05.33 | Sou|cutter | I think the user has to be a member of the 'manager' role to use the manager app |
22:06.03 | Kasica | Sou|cutter but adding it, that person will have access to /manager/html |
22:06.07 | Kasica | and other runned |
22:06.08 | Kasica | SERVLETS |
22:06.23 | Kasica | others serlvets ran by others users |
22:07.39 | Sou|cutter | Kasica: Indeed. I don't know that the manager has a more complicated authentication scheme than that, though. Basically you might want to customize the manager app to allow for the limited use you want |
22:08.02 | Kasica | Sou|cutter how can I do that |
22:08.05 | Sou|cutter | Don't take my word as gospel, though |
22:10.13 | Kasica | where can i limit that permissions ? adding a specifed role in tomcat-users.xml? |
22:12.19 | loquace | ++ |
22:13.52 | Kasica | hm |
22:14.22 | *** join/#tomcat warthog9 (~warthog9@165.206.219.155) |
22:22.11 | *** join/#tomcat zaba (~m@wwsx24.win-screen.uni-wuerzburg.de) |
22:37.50 | Kasica | zaba kum kum |
22:39.01 | zaba | cze Kasica |
22:39.03 | zaba | ;) |
22:39.50 | Kasica | do you speak polish , zaba? |
22:40.14 | zaba | Kasica, yeah, its my native lang. |
22:40.47 | Kasica | great |
22:40.54 | Kasica | zaba znasz sie cos na tomcacie? |
22:41.11 | Kasica | mam problem z manager/list , dostaje perm denied , rola standard dla usera |
22:41.33 | zaba | Kasica, mam z nim tylko problemy. ale generalnie jestem noob :/ |
22:41.55 | eidolon | while this is all fascinating, since only you two can possibly benefit from anything you say, can you take it to msgs? |
22:42.08 | Kasica | yeah, sorry |
22:42.18 | Kasica | hehe |
22:42.51 | Kasica | eidolon i have problems with /manager/list , i got perm denied on user who has standard role |
22:42.54 | Kasica | any clues? |
22:43.09 | Kasica | he can install ,uninstall servlet |
22:43.13 | Kasica | but can not list em |
22:44.30 | eidolon | nope, never done it. |
22:44.51 | Kasica | k |
22:54.48 | deeeed | what's the best lib to generate a pdf from java ? |
23:09.15 | *** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
23:09.39 | *** join/#tomcat Ramonskie (~ramonskie@ramonskie.xs4all.nl) |
23:09.59 | Ramonskie | how can i install tomcat under debian sarge |
23:12.35 | deeeed | apt-get install tomcat4 |
23:13.03 | Ramonskie | doesnt work |
23:13.19 | Ramonskie | already tried that i think i dont have the right source |
23:13.23 | deeeed | maybe it's not on sarge |
23:13.26 | Ramonskie | :( |
23:13.35 | deeeed | install from the source. |
23:14.11 | Ramonskie | is there an site that tells me how to do that its my first time i just want to learn about tomcat and install some chatrooms or something |
23:14.16 | Ramonskie | under apache |
23:14.41 | eidolon | i'm running sarge. |
23:14.53 | eidolon | i just downloaded it from jakarta.apache.org and followed the directions. |
23:14.56 | eidolon | you'll just need a jvm. |
23:15.08 | majic | (offtopic) does anyone happen to know if there is a key-combo you can hit to redeploy a project quickly in NetBeans 4.1beta? |
23:15.33 | Ramonskie | k |
23:15.38 | Ramonskie | im gonna try |
23:17.01 | eidolon | f11 is build |
23:17.13 | eidolon | not sure about deploy. :) i have my Context pointing to my build dir :) |
23:18.56 | eidolon | also, anyone know of a VSS plugin for netbeans? |
23:20.26 | majic | yeah if you right click on the project in the projects tab there is a selection for redeploy with no key combo, so I have to do 3 steps to test my project after a small change. Build, right click on project and then hit redeploy. I wish there was a Build->Deploy step that would be all encompassing =) |
23:23.09 | eidolon | yeah, but if you set up a local Context, you never need to deploy. |
23:24.01 | majic | hmm, why didn't I think of that? |
23:24.02 | majic | ha |
23:24.37 | eidolon | 8) |
23:29.37 | majic | hmm, I created a new context and restarted tomcat but it doesn't seem to do what you say when I rebuild |
23:32.29 | majic | eidolon, do I just point that local context to the apps dir? |
23:33.02 | Ramonskie | eidolon: can you help me setup tomcat |
23:33.11 | Ramonskie | i cant figure it out i feel real dumb |
23:33.11 | eidolon | well, no, because the apps dir is for deployed .war files. |
23:33.56 | eidolon | you want to point it at your top-level dir... in netbeans, i have my [project]/build/web dir |
23:34.17 | eidolon | ramon: follow the directions on jakarta.apache.org. |
23:34.38 | majic | oops, you misunderstood me |
23:34.51 | majic | I'm saying do I point my new local context to the project dir |
23:34.57 | majic | which I did |
23:35.10 | majic | and set it's reloadable property to true |
23:35.28 | majic | but it does not automatically reload, I have to redeploy the project to see changes |
23:35.36 | Ramonskie | i go there but where is the help then humph i thinks its just to late i quess its 0:35 here |
23:37.18 | eidolon | hmm |
23:37.24 | eidolon | you're not specifying the correct to level then, magic. |
23:37.36 | eidolon | top level, rather. |
23:38.06 | majic | <PROTECTED> |
23:38.19 | eidolon | http://jakarta.apache.org/tomcat/tomcat-5.5-doc/setup.html |
23:38.23 | eidolon | (that's for ramonskie) |
23:38.37 | eidolon | the path to project is not correct. |
23:38.58 | majic | so that doesn't go in docBase? |
23:39.02 | eidolon | you want the dire that has WEB-INF and META-INF in it. |
23:39.08 | eidolon | that's docBase |
23:39.10 | eidolon | here's mine: |
23:39.25 | eidolon | also, make sure you restart tomcat after changing server.xml :) |
23:39.32 | majic | yeah I know |
23:39.39 | eidolon | <PROTECTED> |
23:39.40 | eidolon | <PROTECTED> |
23:39.40 | eidolon | <PROTECTED> |
23:39.49 | eidolon | 'Arete' is my project. |
23:39.56 | majic | Ah, ok |
23:40.51 | eidolon | (note i just got tihs working about 5 hours ago, so i can hardly say i'm an expert) |
23:42.29 | *** join/#tomcat loz-- (~loz--@81-179-73-222.dsl.pipex.com) |
23:47.36 | *** part/#tomcat majic (~majic@24-49-51-247.chvlva.adelphia.net) |
23:53.19 | *** join/#tomcat majic (~majic@24-49-51-247.chvlva.adelphia.net) |
23:55.10 | Ramonskie | humm i c that i need to install jd2k |
23:55.11 | Ramonskie | :S |
23:55.35 | Ramonskie | il do that tomorow maby thx eidolon for the site |
23:56.02 | *** join/#tomcat {aaron} (none@cpe-24-59-120-255.twcny.res.rr.com) |
23:56.07 | {aaron} | hi guys, i see tomcat includes commons upload |
23:56.15 | {aaron} | is there a Tomcat API to this, or should I just use it directly? |
23:56.54 | majic | eidolon, thanks that worked! |
23:57.00 | eidolon | 8) |
23:58.42 | puff | {aaron}: I doubt it. |