IRC log for #tomcat on 20090304

00:00.12Lord_Eoutside the local network i mean, i haven't mapped the router and all that... i can connect using SSH from within the network though ^^
00:00.12marviHmm. seems like Spring doesn't find persistence.xml.
00:00.43marviIt seems it should be find in one of you jars under META-INF/
00:01.00marviIs it included alright?
00:01.34Lord_Eweird... i figured the java part would be se same as on the developer machine as long as it's deployed correctly...
00:01.37Lord_Einclude what?
00:02.16Lord_Ethe only file in META-INF/ is MANIFEST.MF
00:02.33marviHave you built this app? You are familiar with Spring and JPA?
00:02.44Lord_Ethat's why i'm making this app =)
00:03.04Lord_Eyeah, i've built the app myself and like i said, it works perfectly on this machine
00:03.23Lord_Efor the record, it's an MMOTBS game =)
00:03.47Lord_Eas in Massively Multiplayer Online Turn Based Strategy
00:04.03marviOk. Well, Spring seems to lack a config files. It tries to find it in META-INF/persistence.xml inside a jar file (or maybe in your classes folder).
00:04.15Lord_Einside a jar file?
00:05.42marviWell, it says classpath*:META-INF/persistence.xml
00:06.16Lord_Ebut why would it be in a .jar?
00:06.23marviMeaning Spring's accessible classpath, inside a directory called META-INF. So either in a jar file or in WEB-INF/classes
00:07.13Lord_Ehm
00:07.20marviThat is a normal way of building Spring apps. You add the JPA information to the jar file containing the JPA classes.
00:07.46marviBut you can have it in WEB-INF directory too. It depends on how you configure Spring.
00:08.13marviBut this is not a Tomcat issue for sure. It is in you war. You might get better help in #spring.
00:08.15Lord_Eon this machine, persistence.xml is in META-INF/ alright... but it seems that file isn't included in the subversion repository!
00:08.30marviAh, there's a clue. :)
00:08.39marviI'm off to bed. Good luck.
00:08.48Lord_Eok thanks for all the help! :D
00:11.04*** join/#tomcat JustinLei (n=JustinLe@122.195.45.152)
00:16.57*** join/#tomcat Nicke_ (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se)
00:26.35*** join/#tomcat nylon (n=chatzill@adsl-068-209-113-138.sip.asm.bellsouth.net)
00:31.05*** join/#tomcat karstensrage (n=karstens@c-76-103-32-139.hsd1.ca.comcast.net)
01:28.37*** join/#tomcat kanai (n=kanai@124.32.114.226)
01:32.32*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
01:38.54*** join/#tomcat OsAC (n=osac@space.cicmir.com)
01:41.06OsACif I want to be able to server *.jsp I have to use tomcat wright?
03:10.27*** join/#tomcat JustinLei_ (n=JustinLe@122.195.17.37)
04:27.26*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
04:35.31*** join/#tomcat sprasanna (n=sprasann@125.20.84.54)
04:36.34sprasannai installed tomcat in mac using macports but when i tried to start using sudo sh startup.sh i get this error http://pastebin.com/d2cb920c2
05:09.29*** join/#tomcat JustinLei (n=JustinLe@122.195.17.37)
05:11.25*** join/#tomcat Gopaul (n=chatzill@61.95.156.130)
05:27.09*** join/#tomcat igors (n=igors@189.71.6.241)
05:27.23igorshello, I've downloaded Tomcat 5.5, durint "ant" i get an error, it can't download a file, the url is wrong. How can i change the url it's  going to download? (http://dpaste.com/5759/)
05:27.27*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
05:37.10*** join/#tomcat Gopaul (n=chatzill@61.95.156.130)
05:43.49*** join/#tomcat kanai (n=kanai@124.32.114.226)
05:56.25*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
06:15.11*** join/#tomcat nokheat (n=chatzill@158.132.55.118)
06:15.39nokheatdear all
06:16.50nokheatwe have a problem, i am on apache-tomcat-5.5.27, i would like to get some code executed on server startup, i wonder if there is any elegant way to make tomcat do it?
06:32.53*** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net)
06:40.08*** join/#tomcat dvayanu (n=another@ppp-93-104-58-158.dynamic.mnet-online.de)
06:47.58*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
07:18.31*** join/#tomcat kjkoster5489 (n=kjkoster@193.79.224.62)
07:20.14*** join/#tomcat vobis (n=vobis@a4.rwd.prospect.pl)
07:21.39tomekhello, i have problem with tomcat
07:22.27tomeki copied web app to /webapps direcotry and type in browser http:localhost:8080/APP
07:22.44*** join/#tomcat Rishab (i=d2d4969a@gateway/web/ajax/mibbit.com/x-f5d312ab650cb8ec)
07:23.06tomekApplication started but there was few exceptions, like (null pointer, because there is not class)
07:23.36tomekthis class is in subdirectory of this app but tomcat i think can't see this
07:23.41tomekcan you help?
07:23.52Rishabhey
07:25.01tomekI am using tomcat 6.0.16 and jdk1.6.0_07
07:26.01*** join/#tomcat johni (n=chatzill@pool-173-57-53-137.dllstx.fios.verizon.net)
07:27.16johnihello everybody, I documented a new software development process for open source projects and communities for my masters thesis
07:27.26johniI would help from open source contributors to validate my work
07:27.59deebowouldnt that basically be a thesis on chaos theory :P
07:28.15johnideebo: pretty much
07:28.38*** join/#tomcat sjb_ (n=jayjay@c-9b60e055.017-25-68626710.cust.bredbandsbolaget.se)
07:28.44deeboso theres no validating it :P
07:28.58johnibut I hope I will make the chaos more obvious
07:29.24johnideebo: well, that is the beauty of it
07:30.25johnideebo: I created a survey to get some feedback on my dissertation
07:30.53johniwould you be interested in helping? any help is greatly appreciated
07:32.27*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
07:32.39johninobody :( ?
07:33.32nokheatsir, u are working on master thesis?
07:34.17johninokheat: yeap
07:34.30nokheathow can we help?
07:34.47johnii have a simple survey with few questions regarding my work
07:34.58nokheatthat great, i am working on my honours project too
07:35.17nokheatis it a link to the survey?
07:35.19johniout of the entire thesis about 20 pages are the detailed description
07:35.20deebogot my bSC, mSC should be done after the summer
07:35.40johnidefinately
07:35.50johnithe survey is a google form and includes all the details
07:36.09nokheatlets show the group and see if anyone out there is free to answer
07:36.17johnihttp://spreadsheets.google.com/viewform?hl=en&formkey=cFg5UUVKakwyOTJ2eDhNWDM5WUlfVlE6MA..
07:36.24johnithat is the link :)
07:36.47johniany help would be more than appreciated
07:37.36johnithe thesis is still in rough draft so please excuse any mistakes or errors
07:38.10johniand will be glad to answer any questions
08:12.06*** join/#tomcat dvayanu (n=another@host-62-245-224-138.customer.m-online.net)
08:16.01*** join/#tomcat tom17bombadil_ (n=tom@BAAe738.baa.pppool.de)
08:27.23*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
08:32.12*** join/#tomcat JustinLei__ (n=JustinLe@122.195.17.37)
09:12.17*** join/#tomcat ha55an (n=ha55an@82-204-3-186.dsl.bbeyond.nl)
09:15.38ha55anHi, i have a generic question about Tomcat support for IPv6. I read somewhere that it does not work because "the IPv4 address 127.0.0.1 is actually hardcoded several times there (in StandardServer.java, Catalina.java and some others)"  Can somebody please confirm this?  Thanks
09:17.51jinkI'm not sure, but you could setup an ipv6 reverse proxy?
09:24.25ha55anjink: yes, that could be a workaround, but i was wondering if there was a "cleaner" way of doing it.
09:28.07jinkha55an: That I don't know.  I don't currently use IPv6.
09:29.50ha55anjink: thanks, i will look some more, otherwise, proxy it will be.
09:29.59jinkGood for you.
09:32.28*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
09:35.41*** join/#tomcat soa2ii (n=quassel@i59F5718A.versanet.de)
09:41.11*** join/#tomcat lesshaste (n=lesshast@87-194-206-189.bethere.co.uk)
09:41.26lesshastehi.. is there some way to sandbox things so that dodgy jsp code doesn't crash the server?
09:56.29[[thufir]]I keep getting this message that port 8080 is in use :(
10:06.55kjkoster5489[[thufir]]: Perhaps this helps? http://java-monitor.com/forum/showthread.php?t=22
10:07.28kjkoster5489lesshaste: when you say crash, what happens? JSP's cannot 'crash' a JVM.
10:07.35*** join/#tomcat marvi (n=marvi@pdpc/supporter/active/marvi)
10:07.57lesshastekjkoster5489, the server looks like it has hung
10:08.30kjkoster5489100% cpu or 0%?
10:09.02kjkoster5489tomek: please resolve the exceptions and pastebin the exceptions that yuou cannot resolve
10:51.05[[thufir]]kjkoster5489: http://pastebin.com/m2d6b87e6  cpu is fine.  it's something to do with my web app and tomcat
10:56.04[[thufir]]kjkoster5489: I
10:56.21[[thufir]]kjkoster5489: I'm trying to install sockstat first
11:22.49*** join/#tomcat Gopaul (n=chatzill@61.95.156.130)
11:32.28*** join/#tomcat karlwettin (n=kalle@c-8d8370d5.029-18-6d6c6d2.cust.bredbandsbolaget.se)
11:39.49*** join/#tomcat prgrmr (n=prgrmr@unaffiliated/prgrmr)
12:13.06*** join/#tomcat gigasoft (n=gigasoft@77.222.15.52)
13:00.16*** join/#tomcat trifon (n=chatzill@78.90.20.97)
13:00.23*** join/#tomcat randrewj (n=raj-user@user-160uub9.cable.mindspring.com)
13:22.22*** join/#tomcat rschootman (n=chatzill@62-177-129-190.bbned.nl)
13:27.31rschootmanHello all, I am trying to split up my tomcat installation so that each tomcat instance will run in a different JVM
13:28.08rschootmanThe versions I use are: tomcat version:5.5.27 java version:1.6.0_10 linux kernel:2.6.27-11
13:29.56rschootmanI've followed the instructions from the RUNNING.txt file section: Advanced Configuration - Multiple Tomcat Instances
13:31.35rschootmanMy env vars are: CATALINA_HOME=/opt/tomcat/apache-tomcat-5.5.27 and CATALINA_BASE=/opt/tomcat/domains/nextgenDM
13:32.36rschootmanso CATALINA_HOME contains these directories: shared, common, server, temp, work, logs, bin, conf
13:34.08rschootmanCATALINA_BASE contains: temp, work, webapps, shared, bin, conf, logs
13:34.36rschootmanwhen I try to start my tomcat instance with a war in the webapp dir I get:
13:35.00rschootmanjava.lang.ClassNotFoundException: org.apache.catalina.deploy.FilterDef
13:35.01*** join/#tomcat loddafnir (n=mike@at-vie-gaso-r11a.upc.at)
13:35.22rschootmanThis happens on deploying the war file
13:35.53rschootmanI tried googling but could not find a answer
13:36.07rschootmanany ideas?
13:46.42*** join/#tomcat FN2zoiqoR (i=fn2zoiqo@henryjackson78.cims.rit.edu)
13:49.03*** join/#tomcat eddy2 (n=onkel_e@141.89.226.149)
13:54.15*** join/#tomcat Vanuatoo (n=Vanuatoo@213.131.37.174)
13:54.30eddy2hello,my tomcat-manager-application runs well, but the admin-application is not available. I get always the error-message: "Servlet admin.login_jsp is currently unavailable". Have read in forums, but all clues didn't work yet. I use tomcat 5.5 with debian 4.0 and java 1.6
14:09.41*** part/#tomcat marvi (n=marvi@pdpc/supporter/active/marvi)
14:17.19rschootmansolved it. i forgot to put the web.xml in the conf dir in my catalina_base
14:23.29*** join/#tomcat acidjnk (i=acid@pD950817B.dip0.t-ipconnect.de)
14:33.00kjkoster5489eddy2: don't use the manager app. It does nothing that you cannot do easier in another way.
15:22.07*** join/#tomcat flatland (n=alejo@190.71.164.71)
15:24.06flatlandhello, can anyone tell me if the hosts file to add port and direction (for example - 127.0.0.1:8080)
15:25.00flatland(for example - 127.0.0.1:8080   www.miweb.com)
15:27.25kjkoster5489flatland: euh... what?
15:31.15flatlandto direct a page and a port to a specified direction (can I set the port and address in the hosts file ??)
15:31.50*** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com)
15:32.13flatlandkjkoster5489::-[
15:52.52*** part/#tomcat flatland (n=alejo@190.71.164.71)
16:58.03*** join/#tomcat soa2ii (n=quassel@i59F5718A.versanet.de)
17:03.00*** join/#tomcat dennis00 (n=dennis@62.140.137.30)
17:03.39dennis00Hello #tomcat. Tomcat is suffering a high load. 200 active threads, 150 of which are waiting for the same thread. How do I find out what this thread does?
17:06.28dennis00anybody home?
17:07.45jinkNot really.  Slow channel.  See topic.
17:07.54jinkPatience is a virtue.
17:08.11*** join/#tomcat TomSping (i=812e05d1@gateway/web/ajax/mibbit.com/x-a6d13ca203fd1a27)
17:09.02dennis00Thanks for answering.
17:10.16*** join/#tomcat handsom (i=dennis00@82-204-102-241.fttx.bbeyond.nl)
17:14.41dennis00and: "what does waiting for monitor entry" mean?
17:18.52karstensragedennis00,  are you using Jconsole to see the threads?
17:22.08karstensrageby default tomcat does not release threads it has allocated for connections
17:22.21karstensrageyou can use an Executor do that for you
17:23.02dennis00jconsole does not work
17:23.19dennis00I have added 3 jmx rules in the setenv.sh
17:23.25dennis00java was running with jmx
17:23.32dennis00but i get connection failed all the time
17:32.05*** join/#tomcat shoggy (n=shoggy@pixel.microculture.fr)
17:32.10shoggyhello
17:32.54karstensrageyou probably have to set the jmx stuff up in catalina.sh
17:33.09shoggyis it possible to define a virtual host inside a .war ?
17:33.22jinkI don't know, but I doubt it is.
17:33.55jinkAs application you're bound to whatever the server offers you, I'd think.
17:34.18shoggyok thanks
17:40.14pfndennis00, it means waiting for a lock
17:40.27pfndennis00, figuring out what that thread does is easy, just look at the stack of that given thread
17:40.54*** join/#tomcat ciphergoth (n=paul@host226.lshift.net)
17:44.36ciphergothTomcat 6.0.18, jdk1.6.0_11, Windows Server 2003 Standard Edition SP2.  I've done "service.bat install MyTomcatService" but I can't see MyTomcatService in the list of services under "Services and Applications" in "Computer Management".  Should I expect to?
17:50.01*** join/#tomcat rmrfslash (n=chatzill@dhcp-0034901102-bb-fe.client.fas.harvard.edu)
17:50.20rmrfslashHow can I enable more detailed logging for tomcat?
17:50.44TomSpingI forgot..
17:50.55TomSpinghow do you disable the shutdown port in server.xml
17:51.03TomSpingyou set the shutdown to -1 or something right?
17:51.15rmrfslashI'm trying to start a tomcat6 and I see "SEVERE: Context [/nrg] startup failed due to previous errors" but no stack trace or anything...                                                                                                                                  
17:51.43rmrfslashbefore it I see SEVERE: Error listenerStart
17:51.51rmrfslashboth are equally useless
17:52.03rmrfslashwell, not useless, but less informative than I would like
17:53.04rmrfslashMy Tomcat is Tomcat 6.0.18, Java is Java 1.6.0_10 and OS is Ubuntu Server 8.10
18:03.36TomSpingno one here has modified their shutdown port variable
18:17.01rmrfslasheveryone on here is too busy debugging some crappy Java stack trace
18:23.29dennis00pfn: It's only possible to look at a stack of a group, you cannot see the stack of a specific threat
18:23.49dennis00In my list, this thread other threads (150) were waiting for, didn't show up,
18:34.44pfnyes, you can look at the stack of a thread
18:34.50pfnthere is no such thing as the stack of a thread group
18:34.56pfnbecause a group doesn't have a cohesive stack
18:35.18pfnTomSping, you don't disable it, you can change it to an impossible to guess key
18:35.40pfnwith java1.5/6 tomcat shouldn't need a shutdown port anymore, it should just be able to do it via the attach mechanism
18:35.42TomSpingpfn: actually if you set the shutdown port to "-1" it works
18:35.57TomSpingI just tested it and it works
18:36.39pfnwhat do you mean you "tested it and it works"
18:36.46pfnoh, you mean you set the port number
18:38.06TomSpingyeah..
18:38.21TomSpingtechnically anyone can telnet to it..
18:38.30TomSpingand issue the default phrase to shut it down
18:48.33*** join/#tomcat tendo (n=tendo@ghostkick.net)
18:48.49tendowhen i run ./startup.sh it just returns some catalina.sh usage commands, no errors
18:48.54tendoanyone ever had this problem before?
18:49.09pfnTomSping, firewall
18:58.43*** join/#tomcat tom17bombadil (n=tom@BAAe738.baa.pppool.de)
19:00.44TomSpingwhy firewall over disabling the port?
19:04.33pfnbecause one shouldn't expose everything to the world regardless of consequence
19:05.48TomSpingoh.. I thought you ment internally
19:05.59TomSpingonly external apache is in dmz
19:06.05TomSpingapp server is protected
19:17.23*** join/#tomcat trifon (n=chatzill@78.90.20.97)
19:29.12*** part/#tomcat tendo (n=tendo@ghostkick.net)
19:48.26*** join/#tomcat kwvarga (n=tqet@130.160.86.247)
19:50.05kwvargaI create a .html file from my Java code, and then try to load it on my web application and it says resource is not available, and then I refresh my Project in eclipse (I don't even have to restart the server) and the same URL works, any ideas how I could automate this when I create the page?
20:02.59kwvargaHow can I refresh Tomcat without restarting the server from Java?
20:50.20*** join/#tomcat trifon (n=chatzill@78.90.20.97)
21:02.09*** join/#tomcat da_krowa (i=Miranda@chello089078230060.chello.pl)
21:19.08*** part/#tomcat randrewj (n=raj-user@user-160uub9.cable.mindspring.com)
21:19.16*** join/#tomcat [[thufir]] (n=thufir@S01060016ec23af88.vs.shawcable.net)
21:25.28pfnkwvarga, tomcat will pick up static content automatically without any restarts
21:26.35*** join/#tomcat wltjr (n=wltjr@unaffiliated/wltjr)
22:12.57*** join/#tomcat yassine (n=yassine@unaffiliated/yassine)
22:33.56*** join/#tomcat dvayanu (n=another@ppp-93-104-58-158.dynamic.mnet-online.de)
22:35.24*** join/#tomcat yassine_ (n=yassine@p57921E96.dip.t-dialin.net)
22:47.27*** part/#tomcat CanyonMan (i=fn2zoiqo@henryjackson78.cims.rit.edu)
22:50.26*** join/#tomcat randrewj (n=raj-user@user-160uub9.cable.mindspring.com)
22:56.20*** join/#tomcat Inc` (n=incendiu@pool-72-64-103-206.dllstx.fios.verizon.net)
23:16.37dennis00how do I look at the stack of a thread?
23:20.17TomSpinghow can I tell what the end of life for versions of tomcat are?
23:43.59[[thufir]]I don't understand where $TOMCAT_HOME/common/classes/log4j.properties is for tomcat 6 on ubuntu 8.10, java 6
23:44.21[[thufir]]there's no such directory as common, which I see
23:49.02pfntomcat6 doesn't use log4j
23:49.25pfndennis00, you can see the stack in jconsole
23:49.32pfndennis00, or you can invoke a stack dump
23:53.52[[thufir]]pfn: http://tomcat.apache.org/tomcat-6.0-doc/logging.html  I put a properties file in WEB-INF?
23:54.23pfn[[thufir]], that's what it says, yes
23:55.19TomSpingJuli

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