irclog2html for #tomcat on 20021203

01:12.35*** join/#tomcat bear00 (DNMCKIN@user-0c8hmmm.cable.mindspring.com)
01:13.57*** part/#tomcat bear00 (DNMCKIN@user-0c8hmmm.cable.mindspring.com)
01:24.05*** join/#tomcat Cymric (~zero@adsl-63-199-227-115.dsl.scrm01.pacbell.net)
01:24.11CymricHello
01:25.45CymricWould anyone mind helping me with a problem I'm having setting up Tomcat? I have Apache and Tomcat connected with mod_jk and all of the jsp executes fine under Tomcat's Webapps virtual dir, but for the life of me I cant get the jsp to execute under my main websites virtual dir (/var/www/html)
01:25.49Cymricplease help
01:27.18CymricI dont really even care about TomCats's virual dir..if I could just change it to /var/www/html and forget the webapps dir all together, then that would be fine too
01:27.37Cymricthere must be a place that defines the webapps virtual dir in the Tomcat config
01:34.43*** join/#tomcat cod (~cod@213.233.77.95)
01:34.46codhi > al
01:35.17codpls anyone can help me with: tomcat/file upload/multipart/mimeparse etc ?
01:35.50codfrom the net Ifound out that there is a org.apache.tomcat.request.ParseMime
01:36.05codanyone has alink to some info aobut this?
01:36.05codpls
01:45.53Cymrichi cod..
01:46.30Cymricwould you be able to tell me how to change the default virtual dir of tomcat from the webapps dir to a new location?
01:48.58*** join/#tomcat ParadoX (sos@dialup-40.114.220.203.acc02-john-stp.comindico.com.au)
01:50.55ParadoXorg.apache.jasper.JasperException: Unable to compile class for JSP? Its not finding my .java files in /WEB-INF/classes
01:51.03ParadoXanyone know how to fix that?
01:57.02CymricParadoX, this page has some good examples on how to compile .java and setup tomcat: http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html
01:58.07Cymricwould anyone happen to know the answer to my question?  How do I change the default virtual dir "webapps" to a new location OR how can I add an additional virtual host to tomcat's path
01:58.31codParadoX from what I know inside /WEB-INF/classes should be onlu .class files
01:58.56codyour jsp should be in the same dir, or subidr of the dir thet contains yur WEB-INF
01:59.00Cymriccod, yes..but you run javac on the .java and it makes the .class in that path
01:59.05codI mean the web app dir
01:59.12codok
01:59.15ParadoXso tomcat wont compile them dynamically?
01:59.21codbut from wha tI see you got a JAsper error
01:59.31codno
01:59.40ParadoXreally? that seems a bit... stupid :\
01:59.43Cymrici dont think it compiles dynamically
01:59.56codlet me explain a little
02:00.01ParadoXsure :)
02:00.04codif you have a servlet, then compile it into classse and put them in WEB-INF/classes
02:00.11codif you have jsps
02:00.49codthen tomcat will compile those jsps with JspC (Jasper) into .java then compile them again with jspc till the final .class stuff
02:01.05codtomcat compile dinamically only jsps
02:01.20ParadoXah ok
02:01.21CymricI am a total noob with this stuff
02:01.40CymricI just started trying to setup tomcat this week and I'm having a hell of a time
02:01.41codofc if you want precompiled jsps in your system you can use JspC in the web-app.war building procedure
02:01.56Cymriccan I ask you guys some dumb questions?
02:02.00codnp Cymric ...
02:02.00ParadoXNot really, I was just wondering why my .java's wernt getting compiled :)
02:02.03ParadoXthanks for your help
02:02.05codshoot
02:02.10Cymricthanks cod
02:02.21codalways, my pleasure :)
02:02.23codahh
02:02.24Cymricok, I have mod_jk working with Apache and Tomcat on redhat
02:02.36codbtw did you've ever used ant ?
02:02.43codapache ant fromjakarta?
02:02.51Cymricapache is passing the jsp/servlet request fine over to tomcat if they reside in tomcats webapp dir
02:03.02Cymricbut, my site is located in /var/www/html
02:03.04codwhy apache+tomcat, use default Catalin :)
02:03.37codahh
02:03.44codyou have your site in apache, and only some serverside scripting in jsp and/or servlets ...
02:03.58codheh I'm working on JBoss/Tomcat :)
02:04.18codbtw, I found some nice resources about fileupload stuff ...
02:04.25Cymriccan I just change the virtual host to a new location in tomcat that points to /var/www/html?
02:04.39Cymricor add an additional virtual host?
02:05.53codwhy do you need this ?
02:06.02codwhy change to /var/www/html
02:06.17codyou have in /var/www/html your stuff ?
02:06.24Cymricwell..i want to be able to execute .jsp and servlets that reside in /var/www/html
02:06.34codok
02:06.35Cymricyeah, thats where my site lives
02:07.05codthen if you have the module just simply try to put a .jsp in you /car/www/html :)
02:07.21Cymricwell..i did that and nothing
02:07.30codI personally never used apache+tomcat but ...
02:07.32codhmm
02:07.49Cymricit appears that they only execute if they are defined as aliases in the mod_jk.conf
02:07.59coddo you have special cfg section in httpd.conf for the tomcat module ?
02:08.14Cymricyeah..im including the mod_jk.conf
02:08.20codok
02:08.42coddo you ahve tomcat on your machine as well?
02:08.48Cymricyes..all on same box
02:09.13codif you have it then go to the tomcat/conf directory
02:09.24codand look for a file called web.xml
02:09.30Cymricok..
02:09.34Cymricnot server.xml?
02:09.39codno
02:09.43Cymricok
02:10.03codserver.xml contains varios stuff about the main server (port settings'n stuff)
02:10.21codin web.xml you see the definition fo rall you web applications ...
02:10.42Cymricbut server.xml does have references the "webapps" dir and alias' defined in mod_jk.conf
02:10.49Cymricok
02:11.15codtake a look inside this file, then go to your mod_jk.conf and try to find out how to tell to the tomcat module about your webapp (that is in /var/www/html ...)
02:11.31codhmm
02:11.43codis mod_jk.conf big?
02:11.50codcan you paste it on priv msg or here pls
02:11.54Cymricwant me to send it to ya?
02:11.58Cymrici could send u the configs?
02:12.14codmod_jk.conf (I don;t have tomcat + apache module) only tomcat alone :)
02:12.18codon redhat too ofc
02:12.33codit;s not necessary just the mod_jk.conf
02:12.37Cymricsure ok
02:12.50coddcc or paste the content on priv windwo ..
02:12.59cod(to not bloat the main channel window :)
02:13.00Cymricsure cool thanks, just one sec
02:13.04Cymriccourse
02:14.39Cymricthanks
02:14.48codjust a sec to take a look over it
02:15.02Cymricof course, thank you
02:15.09codok
02:17.59cod10.1.1.30 is your IP ?
02:18.07codin LAN or whatever
02:18.10cod?
02:18.15Cymricyes
02:18.26Cymricforwarded by my router
02:18.38codaha ok
02:18.52codhmmm I dont know if it will work but, try this:
02:19.18codadd to that virtual host (inside that tag) another Alias ;)
02:19.34codAlias / "/var/www/html"
02:19.52cod<Directory "/var/www/html"
02:20.05codOptions Indexes FollowSymLinks
02:20.20codDirectoryIndex index.html index.htm index.jsp
02:20.24cod</Directory>
02:20.38Cymricyes.. and add the JKMounts
02:20.47codlike you can see it for the | Alias /admin ... |
02:21.00Cymricyes.. I tried that
02:21.24Cymricit tries to execute, but gives an permission error
02:21.54codwhat JkMount do you have ?
02:22.06codJkMount /*.jps ajp13 ?
02:22.12Cymricyes
02:22.18cods/jps/jsp sorry
02:22.26Cymricright :)
02:22.30codok, then what is the permission erro ?
02:22.49Cymriclet me add that back in and I'll paste the error
02:22.52Cymricjust a sec
02:22.59codok
02:28.52CymricYou don't have permission to access / on this server.
02:28.52CymricAdditionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request.
02:29.05Cymricok.. i must be missing something here
02:29.28codhmm
02:29.35*** part/#tomcat ParadoX (sos@dialup-40.114.220.203.acc02-john-stp.comindico.com.au)
02:29.41codwhat give you als -al in /var/www | grep html ?
02:29.46*** join/#tomcat Hellaenergy (~nschuetz@hellaweb.com)
02:29.51codwhat give you a ls -al in /var/www | grep html ?
02:31.35Cymricok..let me see
02:32.55Cymricnothing
02:35.52codjust a sec
02:36.08codI'[ve also downloaded mod_jk nad now I'm making some tests :)
02:36.30Cymricactually my index is index.php
02:36.37Cymricso, I added that
02:36.56Cymricbut still get the error
02:38.32codhuh index.php ????
02:38.55codwhat have to do index.php with you .jsps ?
02:39.01Cymricyeah..my index page is on "/" is a php
02:39.59Cymric<Directory "/var/www/html">
02:39.59Cymric<PROTECTED>
02:39.59Cymric<PROTECTED>
02:39.59Cymric<PROTECTED>
02:39.59Cymric<PROTECTED>
02:40.02Cymric<PROTECTED>
02:40.04Cymric<PROTECTED>
02:40.11Cymricthats what i meant..so it resolves the index
02:41.15codand where do you have the jsp code?
02:41.53Cymricits /var/www/html/config/info
02:42.25Cymricohh..i just thought of something
02:42.59Cymricin the httpd.conf there is a rule to exclude /
02:43.07Cymrici mean exclude permissions to it
02:43.23Cymricill comment that out and see
02:43.54codstrange
02:44.48Cymrichmm
02:44.52Cymricdidnt do it
02:45.08Cymricmaybe I should send you my httpd.conf as well
02:45.22Cymrici can zip up the important files and send them so you can see the whole picture
02:46.42codhmm I'm sorry but I connot stay longer, here is 4:50am and I should really go to sleep, tomorrow (in fact today already) I have togo to work :(( pls send me your httpd.conf via email pls, I'll give you my email addr on prv
02:46.57codok?
02:47.06Cymricthat would be great cod
02:47.21Cymricreally appreciate the time
02:48.54codbye > all
02:48.57*** part/#tomcat cod (~cod@213.233.77.95)
07:24.04*** join/#tomcat remm (~remm@AToulouse-105-1-8-161.abo.wanadoo.fr)
07:24.21*** join/#tomcat remm (~remm@AToulouse-105-1-8-161.abo.wanadoo.fr)
08:27.39*** join/#tomcat insin (insin@pc3-blfs1-5-cust78.blfs.cable.ntl.com)
08:53.11*** join/#tomcat utest (~utest@192.118.64.250)
08:55.43*** join/#tomcat seba (~seba@213.177.68.243)
08:56.08*** part/#tomcat seba (~seba@213.177.68.243)
09:27.33*** join/#tomcat remm (~remm@AToulouse-105-1-8-161.abo.wanadoo.fr)
09:27.49*** join/#tomcat remm (~remm@AToulouse-105-1-8-161.abo.wanadoo.fr)
10:34.59Bubanyone around
10:39.39jasonbno.
10:52.34Bublo
10:53.01Bubwhat connectors do you prefer to use to connect with apache
10:53.04Bubwebapp or j2k ?
11:09.22jasonbjk2.
11:10.11jasonbjk *might* be more stable than jk2 right now, but jk2 is the good long-term connector, it seems.
11:12.31Bubwas it easy to configure
11:12.33Bubwhat os r u running ?
11:13.44jasonbNo and Linux.
11:14.02Bubwhat distribution
11:14.24jasonbRedHat (the only one that companies seem to support)
11:14.32Bubheh
11:15.18Bubi thought jk2 was just a bin
11:46.12*** join/#tomcat jasonb (~jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
12:08.35*** join/#tomcat seanb (~sean@66.34.231.64) [NETSPLIT VICTIM]
12:10.46*** join/#tomcat Remm_ (~chatzilla@AToulouse-105-1-8-161.abo.wanadoo.fr)
12:12.38*** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-107-2-55.abo.wanadoo.fr)
12:26.39*** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-107-2-48.abo.wanadoo.fr)
12:31.14*** join/#tomcat remm (~remm@AToulouse-105-1-8-161.abo.wanadoo.fr)
12:35.44*** join/#tomcat Pointy_Work (~Pointwood@fw.agropark.dk)
13:30.59*** join/#tomcat webdaemon (~webdaemon@Mix-Marseille-107-2-48.abo.wanadoo.fr)
13:37.56*** join/#tomcat Freix (~robbie@host109-13.pool80116.interbusiness.it)
13:57.09*** join/#tomcat servletss (~grpb@200.150.140.24)
13:57.19servletssHello guyss
13:57.52servletssfinally IŽve found people with knowledge in servltes
13:57.57servletssI guess
13:58.21servletsscan anybody here help me?
13:58.33servletssi have a work to deliver today at college
14:01.12servletsshello
14:01.18servletssI need some servlets examples
14:05.18Remm_did you have a look at the servlets examples bundled with tomcat ?
14:06.37servletssyeah
14:06.47servletssbut id didŽnt help a lot
14:07.02servletsscause i need to work with JDBC
14:07.20servletssI need to make a shopping cart
14:07.43servletssmaybe you can help with some doubts
14:07.46servletssfor example
14:08.07servletsshow can I  use rs.getxx(i)
14:08.43servletssI did a loop, but how can it knows what type theres im database
14:30.13Remm_sorry, i was away
14:31.12Remm_well, you can get jdbc samples in the Java tutorial (from java.sun.com), and mix them with some servlets and JSP or servlets samples to get what you want
14:32.03Remm_there should be lots of JDBC oriented taglibs which might make your code look better if you're using JSPs
14:56.14Bubremm what connector do u use with apache
14:57.18Bubheh
15:15.34Bubne1 about
15:15.40Bubwebdaemon u here
16:49.20*** join/#tomcat TheSteve0 (~Steve@kelev.stat.yale.edu)
16:49.54TheSteve0So I am doing some struts work and I get this exception
16:49.57TheSteve0Root Cause
16:49.59TheSteve0javax.servlet.ServletException: Failed to obtain specified collection
16:49.59TheSteve0at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source)
16:50.22TheSteve0Since it refers to jasper it makes me think its a tomcat problem but i am not sure
18:07.00*** join/#tomcat bender (~bender@h68n2fls31o954.telia.com)
18:07.14benderhi ppl! is the license for tomcat the same as for apache?
19:04.11*** join/#tomcat drlfa (macdaddy@user57.net166.mo.sprint-hsd.net)
19:04.58drlfaI am working with JSP...and wondering if you can access web.xml with config.getInitParameter like you can with servlets?
19:05.21drlfais there some trick? I  know it has to be done diff because you place the servlet name in web.xml
19:07.53drlfalively crew here...
19:53.25*** join/#tomcat SpeedFreak (~me@dhcp-kta1-161-44-192-209.cisco.com)
19:53.51*** part/#tomcat SpeedFreak (~me@dhcp-kta1-161-44-192-209.cisco.com)
19:53.57*** join/#tomcat SpeedFreak (~me@dhcp-kta1-161-44-192-209.cisco.com)
19:54.37SpeedFreakanyone here?
20:16.41*** join/#tomcat kiri (~kiri@216.252.250.20)
21:22.53*** join/#tomcat _FAST (boomz@129.21.215.238)
21:23.18_FASTAnyway to make tomcat forward from 80 to 8080  so that the URL in the browser doesn't change ? and doesn't require a :8080
21:23.52benderhmm.. anyone that knows why o get connection refused when surfing to localhost?
21:26.15_FASTtry port 8080 ?
21:26.30*** join/#tomcat insin (insin@pc3-blfs1-5-cust78.blfs.cable.ntl.com)
21:40.48bender_FAST: heh.. ofcourse ive tried that :)
21:44.15TheSteve0is tomcat actually up and running?
21:56.07*** part/#tomcat _FAST (boomz@129.21.215.238)
22:18.31benderTheSteve0: yepp
22:20.40*** join/#tomcat snuz (~hito@ppp-67-119-107-220.dialup.snfc21.pacbell.net)
22:21.06snuzanyone around i can ask about cross-context?
22:23.21*** part/#tomcat snuz (~hito@ppp-67-119-107-220.dialup.snfc21.pacbell.net)
23:27.22*** join/#tomcat tn0 (~hito@ppp-67-119-107-220.dialup.snfc21.pacbell.net)
23:31.57*** join/#tomcat BadAss-J (~jonas@lgh23b.brf-berghem.ac.se)

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.