irclog2html for #tomcat on 20050214

00:46.48*** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
00:48.01*** join/#tomcat JitZ (~JitZ@40.cleveland-04-05rs.oh.dial-access.att.net)
00:53.28JitZWhen I deploy my jsp on tomcat, I get a class not found error when the jsp tries to access a bean class Fruit.  The jsp starts out with <jsp:useBean id="orderedFruit" class="Fruit" />  Fruit.class is deployed in the webapps/[projectName]/WEB-INF/classes directory.  DO I have the fruit class in the wrong directory structure?
00:53.56berontry putting it in a package
00:54.45JitZberon, won't the package go under the same directory where I am now deploying the class?
01:00.57*** join/#tomcat constantine (~majic@nc-69-69-52-5.sta.sprint-hsd.net)
01:02.20beronjsp i believe requires the supporting classes to be packaged
01:03.03beronif you have a jar, it doesnt necessarily sits in same directory
01:03.27JitZberon, okayt, I'll try that.  Am I using the correct directory?
01:04.20beronyeah it looks like it
01:05.53constantinewhat is the proper way to get Tomcat to reload a servlet once you've made changes to it?
01:06.33constantinethe docs talk about using ant to build and then use ant reload
01:06.41constantinebut this is a very simple servlet that I did manually
01:07.42JitZconstantine, I created a simple ant file and then use it everytime I deploy.  I never make a mistake in moving files and its a whole lot quicker.
01:08.13constantineso you have to use Ant to get Tomcat to reload a changed servlet?
01:08.26beronno
01:08.40JitZAnt is also a good thing to learn now in parallel with servlets.
01:09.20JitZThere is a parameter you need to change in either server.xml or web.xml in the conf directory that will let you "hot deploy" servlets
01:09.43JitZI am sorry, not parameter, an entry in the file
01:09.44beronthe manager webapp allow you to reload without using Ant
01:10.02constantineso I have to go into the manager everytime I change my servlet?
01:10.08constantineand reload it
01:10.39beronyes
01:12.58JitZberon, I thought if you uncommented out "<DefaultContext reloadable="true"/>
01:12.58JitZ" in the server.xml file, tomcat would check dates of servlets to determine if it changed since loaded into memory
01:13.21constantineJitZ, I tried that but it had no effect
01:13.28constantineit wasn't reloading my changed servlets
01:14.02JitZCheck the dates on the file.  I had an issue where I was not replacing the servlet which is why it wasn't changing
01:14.37beroni thought it should have...anyways try using that reloadable true in your <Context> and see if it does listen..or maybe you need the listener enabled..
01:17.49constantineberon, does the docs talk about how to "enable the listener" (I have no idea what that is, I'm new to Tomcat, I've been trying to figure this out for a number of hours)
01:18.01beroni just checked, its not the listener you need, its just the reloadable="true"
01:21.04constantineI have <DefaultContext reloadable="true"/> in my server.xml and it's not reloading anything
01:22.18beronand where do you have the servlet you modified located at?
01:22.47constantineit's in my webapps dir
01:22.58beroncan you tell me the full path?
01:23.12constantineit'll reload it if I explicity shutdown Tomcat and start it
01:23.49constantineit's defined in the proper directory structure under /webapps/simpleservlet/...
01:24.38constantineit's just a helloworld servlet I downloaded then changed the output to try to figure out Tomcat
01:25.27beronis that your default context?
01:26.16constantinewebapps is my default context, I haven't changed anything from the stock Tomcat 5.5.7 install. I'm not that far yet. The Tomcat docs are not exactly written for a person new to server side java. I haven't figured it all out yet.
01:26.31beronno no, webapps isnot your default context
01:26.54constantineI told you I haven't figured it out =)
01:27.16beroncan you try a book on servlets? those probably will give you more help
01:27.29beronor just google for how to write servlets with tomcat
01:27.36constantineI've been googling for 2 days
01:27.42constantinehaha
01:27.56constantineso then Tomcat be default does not define a context?
01:29.17beronwell were you searching along the lines of servlet , tomcat and tutorial?
01:29.26constantineof course
01:29.28beronyes it has a default context
01:30.05beronfollow the servlet-examples, dont make it so hard for yourself :)
01:30.31constantinewhat do you mean follow the servlet-examples?
01:30.50berondid you try to look at that servlet-examples?
01:31.03constantineI haven't deviated, I'm just trying to get Tomcat to reload a changed helloworld servlet without me having to explicitly shutdown Tomcat and restart it
01:31.11constantineyes I've been looking at them
01:32.00beronmodify that servlet there and see how your changes gets re-read
01:36.28loquacesleeeeep :)
01:58.53*** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
02:32.30*** join/#tomcat JitZ (~JitZ@197.cleveland-09-10rs.oh.dial-access.att.net)
02:51.02*** join/#tomcat DominicB_ (domi@p508A71E0.dip0.t-ipconnect.de)
02:51.33*** part/#tomcat constantine (~majic@nc-69-69-52-5.sta.sprint-hsd.net)
02:51.38*** join/#tomcat imaek (~imaek@adsl-67-124-77-0.dsl.lsan03.pacbell.net)
02:51.40JitZberen, you were correct.  When I created the class in a package it worked.  Thanks
03:02.47beronnp
03:04.35*** part/#tomcat JitZ (~JitZ@197.cleveland-09-10rs.oh.dial-access.att.net)
04:07.55*** join/#tomcat pandora-- (~pandora@cpe-24-24-238-66.socal.rr.com)
04:16.42*** join/#tomcat teneighty (~none@h24-207-35-144.dlt.dccnet.com)
04:17.46teneightySEVERE: Error listenerStart ... can anyone give me some more insight into that error?? that's the only help I have from the log and my context won't start!
04:19.15pandora--are you declaring any listeners explicitly?
04:19.23pandora--or is this an implicit/tomcat listener?
04:20.22teneightydeclaring org.springframework.web.context.ContextLoaderListener
04:22.45beronbtw, what is an implicit listener?
04:27.10pandora--like tomcats file listeners, context listeners, etc
04:27.28pandora--springframework??
04:27.30pandora--whats that?
04:28.05beronthose are declared in the server.xml are they not? implicit listeners term i have not heard before
04:28.34teneightyspringframework = IoC container, MVC framework, etc.
04:29.09pandora--beron: just stuff in the bowels of tomcat, by nature
04:29.35pandora--beron: as oppose to ones that you declare/use/write/etc outside of the tomcat "default/core" i guess is what I'm saying
04:29.45beronoh okay
04:32.07beron1080: thats the only error you have? maybe you can up the debug a lil bit to get you more clue?
04:42.54teneightyberon: thanks - I generated a more detailed log and see my error now
04:43.22beronjust curious...what caused it to fail?
04:44.39beronwas it placement of <listener> within web.xml?
04:45.11elahHey Beron, thanks for all the help earlier, I got everything work on my end.   Thanks again!
04:45.42beronelah: am glad i was able to assist or point you in the direction that led to the solution
04:46.02teneightyberon: no, that part was fine - the listerner just couldn't locate one of the xml config files it was looking for
04:46.57beron1080: oh okay, i had a problem before with misplaced <listener> tags
05:19.48*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com)
05:19.48*** join/#tomcat imaek (~imaek@adsl-67-124-77-0.dsl.lsan03.pacbell.net) [NETSPLIT VICTIM]
05:25.36*** join/#tomcat imaek (~imaek@adsl-67-124-77-0.dsl.lsan03.pacbell.net) [NETSPLIT VICTIM]
05:25.36*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com) [NETSPLIT VICTIM]
05:26.40*** part/#tomcat teneighty (~none@h24-207-35-144.dlt.dccnet.com)
05:54.35*** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-117.lsanca1.elnk.dsl.genuity.net)
06:00.15*** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-117.lsanca1.elnk.dsl.genuity.net)
06:48.30*** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:08.38*** join/#tomcat loquace (~seb@l02v-27-169.d4.club-internet.fr)
07:09.34loquacelo
07:17.43*** join/#tomcat valmont (~chrisholl@lsanca1-ar8-4-43-220-117.lsanca1.elnk.dsl.genuity.net)
08:11.06*** join/#tomcat joered (~chatter@213-156-52-102.fastres.net)
08:51.38*** join/#tomcat Coke (~peter@ferlin.it.su.se)
08:52.48CokeHello. Is it possible to make tomcat actualy TELL ME when there's something wrong with my web.xml? I just added Axis stuff to my web.xml and my previous experience with tomcat is that it does not tell you when the web.xml is plain wrong. I have logging at level 4, but that didn't help when my web.xml was faulty before.
08:57.03*** part/#tomcat deeeed (~dd@m85.net195-132-129.noos.fr)
09:09.06StarScreamCoke: which log file were you looking at?
09:18.19Cokeall of them.
09:19.02CokeI finally fixed it by using xmllint (xml validation utility), but I think it sucks that tomcat accepts bad web.xml's.
09:20.34Cokeif only it would print out DTD validation errors or similar.
09:24.32StarScreamCoke: well which log file were you looking in, because it usually tells you when its not correct
09:27.23CokeALL log files.
09:27.44StarScreamCoke: Catalina.out does for me
09:27.53StarScreamwhat version of tomcat are you running?
09:28.45StarScreamCoke: its not very precise though...but it does tell you thats it failed
09:28.58StarScreamor rather the web apps hasn't loaded
09:29.45Cokehow is not precise? any output under tomcat/logs has been read by me.
09:30.10CokeI can see it installing the webapps, removing something from context, but no errors of any sort.
09:30.11*** join/#tomcat noodl (hidden-use@195-97-225-122.onyx.net)
09:30.31Cokeit should say "ERROR" with big letters and tell me what line of the web.xml it didn't like and preferably why.
09:31.53StarScreamCoke: ok, well the source code is there. Just add it and submit the patch back to the developers. i am sure they would add it to the next release
09:41.44CokeWhen I add these lines
09:41.57Coke<PROTECTED>
09:41.57Coke<PROTECTED>
09:42.00Coke<PROTECTED>
09:42.09Cokethe entire web app stops working and I don't know why. How can I find out why?
09:43.59Cokehm. I see it now.
09:53.27*** join/#tomcat harpoon (stueber@client12.rbg.informatik.tu-darmstadt.de)
10:02.52*** part/#tomcat Coke (~peter@ferlin.it.su.se)
10:03.39*** join/#tomcat KtK- (~krijnhoet@ktk.xs4all.nl)
10:03.54*** join/#tomcat joered (~chatter@213-156-52-102.fastres.net)
10:36.44*** join/#tomcat harpoon (stueber@client12.rbg.informatik.tu-darmstadt.de)
11:50.37*** join/#tomcat joered (~chatter@213-156-52-102.fastres.net)
13:07.25*** join/#tomcat alexw (~chatzilla@usr132-wv1.blueyonder.co.uk)
13:07.38*** part/#tomcat alexw (~chatzilla@usr132-wv1.blueyonder.co.uk)
13:09.20*** join/#tomcat alexwillmer (~chatzilla@usr132-wv1.blueyonder.co.uk)
13:11.35alexwillmerhello all, Is there a package that would allow me to upload an xml document with a dtd and have the file validated. I'm aware of existing services on the www, but I'd like to setup somethin similar on a private network.
13:12.34*** join/#tomcat levon (~levon@83.137.99.168)
13:18.05*** join/#tomcat joered (~chatter@213-156-52-102.fastres.net)
13:26.50*** join/#tomcat crackedwh (~sinbad@ip24-251-144-246.ph.ph.cox.net)
13:42.10*** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de)
14:24.44*** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu)
15:14.21*** join/#tomcat piratepete (~knuth@pcp07928689pcs.harwd01.md.comcast.net)
15:14.51piratepetecan someone tell me where I restrict directory viewing in Tomcat per app? and how?
15:51.47beron.
15:53.41StarScreampiratepete: use mod_jk and get apache to do it ?
15:55.20piratepeteStarScream: using JBoss
15:58.38beronwhat exactly do you meant by restrict directory viewing?
15:59.43StarScreampiratepete: you can use JBoss with mod_jk
15:59.57StarScreamafaik
16:00.23piratepeteStarScream: but why should I add the baggage of Apache?
16:10.13StarScreampiratepete: well it was just a suggestion... i don't know how to do it with just tomcat.........
16:16.16piratepeteStarScream: it's cool.  I figured it out.  If a <welcome-file ...is setup in web.xml ...you can provide a warning or default statement
16:26.16*** join/#tomcat FreemaniaX (~Freemania@pcp0011117215pcs.elkrdg01.md.comcast.net)
17:07.48*** join/#tomcat Tilos (~tilos@c213-89-229-118.cm-upc.chello.se)
17:09.08*** join/#tomcat a4akb (~chatzilla@dialpool-210-214-73-130.maa.sify.net)
17:09.28*** join/#tomcat hopphopp (~chatzilla@c80-217-44-234.cm-upc.chello.se)
17:09.46a4akbhello room
17:34.28a4akbnight room
17:54.18*** join/#tomcat harpoon (stueber@ultra20.rbg.informatik.tu-darmstadt.de)
18:24.45*** join/#tomcat valmont (~chrisholl@germany.pspdev.pas.earthlink.net)
18:49.09*** join/#tomcat jasonb (noneoyerbi@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
18:49.48*** join/#tomcat simon_ (simon_@M237P017.adsl.highway.telekom.at)
19:18.49*** join/#tomcat free_ (free_@121.west-valley-02rh16rt-03rh15rt.ut.dial-access.att.net)
19:19.04free_Have you guys seen this exception before:  org.apache.jasper.runtime does not exist
19:20.37free_Initially I got the exception: Javac exception Unable to find a javac compiler;com.sun.tools.javac.Main is not on the classpath.Perhaps JAVA_HOME does not point to the JDK
19:21.09free_So I put tools.jar into the ext directory of the jre, now it find com.sun.tools.javac.Main, but it won't find runtime.
19:21.42omgsfree_: you need a jdk, nor just a jre
19:22.09free_No shit, I have the jdk.
19:22.23free_JAVA_HOME is set to its directory too.
19:28.17beronwhich tomcat version?
19:29.01beronfree_ ?
19:30.07free_This isn't Tomcat, this is Jetty, but the concepts should still be the same.
19:31.25berondid you search the jetty dir and see if the jar file is there?
19:32.33free_jasper-runtime.jar is added to the classpath in the manifest file.
19:32.57beronwhose manifest? your webapp or jettys??
19:34.23free_I have an embedded application, I run my application as a jar.  The jar is my own web client I wrote, I open up and start jetty.
19:34.35free_Note that I get the error about not finding runtime when trying to compile .jsps.
19:34.47free_C:\DOCUME~1\Justin\LOCALS~1\Temp\Jetty_localhost_0__\org\apache\jsp\index_jsp.java:50: package org.apache.jasper.runtime does not exist
19:34.48free_<PROTECTED>
19:34.48free_3 errors
19:38.07beronnow where do you have jasper-runtime.jar file located at?
19:39.34*** join/#tomcat jahi (~jahi@jahi.user)
19:41.08beronbtw, are you using the xml version or hardcode it on your app to launch jetty?
20:01.47free_It is hard coded into my app.
20:01.53free_Directly calling jetty code inside a jar file.
20:02.43free_I launch jetty with a configuration file.
20:02.46free_jetty.xml
20:03.45free_jasper-runtime.jar is in the jetty/ext directory
20:04.04free_let me try my other ant target, run_nojar
20:08.25free_Woopy, the jsp page compiled fine when I was not running it as a jar.
20:38.41free_Why in the hell am I being told that org.apache.jasper.runtime does not exist it is right there.
20:41.00beronyou're mixing apache tomcat and jetty?
20:41.58free_No, I am not running tomcat at all.
20:42.25free_I add the jasper-runtime.jar to the Class-Path inside my manifest file inside my main jar and it doesn't recognize it.
20:42.44free_I added a whole bunch of jars to the Class-Path inside the manifest file for the main application.
20:46.33beronhow are you adding it to the Class-Path in the manifest? can you show me your path?
20:47.10*** join/#tomcat lyken (~janor@air665.startdedicated.com)
20:47.36beronand I assume this jasper-runtime.jar is from jetty not the one from tomcat?
20:49.22free_Yes that is correct.
20:49.59free_Ok, the path of my executable jar is ${user_dir}/platform_system_files/platform_2006.jar
20:50.24free_When I create the jar I add values to the Class-Path: inside the manifest file as ../jetty/ext/jasper-runtime.jar
20:50.39free_One odd thing is that when I view the manifest file, the .jars are split accross lines
20:51.00free_I added maybe 11 jars to the classpath each seperated by a space when I created my jar
21:40.36*** join/#tomcat IRCMonkeykhjo (~chatzilla@pD957C3B8.dip0.t-ipconnect.de)
22:22.46*** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu)
22:45.26*** join/#tomcat pixelmonkey (~pixelmonk@ool-182e6727.dyn.optonline.net)
22:46.46pixelmonkeyI'm developing a web application that's become somewhat big so I'm now using CVS to manage it.  I want to be able to quickly deploy changes to my website based on CVS checkouts, and one easy way I saw to do this is using WAR files (I have my ant build script building WARs automatically).  I was wondering, how does one specify the default context for a WAR file?  I want the context to be / instead of /warfilename as is the default now
23:13.08loquace++
23:31.13*** join/#tomcat beron (~medor@c-24-23-201-228.client.comcast.net)
23:45.13pixelmonkeywhere does Tomcat manager figure out its list of applications installed on the server?  What files does it read?
23:49.07beronit checks the webapps directory
23:49.30beronand for deployment its a parameter passed to the manager servlet
23:53.52*** join/#tomcat industry73 (~industry7@24.247.115.27.kzo.mi.chartermi.net)
23:55.56industry73I need some help with me with mapping .cfm files to Coldfusion J2ee when it is set as the default webapp
23:56.06industry73can anyone help

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.