irclog2html for #tomcat on 20050622

00:58.15*** join/#tomcat Aquila_Deus (AquilaDeus@211.72.124.70)
00:58.21Aquila_Deushi all
00:58.37Aquila_Deushow can I setup tomcat to do auto-compiling for my webapp?
01:32.00vinsewhat do you mean auto-compiling?
01:32.15vinseyou 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.28CQhello... where do I need to put the ojdbc driver to use it with a tomcan application?
07:11.07CQtomcat... sorry
07:26.51teitedoes anybody know why jk2 has been marked depricated?
07:27.04teitethough jk1 was the older one ;)
07:51.53*** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net)
07:52.56loquacelo
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.42incorrecti have an issue where apache doesn't apply its rules to tomcat apps
08:49.40HughWork_mod_rewrite?
08:49.51HughWork_...with mod_jk?
08:50.01*** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de)
08:51.48HughWork_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.46b0fh_uahi! Can somebody please help?
09:32.20b0fh_uaI need the tomcat server to have 2 hosts, the one with appBase set to webapp, another - to another directory
09:32.33b0fh_uabut 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.28kjk_hyperionmorning
09:42.51kjk_hyperionI have a really quick question I haven't found the answer for yet
09:43.05kjk_hyperionis 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.20CQ2005-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.25CQany idea what that means?
10:04.38*** join/#tomcat joered (~chatter@213-140-6-118.fastres.net)
10:06.05incorrectso if i have a DirectoryIndex
10:06.17incorrectsorry thought everyone was asleep
10:06.30incorrectyes im connecting using mod_jk
10:07.58incorrecti 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.25CQanyone alive ant tomcan knowlegeable in here?
10:55.59*** part/#tomcat multi_io (~olaf@swangoose.isst.fhg.de)
11:13.50incorrectcan i get tomcat to server different directory indexes. like index.testxml
11:27.35incorrectit 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.09CQyou 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.47CQ2005-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.57CQany 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.26Magnifikushi
13:07.10Magnifikusif i map /* to a servlet but want locations such as css images serve with static content, how do i realise that?
13:10.27Big_BozzMagnifikus: asaik there is no "exclusion" operator and you would therefore have to specify each mapping instead.
13:10.58Magnifikusits possible to direct from the servlet ?
13:11.27Big_BozzWell, you could build a filter that would do the exclusion for you - that would probably be the best.
13:11.55Magnifikusok will look at filters :)
13:23.22*** join/#tomcat a4akb (a4akb@ask14-208.qualitynet.net)
13:39.35Magnifikushm how do i get the PathInfo from HttpServletRequest in a ServletRequest?
13:39.52Magnifikuscan i cast it in a Filter then protocol is http ?
13:40.59*** join/#tomcat mczepiel (EatMyShort@ns20324.ovh.net)
13:52.06CQ2005-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.59CQanyone 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.44Magnifikuspowerfaile -.-
13:54.06BULLECQ: you have configured the database entry properly, with all the darn stuff like the documentation say ?
13:54.48CQbulle- 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.04CQhttp://www.atlassian.com/software/jira/docs/latest/servers/tomcat41.html was the maindocumentation I used
13:55.31CQproblem is I don't see how to look for the error
13:56.15BULLEhim, i have never setup jira
13:56.18BULLEwhatever now that is
13:56.29BULLECQ: tried to just look at the tomcat JNDI resource howto ?
13:56.53BULLECQ: and any reason you are using tomcat 4 ? and not 5.x ?
13:58.02CQit works with 4 on another machine, 5 is in experimental on debian and I wanted something stable.
13:58.41CQjria is a pretty decent bugtracking system
14:00.40CQcan 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.12CQBULLE I have this
14:15.16CQ<PROTECTED>
14:18.17CQso it is defined, but the
14:18.22CQsorry.
14:18.42CQis 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.49Magnifikushttp://nopaste.php-q.net/142689
14:25.13Magnifikushow do i route to the static context in the else ?
14:25.31Magnifikusthe servlet ist mapped to /*
14:27.57*** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net) [NETSPLIT VICTIM]
15:02.10Magnifikushm anybody using jtidy-r8 servlet.jar as filter in tomcat5?
15:11.41BULLECQ: if i remember the docs correctly, you need MUCH more then that little resource definition
15:11.54BULLECQ: you need to provide info about jdbc driver, username, password and other stuff aswell
15:12.05BULLECQ: as described in that magical thing called documentation
15:12.22CQbulle- I do, in a file called jira.xml which is in the webapps dir.
15:12.53CQbelieve me, I've read enough docs, I just don't unerstand enough yet to get further...
15:19.25BULLECQ: 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.55CQbulle it has the datasource definition in it.
15:20.10BULLEgood
15:20.15CQincluding host, db, user, password, etc.
15:21.29CQif I add stucc to tomcat4/server.xml, it goes into the <server> section, right?
15:22.06BULLEdepends on where you want to make it available i think
15:22.18BULLEyou might just want to put it in a certain context, to make it available to only a few apps
15:22.20CQlocalhost:8080/jira
15:22.39BULLEatleast 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.48BULLEbut, putting in the webapp context, tend to work
15:26.10CQok, _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.05jnt30Are 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.08jnt30?
15:34.32a4akbme?
15:35.12jnt30Is it no longer allowed
15:35.35jnt30I'm just trying to work through an example in the book and I'm having comp. errors
15:36.11jnt30I can get my JSP to connect to the DB as long as there are no interruptions between my try/catch block
15:36.27jnt30*an interruption being a %> HTML here <%
15:36.37jnt30which I find strange
15:40.38a4akblife can be strange
15:40.47a4akbits just a tag
15:40.50a4akbdont worry about it
15:44.41Magnifikushttp://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.17Magnifikusits possible to direct a request in a filter to a static file arround a servlet mapped to /* ?
15:58.29jasonbMagnifikus: 1) IIRC you can't map a servlet to "/*".
15:58.49jasonbMagnifikus: 2) I don't know what you mean by "static file around a servlet".
15:59.51Magnifikusi got a servlet that gets all requests to the context, so /en/MainPage and /de/MainPage processed by the servlet
16:00.08Magnifikusbut /css /images should not processed by that servlet
16:00.55Magnifikus<servlet-name>main</servlet-name>
16:00.56Magnifikus<url-pattern>/*</url-pattern>
16:14.19CQ2005-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.52CQOK, 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.47CQonly the tomcat user needs access to the cache, right?
16:24.39jasonbMagnifikus: 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.31junousanyone used intelliJ?
19:04.33a4akbno
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.01n0merhello
19:32.22n0merdoes anyone know how to use tiles properly?
19:32.42n0meri instantly receive TTP Status 404 - Invalid path /getHome was requested
19:33.05n0meri have web.xml, struts-config.xml, tiles-definition.xml
19:33.12n0merbut..
19:33.18n0mernothing works
19:34.52puff__zao__: Damn, that's an annoying nick to type.
19:35.28puff__zao__: To deliberately cause the 404 page to come up, in your JSP or servlet code, basically "throw new RuntimeException("foo")"
19:35.46puffn0mer: 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.32n0merpuff: tiles is not a real problem
19:36.57n0merpuff: the problem is to set up mapping between action and jsp :)
19:37.21n0merpuff: can you assist?
19:37.28n0merthis is simple web.xml question
19:40.44n0meror, if i put all my struts forms/actions in JAR file, where it have to be
19:41.02n0merin ./mywebapp/WEB-INF/lib/mywebapp.jar?
19:41.16n0meror directly in ./mywebapp/mywebapp.jar?
19:47.09n0merthanks 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.32silverwolfThis 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.26Magnifikusjasonb, thx, put the servlet to /ngh/ *g* else it would be anyway a designfailure
20:29.13randrewsilverwolf: 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.13silverwolfrandrew, okay :) can i do it without ant?, you gave me a guide to it yesterday, but it implied using ant
20:31.45randrewsilverwolf: 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.29silverwolfrandrew, 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.08randrewsilverwolf: 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.47randrewsilverwolf: have an ant task copy the files in place maybe
20:35.36randrewsilverwolf: 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.47silverwolfrandrew, oki
20:36.17silverwolfthat 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.02randrewsilverwolf: you need to define servlets and map uris to them in WEB-INF/web.xml
21:00.21silverwolfrandrew, oki. What i have not is
21:00.25silverwolf<PROTECTED>
21:00.25silverwolf<PROTECTED>
21:00.28silverwolfs/not/npw
21:00.41silverwolfin the <web-app><servlet> statement
21:01.00silverwolfI've putted a hello.java file into WEB-INF/classes
21:01.29silverwolfand made a class testhello which overrule the doGet method. also used package silverwall; in the top
21:02.35silverwolfhttp://pastebin.com/302651
21:02.40silverwolfthe hello.java file
21:03.03silverwolfhttp://pastebin.com/302652
21:03.06silverwolfthe web.xml file
21:03.51*** join/#tomcat loquace (~seb@aqu33-4-82-233-55-6.fbx.proxad.net)
21:05.15loquacere
21:05.49silverwolfre
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.58silverwolfWhen trying to manually compile the .java file, it should complain about the javax.servlet.* and java.servlet.http.* don't exist right?
21:27.56randrewsilverwolf: not if you have servlet api jar on classpath
21:28.42silverwolftomcat 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.53silverwolfhttp://pastebin.com/302676
21:32.07randrewsilverwolf: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.08silverwolfIt can't find the class file, that's understandable, but shouldnt it compile one?
21:32.24silverwolfrandrew, oki ill try :)
21:34.10silverwolfok. I get this error:
21:34.10silverwolfjava.lang.ClassFormatError: Incompatible magic value 1768779887 in class file Testhello
21:36.00randrewsilverwolf: It's not a class file.
21:36.53silverwolfhmm i guessed that :) there a hellotest.java file, it should automatic compile a hellotest.class to use, is that right?
21:38.20randrewsilverwolf: that doesn't happen automatically. You compile it, configure it, package it, install it. That's why you deal with ant.
21:38.40silverwolfahhhh :D
21:39.14randrewsilverwolf: gotta go, do try a tutorial. the spring one is pretty good.
21:39.27silverwolfoki :) 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.19testmaniahi
22:23.25testmaniawhere can i get a tomcat test suite?
22:32.26*** join/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua)
22:32.30n0merhello
22:32.51n0mercan anyone help me to map Struts actions and Tiles definitions?
22:34.33n0meri go to action url (http://<host>/<context>/action/home)
22:34.38n0merand receive blank page
22:34.52n0merthereis in the logs:
22:34.52n0merJun 23, 2005 1:30:50 AM org.apache.catalina.core.StandardContext reload
22:34.53n0merINFO: Reloading this Context has started
22:34.53n0merJun 23, 2005 1:31:24 AM org.apache.struts.tiles.TilesPlugin initDefinitionsFactory
22:34.55n0merINFO: Tiles definition factory loaded for module ''.
22:34.58n0merJun 23, 2005 1:31:24 AM org.apache.struts.tiles.TilesRequestProcessor initDefinitionsMapping
22:35.01n0merINFO: Tiles definition factory found for request processor ''.
22:35.22n0merso, everything looks fine, but...nothing is showed
22:36.41*** join/#tomcat Mutiny (~craig@darkside.dod.net)
22:36.44Mutinyhi
22:36.53n0merhi
22:36.54Mutinyanybody ever used JMX with Tomcat, say version 4.1?
22:37.06n0merMutiny: i used JXM under JBoss
22:39.09jasonbMutiny: I have.
22:39.15jasonbMutiny: It isn't easy.
22:41.28n0merjasonb: do you know some the specific issues related to Struts Tiles?
22:41.46n0merjasonb: i started learning them, and now i'm a little confused
22:42.08n0merlogfiles looks good, definitions looks good - but nothing is displayed
22:46.58Mutinyjasonb, you're telling me!
22:47.07Mutinythe MC4J docs are pretty wrong, it seems.
22:47.29MutinyI 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.27Big_BozzEvening guys - anybody know how to map requests from Apache VirtualHosts to Tomcat VirtualHosts (or contexts) using mod_jk?
22:51.42Big_BozzI'm currently using JkMount /mycontext/* worker1
22:51.57Mutinyjasonb, what did you have to do to get it to work?
22:52.13Big_Bozzthe problem is that I want it to appear in the Apache Virtual Host as the root not /mycontext/
22:52.51MutinyJkMount /* worker1 doesn't work?
22:53.21jasonbMutiny: Actually, I think MC4J doesn't work with Tomcat.
22:53.38Big_BozzMutiny: I don't want to mount all teh contexts into to virtual host - only one.
22:53.43Mutinyoh, what're you using?
22:53.53jasonbMutiny: 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.06jasonbMutiny: I wrote my own web-based JMX console.  :)
22:54.11Mutinyi'm using a version i just downloaded yesterday.  what did you have to do to get JMX to work?
22:54.36Mutinyi 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.36jasonbMutiny: Also, I had retrofitted TC 4.1 with MX4J 2 and my own JMX Remote connector.  :)
22:54.59Mutinyyow.  i put in the mx4j-tools.com from MC4J.
22:55.09jasonbMutiny: Are you able to use Java 1.5?
22:55.13Mutinyi 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.21MutinyJava 1.5 with Tomcat?  This instance is using 1.4
22:55.33jasonbMutiny: Yeah, but are you able to switch to 1.5?
22:55.46jasonbMutiny: If so, this becomes far, far easier.
22:55.54Mutinyi can't tell if i need to use rmiregistry or what.
22:56.03Mutinyuse 1.5 for Tomcat?  I may...
22:56.19jasonbMutiny: If you could, you could use jconsole, which comes with Tomcat.
22:56.28jasonbMutiny: Not tomcat, I meant the JDK!
22:56.45Mutinyoh.  I have Java 1.5 on my desktop I'm trying to use MC4J with.
22:56.57jasonbMutiny: Jconsole amounts to a graphical JMX Remote client.. and it comes with the JDK.
22:57.29jasonbMutiny: 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.41Mutinywhich should i use?  remote or advanced?
22:57.52Mutinyoh so i have to use jdk 1.5 on BOTH...
22:57.55jasonbYes.
22:58.07Mutinywill that expose all the Tomcat specific mbeans?
22:58.20jasonbOr, 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.35jasonbThat should, yes.  I actually haven't tried this yet, but this is just how I'd do it.
22:59.20vinseis it possible to change the regex implementation that's used by cms to define restricted url patterns?
23:00.01Mutinylet me try that.
23:00.27Mutinydo 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.14jasonbMutiny: That depends on whether the MC4J authors got a clue and supported the JMX Remote protocol or not.
23:01.18loquacegn
23:02.47MutinyI do believe they did.
23:03.18Mutinysince it has a "J2SE 5.0" connection type option.
23:05.55jasonbAhh, perfect.
23:06.04jasonbThen you should be able to use that.
23:06.08jasonb(finally)
23:09.15*** part/#tomcat n0mer (~n0mer@hosting4.ntu-kpi.kiev.ua)
23:20.10jasonbAnyone successfully configured a symlinked dir in a webapp under Tomcat 5.5.x?
23:20.27InsomniaCityhrm
23:20.36InsomniaCityI could try...
23:22.49jasonbI'm attempting all kinds of ways of configuring it, and it's not working.
23:23.01Mutinyjasonb, so how do you turn on JMX in the 1.5 JVM?
23:29.38jasonbMutiny: Wow, I can't find that anywhere in my notes.. surprisingly.
23:29.52jasonbMutiny: But, it's undoubtedly in the tools docs for the JDK.
23:30.10jasonbMutiny: In there among the docs for jconsole, no doubt.
23:30.58jasonbOh, wait, actually, I do have that.
23:31.47jasonb-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8004 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false
23:33.13jasonbInsomniaCity: It doesn't work, does it?  :)
23:33.22InsomniaCityjasonb: haven't tried it
23:38.54InsomniaCityjasonb: worksforme
23:39.37MutinyRMI should work over a SSH port forward, shouldn't it?
23:39.50Mutinyjasonb, yeah i got that.  jconsole is just saying "Connect Failed"-- not especially helpful.
23:41.04jasonbInsomniaCity: How exactly did you configure that?
23:41.20jasonbInsomniaCity: (for the context)
23:42.11InsomniaCityjasonb: well... my context paths point at the absolute path, I just pointed it at the link instead.
23:42.13jasonbMutiny: Hmm, use netstat & telnet to verify that your JMX Remote server is actually listening and accepting connections.
23:42.49jasonbInsomniaCity: 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.12InsomniaCityaaaah
23:44.45vinsedoes 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.33jasonbvinse: Define "cms".
23:48.24MutinyI tried to write a small program to use JNDI to enumerate the names, but came up blank.  :/
23:48.39InsomniaCityouch
23:52.59jasonbInsomniaCity: 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.21Mutinyjasonb, so i got that all setup and it just says "Connect failed."  :/
23:55.51jasonbMutiny: And what was the result of your netstat and telnet testing?
23:57.50Mutinyit's definately listening.
23:58.00Mutinywhen i telnet to the port and type jibbering it's throwing an exception out.
23:59.21jasonbOkay.  And you've told MX4J the exact host & port of the listener?
23:59.46jasonbAlso, the telnet test you did.. did you do the telnet *from* the host where you're running MC4J?
23:59.57jasonbs/MX4J/MC4J/

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.