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.11 | Cymric | Hello |
01:25.45 | Cymric | Would 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.49 | Cymric | please help |
01:27.18 | Cymric | I 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.37 | Cymric | there 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.46 | cod | hi > al |
01:35.17 | cod | pls anyone can help me with: tomcat/file upload/multipart/mimeparse etc ? |
01:35.50 | cod | from the net Ifound out that there is a org.apache.tomcat.request.ParseMime |
01:36.05 | cod | anyone has alink to some info aobut this? |
01:36.05 | cod | pls |
01:45.53 | Cymric | hi cod.. |
01:46.30 | Cymric | would 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.55 | ParadoX | org.apache.jasper.JasperException: Unable to compile class for JSP? Its not finding my .java files in /WEB-INF/classes |
01:51.03 | ParadoX | anyone know how to fix that? |
01:57.02 | Cymric | ParadoX, this page has some good examples on how to compile .java and setup tomcat: http://www.yolinux.com/TUTORIALS/LinuxTutorialTomcat.html |
01:58.07 | Cymric | would 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.31 | cod | ParadoX from what I know inside /WEB-INF/classes should be onlu .class files |
01:58.56 | cod | your jsp should be in the same dir, or subidr of the dir thet contains yur WEB-INF |
01:59.00 | Cymric | cod, yes..but you run javac on the .java and it makes the .class in that path |
01:59.05 | cod | I mean the web app dir |
01:59.12 | cod | ok |
01:59.15 | ParadoX | so tomcat wont compile them dynamically? |
01:59.21 | cod | but from wha tI see you got a JAsper error |
01:59.31 | cod | no |
01:59.40 | ParadoX | really? that seems a bit... stupid :\ |
01:59.43 | Cymric | i dont think it compiles dynamically |
01:59.56 | cod | let me explain a little |
02:00.01 | ParadoX | sure :) |
02:00.04 | cod | if you have a servlet, then compile it into classse and put them in WEB-INF/classes |
02:00.11 | cod | if you have jsps |
02:00.49 | cod | then tomcat will compile those jsps with JspC (Jasper) into .java then compile them again with jspc till the final .class stuff |
02:01.05 | cod | tomcat compile dinamically only jsps |
02:01.20 | ParadoX | ah ok |
02:01.21 | Cymric | I am a total noob with this stuff |
02:01.40 | Cymric | I just started trying to setup tomcat this week and I'm having a hell of a time |
02:01.41 | cod | ofc if you want precompiled jsps in your system you can use JspC in the web-app.war building procedure |
02:01.56 | Cymric | can I ask you guys some dumb questions? |
02:02.00 | cod | np Cymric ... |
02:02.00 | ParadoX | Not really, I was just wondering why my .java's wernt getting compiled :) |
02:02.03 | ParadoX | thanks for your help |
02:02.05 | cod | shoot |
02:02.10 | Cymric | thanks cod |
02:02.21 | cod | always, my pleasure :) |
02:02.23 | cod | ahh |
02:02.24 | Cymric | ok, I have mod_jk working with Apache and Tomcat on redhat |
02:02.36 | cod | btw did you've ever used ant ? |
02:02.43 | cod | apache ant fromjakarta? |
02:02.51 | Cymric | apache is passing the jsp/servlet request fine over to tomcat if they reside in tomcats webapp dir |
02:03.02 | Cymric | but, my site is located in /var/www/html |
02:03.04 | cod | why apache+tomcat, use default Catalin :) |
02:03.37 | cod | ahh |
02:03.44 | cod | you have your site in apache, and only some serverside scripting in jsp and/or servlets ... |
02:03.58 | cod | heh I'm working on JBoss/Tomcat :) |
02:04.18 | cod | btw, I found some nice resources about fileupload stuff ... |
02:04.25 | Cymric | can I just change the virtual host to a new location in tomcat that points to /var/www/html? |
02:04.39 | Cymric | or add an additional virtual host? |
02:05.53 | cod | why do you need this ? |
02:06.02 | cod | why change to /var/www/html |
02:06.17 | cod | you have in /var/www/html your stuff ? |
02:06.24 | Cymric | well..i want to be able to execute .jsp and servlets that reside in /var/www/html |
02:06.34 | cod | ok |
02:06.35 | Cymric | yeah, thats where my site lives |
02:07.05 | cod | then if you have the module just simply try to put a .jsp in you /car/www/html :) |
02:07.21 | Cymric | well..i did that and nothing |
02:07.30 | cod | I personally never used apache+tomcat but ... |
02:07.32 | cod | hmm |
02:07.49 | Cymric | it appears that they only execute if they are defined as aliases in the mod_jk.conf |
02:07.59 | cod | do you have special cfg section in httpd.conf for the tomcat module ? |
02:08.14 | Cymric | yeah..im including the mod_jk.conf |
02:08.20 | cod | ok |
02:08.42 | cod | do you ahve tomcat on your machine as well? |
02:08.48 | Cymric | yes..all on same box |
02:09.13 | cod | if you have it then go to the tomcat/conf directory |
02:09.24 | cod | and look for a file called web.xml |
02:09.30 | Cymric | ok.. |
02:09.34 | Cymric | not server.xml? |
02:09.39 | cod | no |
02:09.43 | Cymric | ok |
02:10.03 | cod | server.xml contains varios stuff about the main server (port settings'n stuff) |
02:10.21 | cod | in web.xml you see the definition fo rall you web applications ... |
02:10.42 | Cymric | but server.xml does have references the "webapps" dir and alias' defined in mod_jk.conf |
02:10.49 | Cymric | ok |
02:11.15 | cod | take 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.31 | cod | hmm |
02:11.43 | cod | is mod_jk.conf big? |
02:11.50 | cod | can you paste it on priv msg or here pls |
02:11.54 | Cymric | want me to send it to ya? |
02:11.58 | Cymric | i could send u the configs? |
02:12.14 | cod | mod_jk.conf (I don;t have tomcat + apache module) only tomcat alone :) |
02:12.18 | cod | on redhat too ofc |
02:12.33 | cod | it;s not necessary just the mod_jk.conf |
02:12.37 | Cymric | sure ok |
02:12.50 | cod | dcc or paste the content on priv windwo .. |
02:12.59 | cod | (to not bloat the main channel window :) |
02:13.00 | Cymric | sure cool thanks, just one sec |
02:13.04 | Cymric | course |
02:14.39 | Cymric | thanks |
02:14.48 | cod | just a sec to take a look over it |
02:15.02 | Cymric | of course, thank you |
02:15.09 | cod | ok |
02:17.59 | cod | 10.1.1.30 is your IP ? |
02:18.07 | cod | in LAN or whatever |
02:18.10 | cod | ? |
02:18.15 | Cymric | yes |
02:18.26 | Cymric | forwarded by my router |
02:18.38 | cod | aha ok |
02:18.52 | cod | hmmm I dont know if it will work but, try this: |
02:19.18 | cod | add to that virtual host (inside that tag) another Alias ;) |
02:19.34 | cod | Alias / "/var/www/html" |
02:19.52 | cod | <Directory "/var/www/html" |
02:20.05 | cod | Options Indexes FollowSymLinks |
02:20.20 | cod | DirectoryIndex index.html index.htm index.jsp |
02:20.24 | cod | </Directory> |
02:20.38 | Cymric | yes.. and add the JKMounts |
02:20.47 | cod | like you can see it for the | Alias /admin ... | |
02:21.00 | Cymric | yes.. I tried that |
02:21.24 | Cymric | it tries to execute, but gives an permission error |
02:21.54 | cod | what JkMount do you have ? |
02:22.06 | cod | JkMount /*.jps ajp13 ? |
02:22.12 | Cymric | yes |
02:22.18 | cod | s/jps/jsp sorry |
02:22.26 | Cymric | right :) |
02:22.30 | cod | ok, then what is the permission erro ? |
02:22.49 | Cymric | let me add that back in and I'll paste the error |
02:22.52 | Cymric | just a sec |
02:22.59 | cod | ok |
02:28.52 | Cymric | You don't have permission to access / on this server. |
02:28.52 | Cymric | Additionally, a 403 Forbidden error was encountered while trying to use an ErrorDocument to handle the request. |
02:29.05 | Cymric | ok.. i must be missing something here |
02:29.28 | cod | hmm |
02:29.35 | *** part/#tomcat ParadoX (sos@dialup-40.114.220.203.acc02-john-stp.comindico.com.au) |
02:29.41 | cod | what give you als -al in /var/www | grep html ? |
02:29.46 | *** join/#tomcat Hellaenergy (~nschuetz@hellaweb.com) |
02:29.51 | cod | what give you a ls -al in /var/www | grep html ? |
02:31.35 | Cymric | ok..let me see |
02:32.55 | Cymric | nothing |
02:35.52 | cod | just a sec |
02:36.08 | cod | I'[ve also downloaded mod_jk nad now I'm making some tests :) |
02:36.30 | Cymric | actually my index is index.php |
02:36.37 | Cymric | so, I added that |
02:36.56 | Cymric | but still get the error |
02:38.32 | cod | huh index.php ???? |
02:38.55 | cod | what have to do index.php with you .jsps ? |
02:39.01 | Cymric | yeah..my index page is on "/" is a php |
02:39.59 | Cymric | <Directory "/var/www/html"> |
02:39.59 | Cymric | <PROTECTED> |
02:39.59 | Cymric | <PROTECTED> |
02:39.59 | Cymric | <PROTECTED> |
02:39.59 | Cymric | <PROTECTED> |
02:40.02 | Cymric | <PROTECTED> |
02:40.04 | Cymric | <PROTECTED> |
02:40.11 | Cymric | thats what i meant..so it resolves the index |
02:41.15 | cod | and where do you have the jsp code? |
02:41.53 | Cymric | its /var/www/html/config/info |
02:42.25 | Cymric | ohh..i just thought of something |
02:42.59 | Cymric | in the httpd.conf there is a rule to exclude / |
02:43.07 | Cymric | i mean exclude permissions to it |
02:43.23 | Cymric | ill comment that out and see |
02:43.54 | cod | strange |
02:44.48 | Cymric | hmm |
02:44.52 | Cymric | didnt do it |
02:45.08 | Cymric | maybe I should send you my httpd.conf as well |
02:45.22 | Cymric | i can zip up the important files and send them so you can see the whole picture |
02:46.42 | cod | hmm 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.57 | cod | ok? |
02:47.06 | Cymric | that would be great cod |
02:47.21 | Cymric | really appreciate the time |
02:48.54 | cod | bye > 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.59 | Bub | anyone around |
10:39.39 | jasonb | no. |
10:52.34 | Bub | lo |
10:53.01 | Bub | what connectors do you prefer to use to connect with apache |
10:53.04 | Bub | webapp or j2k ? |
11:09.22 | jasonb | jk2. |
11:10.11 | jasonb | jk *might* be more stable than jk2 right now, but jk2 is the good long-term connector, it seems. |
11:12.31 | Bub | was it easy to configure |
11:12.33 | Bub | what os r u running ? |
11:13.44 | jasonb | No and Linux. |
11:14.02 | Bub | what distribution |
11:14.24 | jasonb | RedHat (the only one that companies seem to support) |
11:14.32 | Bub | heh |
11:15.18 | Bub | i 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.19 | servletss | Hello guyss |
13:57.52 | servletss | finally IŽve found people with knowledge in servltes |
13:57.57 | servletss | I guess |
13:58.21 | servletss | can anybody here help me? |
13:58.33 | servletss | i have a work to deliver today at college |
14:01.12 | servletss | hello |
14:01.18 | servletss | I need some servlets examples |
14:05.18 | Remm_ | did you have a look at the servlets examples bundled with tomcat ? |
14:06.37 | servletss | yeah |
14:06.47 | servletss | but id didŽnt help a lot |
14:07.02 | servletss | cause i need to work with JDBC |
14:07.20 | servletss | I need to make a shopping cart |
14:07.43 | servletss | maybe you can help with some doubts |
14:07.46 | servletss | for example |
14:08.07 | servletss | how can I use rs.getxx(i) |
14:08.43 | servletss | I did a loop, but how can it knows what type theres im database |
14:30.13 | Remm_ | sorry, i was away |
14:31.12 | Remm_ | 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.03 | Remm_ | there should be lots of JDBC oriented taglibs which might make your code look better if you're using JSPs |
14:56.14 | Bub | remm what connector do u use with apache |
14:57.18 | Bub | heh |
15:15.34 | Bub | ne1 about |
15:15.40 | Bub | webdaemon u here |
16:49.20 | *** join/#tomcat TheSteve0 (~Steve@kelev.stat.yale.edu) |
16:49.54 | TheSteve0 | So I am doing some struts work and I get this exception |
16:49.57 | TheSteve0 | Root Cause |
16:49.59 | TheSteve0 | javax.servlet.ServletException: Failed to obtain specified collection |
16:49.59 | TheSteve0 | at org.apache.jasper.runtime.PageContextImpl.handlePageException(Unknown Source) |
16:50.22 | TheSteve0 | Since 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.14 | bender | hi 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.58 | drlfa | I am working with JSP...and wondering if you can access web.xml with config.getInitParameter like you can with servlets? |
19:05.21 | drlfa | is there some trick? I know it has to be done diff because you place the servlet name in web.xml |
19:07.53 | drlfa | lively 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.37 | SpeedFreak | anyone 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 | _FAST | Anyway 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.52 | bender | hmm.. anyone that knows why o get connection refused when surfing to localhost? |
21:26.15 | _FAST | try port 8080 ? |
21:26.30 | *** join/#tomcat insin (insin@pc3-blfs1-5-cust78.blfs.cable.ntl.com) |
21:40.48 | bender | _FAST: heh.. ofcourse ive tried that :) |
21:44.15 | TheSteve0 | is tomcat actually up and running? |
21:56.07 | *** part/#tomcat _FAST (boomz@129.21.215.238) |
22:18.31 | bender | TheSteve0: yepp |
22:20.40 | *** join/#tomcat snuz (~hito@ppp-67-119-107-220.dialup.snfc21.pacbell.net) |
22:21.06 | snuz | anyone 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) |