irclog2html for #tomcat on 20040120

00:08.50tonyls
00:08.54tonywhoops, sorry
00:10.54*** join/#tomcat `drek___ (~drek@hub.cbc.ca)
00:22.19jasonbtony: Yeah, like forever aparently.  :)
00:26.28tonyjasonb , I just 'apt-get innstalled' tomcat, and it works great
00:26.49tonybut you do have a point
00:39.47tonyyep, works great
00:39.49tonyfar out
00:41.15*** join/#tomcat Archeron (archeron@archeron.wavefire.com)
00:44.32*** join/#tomcat mod_cure (~Cure@cs666863-15.austin.rr.com)
00:49.33jasonbtony: Which version of tomcat would "tomcat" be?
00:49.52jasonbtony: And what if the version that maps to "tomcat" is the wrong version for most users?
00:51.50tonygood point
01:44.06tonyso, I've added a user with the correct groups to tomcat-users.xml, but am still not able to log into the admin or management web apps, what am I missing?
01:45.26jasonbtony: http://www.onjava.com/pub/a/onjava/2003/06/25/tomcat_tips.html
01:46.18tonythanks
01:50.46jasonbnp.
02:18.44tonyin admin.xml, can I add a range to allow?
02:18.56tony0/24, etc
02:40.38*** join/#tomcat tang^ (~tang@d142-173-196-96.abhsia.telus.net)
03:01.39jasonbtony: I don't think so.
03:01.52jasonbtony: You mean a range of IP addresses to allow to use the Admin webapp?
03:05.32tonyjasonb , yeah, that was my question
03:05.50tonyallow="1.2.3.0/24"
03:05.54tony?
03:05.57jasonbtony: I don't think the Admin webapp has any instrumentation to do that, but the RemoteAddrValve does.
03:06.45jasonbtony: see this page: http://jakarta.apache.org/tomcat/tomcat-5.0-doc/config/valve.html
03:07.15jasonbtony: Scroll down to the section labeled "Remote Address Filter".
03:07.20tonycool
03:13.36*** join/#tomcat tang^ (~tang@d142-173-196-96.abhsia.telus.net)
03:16.27*** join/#tomcat tang^ (~tang@d142-173-196-96.abhsia.telus.net)
04:08.09*** join/#tomcat Snaffu (~MonkeyPox@maxtnt05-363.phlpa.fast.net)
04:50.49*** join/#tomcat mod_cure (~Cure@cs666863-15.austin.rr.com)
05:24.46*** join/#tomcat Archeroff (~wade@h24-70-238-85.ok.shawcable.net)
05:26.25Archeroffhello everyone...
05:32.15ArcheroffI am following some examples in a book and just cannot seem to get things working here.  Any pointers would be appreciated.
05:33.01ArcheroffI have a directory called "test" under %TOMCAT_HOME/webapps... the same dir that contains the examples dir in the default installation.
05:34.04Archeroffunder test, there is also WEB-INF and WEB-INF/classes
05:35.18Archeroffclasses contains both a .java file and the compiled TestingServlet.class
05:35.51Archeroffthere is also a web.xml deployment descriptor in WEB-INF
05:36.40ArcheroffBut no matter what, I get only a 404 error trying to access port :8080/test/servlet/TestingServlet
05:37.49Archeroffbut :8080/examples/servlet/HelloWorldExample works fine.
05:37.59ArcheroffIs there something else I need to configure?
05:38.38ArcheroffI have restarted tomcat several times to no avail.  I can't even find where the 404 error is being logged.
05:39.05ArcheroffThanks in advance for any responces... I shall check back in a few hours.
05:46.33*** join/#tomcat XvFrt (~dugan@roc-66-66-32-51.rochester.rr.com)
05:59.15*** join/#tomcat XvFrt (~XvFrT@roc-66-66-32-51.rochester.rr.com)
06:12.09*** join/#tomcat redrunne1 (~redrunner@p508450F9.dip.t-dialin.net)
06:13.29*** join/#tomcat jasonb (mdkuser@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
06:20.35*** join/#tomcat tony (~tony@adsl-67-118-242-129.dsl.pltn13.pacbell.net)
07:34.16*** join/#tomcat PW_Wrk (~Pointwood@62.243.38.210)
07:50.56*** join/#tomcat PW_Wrk (~Pointwood@62.243.38.210)
08:03.31*** join/#tomcat linked (dealt@202.90.141.134)
08:03.42linkedgreetings!
08:03.50linkedim installing tomcat on RH 9, i created user tomcat with /sbin/nologin as shell
08:03.58linked<PROTECTED>
08:04.05linkedanyone?
08:31.46*** join/#tomcat `drek___ (~drek@hub.cbc.ca)
09:04.25*** join/#tomcat carl0s (~chatzilla@abpcl18.cern.ch)
09:41.12*** join/#tomcat solus (~martin@as1-2-3.sgp.lk.bonet.se)
09:43.09*** join/#tomcat linked (dealt@202.90.141.134)
09:43.14linkedhi!
09:43.22solushello
09:43.34linkedis it really necessary to build mod_jk with --apxs?
09:43.46quasilinked: yes
09:44.14linkedi cant find apxs on my RH9
09:45.01linkedeven if i install an rpm mod_jk?
09:50.31quasiisn't there an apache devel package in deadrat^Wredhat?
09:51.39brnxwho should compile the binaries which could be found at http://sunsite.cnlab-switch.ch/www/mirror/apache/dist/jakarta/tomcat-connectors/jk2/binaries/win32/ ?
09:53.55quasijudging by the path, it is most likely something mirrored off apache.org
09:57.01linkedquasi: i just installed httpd-devel
09:59.17quasinow you should have apxs
10:03.14brnxquasi, yes I paste an url from a mirror the real question is who should compile the binaries dist for jakarta project ?
10:06.38linkedquasi:thanks!
10:12.34quasibrnx: one of the committers on the tomcat project would have to do it before it can be distributed from apache.org
10:13.03quasibrnx: but there is no "should" here - it is a voluntary operation
10:30.17solusThe classpath used when compiling jsp should be the one set in conf.d/tomcat right?
10:44.08brnxquasi, so in fact I'm looking for a win32 binary of the mod_jk2 for an availabale apache version (which is actually not the case) so who have I to contact to signal the pb and to "motivate" him/someone to compile it (cause I'm actually not able to do it myself)
10:45.11quasibrnx: try one of the mailing lists
11:26.18brnxwhy can't I post to tomcat-dev mailing list (<tomcat-dev-digest@jakarta.apache.org>:
11:26.18brnxezmlm-manage: fatal: I don't accept messages at this address (inlocal and/or inhost don't match) (#5.1.1))
11:26.56quasidon't post to the digest list
11:29.09brnxok
11:34.20quasijust remove -digest and it should be fine
11:57.22*** join/#tomcat Ocean (~ocean@61.17.31.2)
11:58.36Oceanhow to usebean in JSp
11:59.08OceanI always find class not found exception when using beans
12:03.36Oceanany body there
12:03.41Oceanhello!!!!
12:03.48Oceanhello
12:05.30Oceanhello
12:05.47Oceanpastebot
12:45.15*** join/#tomcat PW_Wrk (~Pointwood@62.243.38.210)
13:05.58*** join/#tomcat _Paco (~switch@62-43-32-158.user.ono.com)
13:06.11_PacoHello!
13:08.12_PacoI have a problem with WEB-INF/classes in Tomcat 5. Could anybody help me (only a minute), please?
13:09.34_PacoI've compiled a class and I've placed it in $TOMCAT_HOME/webapps/myapp/WEB-INF/classes
13:09.55_PacoThen I've writen a simple JSP that uses this class.
13:10.04_PacoI get a compilation error (ClassNotFound).
13:10.27_PacoShould I do something special to get it working?
13:11.30_PacoI've tried it using a package (and placing the class in a directory structure) and withouy package.
13:34.03*** join/#tomcat schlumpf (~vx_schlum@dsl-213-023-038-051.arcor-ip.net)
14:08.41*** join/#tomcat jasonc (~jacorley@g5bang.csc.ncsu.edu)
14:14.12*** join/#tomcat skor (~skor@200.116.19.60)
14:14.32skorgood morning
14:16.31*** join/#tomcat PapaSuchtTochter (~mail@ACB8C70E.ipt.aol.com)
14:48.33*** join/#tomcat randrew (~raj@dolmen.cc.columbia.edu)
14:49.32*** join/#tomcat mod_cure (~Cure@cs666863-15.austin.rr.com)
15:09.41*** join/#tomcat cilquirm (~cilq@65.246.162.129)
15:10.44cilquirmis the use of the jsp 1.2 standard taglibs not supported in a jsp 2.0 container?
15:43.08*** join/#tomcat lunch (~lunch@199.106.212.137)
15:45.09ArcheronI am following some examples in a book and just cannot seem to get things working here.  Any pointers would be appreciated.
15:45.13ArcheronI have a directory called "test" under %TOMCAT_HOME/webapps... the same dir that contains the examples dir in the default installation.
15:45.19Archeronunder test, there is also WEB-INF and WEB-INF/classes
15:45.26Archeronclasses contains both a .java file and the compiled TestingServlet.class
15:45.35Archeronthere is also a web.xml deployment descriptor in WEB-INF
15:45.42ArcheronBut no matter what, I get only a 404 error trying to access port :8080/test/servlet/TestingServlet
15:45.50Archeronbut :8080/examples/servlet/HelloWorldExample works fine.
15:45.55ArcheronIs there something else I need to configure?
15:45.59ArcheronI have restarted tomcat several times to no avail.  I can't even find where the 404 error is being logged.
15:47.20lunchwhat is in your web.xml file?
15:47.23Archeronif it makes any difference, this is an install straight out of the tarball jakarta-tomcat-4.1.29.tar.gz on FreeBSD
15:47.46Archeronlunch: not much... I will paste the two lines
15:48.10Archeron<PROTECTED>
15:48.10Archeron<PROTECTED>
15:48.40Archeronwrapped in the usual stuff... <webapp><servlet>...
15:49.14Archeronhttp://arch.wavefire.com:8080/test/web.xml
15:49.27lunchtry :8080/test/servlet/Testing
15:49.44Archeron404
15:50.00Archeronthat is the confusing bit...
15:50.34ArcheronI can copy the web.xml into the webapp root, and see it fine with the URL I just pasted...
15:51.07Archeronbut it seems to not recognise the servlet virtual directory for this particular dir
15:52.15lunchcheck in the logs directory under TOMCAT_HOME
15:53.42lunchthe other piece of advice I can give you is to create a servlet-mapping in the web.xml file as well
15:54.09Archeronok... I zonked all the logs (cat /dev/null > logfile) once the s3erver was running, and none of them appear to log anything related to my requests for /test
15:54.46Archeronthe log localhost_examples.... grows as I make requests to the examples dir.
15:55.04randrewArcheron:   <servlet-mapping>
15:55.04randrew<PROTECTED>
15:55.04randrew<PROTECTED>
15:55.04randrew<PROTECTED>
15:55.19Archeronthank you :)
15:55.40Archeronthat goes inside <webapp> or inside <servlet>?
15:56.17lunchafter <servlet>
15:56.37randrewright, inside <web-app> after <servlet>
15:56.47Archeronnow, should I be required to restart tomcat after adding something like this?
15:57.32lunchI think so
15:57.59randrewIdeally no, but take one thing at a time, do the restart for a thorough test
15:58.55Archeronhmm
15:58.57Archeronno luck
15:59.31lunch:/
15:59.32Archeronis there some server configuration file where I need to specify which contents of the webapps dir are actually web apps?
15:59.45lunchtomcat resolves that automatically
15:59.54randrewcheck logs & file permissions
16:00.18Archeronwell... logs are giving me nothing...
16:00.50Archeronand all my permissions seem to be on track.
16:02.23ArcheronI see that the conf/server.xml contains a block:
16:02.32Archeron<Context path="/examples" docBase="examples" debug="0"
16:02.32Archeron<PROTECTED>
16:02.46randrewIs your class in a package?
16:02.59Archeronmaybe i need to define such a context for test.
16:03.05Archeronin a jar you mean?
16:03.16Archeronit is just a plain .class file...
16:03.25randrewjava version?
16:03.35Archeron1.4.2
16:04.06Archeronhttp://arch.wavefire.com:8080/test/TestingServlet.java
16:06.44lunchI almost forgot what I originally came in here for
16:08.02lunchI upgraded to Tomcat 5, and now some of my jsps throw compile time exceptions on some of my jsp:useBean tags
16:08.39lunchI looked in the code that Tomcat is generating and the problem seems to be in how tomcat is generating the code
16:08.47lunchspecifically speaking if I do something like this
16:09.06randrewArcheron: appBase + autoDeploy settings in conf/server.xml should cause subdirectories of appBase to work automatically
16:09.22ArcheronI will check into that.
16:09.51Archerondoes my .class file need to be executable?
16:10.23lunch<jsp:useBean property="l" class="java.util.List"/>
16:11.05Archeronhmm
16:11.10randrewArcheron in your web.xml file, the proper root tag is <web-app> with the dash.
16:11.18Archeronrandrew: mine looks like:<Host name="localhost" debug="0" appBase="webapps" unpackWARs="true" autoDeploy="true">
16:11.19lunchit will throw a compile time exception when I go to the jsp because the code is written so that if there isn't a property "l" it will try to instantiate l = new java.util.List()
16:11.45lunchbrb
16:12.46Archeronrandrew: do I need to create a different <Host...> tag if I am not accessing this via localhost?
16:12.46randrewI think you just need to fix web.xml.
16:13.08randrewArcheron: the other examaples are working
16:13.13Archeronhow's that look?
16:13.18Archeronthe examples work fine.
16:13.29Archeronhttp://arch.wavefire.com:8080/test/web.xml
16:13.34*** join/#tomcat IRCMonkey (~chatzilla@nbmsolicitors-2.dsl.easynet.co.uk)
16:13.37randrewArcheron: http://arch.wavefire.com:8080/test/Testing
16:13.51Archeronahh
16:14.29Archeronso what about this /test/servlet virtual dir that I see references to?
16:14.43Archeronthanks a lot by the way.
16:15.12randrewYou want the default servlet disabled for security reasons.  : )
16:16.12Archeronheh
16:16.40Archeronthe user this runs as has extremely limited priveliges
16:16.44randrewArcheron: you also always want to put any class you create in a package.
16:16.54Archeronsince I have no clue about tomcat security yet. :)
16:17.24Archeroninside a package? this is the .war deal?
16:19.55randrewFor example in your servlet, at line 1 say: 'package org.me.testing;'  and then in the servlet mapping the full name of the class is 'org.me.testing.TestingServlet'
16:20.22randrewIt's not .war related, just regular Java.
16:22.37Archeronso the .class file becomes a package?
16:24.14Archeronhmm
16:24.18Archeroncheck this out:
16:24.20Archeronhttp://arch.wavefire.com:8080/test/Testing
16:25.08Archeronah...
16:25.11Archeronnm... typo
16:27.52Archeronhmm
16:28.03Archeronsomething is not working with that.
16:29.06ArcheronI keep getting a 503.
16:41.27*** join/#tomcat MattK10 (~mkurjano@lawn-199-77-204-60.lawn.gatech.edu)
17:02.27*** join/#tomcat BMania (~chatzilla@65.118.213.17)
17:23.19Archeronrandrew: do you have a second to take a look at something?
17:24.03Archeronhttp://arch.wavefire.com:8080/test/web.xml and http://arch.wavefire.com:8080/test/TestingServlet.java are set up to use packages as you suggested...
17:24.31Archeronbut http://arch.wavefire.com:8080/test/Testing keeps getting a 503.
17:24.51Archerondid I set up this package deal wrong?
17:25.47Archeronthe xml and java files are of course just copies of the real versions in WEB-INF and WEB-INF/classes respectively.
18:08.49brnxI'm trying to cross compile a win32 mod_jk2 for apache 2.0.48 from solaris and can't understand why the configure abort
18:09.19brnxthe msg is : can't locate path/to/Apache2
18:09.57brnxbut the path is ok
18:10.46brnxan idea ?
18:15.00Archeronpermissions?
18:22.15brnxno
18:22.28brnxor maybe
18:22.50brnxno
18:23.36brnxI used to compile it for unix with this configuration command :
18:24.03brnx./configure --apxs2=/path/to/apsx2
18:24.25brnxbut in win32 binaries there is no apsx2
18:24.43brnxso I'm trying this :
18:25.36brnx./configure --host=i686-mingw32msvc --with-apache2="/path/to/apache"
18:26.15brnxand I can't understand what's wrong with that
18:27.13ArcheronI can honestly say I have never cross-compiled anything...
18:28.45brnxit's the first time that I'm doing this :)
18:30.11brnxcross compiling "hello world"  was easy but mod_jk2 seems to be more complicated
18:32.06*** join/#tomcat IRCMonkey (~chatzilla@141.70.120.102)
18:33.02IRCMonkeyadsf
18:48.56*** join/#tomcat jasonb (~jasonb@dsl017-050-098.sfo4.dsl.speakeasy.net)
18:59.35*** join/#tomcat MattK10 (~mkurjano@r73h117.res.gatech.edu)
19:03.31MattK10Hello
19:04.32MattK10Just wondering how many of you guys use Mac OS X for workstations and how many of you use the XServe servers?
19:08.41Archeronnot i
19:14.27jasoncI don't have an xserve but I do use os x as a workstation
19:18.22*** join/#tomcat kowey (~kowey@puddle.loria.fr)
19:19.17MattK10jasonc, what do you think about it?
19:20.29koweyhi room...
19:20.50jasoncMattK10: I like it, otherwise I wouldn't have requested it for a workstation ;)
19:21.37MattK10jason, some people don't get to request their workstation :)  Does it serve well as a development environment...fast, stable, etc
19:23.18koweyi have a servlet which is returning an empty enumeration on getInitParameterNames() one one platform, and which is doing the right thing on another
19:23.33koweyany tips on how i could begin figuring out why?
19:23.37jasoncMattK10: I'm a sysadmin, not a developer, but it works extremely well for my purposes
19:24.01MattK10jasonc, alrighty, thanks for the help
19:25.59jasoncnp
19:31.37*** join/#tomcat Beettlle (cdelgado@cselab6-14.unl.edu)
19:31.56BeettlleI'm having issues getting tomcat to work with apache/jk...
19:34.00BeettlleI can get the static HTML pages that are in the examples-servlets directory of Tomcat5 to owkr fine, but when I click on the link to see the applet I get a 400 error from tomcat.
19:34.07BeettlleAny help would be apreceated
20:25.00randrewArcheron: hi, I was away. One final step to putting class in package is that the directory structure under WEB-INF/classes/ must correspond to the package name. Your class should be WEB-INF/classes/org/me/testing/TestingServlet.class
20:51.32*** join/#tomcat bugfixer (~bugfixer@42gis175.gulftel.com)
20:53.17*** join/#tomcat schlumpf (~vx_schlum@dsl-213-023-038-051.arcor-ip.net)
21:06.59Archeronrandrew: ahh... I see... thank you.
21:07.48*** join/#tomcat joered (~chatter@81.208.60.200)
21:32.37*** join/#tomcat schlumpf2 (~vx_schlum@dsl-213-023-048-236.arcor-ip.net)
21:46.14*** join/#tomcat YourNick (~suzibunny@host01.hopster.vivi2.kapper.net)
22:02.57Archeronrandrew: I seem to be getting the same problem...
22:04.35*** join/#tomcat mnemonic (lypehokxf3@213.214.40.49)
22:06.28*** join/#tomcat MattK10 (~mkurjano@lawn-199-77-204-60.lawn.gatech.edu)
22:50.43*** join/#tomcat MattK10 (~mkurjano@lawn-199-77-204-60.lawn.gatech.edu)
23:53.39*** part/#tomcat randrew (~raj@dolmen.cc.columbia.edu)

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.