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.28 | JitZ | When 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.56 | beron | try putting it in a package |
00:54.45 | JitZ | beron, 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.20 | beron | jsp i believe requires the supporting classes to be packaged |
01:03.03 | beron | if you have a jar, it doesnt necessarily sits in same directory |
01:03.27 | JitZ | beron, okayt, I'll try that. Am I using the correct directory? |
01:04.20 | beron | yeah it looks like it |
01:05.53 | constantine | what is the proper way to get Tomcat to reload a servlet once you've made changes to it? |
01:06.33 | constantine | the docs talk about using ant to build and then use ant reload |
01:06.41 | constantine | but this is a very simple servlet that I did manually |
01:07.42 | JitZ | constantine, 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.13 | constantine | so you have to use Ant to get Tomcat to reload a changed servlet? |
01:08.26 | beron | no |
01:08.40 | JitZ | Ant is also a good thing to learn now in parallel with servlets. |
01:09.20 | JitZ | There 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.43 | JitZ | I am sorry, not parameter, an entry in the file |
01:09.44 | beron | the manager webapp allow you to reload without using Ant |
01:10.02 | constantine | so I have to go into the manager everytime I change my servlet? |
01:10.08 | constantine | and reload it |
01:10.39 | beron | yes |
01:12.58 | JitZ | beron, I thought if you uncommented out "<DefaultContext reloadable="true"/> |
01:12.58 | JitZ | " in the server.xml file, tomcat would check dates of servlets to determine if it changed since loaded into memory |
01:13.21 | constantine | JitZ, I tried that but it had no effect |
01:13.28 | constantine | it wasn't reloading my changed servlets |
01:14.02 | JitZ | Check 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.37 | beron | i 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.49 | constantine | beron, 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.01 | beron | i just checked, its not the listener you need, its just the reloadable="true" |
01:21.04 | constantine | I have <DefaultContext reloadable="true"/> in my server.xml and it's not reloading anything |
01:22.18 | beron | and where do you have the servlet you modified located at? |
01:22.47 | constantine | it's in my webapps dir |
01:22.58 | beron | can you tell me the full path? |
01:23.12 | constantine | it'll reload it if I explicity shutdown Tomcat and start it |
01:23.49 | constantine | it's defined in the proper directory structure under /webapps/simpleservlet/... |
01:24.38 | constantine | it's just a helloworld servlet I downloaded then changed the output to try to figure out Tomcat |
01:25.27 | beron | is that your default context? |
01:26.16 | constantine | webapps 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.31 | beron | no no, webapps isnot your default context |
01:26.54 | constantine | I told you I haven't figured it out =) |
01:27.16 | beron | can you try a book on servlets? those probably will give you more help |
01:27.29 | beron | or just google for how to write servlets with tomcat |
01:27.36 | constantine | I've been googling for 2 days |
01:27.42 | constantine | haha |
01:27.56 | constantine | so then Tomcat be default does not define a context? |
01:29.17 | beron | well were you searching along the lines of servlet , tomcat and tutorial? |
01:29.26 | constantine | of course |
01:29.28 | beron | yes it has a default context |
01:30.05 | beron | follow the servlet-examples, dont make it so hard for yourself :) |
01:30.31 | constantine | what do you mean follow the servlet-examples? |
01:30.50 | beron | did you try to look at that servlet-examples? |
01:31.03 | constantine | I 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.11 | constantine | yes I've been looking at them |
01:32.00 | beron | modify that servlet there and see how your changes gets re-read |
01:36.28 | loquace | sleeeeep :) |
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.40 | JitZ | beren, you were correct. When I created the class in a package it worked. Thanks |
03:02.47 | beron | np |
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.46 | teneighty | SEVERE: 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.15 | pandora-- | are you declaring any listeners explicitly? |
04:19.23 | pandora-- | or is this an implicit/tomcat listener? |
04:20.22 | teneighty | declaring org.springframework.web.context.ContextLoaderListener |
04:22.45 | beron | btw, what is an implicit listener? |
04:27.10 | pandora-- | like tomcats file listeners, context listeners, etc |
04:27.28 | pandora-- | springframework?? |
04:27.30 | pandora-- | whats that? |
04:28.05 | beron | those are declared in the server.xml are they not? implicit listeners term i have not heard before |
04:28.34 | teneighty | springframework = IoC container, MVC framework, etc. |
04:29.09 | pandora-- | beron: just stuff in the bowels of tomcat, by nature |
04:29.35 | pandora-- | 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.45 | beron | oh okay |
04:32.07 | beron | 1080: thats the only error you have? maybe you can up the debug a lil bit to get you more clue? |
04:42.54 | teneighty | beron: thanks - I generated a more detailed log and see my error now |
04:43.22 | beron | just curious...what caused it to fail? |
04:44.39 | beron | was it placement of <listener> within web.xml? |
04:45.11 | elah | Hey Beron, thanks for all the help earlier, I got everything work on my end. Thanks again! |
04:45.42 | beron | elah: am glad i was able to assist or point you in the direction that led to the solution |
04:46.02 | teneighty | beron: no, that part was fine - the listerner just couldn't locate one of the xml config files it was looking for |
04:46.57 | beron | 1080: 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.34 | loquace | lo |
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.48 | Coke | Hello. 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.06 | StarScream | Coke: which log file were you looking at? |
09:18.19 | Coke | all of them. |
09:19.02 | Coke | I finally fixed it by using xmllint (xml validation utility), but I think it sucks that tomcat accepts bad web.xml's. |
09:20.34 | Coke | if only it would print out DTD validation errors or similar. |
09:24.32 | StarScream | Coke: well which log file were you looking in, because it usually tells you when its not correct |
09:27.23 | Coke | ALL log files. |
09:27.44 | StarScream | Coke: Catalina.out does for me |
09:27.53 | StarScream | what version of tomcat are you running? |
09:28.45 | StarScream | Coke: its not very precise though...but it does tell you thats it failed |
09:28.58 | StarScream | or rather the web apps hasn't loaded |
09:29.45 | Coke | how is not precise? any output under tomcat/logs has been read by me. |
09:30.10 | Coke | I 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.31 | Coke | it should say "ERROR" with big letters and tell me what line of the web.xml it didn't like and preferably why. |
09:31.53 | StarScream | Coke: 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.44 | Coke | When I add these lines |
09:41.57 | Coke | <PROTECTED> |
09:41.57 | Coke | <PROTECTED> |
09:42.00 | Coke | <PROTECTED> |
09:42.09 | Coke | the entire web app stops working and I don't know why. How can I find out why? |
09:43.59 | Coke | hm. 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.35 | alexwillmer | hello 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.51 | piratepete | can someone tell me where I restrict directory viewing in Tomcat per app? and how? |
15:51.47 | beron | . |
15:53.41 | StarScream | piratepete: use mod_jk and get apache to do it ? |
15:55.20 | piratepete | StarScream: using JBoss |
15:58.38 | beron | what exactly do you meant by restrict directory viewing? |
15:59.43 | StarScream | piratepete: you can use JBoss with mod_jk |
15:59.57 | StarScream | afaik |
16:00.23 | piratepete | StarScream: but why should I add the baggage of Apache? |
16:10.13 | StarScream | piratepete: well it was just a suggestion... i don't know how to do it with just tomcat......... |
16:16.16 | piratepete | StarScream: 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.46 | a4akb | hello room |
17:34.28 | a4akb | night 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.04 | free_ | Have you guys seen this exception before: org.apache.jasper.runtime does not exist |
19:20.37 | free_ | 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.09 | free_ | 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.42 | omgs | free_: you need a jdk, nor just a jre |
19:22.09 | free_ | No shit, I have the jdk. |
19:22.23 | free_ | JAVA_HOME is set to its directory too. |
19:28.17 | beron | which tomcat version? |
19:29.01 | beron | free_ ? |
19:30.07 | free_ | This isn't Tomcat, this is Jetty, but the concepts should still be the same. |
19:31.25 | beron | did you search the jetty dir and see if the jar file is there? |
19:32.33 | free_ | jasper-runtime.jar is added to the classpath in the manifest file. |
19:32.57 | beron | whose manifest? your webapp or jettys?? |
19:34.23 | free_ | 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.35 | free_ | Note that I get the error about not finding runtime when trying to compile .jsps. |
19:34.47 | free_ | 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.48 | free_ | <PROTECTED> |
19:34.48 | free_ | 3 errors |
19:38.07 | beron | now where do you have jasper-runtime.jar file located at? |
19:39.34 | *** join/#tomcat jahi (~jahi@jahi.user) |
19:41.08 | beron | btw, are you using the xml version or hardcode it on your app to launch jetty? |
20:01.47 | free_ | It is hard coded into my app. |
20:01.53 | free_ | Directly calling jetty code inside a jar file. |
20:02.43 | free_ | I launch jetty with a configuration file. |
20:02.46 | free_ | jetty.xml |
20:03.45 | free_ | jasper-runtime.jar is in the jetty/ext directory |
20:04.04 | free_ | let me try my other ant target, run_nojar |
20:08.25 | free_ | Woopy, the jsp page compiled fine when I was not running it as a jar. |
20:38.41 | free_ | Why in the hell am I being told that org.apache.jasper.runtime does not exist it is right there. |
20:41.00 | beron | you're mixing apache tomcat and jetty? |
20:41.58 | free_ | No, I am not running tomcat at all. |
20:42.25 | free_ | 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.44 | free_ | I added a whole bunch of jars to the Class-Path inside the manifest file for the main application. |
20:46.33 | beron | how 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.36 | beron | and I assume this jasper-runtime.jar is from jetty not the one from tomcat? |
20:49.22 | free_ | Yes that is correct. |
20:49.59 | free_ | Ok, the path of my executable jar is ${user_dir}/platform_system_files/platform_2006.jar |
20:50.24 | free_ | When I create the jar I add values to the Class-Path: inside the manifest file as ../jetty/ext/jasper-runtime.jar |
20:50.39 | free_ | One odd thing is that when I view the manifest file, the .jars are split accross lines |
20:51.00 | free_ | 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.46 | pixelmonkey | I'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.08 | loquace | ++ |
23:31.13 | *** join/#tomcat beron (~medor@c-24-23-201-228.client.comcast.net) |
23:45.13 | pixelmonkey | where does Tomcat manager figure out its list of applications installed on the server? What files does it read? |
23:49.07 | beron | it checks the webapps directory |
23:49.30 | beron | and 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.56 | industry73 | I need some help with me with mapping .cfm files to Coldfusion J2ee when it is set as the default webapp |
23:56.06 | industry73 | can anyone help |