00:22.21 | {aaron} | crap. my jsp can't see org.apache.commons.fileupload because it's in server/lib |
00:23.32 | {aaron} | can i drop it in my web-inf/lib or common/lib? |
00:23.47 | {aaron} | or will it explode because of two instances in different classloaders? |
00:26.44 | *** join/#tomcat Urua (~Urua@near.outpost.com) |
00:27.23 | Urua | Evening all. Would this be the proper place to ask for help with using iPlanet and its version of mod_jk ? |
00:32.50 | {aaron} | damn, tomcat distributes some old version of the file upload jar |
00:33.42 | eidolon | that's odd, i thought server/lib was global. |
00:33.54 | {aaron} | no server/lib is hidden |
00:34.08 | {aaron} | it's the catalina implementation, which really shouldn't be visible to applications |
00:34.13 | eidolon | ah, gotcha. |
00:37.27 | eidolon | Hello! Welcome to Apache-Axis. |
00:37.47 | puff | {aaron}: Well, there should be no problem at all in just downloading a more recent version of file upload and putting it in WEB-INF/lib |
00:38.18 | {aaron} | puff: that's ok - i think tomcat uses the latest stable, but the docs on the fileupload site refer to the development version |
00:38.23 | {aaron} | which lead to my confusion |
00:38.36 | puff | Ah. |
00:38.43 | puff | Time for dinner, later all. |
00:39.52 | Urua | Evening all. Would this be the proper place to ask for help with using iPlanet and its version of mod_jk ? |
00:40.56 | eidolon | urua: you asked that already, and no one answered, so you coudl ask, but it doesn't sound like anyone knows. |
00:41.30 | Urua | sorry, wasn't sure if the question was seen. Didn't measn to spam the channel |
00:42.58 | Urua | is there anyway to disable all login from the jk module ? |
00:43.19 | Urua | with high traffic we are seeing hangs... and we have very large jk logs |
00:50.16 | Urua | I get the feeling that using iPlanet 6 w/ the jk module isn't a common thing..... |
01:25.09 | eidolon | sorry :) i've used mod_jk with apache 1.3.x and 2.0.x, but that's it. |
01:37.19 | aiyaiyairc | (or anyone else) do you have a recommended link for setting up Tomcat with Apache? (even at apache.org, there are different explanations) I'm on winxp, and am confused as to how to proceed. I have Tomcat on one machine, Apache Httpd on another, both run great, now want to make a single machine with both on them ty |
01:37.41 | aiyaiyairc | eidolon is what i mean to type at beginning:) |
01:38.21 | eidolon | you need to set up mod_jk on the apache server, and set up a workers file to point ot the tomcat server. |
01:39.11 | aiyaiyairc | correct |
01:39.15 | aiyaiyairc | apologies for not typing that. |
01:39.19 | aiyaiyairc | just a sec... |
01:45.24 | aiyaiyairc | eidolon each of the various instructions available from apache.org state the need for mod_jk, and provide different instructions, and also talk about custom generation of the mod_jk, I'm wondering which set of insturctions to follow, because they have different sites altogether within apache.org on what to do, and I don't understand which to choose, IE: what link did u use to setup? (sory pulled away for a minute) |
01:46.02 | aiyaiyairc | ie: when setting up tomcat for the first time, had tons of different links, many were faulty instructions :) |
01:46.10 | eidolon | sure, but this isn't tomcat. |
01:46.13 | eidolon | this is mod_jk |
01:46.16 | eidolon | you need to: |
01:46.26 | eidolon | 1) enable mod_jk in the httpd.conf for the server (or whatever) |
01:47.08 | eidolon | 2) set up jk2.conf to point to the workers properties files |
01:47.35 | eidolon | 3) set up the workers properties files, which will define what workers are available |
01:47.41 | eidolon | (ala, your tomcat installation) |
01:47.48 | eidolon | then restart apache, and watch for errors :) |
01:49.16 | aiyaiyairc | , and mod_jk....the website talks about 1.2.5, gives a deadlink, but found another portion of apache.org i found this: http://www.eu.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/ |
01:49.29 | aiyaiyairc | mod_jk-1.2.8-apache-2.0.52.so seems like the correct download.? |
01:55.53 | aiyaiyairc | eidolon thank you for an outline looking for info on step 2 currently:) |
01:58.07 | eidolon | dbs@hunter:/etc/apache2/mods-enabled$ cat jk2.conf |
01:58.07 | eidolon | # To enable mod_jk2, customize workers2.properties* from |
01:58.07 | eidolon | # /usr/share/doc/libapache2-mod-jk2/examples and copy it to |
01:58.07 | eidolon | # /etc/apache2/workers2.properties. Then uncomment the following line: |
01:58.07 | eidolon | JkSet config.file /etc/apache2/workers2.properties |
02:03.03 | *** join/#tomcat beron (~rodane@adsl-67-122-212-177.dsl.pltn13.pacbell.net) |
02:07.48 | aiyaiyairc | okay it does appear that mod_jk-1.2.8-apache-2.0.52.so is the correct file to download for Windows, then must rename to mod_jk.so, which follows one set of instruction--------------------it says to copy mod_jk.so and "jkjni.so"to the modules dir of apache, now looking for info on "jkjni.so" bbiab (thank you for continued assistance) |
02:09.13 | aiyaiyairc | eidolon you are using mod_jk 1.2 and not v2 correct, it states v2 is deprecated, but many instructions i find are related to v2, just curious? |
02:09.33 | eidolon | i'm using whatever got eployed with debian. actually, i'm using tomcat's internal now. |
02:09.39 | aiyaiyairc | :) cool |
02:09.41 | aiyaiyairc | ty |
02:09.43 | aiyaiyairc | bbiab |
02:11.00 | *** join/#tomcat BOXX (~blink@62.116.83.61) |
02:11.21 | *** part/#tomcat BOXX (~blink@62.116.83.61) |
02:17.56 | aiyaiyairc | eidolon thank you for trying to help, it's just that i still can't figure out the required files needed for setting up mod_jk 1.2 for winxp , tons of instructions are for v2, don't want to downgrade, still looking for some updated info bbiba |
02:18.01 | aiyaiyairc | bbiab |
02:21.18 | *** join/#tomcat warthog9 (~warthog9@12-216-157-202.client.mchsi.com) |
02:45.25 | *** join/#tomcat ohsix (ohsix@bc111222.bendcable.com) |
03:04.00 | aiyaiyairc | is there a way to Search the Tomcat documentation? looking for "apache auto -configuration" for tomcat 5 |
03:43.10 | *** join/#tomcat kool (~kamal@61.247.233.207) |
05:29.15 | aiyaiyairc | is there a way to Search the Tomcat documentation? looking for "apache auto -configuration" for tomcat 5 |
05:50.04 | aiyaiyairc | or better yet, does anyone know how to turn on on the Apache auto-configure setting in Tomcat? |
06:01.31 | *** part/#tomcat majic (~majic@24-49-51-247.chvlva.adelphia.net) |
06:12.12 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
06:20.37 | *** join/#tomcat chipux (~chip@constant.northnitch.com) |
06:24.20 | chipux | I have a few questions about the status of the various connectors. On the downloads, it says 'JK2 is officially unsupported!'. It also says 'JK will be fully supported for all relevant web servers.'. |
06:24.43 | lyken | yup |
06:24.48 | lyken | jk2 was a pain in the ass |
06:24.51 | chipux | but, the apache 2 licsense... |
06:24.52 | chipux | http://www.apache.org/licenses/LICENSE-2.0.html |
06:25.03 | chipux | AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND... |
06:25.07 | chipux | etc etc |
06:25.07 | lyken | and all the cool features were back ported |
06:25.09 | lyken | so? |
06:25.18 | chipux | so, how can one be 'officially supported'? |
06:25.37 | lyken | cause its still developed |
06:25.40 | lyken | and if bugs are found |
06:25.45 | lyken | they are fixed by the apache tomcat team |
06:25.50 | lyken | that is "official" support |
06:25.53 | chipux | hmm. |
06:25.59 | lyken | are you a windows person? |
06:26.02 | chipux | I just find it interesting. |
06:26.04 | chipux | no |
06:26.09 | chipux | I am an httpd developer |
06:26.23 | lyken | have you ever read the gpl, lgpl or any of the other licences? |
06:26.26 | chipux | yes. |
06:26.30 | lyken | they all have the same thing |
06:26.34 | chipux | yes, I know. |
06:26.40 | lyken | why bring it up here then? |
06:27.10 | chipux | I was wondering who tomcat could get away with it, when I said I think 1.3 should be called 'officially unsupported' :) |
06:27.16 | chipux | s/who/how/ |
06:27.43 | lyken | they junked jk2 a whiles ago now |
06:27.47 | lyken | cause it sucked |
06:28.51 | chipux | well, httpd 1.3 sucks too :) |
06:29.09 | lyken | well you can use jk with 2.0 i though |
06:29.21 | chipux | yes, you can. |
06:29.32 | chipux | hell, I have 2.1. |
06:29.37 | lyken | so what are your other wuestions? |
06:29.47 | chipux | screw all the extra mod_jk* stuff, i can use mod_proxy_ajp :0 |
06:29.58 | lyken | yups |
06:30.01 | lyken | jks areass |
06:30.09 | lyken | s/areass/are\ ass |
06:30.21 | chipux | heh |
06:31.20 | lyken | i recommend mod_proxy to any poor sucker that has to setup apache front end |
06:32.24 | chipux | i think the lack of coordination between projects seems silly in retrospec.. |
06:33.17 | lyken | heh |
06:33.23 | lyken | there is many things broken with it |
06:33.34 | lyken | but its free and handles everything i throw at it |
06:34.04 | chipux | many things broken with mod_proxy? |
06:34.32 | chipux | i wish there would be more feedback about mod_proxy_ajp. I ain't heard much since the initial work on it was done. |
06:34.33 | lyken | no |
06:34.43 | lyken | with tomcat and its documentation/development cycles |
06:34.46 | chipux | ah |
06:35.00 | chipux | the 3 stable versions does seem scary to me. |
06:35.08 | chipux | but, httpd will be doing that shortly too |
06:35.12 | lyken | ive not really touched tomcat in a whiles though |
06:35.13 | chipux | (1.3, 2.0, 2.2..) |
06:35.39 | lyken | ive been doing more mobile development atm |
06:36.47 | lyken | but i stay in here for the people that were just like me when i first started out |
06:36.59 | lyken | its good to find a straight answer "easy" |
06:37.39 | chipux | thats why I hang out in #apache, but mostly for httpd people :) |
06:39.03 | kool | any ideas where can i find gud documentation for tomcat configuration.... same tomcat version(5.0.28) is behaving differently running as a service and when run from command line |
06:43.36 | lyken | kool, tomcat and windows has never played nice for me |
06:43.39 | lyken | ever since version 3 |
06:46.27 | kool | humm.. but i have no choice :( |
06:46.38 | kool | on server we are running tocat as service |
06:47.04 | kool | on local machine i am running it from cmd line |
06:47.31 | kool | so a lot of things that work for me on cmd prmpt... breaks on the server |
06:48.04 | lyken | what are these things? |
06:48.05 | lyken | servlets? |
06:48.07 | lyken | beans? |
06:48.10 | lyken | jsp scriplets/ |
06:48.14 | lyken | jdbc realms? |
06:48.16 | kool | rite now.. it is related to session in servlets |
06:48.20 | lyken | there is a lot of things that could break |
06:48.40 | kool | when i run from cmd prmpt and restart server.. |
06:48.48 | lyken | um |
06:48.50 | kool | session values are restored |
06:48.58 | kool | but when i use it as service |
06:49.07 | kool | session values get destroyed |
06:49.18 | lyken | hmm |
06:49.31 | kool | i was wondering if there is a setting in tomcat for this |
06:49.35 | lyken | arent they supposed to get destroyed if you restart tomcat.. |
06:49.41 | lyken | in web.xml.. |
06:49.44 | lyken | if anywhere |
06:50.02 | kool | ye.. but i wasn't able to find anything in web.xml |
06:50.02 | lyken | ive not had problems with sessions.. |
06:50.16 | lyken | hmm |
06:50.24 | lyken | id love to help out |
06:50.28 | lyken | i have a dave matthews concert to go to |
06:50.36 | lyken | if you are still around in about 7 hrs, ill be here. |
06:50.39 | lyken | heh |
06:50.45 | kool | never mind... |
06:50.58 | kool | is there a gud documentation bout web.xml |
06:56.03 | puff | kool: Just the servlet spec, which ain't that great. |
06:58.09 | jasonb | There might be a book or two on the subject. :) |
06:58.38 | lyken | lol |
07:00.20 | kool | A book bout tomcat..? which can tell why and how tomcat behaves differently as service and running from tomcat ? |
07:00.49 | kool | *running from cmd prmpt |
07:01.14 | puff | kool: Yeah. |
07:01.22 | jasonb | I don't believe you'll find those particular details in a book. |
07:01.33 | puff | It's rumored that _Tomcat: The Definitive Guide_ might be useful, but the author's a jerk. |
07:01.48 | jasonb | heh! |
07:02.21 | puff | Is that anything like a half wit? |
07:02.36 | jasonb | In this case, it sure is. |
07:03.01 | *** join/#tomcat bugfixer2 (~bugfixer2@42gis175.gulftel.com) |
07:03.03 | puff | kool: I don't do windows, but I can't see any reason tomcat would behave differently as a service than as started from the command line. |
07:04.04 | *** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) |
07:04.16 | jasonb | kool: Some answers can be found only after studying something for a while, and deducing your own particular answers for yourself. |
07:05.08 | kool | i had problems with tomcat running as service in past as well... |
07:05.21 | jasonb | kool: Probably shouldn't run it that way then. |
07:06.03 | kool | i cant help it ... cmpny server runs that way .. on local machine i use it from cmd prmpt |
07:06.33 | kool | it seems they configure it differently for service and cmnd prmpt |
07:06.57 | jasonb | Yeah. It's likely a matter of configuration. Don't ask me how though.. at least right now. |
07:08.28 | kool | :-) |
07:25.48 | lyken | windows + tomcat == unexplained errors |
07:26.00 | lyken | id have servlets stop working for no reason |
07:26.09 | lyken | put the same config on a linux box |
07:26.11 | lyken | works a treat |
07:29.59 | lyken | hehe |
07:30.04 | lyken | its the ID10t error :) |
08:04.09 | *** join/#tomcat alx_ (~alx@83.224.64.55) |
08:22.02 | *** join/#tomcat cmunky (~chatzilla@dsl-mr-207-34-113-i44-cgy.nucleus.com) |
08:23.58 | *** join/#tomcat joered (~chatter@81-208-74-182.fastres.net) |
08:28.37 | *** join/#tomcat loquace (~seb@aqu33-1-82-233-55-6.fbx.proxad.net) |
08:29.32 | loquace | lo |
09:29.28 | *** join/#tomcat FaeLLe (papacha@join.me.fuckmicrosoft.info) |
09:50.36 | *** join/#tomcat linuxfreck (~freck@p54929CDA.dip0.t-ipconnect.de) |
10:37.56 | *** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net) |
11:27.33 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
11:30.54 | Urua | with high traffic we are seeing hangs... and we have very large jk logs |
11:41.04 | *** join/#tomcat joered_ (~chatter@81-208-74-182.fastres.net) |
12:51.28 | *** join/#tomcat oesriram (~sriram@203.193.165.130) |
13:18.06 | *** join/#tomcat frno (~frno@eject.mogul.se) [NETSPLIT VICTIM] |
13:49.39 | *** join/#tomcat warthog9 (~warthog9@12-216-157-202.client.mchsi.com) |
14:38.41 | *** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
14:44.43 | *** join/#tomcat jhight (~jhight@64.186.48.15) |
14:45.10 | jhight | Hello all. |
14:45.48 | jhight | I'm attempting to use the Tomcat task for precompiling JSP pages but upon executing the build file I get "Unable to load tag handler class" ... however, I am positive the JSP classes can find the TLD's because it says it cannot load the full class name |
14:46.04 | jhight | For example, "unable to load foo.bar.baz.MyClass" where foo.bar.baz.MyClass is set in the TLD |
14:55.58 | *** join/#tomcat ProctonW (~Linus@c-6c0c72d5.02-160-76786a1.cust.bredbandsbolaget.se) |
14:56.37 | lyken | jhight: do you have the taglibs defined in your web apps web.xml? |
14:56.53 | jhight | lyken: yes |
14:57.22 | ProctonW | Anyone know of there is an official maven IRC channel somwhere? |
14:57.34 | lyken | are your tagfiles in your_webapp/WEB-INF/classes/foo/bar/baz/MyClass.class? |
15:01.58 | *** join/#tomcat Alexys (~Alexys@201.245.131.106) |
15:18.52 | Alexys | how I can give numerical format from this 20000 to this 20,000? |
15:19.00 | Alexys | in the servlet |
15:20.14 | lyken | using numberFormat |
15:20.15 | lyken | google that |
15:20.28 | linuxfreck | DecimalFormat really |
15:20.47 | Alexys | can you give me a example linuxfreck ? |
15:21.02 | *** join/#tomcat linenoise (~linenoise@cerberus.franklinamerican.com) |
15:21.17 | linuxfreck | heh, well no, that class isn't one of the easiest :) |
15:21.29 | linenoise | <PROTECTED> |
15:21.50 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
15:22.26 | Alexys | ok, lyken linuxfreck, tx both |
15:22.45 | lyken | NumberFormat formatter = new DecimalFormat("###,###,###,###,###"); |
15:22.57 | lyken | double d = Double.valueOf(mfilesize).doubleValue(); |
15:22.58 | lyken | <PROTECTED> |
15:30.20 | linenoise | Still trying to figure out what happens when I copy a war file over an existing war file in the webapps directory. Does the context.xml get redeployed? Does it get picked up auto-magic like? What happens to the live sessions? |
15:39.58 | tang^ | iirc, a new war doesn't get picked up until the container is restarted |
15:40.47 | tang^ | but then, I'm just following instructions that include "stop tomcat, copy war, start tomcat" |
15:46.20 | jhight | lyken: thanks, that was the problem |
15:51.26 | linenoise | tang^, thanks, the reason I ask is that when I copy a war file over an existing war, the container seems to pick it up. I am drawing this conclusion based on what I see happening in the logs. I was hoping there was a better authority to base this conclusion upon. |
15:54.05 | tang^ | linenoise: this doc might explain http://jakarta.apache.org/tomcat/tomcat-5.5-doc/deployer-howto.html |
15:56.44 | *** join/#tomcat FreemaniaX (~Freemania@ip67-153-106-58.z106-153-67.customer.algx.net) |
16:02.26 | jhight | tang^: a new war is warm deployed as sson as it is detected to be in the directory |
16:02.30 | jhight | *soon |
16:03.11 | jhight | assuming it's not the same file size or has the same timestamp as the one its possibly replacing |
16:03.25 | tang^ | providing autoDeploy is enabled, too |
16:07.20 | jhight | yes that too =) |
16:13.07 | *** join/#tomcat Chest (~chatzilla@pcp05013771pcs.derbrn01.mi.comcast.net) |
16:14.23 | Chest | guys, webapps/ROOT is the default location for tomcat right? If I type http://myip:8080 am I sent to that directory? |
16:15.33 | tang^ | yes |
16:15.59 | Chest | so how come when I change the index.jsp file, it doesn't change in my browser? |
16:16.15 | Chest | i keep getting the tomcat splash page |
16:27.24 | tang^ | anything in the logs about errors recompiling? |
16:27.31 | tang^ | sheesh. lag |
16:28.13 | randrew | Chest: because org/apache/jsp/index_jsp.class is in webapps/ROOT/WEB-INF/lib/catalina-root.jar |
16:28.29 | Chest | oh |
16:28.32 | Chest | that sucks |
16:29.22 | randrew | Chest: it is a bit sneaky |
16:30.03 | Chest | so that means I either re jar the catalina-root.jar sans the class or can I just delete the jar? Is it important? |
16:30.44 | randrew | Chest: see what else is in there and decide... |
16:30.54 | Chest | ok. ty |
16:33.04 | randrew | Chest: sorry, i steered you wrong there |
16:34.15 | randrew | Chest: the real reason it doesn't work is webapps/ROOT/WEB-INF/web.xml has a servlet mapping for <url-pattern>/index.jsp</url-pattern>, isn't that sweet? |
16:34.24 | Chest | hmmm |
16:34.35 | randrew | Chest: just comment that out, you don't need to mess with the jar file |
16:34.53 | randrew | Chest: are you having fun yet? |
16:35.11 | Chest | ah, i didn't see that. :) |
16:35.17 | Chest | easy enough |
16:35.22 | Chest | thanks |
16:56.54 | deeeed | is it possible to load a java bean without <jsp:useBean .../> ? |
16:59.53 | Chest | You could use a scriptlet I think. |
17:00.15 | Chest | deeeed: Wasn't I talking to you yesterday? |
17:00.26 | deeeed | yes ;) |
17:00.27 | Chest | deeeed: Did you get the beans working? |
17:00.31 | deeeed | yes |
17:00.33 | Chest | woohoo |
17:00.43 | deeeed | in fact the problem was because i didn't have |
17:00.45 | deeeed | the lib |
17:00.52 | deeeed | standart.jar |
17:00.59 | Chest | that'll do it. |
17:01.03 | deeeed | ;) |
17:09.17 | bugfixer | 1 |
17:10.13 | Chest | 2 |
17:20.20 | eidolon | 5! |
17:28.24 | *** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se) |
17:45.06 | *** join/#tomcat a4akb (bbwpleaser@ask11-237.qualitynet.net) |
18:15.36 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
18:16.43 | *** join/#tomcat J4V4_ (~java_pro@adsl-217-142-57.bgk.bellsouth.net) |
19:15.26 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
19:20.12 | *** join/#tomcat loz-- (loz--@81-179-73-222.dsl.pipex.com) |
20:01.38 | *** join/#tomcat majic (~majic@24-49-51-247.chvlva.adelphia.net) |
20:15.55 | Chest | guys, if I declare a variable using a scriplet in a jsp page, how can I reference the variable using EL? ie <% String test="test"; %> |
20:16.15 | Chest | i tried <c:out value="${test}" /> |
20:16.20 | Chest | didn't work |
20:17.40 | majic | does <%= test %> ? |
20:17.47 | majic | work |
20:18.34 | Chest | yes, but I need to use it within a jsp tag |
20:18.43 | majic | I see |
20:19.03 | majic | what do you get when you try <c:out value="${test}" />? Do you get an error? |
20:19.10 | Chest | i get nothing, blank |
20:19.53 | majic | is the JSTL working properly? Can you do anything else with it? |
20:20.09 | Chest | yes, its working |
20:20.20 | Chest | that's just not the way to do it methinks |
20:21.04 | majic | that is a way to print out the value of test to the page |
20:22.06 | Chest | i know that, but test needs to be set to a value. setting it with <% ... %> doesn't work. |
20:24.44 | majic | how about this: <c:set var="test" value="2" /> |
20:24.44 | majic | <PROTECTED> |
20:24.53 | majic | works here |
20:25.57 | majic | I'm a total n00b on JSTL so pardon my questions. I'm trying to learn this stuff as well! |
20:27.37 | Chest | yes that works, but the value I need to set comes from the page request. |
20:27.47 | Chest | the http referer value specifically. |
20:27.58 | majic | you can get at values in the page request |
20:28.00 | Chest | and there isn't an easy way to access it. |
20:28.25 | Chest | i know, but referer isn't an obvious one. |
20:28.36 | Chest | i can get cookies, and ip addresses and such |
20:30.16 | Chest | I can get it with <% String ref = request.getHeader("referer"); %>, but I then need to display it in a jsp tag. |
21:45.17 | *** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
21:58.37 | *** join/#tomcat Flewellyn (~aablackm@ideaone-245-2.ideaone.net) |
21:59.00 | *** part/#tomcat Flewellyn (~aablackm@ideaone-245-2.ideaone.net) |
22:10.37 | loquace | ++ |
22:11.07 | *** join/#tomcat Kasica (~Kasica@bei4.neoplus.adsl.tpnet.pl) |
22:11.12 | Kasica | hi |
22:12.18 | Kasica | how to enable /manager/list to user |
22:38.11 | Kasica | anyopne |
22:38.13 | Kasica | anyone |
22:41.55 | *** join/#tomcat Ramonskie (~ramonskie@ramonskie.xs4all.nl) |
22:41.59 | Ramonskie | hi some 1 here |
22:42.55 | Kasica | Ramonskie could you help me with tomcat privilages |
22:43.26 | Ramonskie | i do know as much as you i quess |
22:43.29 | Ramonskie | :S sorry |
22:44.35 | Ramonskie | i want to know what tomcat version is best on debian sarge |
22:44.49 | Kasica | 5 :D |
22:45.01 | Ramonskie | realy also 4 a newbie |
22:45.37 | Ramonskie | i just installed java i think but i dont know if i did it right if i do java -version i get an reply |
22:47.39 | Kasica | correcty |
22:47.42 | Kasica | correct |
22:48.47 | Ramonskie | so i did it correct woohoo |
22:49.14 | Ramonskie | now the next great big step install tomcat :S |
22:51.24 | Ramonskie | can you help me Kasica? |
22:52.38 | Kasica | i will give you link |
22:53.19 | Ramonskie | k thx |
22:53.35 | Kasica | http://directadmin.com/forum/showthread.php?s=e597342c735a74a8bc7d4239f8b146e7&threadid=2227&highlight=tomcat |
23:06.48 | linuxfreck | Kasica: edit conf/tomcat-users.xml and add a user with the role "manager" |
23:07.33 | linuxfreck | Ramonskie: if you installed java 1.5, get tomcat 5.5.7, else get tomcat 5.0.28 |
23:07.51 | Kasica | linuxfreck ... |
23:08.38 | Kasica | then i will allow that user to reset . reload . delete other servlets |
23:08.38 | Kasica | ran byu other users |
23:08.38 | Kasica | linuxfreck right? |
23:08.38 | linuxfreck | right |
23:08.38 | Kasica | thats a crap , is any way to omit it |
23:08.38 | linuxfreck | the manager app only has one privilege for everything |
23:08.52 | Kasica | indeed , i want to add /list command to my users |
23:09.02 | linuxfreck | else other roles would be referenced by the web.xml |
23:09.06 | Kasica | they can install remove but can not list installed servlets |
23:09.27 | linuxfreck | you probably have to edit the manager to do what you want... |
23:09.51 | Kasica | what do you mean |
23:10.02 | Kasica | what file |
23:11.15 | linuxfreck | server/webapps/manager/WEB-INF/web.xml |
23:11.21 | linuxfreck | in the tomcat directory |
23:11.32 | Kasica | no conf/web.xml ? |
23:12.18 | Kasica | i have it in conf dir |
23:12.19 | linuxfreck | an easy way to disable all but list is probably to comment out all servlet-mapping elements but the one for /list |
23:12.24 | linuxfreck | that's a different one |
23:12.48 | linuxfreck | yours is used for all web applications that don't come with a web.xml themselves |
23:13.39 | Kasica | hm |
23:15.31 | Kasica | i dont get you |
23:16.02 | linuxfreck | hmm |
23:16.33 | Kasica | in web.xml i found nothoung about manager |
23:16.38 | linuxfreck | I'm just saying that the web.xml file of the manager tells me that what you want is not possible without hacking |
23:17.02 | linuxfreck | in the server/webapps/manager/WEB-INF/web.xml one or the conf/web.xml |
23:17.50 | Kasica | hacking? |
23:18.01 | Kasica | hacking what |
23:18.31 | linuxfreck | hacking the source and/or hacking the server/webapps/manager/WEB-INF/web.xml file |
23:19.42 | Kasica | do you know how to hack ? |
23:19.48 | Kasica | what web.xml |
23:19.51 | Kasica | that* |
23:21.44 | linuxfreck | <linuxfreck> an easy way to disable all but list is probably to comment out all servlet-mapping elements but the one for /list |
23:21.44 | linuxfreck | this is untested though |
23:21.44 | Kasica | i see |
23:25.23 | Kasica | but in manager and htmlManager i see /list enabled |
23:26.56 | linuxfreck | yes... and? |
23:29.31 | Kasica | what is a difference beetwen tomcat/conf/web.xml and tomcat/webapps/manager/WEB-INF/web.xml |
23:30.32 | linuxfreck | the first is used for all contexts that do not have a web.xml |
23:30.55 | linuxfreck | but manager does have a web.xml, and it is stored in tomcat/webapps/manager/WEB-INF/web.xml |
23:31.28 | Kasica | i dont have it |
23:31.33 | Kasica | i have |
23:31.45 | Kasica | <PROTECTED> |
23:32.07 | linuxfreck | oops |
23:32.17 | Ramonskie | great i fixed my qmail prob again haha |
23:32.21 | Ramonskie | woops wrong chat |
23:32.33 | linuxfreck | its server/webapps/manager/WEB-INF/web.xml |
23:32.40 | linuxfreck | in the tomcat directory |
23:33.01 | Ramonskie | linuxfreak do you have a good how to install tomcat under debian? |
23:34.07 | linuxfreck | Ramonskie: well, install java, download tomcat and unpack it, set JAVA_HOME to the java directory, start bin/startup.sh in the tomcat folder |
23:34.08 | linuxfreck | done |
23:34.45 | Ramonskie | realy that easy |
23:34.51 | Ramonskie | well i just installed java |
23:34.56 | Ramonskie | 1.4.2 |
23:36.28 | Ramonskie | which 1 do i need to dowload then the deployer or embed |
23:37.11 | linuxfreck | neither |
23:37.18 | Ramonskie | just the normal |
23:37.22 | Ramonskie | tar.gz |
23:37.25 | linuxfreck | yes |
23:37.35 | linuxfreck | get the 5.0.28 one though |
23:37.39 | Ramonskie | 5.0.28.tar.gz |
23:37.41 | Ramonskie | k |
23:37.43 | linuxfreck | k |
23:38.38 | Ramonskie | 1 thing i don't get what do i need to put in /root/.profile evrey site has almost there own version of how to fix that |
23:39.52 | linuxfreck | well you don't need anything in the .profile file |
23:40.48 | Ramonskie | but the java how to said that i need to put |
23:40.50 | Ramonskie | export JAVA_HOME="/usr/local/lib/jdk" |
23:40.52 | Ramonskie | export JDK_HOME="${JAVA_HOME}" |
23:40.52 | Ramonskie | export PATH="${JAVA_HOME}/bin:${PATH}" |
23:41.09 | linuxfreck | you can do that |
23:41.10 | Ramonskie | and i also need to put catalina_home there or something right? |
23:41.24 | linuxfreck | if you don't, you have to set JAVA_HOME yourself every time you start or stop tomcat |
23:41.43 | linuxfreck | no need for catalina_home there |
23:42.15 | Ramonskie | so thats only for rebooting |
23:42.17 | Ramonskie | ? |
23:42.24 | linuxfreck | well yes |
23:42.34 | linuxfreck | you want to setup an init script some time though |
23:42.50 | linuxfreck | so tomcat starts automatically each time the server reboots |
23:43.01 | Ramonskie | k well that comes later :) |
23:44.10 | Ramonskie | okay well i extracted tomcat somewhere but you said something about set the java home |
23:44.52 | linuxfreck | yes |
23:45.15 | linuxfreck | you set the environment variable to the directory where java is installed |
23:45.32 | linuxfreck | like export JAVA_HOME=/usr/lib/java-1.4.2 |
23:45.32 | Ramonskie | okay lost ya there :( |
23:46.02 | Ramonskie | ahh i already did that with the java setup |
23:46.22 | linuxfreck | well then that's alright |
23:46.35 | Ramonskie | export JAVA_HOME="/usr/local/lib/jdk this command |
23:48.22 | Ramonskie | well i extracted tomcat under /var/install/java/tomcat/ so the only thing i have to do is sh bin/startup.sh right? |
23:48.44 | Ramonskie | sorry to bothre you all the time but i just need some help im a huge noob |
23:49.54 | linuxfreck | that's right |
23:50.32 | Ramonskie | k so now is tomcat installed and now i can mess with servlets scripts |
23:50.47 | linuxfreck | have fun |
23:51.01 | linuxfreck | and get a good book or tutorial |
23:51.12 | Ramonskie | yup |
23:51.21 | Ramonskie | thx for the support and help |
23:51.35 | linuxfreck | np |
23:52.19 | Ramonskie | one quistion you can acces tomcat by domain:8181 right |
23:52.25 | Ramonskie | or is that an other thing |
23:52.38 | linuxfreck | the default http port is 8080 |
23:52.44 | Ramonskie | so you can admin it i have read that somewhere |
23:56.40 | Ramonskie | okay sorry this is my last quistuion i know i can look it up but i think its faster when i ask you. what the default password en username for the administrator |
23:56.52 | linuxfreck | there is none |
23:57.05 | linuxfreck | you have to set it up in the conf/tomcat-users.xml |
23:57.48 | Ramonskie | nm |
23:57.56 | Ramonskie | im going to search the docs |
23:58.03 | Ramonskie | laterrrrrrr |
23:58.33 | linuxfreck | bye |
23:58.59 | Ramonskie | humm okay so that why i cant login |
23:58.59 | Ramonskie | lol |