00:58.15 | *** join/#tomcat Aquila_Deus (AquilaDeus@211.72.124.70) |
00:58.21 | Aquila_Deus | hi all |
00:58.37 | Aquila_Deus | how can I setup tomcat to do auto-compiling for my webapp? |
01:32.00 | vinse | what do you mean auto-compiling? |
01:32.15 | vinse | you mean auto-reloading? when class files change? |
01:44.11 | *** join/#tomcat Ivision (~chatzilla@202.41.85.84) |
03:31.45 | *** join/#tomcat sandman10 (~sandman@66-23-228-249.clients.speedfactory.net) |
03:40.01 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
03:56.04 | *** join/#tomcat ibot (ibot@apt.bot.TimRiker.active.supporter.pdpc) |
03:56.04 | *** topic/#tomcat is http://jakarta.apache.org/tomcat Latest stable versions of Tomcat are 5.5.9, 4.1.31, and 3.3.2 If you are a newbie, use the official distribution on Jakarta's site. |
04:59.07 | *** join/#tomcat Skoulikaki (~none@ppp83.dial-up.uoc.gr) |
05:39.27 | *** join/#tomcat IRCMonkey (~chatzilla@lpz9-d9ba7fb0.pool.mediaWays.net) |
07:09.11 | *** join/#tomcat CQ (~chatzilla@193.149.57.65) |
07:09.28 | CQ | hello... where do I need to put the ojdbc driver to use it with a tomcan application? |
07:11.07 | CQ | tomcat... sorry |
07:26.51 | teite | does anybody know why jk2 has been marked depricated? |
07:27.04 | teite | though jk1 was the older one ;) |
07:51.53 | *** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
07:52.56 | loquace | lo |
08:12.59 | *** join/#tomcat HughWork_ (~Hugh@chinook.mxtelecom.com) |
08:14.57 | *** join/#tomcat manicman (~manic@p54896C10.dip.t-dialin.net) |
08:43.14 | *** join/#tomcat incorrect (~fwest@213.86.197.1) |
08:43.42 | incorrect | i have an issue where apache doesn't apply its rules to tomcat apps |
08:49.40 | HughWork_ | mod_rewrite? |
08:49.51 | HughWork_ | ...with mod_jk? |
08:50.01 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
08:51.48 | HughWork_ | incorrect: which apache rules? are you connecting to tomcat with mod_jk? |
09:31.37 | *** join/#tomcat b0fh_ua (~b0fh_ua@212.8.42.126) |
09:31.46 | b0fh_ua | hi! Can somebody please help? |
09:32.20 | b0fh_ua | I need the tomcat server to have 2 hosts, the one with appBase set to webapp, another - to another directory |
09:32.33 | b0fh_ua | but for some reason it won't init the contents of the webapp |
09:40.56 | *** part/#tomcat b0fh_ua (~b0fh_ua@212.8.42.126) |
09:42.17 | *** join/#tomcat kjk_hyperion (~kjkhyp@kjk-hyperion.developer.reactos) |
09:42.28 | kjk_hyperion | morning |
09:42.51 | kjk_hyperion | I have a really quick question I haven't found the answer for yet |
09:43.05 | kjk_hyperion | is the HTTP server part of Tomcat based on Apache? |
09:49.56 | *** part/#tomcat kjk_hyperion (~kjkhyp@kjk-hyperion.developer.reactos) |
09:57.05 | *** join/#tomcat CQ (~chatzilla@193.149.57.65) |
09:58.20 | CQ | 2005-06-22 11:47:12,991 WARN [core.entity.transaction.JNDIFactory] [ConnectionFactory.getConnection] Failed to find DataSource named java:comp/env/jdbc/JiraDS in JNDI server with name default. Trying normal database. |
09:58.25 | CQ | any idea what that means? |
10:04.38 | *** join/#tomcat joered (~chatter@213-140-6-118.fastres.net) |
10:06.05 | incorrect | so if i have a DirectoryIndex |
10:06.17 | incorrect | sorry thought everyone was asleep |
10:06.30 | incorrect | yes im connecting using mod_jk |
10:07.58 | incorrect | i want to use index.testformatxml for example as the index. but if its comes from tomcat, its not happy with me |
10:19.58 | *** join/#tomcat _manic (~manic@p5489558E.dip.t-dialin.net) |
10:39.25 | CQ | anyone alive ant tomcan knowlegeable in here? |
10:55.59 | *** part/#tomcat multi_io (~olaf@swangoose.isst.fhg.de) |
11:13.50 | incorrect | can i get tomcat to server different directory indexes. like index.testxml |
11:27.35 | incorrect | it must be in the web.xml that i can set directory index control? |
11:51.39 | *** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de) |
12:01.09 | CQ | you should just have to dump the xml file into the webapps dir |
12:23.12 | *** join/#tomcat robertle (~robertle@ppp-rl4.spacenet.de) |
12:23.16 | *** part/#tomcat robertle (~robertle@ppp-rl4.spacenet.de) |
12:23.47 | CQ | 2005-06-22 14:20:24,187 WARN [core.entity.transaction.JNDIFactory] [ConnectionFactory.getConnection] Failed to find DataSource named java:comp/env/jdbc/JiraDS in JNDI server with name default. Trying normal database. |
12:23.57 | CQ | any ideas on where to look for this error? |
12:42.19 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-6710.l1.c3.dsl.pol.co.uk) |
13:06.03 | *** join/#tomcat Magnifikus (~vst@muedsl-82-207-197-104.citykom.de) |
13:06.26 | Magnifikus | hi |
13:07.10 | Magnifikus | if i map /* to a servlet but want locations such as css images serve with static content, how do i realise that? |
13:10.27 | Big_Bozz | Magnifikus: asaik there is no "exclusion" operator and you would therefore have to specify each mapping instead. |
13:10.58 | Magnifikus | its possible to direct from the servlet ? |
13:11.27 | Big_Bozz | Well, you could build a filter that would do the exclusion for you - that would probably be the best. |
13:11.55 | Magnifikus | ok will look at filters :) |
13:23.22 | *** join/#tomcat a4akb (a4akb@ask14-208.qualitynet.net) |
13:39.35 | Magnifikus | hm how do i get the PathInfo from HttpServletRequest in a ServletRequest? |
13:39.52 | Magnifikus | can i cast it in a Filter then protocol is http ? |
13:40.59 | *** join/#tomcat mczepiel (EatMyShort@ns20324.ovh.net) |
13:52.06 | CQ | 2005-06-22 15:51:50,366 WARN [core.entity.transaction.JNDIFactory] [ConnectionFactory.getConnection] Failed to find DataSource named java:comp/env/jdbc/JiraDS in JNDI server with name default. Trying normal database. |
13:52.59 | CQ | anyone know where to look for the cause of this? If I change the path after 'env' ir reports a different path, so java:comp/env/ seems to exist, but jdbc/JiraDS doesn't |
13:53.32 | *** join/#tomcat Magnifikus (~vst@muedsl-82-207-253-223.citykom.de) |
13:53.44 | Magnifikus | powerfaile -.- |
13:54.06 | BULLE | CQ: you have configured the database entry properly, with all the darn stuff like the documentation say ? |
13:54.48 | CQ | bulle- point me to the documentation, I went through about 2-3 different sets so far and have tried a lot of differnt things, but can't get past this point. |
13:55.04 | CQ | http://www.atlassian.com/software/jira/docs/latest/servers/tomcat41.html was the maindocumentation I used |
13:55.31 | CQ | problem is I don't see how to look for the error |
13:56.15 | BULLE | him, i have never setup jira |
13:56.18 | BULLE | whatever now that is |
13:56.29 | BULLE | CQ: tried to just look at the tomcat JNDI resource howto ? |
13:56.53 | BULLE | CQ: and any reason you are using tomcat 4 ? and not 5.x ? |
13:58.02 | CQ | it works with 4 on another machine, 5 is in experimental on debian and I wanted something stable. |
13:58.41 | CQ | jria is a pretty decent bugtracking system |
14:00.40 | CQ | can I dismember the jars in the installation somehow to see if jdbc/JiraDS is there, or where can I look for it? |
14:07.48 | *** join/#tomcat mczepiel (EatMyShort@ns20324.ovh.net) |
14:15.12 | CQ | BULLE I have this |
14:15.16 | CQ | <PROTECTED> |
14:18.17 | CQ | so it is defined, but the |
14:18.22 | CQ | sorry. |
14:18.42 | CQ | is there any way I can get a list of the bound contexts from tomcat? |
14:20.37 | *** join/#tomcat georgesawyer- (~chatzilla@pool-70-22-75-228.balt.east.verizon.net) |
14:24.49 | Magnifikus | http://nopaste.php-q.net/142689 |
14:25.13 | Magnifikus | how do i route to the static context in the else ? |
14:25.31 | Magnifikus | the servlet ist mapped to /* |
14:27.57 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) [NETSPLIT VICTIM] |
15:02.10 | Magnifikus | hm anybody using jtidy-r8 servlet.jar as filter in tomcat5? |
15:11.41 | BULLE | CQ: if i remember the docs correctly, you need MUCH more then that little resource definition |
15:11.54 | BULLE | CQ: you need to provide info about jdbc driver, username, password and other stuff aswell |
15:12.05 | BULLE | CQ: as described in that magical thing called documentation |
15:12.22 | CQ | bulle- I do, in a file called jira.xml which is in the webapps dir. |
15:12.53 | CQ | believe me, I've read enough docs, I just don't unerstand enough yet to get further... |
15:19.25 | BULLE | CQ: dunno, im pretty darn sure TOMCAT needs more info that then, now, jira.xml might hold the relevant stuff, and be read by tomcat, that i do not know |
15:19.55 | CQ | bulle it has the datasource definition in it. |
15:20.10 | BULLE | good |
15:20.15 | CQ | including host, db, user, password, etc. |
15:21.29 | CQ | if I add stucc to tomcat4/server.xml, it goes into the <server> section, right? |
15:22.06 | BULLE | depends on where you want to make it available i think |
15:22.18 | BULLE | you might just want to put it in a certain context, to make it available to only a few apps |
15:22.20 | CQ | localhost:8080/jira |
15:22.39 | BULLE | atleast in my experience, trying to add global JNDI stuff in tomcat, have been a pain, the webapps never seem to find the stuff |
15:22.48 | BULLE | but, putting in the webapp context, tend to work |
15:26.10 | CQ | ok, _now_ feel free to point me at a doc on how to do that :) |
15:31.48 | *** join/#tomcat jnt30 (~anon@d47-69-224-144.nap.wideopenwest.com) |
15:33.05 | jnt30 | Are you no longer allowed to break a try/catch/finally block of a scriplet in a JSP with reg. html with the %> and <% |
15:33.08 | jnt30 | ? |
15:34.32 | a4akb | me? |
15:35.12 | jnt30 | Is it no longer allowed |
15:35.35 | jnt30 | I'm just trying to work through an example in the book and I'm having comp. errors |
15:36.11 | jnt30 | I can get my JSP to connect to the DB as long as there are no interruptions between my try/catch block |
15:36.27 | jnt30 | *an interruption being a %> HTML here <% |
15:36.37 | jnt30 | which I find strange |
15:40.38 | a4akb | life can be strange |
15:40.47 | a4akb | its just a tag |
15:40.50 | a4akb | dont worry about it |
15:44.41 | Magnifikus | http://nopaste.php-q.net/142689 << how to i deliver static content directly here? a servlet is mapped to /* |
15:48.20 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
15:57.17 | Magnifikus | its possible to direct a request in a filter to a static file arround a servlet mapped to /* ? |
15:58.29 | jasonb | Magnifikus: 1) IIRC you can't map a servlet to "/*". |
15:58.49 | jasonb | Magnifikus: 2) I don't know what you mean by "static file around a servlet". |
15:59.51 | Magnifikus | i got a servlet that gets all requests to the context, so /en/MainPage and /de/MainPage processed by the servlet |
16:00.08 | Magnifikus | but /css /images should not processed by that servlet |
16:00.55 | Magnifikus | <servlet-name>main</servlet-name> |
16:00.56 | Magnifikus | <url-pattern>/*</url-pattern> |
16:14.19 | CQ | 2005-06-22 18:09:37,828 ERROR [com.atlassian.scheduler.SchedulerLauncher] java.security.AccessControlException: access denied (java.util.PropertyPermission org.quartz.properties read) |
16:14.52 | CQ | OK, made it one step further. Strangely enough, the jars are in the tomcat cache, but it still claims not to have read access??? The ownership and privs on the cache dir are all correctl |
16:16.47 | CQ | only the tomcat user needs access to the cache, right? |
16:24.39 | jasonb | Magnifikus: To answer your question, yes, it is possible to write a filter to get around the servlet mapping that would otherwise serve a request. |
16:27.46 | *** join/#tomcat a4akb (a4akb@ask14-208.qualitynet.net) |
16:50.39 | *** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
17:01.46 | *** join/#tomcat kTag (~kTag@marcadet-5-82-225-5-145.fbx.proxad.net) |
18:06.19 | *** join/#tomcat a4akb (a4akb@ask14-208.qualitynet.net) |
18:34.12 | *** join/#tomcat rajagopal (~rajagopal@203.200.43.195) |
18:38.03 | *** part/#tomcat rajagopal (~rajagopal@203.200.43.195) |
19:02.27 | *** join/#tomcat junous (~kitano@200.68.65.245) |
19:02.31 | junous | anyone used intelliJ? |
19:04.33 | a4akb | no |
19:07.14 | *** join/#tomcat bugfixer2 (~bugfixer2@42gis175.gulftel.com) |
19:18.25 | *** join/#tomcat mczepiel (EatMyShort@ns20324.ovh.net) |
19:29.14 | *** join/#tomcat __zao__ (~zao@port-195-158-171-133.dynamic.qsc.de) |
19:31.11 | __zao__ | how, in a servlet, can i throw an exception or whatever, so that 404 error handling of my web container is activated |
19:31.13 | __zao__ | ? |
19:31.42 | __zao__ | response.setStatus( HttpServletResponse.SC_NOT_FOUND ), gives me the default 404 page of tomcat |
19:31.58 | *** join/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua) |
19:31.59 | __zao__ | but i want to see, what i have mapped via <error-code>404</error-code> |
19:32.01 | n0mer | hello |
19:32.22 | n0mer | does anyone know how to use tiles properly? |
19:32.42 | n0mer | i instantly receive TTP Status 404 - Invalid path /getHome was requested |
19:33.05 | n0mer | i have web.xml, struts-config.xml, tiles-definition.xml |
19:33.12 | n0mer | but.. |
19:33.18 | n0mer | nothing works |
19:34.52 | puff | __zao__: Damn, that's an annoying nick to type. |
19:35.28 | puff | __zao__: To deliberately cause the 404 page to come up, in your JSP or servlet code, basically "throw new RuntimeException("foo")" |
19:35.46 | puff | n0mer: I've never worked with tiles, though I read a chapter about tiles once. |
19:36.21 | __zao__ | puff: nick: your right. to throwing an excpetion: no that doesnt work. i get a blank page. and what is worse an exception logged via log4j, which i get mailed in production. |
19:36.32 | n0mer | puff: tiles is not a real problem |
19:36.57 | n0mer | puff: the problem is to set up mapping between action and jsp :) |
19:37.21 | n0mer | puff: can you assist? |
19:37.28 | n0mer | this is simple web.xml question |
19:40.44 | n0mer | or, if i put all my struts forms/actions in JAR file, where it have to be |
19:41.02 | n0mer | in ./mywebapp/WEB-INF/lib/mywebapp.jar? |
19:41.16 | n0mer | or directly in ./mywebapp/mywebapp.jar? |
19:47.09 | n0mer | thanks a lot :( |
19:47.11 | *** part/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua) |
19:48.39 | __zao__ | puff: i can throw my own my own PageNotFound exception, and catch that in web.xml |
19:48.50 | __zao__ | but then still, i get annoying logging of the exception |
19:48.55 | __zao__ | that cannot be the proper way |
19:53.42 | *** join/#tomcat silverwolf (~silverwol@cpe.atm2-0-51103.0x50a3e74e.naenxx8.customer.tele.dk) |
19:57.54 | *** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
19:59.59 | __zao__ | got it: response.sendError( HttpServletResponse.SC_NOT_FOUND ); |
19:59.59 | __zao__ | <PROTECTED> |
20:00.03 | __zao__ | in my controller |
20:25.32 | silverwolf | This is super basic. I've made a java file with some hello stuff in, where should i put it in tomcat for getting it to be executed properly. At the moment i placed it under webapps/ where the other servlets are placed from the help |
20:27.26 | Magnifikus | jasonb, thx, put the servlet to /ngh/ *g* else it would be anyway a designfailure |
20:29.13 | randrew | silverwolf: your java classes need to be part of a web application, you'll need to create one of those, or add your classes to an existing one. |
20:30.13 | silverwolf | randrew, okay :) can i do it without ant?, you gave me a guide to it yesterday, but it implied using ant |
20:31.45 | randrew | silverwolf: you can, but you will need to learn a little about ant sooner or later, it will cost you time to not use it. |
20:32.29 | silverwolf | randrew, oki. But i just want to be able to upload files and see the web server display. Instead of deploying with ant every iteration |
20:34.08 | randrew | silverwolf: that will work for some things (static files, jsp files), whether you can just upload and see the change for .class or .jar files depends on some settings. |
20:34.47 | randrew | silverwolf: have an ant task copy the files in place maybe |
20:35.36 | randrew | silverwolf: if you're unsure about the layout of a web application read the servlet spec, version 2.2 covers the essentials, section 9 |
20:35.47 | silverwolf | randrew, oki |
20:36.17 | silverwolf | that would be a good start. Im so frustrated about the deploying thing because it's not just copy files and invoke classes from html file |
21:00.02 | randrew | silverwolf: you need to define servlets and map uris to them in WEB-INF/web.xml |
21:00.21 | silverwolf | randrew, oki. What i have not is |
21:00.25 | silverwolf | <PROTECTED> |
21:00.25 | silverwolf | <PROTECTED> |
21:00.28 | silverwolf | s/not/npw |
21:00.41 | silverwolf | in the <web-app><servlet> statement |
21:01.00 | silverwolf | I've putted a hello.java file into WEB-INF/classes |
21:01.29 | silverwolf | and made a class testhello which overrule the doGet method. also used package silverwall; in the top |
21:02.35 | silverwolf | http://pastebin.com/302651 |
21:02.40 | silverwolf | the hello.java file |
21:03.03 | silverwolf | http://pastebin.com/302652 |
21:03.06 | silverwolf | the web.xml file |
21:03.51 | *** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net) |
21:05.15 | loquace | re |
21:05.49 | silverwolf | re |
21:20.32 | *** join/#tomcat dundd (~chatzilla@p5487D42F.dip.t-dialin.net) |
21:20.56 | *** part/#tomcat dundd (~chatzilla@p5487D42F.dip.t-dialin.net) |
21:25.58 | silverwolf | When trying to manually compile the .java file, it should complain about the javax.servlet.* and java.servlet.http.* don't exist right? |
21:27.56 | randrew | silverwolf: not if you have servlet api jar on classpath |
21:28.42 | silverwolf | tomcat won't compile it by it self if i put it in classes as helloworld.java, it wont automaticly compile a helloworld.class file? |
21:31.53 | silverwolf | http://pastebin.com/302676 |
21:32.07 | randrew | silverwolf:Nope. Also.. Upper case class names. Class file needs to be in directory that matches package structure so Testhello.class will be at WEB-INF/classes/silverwall/Testhello.class. Fix case in web.xml and add mapping: <servlet-mapping><servlet-name>helloworld</servlet-name><url-pattern>/hi</url-pattern></servlet-mapping> |
21:32.08 | silverwolf | It can't find the class file, that's understandable, but shouldnt it compile one? |
21:32.24 | silverwolf | randrew, oki ill try :) |
21:34.10 | silverwolf | ok. I get this error: |
21:34.10 | silverwolf | java.lang.ClassFormatError: Incompatible magic value 1768779887 in class file Testhello |
21:36.00 | randrew | silverwolf: It's not a class file. |
21:36.53 | silverwolf | hmm i guessed that :) there a hellotest.java file, it should automatic compile a hellotest.class to use, is that right? |
21:38.20 | randrew | silverwolf: that doesn't happen automatically. You compile it, configure it, package it, install it. That's why you deal with ant. |
21:38.40 | silverwolf | ahhhh :D |
21:39.14 | randrew | silverwolf: gotta go, do try a tutorial. the spring one is pretty good. |
21:39.27 | silverwolf | oki :) Thanks :) |
21:39.45 | *** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu) |
22:16.31 | *** join/#tomcat lijian (~lijian@natted.sendmail.com) |
22:23.17 | *** join/#tomcat testmania (x@85.112.65.117) |
22:23.19 | testmania | hi |
22:23.25 | testmania | where can i get a tomcat test suite? |
22:32.26 | *** join/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua) |
22:32.30 | n0mer | hello |
22:32.51 | n0mer | can anyone help me to map Struts actions and Tiles definitions? |
22:34.33 | n0mer | i go to action url (http://<host>/<context>/action/home) |
22:34.38 | n0mer | and receive blank page |
22:34.52 | n0mer | thereis in the logs: |
22:34.52 | n0mer | Jun 23, 2005 1:30:50 AM org.apache.catalina.core.StandardContext reload |
22:34.53 | n0mer | INFO: Reloading this Context has started |
22:34.53 | n0mer | Jun 23, 2005 1:31:24 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory |
22:34.55 | n0mer | INFO: Tiles definition factory loaded for module ''. |
22:34.58 | n0mer | Jun 23, 2005 1:31:24 AM org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping |
22:35.01 | n0mer | INFO: Tiles definition factory found for request processor ''. |
22:35.22 | n0mer | so, everything looks fine, but...nothing is showed |
22:36.41 | *** join/#tomcat Mutiny (~craig@darkside.dod.net) |
22:36.44 | Mutiny | hi |
22:36.53 | n0mer | hi |
22:36.54 | Mutiny | anybody ever used JMX with Tomcat, say version 4.1? |
22:37.06 | n0mer | Mutiny: i used JXM under JBoss |
22:39.09 | jasonb | Mutiny: I have. |
22:39.15 | jasonb | Mutiny: It isn't easy. |
22:41.28 | n0mer | jasonb: do you know some the specific issues related to Struts Tiles? |
22:41.46 | n0mer | jasonb: i started learning them, and now i'm a little confused |
22:42.08 | n0mer | logfiles looks good, definitions looks good - but nothing is displayed |
22:46.58 | Mutiny | jasonb, you're telling me! |
22:47.07 | Mutiny | the MC4J docs are pretty wrong, it seems. |
22:47.29 | Mutiny | I am getting "NameNotFound" exceptions from MC4J trying to connect to my Tomcat service using the default "jrmp" name. |
22:49.16 | *** join/#tomcat Big_Bozz (~Big_Bozz@user-6710.l1.c3.dsl.pol.co.uk) |
22:51.27 | Big_Bozz | Evening guys - anybody know how to map requests from Apache VirtualHosts to Tomcat VirtualHosts (or contexts) using mod_jk? |
22:51.42 | Big_Bozz | I'm currently using JkMount /mycontext/* worker1 |
22:51.57 | Mutiny | jasonb, what did you have to do to get it to work? |
22:52.13 | Big_Bozz | the problem is that I want it to appear in the Apache Virtual Host as the root not /mycontext/ |
22:52.51 | Mutiny | JkMount /* worker1 doesn't work? |
22:53.21 | jasonb | Mutiny: Actually, I think MC4J doesn't work with Tomcat. |
22:53.38 | Big_Bozz | Mutiny: I don't want to mount all teh contexts into to virtual host - only one. |
22:53.43 | Mutiny | oh, what're you using? |
22:53.53 | jasonb | Mutiny: At least, the implementation of MC4J that was out when I was trying this like a year or year and few months ago. |
22:54.06 | jasonb | Mutiny: I wrote my own web-based JMX console. :) |
22:54.11 | Mutiny | i'm using a version i just downloaded yesterday. what did you have to do to get JMX to work? |
22:54.36 | Mutiny | i want to have a nice lil dashboard to use while monitoring my Tomcat server and then I want to integrate JMX into Nagios for monitoring and provisioning planning. |
22:54.36 | jasonb | Mutiny: Also, I had retrofitted TC 4.1 with MX4J 2 and my own JMX Remote connector. :) |
22:54.59 | Mutiny | yow. i put in the mx4j-tools.com from MC4J. |
22:55.09 | jasonb | Mutiny: Are you able to use Java 1.5? |
22:55.13 | Mutiny | i tried connecting with JNDI to see what i could do. |
22:55.14 | *** join/#tomcat kadams (~java_pro@adsl-217-133-46.bgk.bellsouth.net) |
22:55.21 | Mutiny | Java 1.5 with Tomcat? This instance is using 1.4 |
22:55.33 | jasonb | Mutiny: Yeah, but are you able to switch to 1.5? |
22:55.46 | jasonb | Mutiny: If so, this becomes far, far easier. |
22:55.54 | Mutiny | i can't tell if i need to use rmiregistry or what. |
22:56.03 | Mutiny | use 1.5 for Tomcat? I may... |
22:56.19 | jasonb | Mutiny: If you could, you could use jconsole, which comes with Tomcat. |
22:56.28 | jasonb | Mutiny: Not tomcat, I meant the JDK! |
22:56.45 | Mutiny | oh. I have Java 1.5 on my desktop I'm trying to use MC4J with. |
22:56.57 | jasonb | Mutiny: Jconsole amounts to a graphical JMX Remote client.. and it comes with the JDK. |
22:57.29 | jasonb | Mutiny: Then, to use jconsole, your server would need to be running inside of JDK 1.5, and you'd have to turn on the JDK's JMX Remote server. |
22:57.41 | Mutiny | which should i use? remote or advanced? |
22:57.52 | Mutiny | oh so i have to use jdk 1.5 on BOTH... |
22:57.55 | jasonb | Yes. |
22:58.07 | Mutiny | will that expose all the Tomcat specific mbeans? |
22:58.20 | jasonb | Or, implement your own JMX Remote connector for Tomcat 4.1 and use JDK 1.4.x and MX4J 2.0 like I had been doing.. :) |
22:58.35 | jasonb | That should, yes. I actually haven't tried this yet, but this is just how I'd do it. |
22:59.20 | vinse | is it possible to change the regex implementation that's used by cms to define restricted url patterns? |
23:00.01 | Mutiny | let me try that. |
23:00.27 | Mutiny | do you think if i use JDK 1.5's built in JMX Remote I'll be able to access it and all of Tomcat's mbeans from MC4J? |
23:01.14 | jasonb | Mutiny: That depends on whether the MC4J authors got a clue and supported the JMX Remote protocol or not. |
23:01.18 | loquace | gn |
23:02.47 | Mutiny | I do believe they did. |
23:03.18 | Mutiny | since it has a "J2SE 5.0" connection type option. |
23:05.55 | jasonb | Ahh, perfect. |
23:06.04 | jasonb | Then you should be able to use that. |
23:06.08 | jasonb | (finally) |
23:09.15 | *** part/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua) |
23:20.10 | jasonb | Anyone successfully configured a symlinked dir in a webapp under Tomcat 5.5.x? |
23:20.27 | InsomniaCity | hrm |
23:20.36 | InsomniaCity | I could try... |
23:22.49 | jasonb | I'm attempting all kinds of ways of configuring it, and it's not working. |
23:23.01 | Mutiny | jasonb, so how do you turn on JMX in the 1.5 JVM? |
23:29.38 | jasonb | Mutiny: Wow, I can't find that anywhere in my notes.. surprisingly. |
23:29.52 | jasonb | Mutiny: But, it's undoubtedly in the tools docs for the JDK. |
23:30.10 | jasonb | Mutiny: In there among the docs for jconsole, no doubt. |
23:30.58 | jasonb | Oh, wait, actually, I do have that. |
23:31.47 | jasonb | -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false |
23:33.13 | jasonb | InsomniaCity: It doesn't work, does it? :) |
23:33.22 | InsomniaCity | jasonb: haven't tried it |
23:38.54 | InsomniaCity | jasonb: worksforme |
23:39.37 | Mutiny | RMI should work over a SSH port forward, shouldn't it? |
23:39.50 | Mutiny | jasonb, yeah i got that. jconsole is just saying "Connect Failed"-- not especially helpful. |
23:41.04 | jasonb | InsomniaCity: How exactly did you configure that? |
23:41.20 | jasonb | InsomniaCity: (for the context) |
23:42.11 | InsomniaCity | jasonb: well... my context paths point at the absolute path, I just pointed it at the link instead. |
23:42.13 | jasonb | Mutiny: Hmm, use netstat & telnet to verify that your JMX Remote server is actually listening and accepting connections. |
23:42.49 | jasonb | InsomniaCity: No, actually, what I meant was a dir *inside* the webapp that is itself a symlink to a dir elsewhere on the filesystem. |
23:43.12 | InsomniaCity | aaaah |
23:44.45 | vinse | does anyone know if you can change the regex implementation that is used by cms to apply the patterns in the restricted url tag? |
23:46.33 | jasonb | vinse: Define "cms". |
23:48.24 | Mutiny | I tried to write a small program to use JNDI to enumerate the names, but came up blank. :/ |
23:48.39 | InsomniaCity | ouch |
23:52.59 | jasonb | InsomniaCity: I figured out the symlink thing. It does work in 5.5, as long as the JVM user has permissions to the destination dir of the symlink. :) |
23:55.21 | Mutiny | jasonb, so i got that all setup and it just says "Connect failed." :/ |
23:55.51 | jasonb | Mutiny: And what was the result of your netstat and telnet testing? |
23:57.50 | Mutiny | it's definately listening. |
23:58.00 | Mutiny | when i telnet to the port and type jibbering it's throwing an exception out. |
23:59.21 | jasonb | Okay. And you've told MX4J the exact host & port of the listener? |
23:59.46 | jasonb | Also, the telnet test you did.. did you do the telnet *from* the host where you're running MC4J? |
23:59.57 | jasonb | s/MX4J/MC4J/ |