IRC log for #tomcat on 20100303

00:15.18*** part/#tomcat jamesgolick (~jamesgoli@S0106002312f98d84.vc.shawcable.net)
01:29.13*** join/#tomcat juhanic (~juhani@60.32.133.198)
02:05.12*** join/#tomcat karstensrage (~karstensr@c-71-202-243-186.hsd1.ca.comcast.net)
02:10.43*** join/#tomcat rhonabwy (~rhonabwy@95-91-183-192-dynip.superkabel.de)
02:48.56*** join/#tomcat koza (~chatzilla@p3087-ipad04motosinmat.mie.ocn.ne.jp)
04:01.48*** part/#tomcat koza (~chatzilla@p3087-ipad04motosinmat.mie.ocn.ne.jp)
04:07.59*** join/#tomcat zed_DX (~kvirc@187.146.97.232)
04:16.52*** join/#tomcat pgk87 (~182f9781@gateway/web/freenode/x-ykrufnttgeowlwui)
04:17.12*** part/#tomcat pgk87 (~182f9781@gateway/web/freenode/x-ykrufnttgeowlwui)
04:27.07*** join/#tomcat acidjnk (acid@pD950A0B4.dip0.t-ipconnect.de)
04:31.26*** join/#tomcat bhagat (~bhagat@203.129.255.188)
04:35.12*** join/#tomcat km (~km@adsl-76-254-12-160.dsl.pltn13.sbcglobal.net)
05:43.14*** join/#tomcat jamesgolick (~jamesgoli@S0106002312f98d84.vc.shawcable.net)
05:44.23jamesgolickhey - I'm getting java.lang.ClassCircularityErrors on code that runs fine outside of tomcat... jdk 1.6 everywhere
06:03.33*** join/#tomcat km (~km@adsl-76-254-12-160.dsl.pltn13.sbcglobal.net)
06:04.13*** join/#tomcat jasonb (~jasonb@m320536d0.tmodns.net)
06:35.39*** join/#tomcat kaushal (~kaushal@125.22.61.162)
06:35.47kaushalhi
06:36.22kaushalI need help on Tomcat Client Deployer. Can someone guide me please
06:37.00*** join/#tomcat Alagar (~helpdesk@vsusg1.vernalissystems.com)
07:10.00*** join/#tomcat jasonb (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:40.47*** join/#tomcat NotInternat (~nf@123-243-184-161.static.tpgi.com.au)
08:43.24*** join/#tomcat trone (~sim@host208-19-dynamic.58-82-r.retail.telecomitalia.it)
08:43.52tronehi there. I had some problem after last upgrade on debian. someone know?
08:49.39troneI'm on linux-debian, tomcat 6.0.24, sun-java6 (java version 1.6.0_16)
08:59.19*** join/#tomcat nwillems (~niwil90@78.111.169.98)
09:04.17*** join/#tomcat juhanic (~juhani@60.32.133.198)
09:24.33nwillemsHey guys - I'm running a debian 5.0.3 and java 1.6.0_12 with tomcat 6.0.20 - And wondering if I somehow can shortcirciut the JDBCRealm to use a default password for the user logging in - I'm using a combined realm and just need the database to fetch roles.
09:34.52tronenwillems: can you help me? I don't know well tomcat, and I have a cocon webapp that go and /var/lib/tomcat6/webapps/ROOT .. but after a stupid upgade it's doenst' work more.
09:35.12troneI don't know exactly what I have to configure... can you help me?
09:47.55*** join/#tomcat kaushal (~kaushal@125.22.61.162)
09:47.59kaushalhi
09:48.02kaushalAt the moment, I stop,kill tomcat and scp the war to webapps folder and start tomcat server. is there a better way to do it ?
09:50.11nwillemskaushal: Yes - you can configure your tomcat to autodeploy
10:12.00tronenobody can help me? I have the service taht run on port 80, but nothing appear on the browser...
10:18.57tronehttp://paste.debian.net/62209/
10:19.02trone^^ log from syslog
10:19.29kaushalnwillems: sorry was away for a while
10:20.15kaushalI have decided to use TCD
10:20.31kaushalPlease suggest
10:30.16*** join/#tomcat dvayanu (~another@93.104.234.130)
10:44.13*** join/#tomcat IceFacesIsAFix (~IceFacesI@static-87-79-71-74.netcologne.de)
11:06.02*** join/#tomcat j2sentient (~j2sentien@unaffiliated/j2sentient)
11:24.04troneI don't know why my tomcat6 don't reply on port 80. someone can help?
11:25.05troneplease? debian squeeze, java-6-sun 1.6.0_16, tomcat6
11:25.20*** join/#tomcat grandmoun (~piliman@encyclo014701-1-4.clients.easynet.fr)
11:25.40tronetomcat6 6.0.20
11:37.35*** join/#tomcat HexDump (RobHuggard@89.29.184.170)
11:37.38HexDumphi everybody
11:39.50troneI don't undersatnd why tomcat6 don't reply at the 80... It are working but don't reply. I've debian squeeze, java-6-sun 1.6.0_16, tomcat6.0.20 . please someone can help me?
11:48.18asydtrone: no logs? do you stasrt tomcat as root?
11:48.55nwillemstrone: have you remembered to check your server.xml to see if thats the port it is configured for?
11:49.05*** join/#tomcat IceFacesIsAFix (~IceFacesI@static-87-79-71-74.netcologne.de)
11:51.46HexDumpI'm getting a bit crazy. I'm migrating a tomcat application, and I have an app in webapps. In the working server if I use http://host/appname a blank listing is shown (correct). In my implantation if I do the same I gent an error saying that resource is not available. I have checked lota google pages, and trying to mimic other built-in apps like balancer, etc... but no luck.
11:52.09HexDumpCentos 5.2, java-6-sun 1.6.0_18 and Tomcat 5.2.7
11:53.15asydwhat about the logs...
11:53.25troneasyd: i start tomcat with /etc/init.d/tomcat6 start of debian squeeze. the (sys)logs are: http://paste.debian.net/62222/
11:53.40HexDumpoh, let me check it asyd
11:54.12asydtrone: iptables -L ? :P
11:56.09troneasyd: iptables should to be ok. :) Is the things that I know... http://paste.debian.net/62224/
11:56.34tronenwillems: the server.xml is setted: http://paste.debian.net/62223/
11:57.06tronethe point is that it worked yesterday. today I do the worst upgade of ever (I'm stupid, yes) and all fuckedup
11:57.11*** join/#tomcat IceFacesIsAFix (~IceFacesI@static-87-79-71-74.netcologne.de)
11:57.17asydwell, your tomcat seems ok, so I suggest you to disable iptables to test.
11:57.27troneasyd: right.
11:58.39HexDumpasyd: ummm, I have an empty log named Blzeds0.log and a lock file. THe app I'm trying to make owrk is called Blazeds. Both logs are empty
11:58.46HexDumpno more data related to this app
12:00.23HexDumpI have seen around I could use a context entry in server.xml to make blazeds application load, but I can't see this in the original instalation.
12:02.19HexDumpls
12:02.36asydno catalina.out ?!
12:02.38HexDumpsorry :/. Wrong focus :)
12:02.52HexDumpasyd: yes.. but it doesn't statate nothing important
12:03.48troneasyd:ok, I close me out... damnit.
12:05.32HexDumpasyd: I have been trying to use ROOT dir and it works, I mean it seems tomcat installation is correct. This is why I skipped catalaina.out :)
12:22.56HexDumpahhh now it listed some more bit info on the logs :). Blazeds.log says that servlet MessageBrokerServelt threw unload() exception :/ in core.ApplicationContext, any tip?
12:25.39HexDumpI think this is not related with tomcat but blazeds libs... let's see what can I find.
13:01.02*** join/#tomcat |MHSL| (mhsl@cm5.eta6.maxonline.com.sg)
13:06.29*** join/#tomcat _MHSL_ (mhsl@cm5.eta6.maxonline.com.sg)
13:11.32troneok. I'm on tomcat5.5, how I can put a /usr/share/tomcat5.5/webapps as the default app ?
13:12.12trone(If I wanna make taht pointing the web browser toward the server that application is shown
13:21.33*** join/#tomcat MHSL (mhsl@cm5.eta6.maxonline.com.sg)
14:07.57*** join/#tomcat randrewj (~raj-user@user-160uu4k.cable.mindspring.com)
14:08.03*** join/#tomcat |MHSL| (mhsl@cm5.eta6.maxonline.com.sg)
14:23.11*** join/#tomcat l3dx (~thomas@unaffiliated/l3dx)
14:24.11l3dxis it possible to restrict access to certain parts of a webapp using valves?
14:24.25l3dxrestricting by ip ranges
14:38.28Lzrdkingno clue :P
14:38.31randrewjl3dx: http://tomcat.apache.org/tomcat-6.0-doc/config/valve.html#Remote%20Address%20Filter
14:38.42*** join/#tomcat HexDump (RobHuggard@89.29.184.170)
14:47.21l3dxrandrewj: I'm aware of that filter, but I can't figure out if it's possible to apply the filter to given parts of the application
14:58.31*** join/#tomcat mturk (~mturk@89-164-108-134.dsl.iskon.hr)
15:01.14*** join/#tomcat anirvana (~chatzilla@114.69.224.162)
15:01.23*** part/#tomcat anirvana (~chatzilla@114.69.224.162)
15:07.26*** join/#tomcat kaushal (~kaushal@115.118.247.90)
15:07.30kaushalhi
15:08.15cofeineSunshinehowdy
15:08.22kaushalcofeineSunshine: hi
15:08.49kaushalI am using Tomcat Client Deployer for deploying war on tomcat server
15:08.56kaushali use ant utility
15:09.14kaushalis there a way to kill tomcat process using ant
15:09.24kaushal?
15:10.02cofeineSunshineno
15:10.12cofeineSunshineant will use tomcat shutdown port
15:10.57kaushalcofeineSunshine: ok, so if i need to restart tomcat using ant is that possible ?
15:11.28kaushalsince in our current setup there is a In memory cache
15:11.50kaushaland some threads which doesnot get cleared
15:11.51cofeineSunshineyes, if ant issues command kill -9 $PID
15:12.10cofeineSunshinethese threads probably waiting for DB
15:12.45kaushalcofeineSunshine: any example on how ant can issue kill command to kill tomcat ?
15:13.26kaushali use ant -lib /path/to/lib deploy
15:13.38kaushalusing build.xml
15:13.51cofeineSunshineit is easier to use command line
15:13.56cofeineSunshineps ax | grep java
15:13.59cofeineSunshineto find java PID
15:14.03cofeineSunshinethen kill -9 $PID
15:14.18kaushalcofeineSunshine: i know it already :)
15:14.28kaushalbut thats manual way of doing it
15:14.42cofeineSunshineso, write ant script to that for you:)
15:16.42kaushalok
15:17.47cofeineSunshineand give me:) i'll need such script to:D
15:19.06randrewjl3dx: a filter could be mapped to url, or a valve could be customized to acomplish same. either way you'd need to do a little coding.
15:19.21*** join/#tomcat Gio^ (~VaNNi___@38.98.61.142)
15:22.11kaushalcofeineSunshine: <target name="deploy" depends="deploy-live,restart"/> ?
15:22.51kaushaldoes it mean that it will restart tomcat server ?
15:27.02randrewjcofeineSunshine: kill -15 should be used before resorting to kill -9
15:28.03Lzrdkingshould all tomcat files be owned by the tomcat user, or should they be owned by root and the group be the tomcat user's group with group write permissions set only on specific files/directories?
15:33.39*** join/#tomcat dcave555 (~alina@212.150.31.116)
15:33.47*** part/#tomcat dcave555 (~alina@212.150.31.116)
16:04.45*** join/#tomcat jumic (~micheju@f051237130.adsl.alicedsl.de)
16:31.06*** join/#tomcat roel- (~rdvdijk@rustradio.xs4all.nl)
16:32.01roel-what's that file called where I can put my own configuration, such that I can just extract a newer version of tomcat over my current one?
16:37.04randrewjroel-: if you put your configuration under CATALINA_BASE you can accomplish an upgrade by pointing CATALINA_HOME to different tomcat version. Read RUNNING.txt in tomcat binary package for info.
16:37.26roel-i think I mean setenv
16:38.16roel-randrewj: thanks, setenv is mentioned there as well
16:38.41randrewj(Overwriting tomcat is probably not a good update strategy.)
16:40.30roel-no i know
16:40.47roel-i meant upgrading to a new version, not overwriting it
16:43.03Lzrdkingshould all tomcat files be owned by the tomcat user, or should they be owned by root and the group be the tomcat user's group with group write permissions set only on specific files/directories?
16:45.18*** join/#tomcat none (~km@outbound-nat-134.vmware.com)
16:48.44*** part/#tomcat schumact (~tschumach@69.15.86.83)
16:51.16*** join/#tomcat acarbs12 (~acarbone@173.9.89.1)
17:05.31*** join/#tomcat jasonb (~jasonb@m4c0536d0.tmodns.net)
17:49.04*** join/#tomcat Internat (~nf@123-243-184-161.static.tpgi.com.au)
17:55.03*** join/#tomcat Internat (~nf@123-243-184-161.static.tpgi.com.au)
17:58.16*** join/#tomcat NotInternat (~nf@123-243-184-161.static.tpgi.com.au)
18:04.06*** join/#tomcat Internat (~nf@123-243-184-161.static.tpgi.com.au)
18:11.36*** join/#tomcat jasonb (~jasonb@dsl027-180-244.sfo1.dsl.speakeasy.net)
18:12.53*** join/#tomcat NotInternat (~nf@123-243-184-161.static.tpgi.com.au)
18:22.57*** join/#tomcat uebera|| (~nnuser@subjektzentrisch.de)
18:27.52*** join/#tomcat medthomas (~chatzilla@apache/committer/markt)
18:29.29Lzrdkingshould all tomcat files be owned by the tomcat user, or should they be owned by root and the group be the tomcat user's group with group write permissions set only on specific files/directories?
18:30.14*** join/#tomcat trone_ (~sim@host58-56-dynamic.55-79-r.retail.telecomitalia.it)
18:32.24randrewjLzrdking: it does not matter much. if you restrict write permisison to logs/ work/ and temp/ you will be acting responsibly.
18:36.26Lzrdkingok
18:36.28Lzrdkingthanks
18:47.39jasonbIt ends up depending on how secure you need your server to be.. and how much time you have to debug problems that are caused by the removal of privileges.
18:48.23jasonbUsually, people don't need their servers to be all that secure.. though Tomcat itself is quite secure.  Your webapps are likely to be a lot less secure.
18:49.43jasonbThe secure file permission scheme is: Tomcat's tree is mainly read-only by the user running the JVM, and then there are a certain set of directories like randrewj mentioned that the webapp and/or Tomcat has to be able to write to.
18:50.25jasonbAdditional dirs it may need to write to: conf/Catalina/ and everything inside it, webapps/ and everything inside it..
19:19.56Lzrdkingjasonb: thanks!
19:20.16jasonbLzrdking: You're welcome.
19:29.59*** join/#tomcat odin_ (~dlm@93-97-168-38.zone5.bethere.co.uk)
19:45.25*** part/#tomcat randrewj (~raj-user@user-160uu4k.cable.mindspring.com)
19:47.34*** join/#tomcat pucko (~andreas@h19n2fls304o253.telia.com)
19:50.56*** join/#tomcat k0rupted (~k0rupted@ip68-110-92-230.ph.ph.cox.net)
19:52.36k0ruptedtomcat 5.5.23 ... centos 5.4 ... java-1.6.0 ... I'm trying to figure out how to change the appBase dir from /var/tomcat ? I keep seeing this tell me I can do it in server.xml, but can't find how?
19:53.35*** join/#tomcat acidjnk (acid@pD950A0B4.dip0.t-ipconnect.de)
19:58.38jamesgolickhey - I'm getting java.lang.ClassCircularityErrors on code that runs fine outside of tomcat... jdk 1.6 everywhere
20:04.24k0ruptedby chaning the symlink in /usr/share/tomcat5/webapps -> /www/tomcat5/webapps is that sufficient/best practice?
20:04.28k0ruptedchanging*
20:06.42jasonbk0rupted: It might work, but that's not the way you should do it.  In your server.xml, edit the <Host> element's appBase attribute and set it to any absolute filesystem path you want.
20:17.04k0ruptedah ok, thanks jasonb
20:19.17jasonbk0rupted: You're welcome.
20:21.32k0ruptedI change it, and I put my .war file in there, I installed JRE 1.6 from sun, and that shows as the current java version java version "1.6.0" ... but I get "WARNING: Failed to register in JMX: javax.naming.NamingException: Could not create resource factory instance [Root exception is java.lang.ClassNotFoundException: org.apache.tomcat.dbcp.dbcp.BasicDataSourceFactory]"
20:21.39k0ruptedThat server config or sound like something with the app?
20:27.57k0ruptedoh... in the new appBase dir create the symlinks for, common,config, etc?
20:30.44jasonbappBase = the webapps/ directory
21:16.21Lzrdkingupgrade java first, then tomcat, or tomcat first, then java?
21:19.36*** join/#tomcat Lzrdking (~41a04302@gateway/web/freenode/x-oiydzvhpdcwckxaj)
21:20.47Lzrdkinggrr
21:37.27medthomasTomcat what to what? Java what to what?
21:41.57*** join/#tomcat medthomas (~chatzilla@91.109.179.178)
21:42.05*** join/#tomcat medthomas (~chatzilla@apache/committer/markt)
21:43.00*** join/#tomcat dogmeat (~Bob@unaffiliated/dogmeat)
21:46.15*** join/#tomcat cortiz (~cortiz@201.191.189.22)
21:58.27*** join/#tomcat ibot (ibot@rikers.org)
21:58.27*** topic/#tomcat is Stable versions: 6.0.24 , 5.5.28, 4.1.40. Newbies use the official binary from tomcat.apache.org, or an RPM package from http://www.webdroid.org/archives/tomcat-package. Check your Tomcat logs before you ask for an answer. SLOW MOTION CHANNEL (we all have jobs & kids): Ask your question including your TC, Java, & OS versions, then wait; check back often for answers.. Use mod_proxy_ajp,
22:04.31*** part/#tomcat cortiz (~cortiz@201.191.189.22)
23:07.33*** join/#tomcat MHSL (mhsl@cm5.eta6.maxonline.com.sg)
23:42.54nonewhy is class loader doc show common when there's no common in tomcat6 install, should it be lib?
23:44.41jasonbnone: There is no common directory, but there is still a common classloader.  Have a look at the conf/catalina.properties file.  It's in there.
23:45.04noneright, i just notice in catalina.properities
23:46.42noneshould i put jar file that use by all instance in lib or should i put jar file in each webapp lib?
23:48.48nonei meant class file
23:49.08jasonbnone: It's really up to you, based on what you're trying to do with your webapps.  If you want the webapps to be individually portable to other servlet containers, put the jar in WEB-INF/lib.  If you want to reduce your disk footprint and you always want these webapps to be deployed together, you can put the jar or class file in CATALINA_HOME/lib.
23:51.34nonewhat about per instance lib directory?
23:53.44nonelike CATALINA_BASE/lib?
23:54.37medthomasnone: Put the JAR in WEB-INF lib unless you have to put it in lib (eg JDBC driver when pooling). Disk and memory is cheap and shared libs are nearly always more trouble than they save.
23:55.00medthomasnone: Newer version of Tomcat 6 will support CATALINA_BASE/lib. I think from 6.0.24 onwards
23:55.38noneok, thanks

Generated by irclog2html.pl Modified by Tim Riker to work with infobot.