00:41.02 | *** join/#tomcat roadt (n=roadt@61.191.27.34) |
01:11.46 | *** join/#tomcat andrewaclt (n=andrew@cpe-076-182-123-173.nc.res.rr.com) |
01:14.20 | andrewaclt | Hi, I get http://pastebin.com/m5e3f42d4 under tomcat 5.5.26 and 5.5.27, however I am looking at the class and it corresponds to the listener class defined in web.xml. This is under linux, any ideas? |
01:16.45 | andrewaclt | oh, and java is Sun Java 6.0 |
01:26.29 | andrewaclt | I think it's a linux issue, as I was able to deploy the same project on windows. Can anybody point me in the right direction? |
01:44.22 | *** join/#tomcat harso (n=harso@norkia.v3.sk) |
01:47.27 | andrewaclt | could it be a bad classpath? |
02:22.22 | *** part/#tomcat andrewaclt (n=andrew@cpe-076-182-123-173.nc.res.rr.com) |
02:23.12 | *** join/#tomcat earl3982 (n=foo@c-24-99-69-91.hsd1.ga.comcast.net) |
03:20.28 | *** join/#tomcat acidjnk (i=acid@pD950A025.dip0.t-ipconnect.de) |
03:38.14 | *** join/#tomcat karstensrage (n=karstens@76.21.8.74) |
03:54.59 | *** join/#tomcat wandana (n=chatzill@131.181.88.232) |
04:28.50 | *** join/#tomcat jasonb (n=jasonb@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
04:31.27 | *** join/#tomcat shital12 (n=shital@121.243.177.213) |
04:51.29 | *** join/#tomcat shashi (n=shashi@125.16.213.2) |
06:10.54 | *** join/#tomcat rhonabwy (n=rhonabwy@dslb-084-057-003-045.pools.arcor-ip.net) |
06:15.23 | *** join/#tomcat jfclere (n=jfclere@57.79.66.141) |
06:33.23 | *** join/#tomcat mesut (n=power@tuxhacker/mesut) |
06:40.23 | *** join/#tomcat Levia (n=Levia@unaffiliated/levia) |
07:10.03 | *** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.cust.glaslokaal.nl) |
07:11.28 | *** join/#tomcat Bollinger (n=peter@88-105-241-230.dynamic.dsl.as9105.com) |
07:15.10 | *** join/#tomcat karstensrage_alt (n=karstens@76.21.8.74) |
07:20.33 | *** join/#tomcat ramteid (n=ramteid@83-64-52-210.fadingerstrasse.xdsl-line.inode.at) |
07:21.55 | *** join/#tomcat NoogiE- (n=NoogiE@nubbin.noogies.org) |
07:23.09 | NoogiE- | hi guys, having a problem thats doing my head in here upgrading from 5.5.17 to 6.0.18 |
07:23.27 | NoogiE- | we run different instances with the same binaries, so CATALINA_BASE is set in my init script |
07:23.47 | NoogiE- | I've put -verbose on the jvm flags |
07:24.03 | NoogiE- | and my tomcat just shutsdown with no errors other than this |
07:24.14 | NoogiE- | [Loaded sun.misc.URLClassPath$FileLoader from /usr/jdk/instances/jdk1.6.0_07/jre/lib/rt.jar] |
07:24.17 | NoogiE- | Exception in thread "main" java.lang.NoClassDefFoundError: |
07:24.20 | NoogiE- | Caused by: java.lang.ClassNotFoundException: at java.net.URLClassLoader$1.run(URLClassLoader.java:200) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:188) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276) |
07:24.25 | NoogiE- | <PROTECTED> |
07:25.42 | NoogiE- | so which class is that looking for and cant find |
07:28.19 | NoogiE- | jdk1.6.0_07 on solaris 10 |
07:31.57 | NoogiE- | full output is here - http://pastebin.com/m17731ebe |
07:32.33 | NoogiE- | it seems to be more a java problem, but it works with 5.5 and java6 so i have no idea |
07:46.46 | *** join/#tomcat Navi` (n=Navi`@217-102-250-41.zeelandnet.nl) |
08:13.48 | *** join/#tomcat fyrestrtr (n=Burhan@pdpc/supporter/student/fyrestrtr) |
08:13.58 | fyrestrtr | how can I know what is the default heap size for tomcat? |
08:14.23 | lyken | 64mb |
08:14.54 | kjkoster5489 | fyrestrtr: use jconsole to see for yourself. |
08:15.15 | fyrestrtr | I can't use jconsole since I'm running this on a headless server. |
08:15.41 | fyrestrtr | 'Exception in thread "AWT-EventQueue-0" java.awt.HeadlessException:' |
08:20.58 | fyrestrtr | hrmm, from this page http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html I can see its possible to enable remote monitoring using -Dcom.sun.management.jmxremote, but how do I specify a port so I can open the port on the firewall and then monitor it from my local client? |
08:28.04 | fyrestrtr | hrmm, its saying invalid command line arguments for : Adding in custom Tomcat option(s): -Dfile.encoding=utf-8 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=9898 -Dcom.sun.management.jmxremote.authenticate=false |
08:34.44 | kjkoster5489 | fyrestrtr: see my opinion http://java-monitor.com/forum/showthread.php?t=37 |
08:35.55 | kjkoster5489 | Remote X is painful, but will work. |
08:35.58 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-6a1e1b243fe718ab) |
08:53.18 | fyrestrtr | is it me or is this really that difficult to get working across a firewall :/ |
09:04.21 | kjkoster5489 | fyrestrtr: I use zapcat and Zabbix. Alternately there are command line JMX tools that allow you to query JMX. |
09:08.35 | ramteid | fyrestrtr: if your box has multiple IF it's sometimes helpful to add -Dcom.sun.management.jmxremote.host=PROPERIP |
09:10.16 | fyrestrtr | hrmm -- I'll give that a try. |
09:11.08 | ramteid | fyrestrtr: but I agree JMX and FW is no fun. (it *should* be easier...) |
09:13.15 | kjkoster5489 | If you get it to work, let us know precisely how. |
09:14.39 | ramteid | kjkoster5489: the last time I've done it I had to tunnel several FW (via ssh), so I used port forwarding and com.sun.management.jmxremote.hos=127.0.0.1 but not sure if I used jmxremote.port. If I recall correctly i fetched the used port from log and fwd that one too. |
09:15.03 | ramteid | kjkoster5489: but it was PIA... |
09:17.38 | ramteid | kjkoster5489: maybe also take a look at: http://blogs.sun.com/jmxetc/entry/connecting_through_firewall_using_jmx --- but it worked with 127.0.0.1 + port (I checked my notes) |
09:38.43 | kjkoster5489 | ramteid: I tried that (and a lot more) and failed. I must be stupid. |
09:40.07 | ramteid | kjkoster5489: oh. strange, my notes definitely say that it worked |
09:46.28 | *** join/#tomcat albert_kam (n=albert@125.160.174.102) |
10:21.37 | ramteid | kjkoster5489: ok, I nearly failed.... BUT there are *2* ports which need to be forwarded |
10:21.59 | ramteid | kjkoster5489: first the JMX port and also the "secondary" port (I think it's the RMI registry port) |
10:22.22 | ramteid | kjkoster5489: the hard thing is to find the rmi port... |
10:24.20 | ramteid | kjkoster5489: if on linux just retrieved PID and netstat -anp | grep PID |
11:05.06 | fyrestrtr | the problem is that the other port is not configurable. |
11:07.04 | ramteid | fyrestrtr: yes :( |
11:31.42 | *** join/#tomcat gottadoit (n=gottadoi@unaffiliated/gottadoit) |
11:59.12 | *** join/#tomcat the_bat (n=bjmm@94-40-44-2.tktelekom.pl) |
12:04.46 | *** join/#tomcat bindaas (n=chatzill@59.94.101.114) |
12:08.16 | *** part/#tomcat the_bat (n=bjmm@94-40-44-2.tktelekom.pl) |
12:14.49 | *** join/#tomcat clajo04_ (n=clajo04_@cpe-67-243-136-111.nyc.res.rr.com) |
12:26.02 | *** join/#tomcat p_masho (n=mash@84-45-225-28.no-dns-yet.enta.net) |
12:27.49 | p_masho | anyone help a newbie pls. I've installed tomcat5.5 ubuntu (from the packages) and tomcat-admin. When i start tomcat /etc/init.d/toncat start . it does not appear at localhost:8080 ? any ideas |
12:39.20 | pucko | p_masho: http://www.webdroid.org/archives/tomcat-package |
12:45.10 | MHSL | p_masho, maybe check whether it's listening on a different port? |
12:53.17 | *** join/#tomcat xigamy (n=David@hnvr-4dbb63c3.pool.einsundeins.de) |
12:54.56 | xigamy | Hello please help me. i am trying to add a new user or role to tomcat for 2 days now... i use java 1.6.07, windows vista and tomcat 6.0.18 Can anybody help me? |
12:56.41 | MHSL | what have you done so far? |
12:57.32 | MHSL | and also please tell us the outcome of your attempts |
12:57.47 | MHSL | just saying "trying to add a new user or role" doesnt help us to help you |
12:57.55 | xigamy | ok, ty ... i have a web app and declared security in the web xml ... all works fine when i use the role "manager" with the user "root" which i also have declared in the conf/tomcat-users.xml |
12:58.14 | MHSL | then? |
12:58.29 | xigamy | but i want to use a new user with my own role. so i tried adding it to the tomcat-users.xml but wont work ... |
12:59.45 | MHSL | of course it wont, tomcat-users.xml is only for tomcat, if you have a security constraint on your web.xml you have to create your own file that contains the credentials |
12:59.46 | xigamy | i tried the user "root" and added my own role to the existing user. the result is, that i am not authorized, although root has my role. |
13:00.00 | MHSL | post your web.xml |
13:00.24 | xigamy | <?xml version="1.0" encoding="UTF-8"?> |
13:00.24 | xigamy | <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5"> |
13:00.24 | xigamy | <PROTECTED> |
13:00.24 | xigamy | <PROTECTED> |
13:00.24 | xigamy | <PROTECTED> |
13:00.27 | MHSL | not here.. |
13:00.33 | MHSL | baka |
13:01.00 | *** join/#tomcat xigamy (n=David@hnvr-4dbb63c3.pool.einsundeins.de) |
13:01.14 | MHSL | xigamy, use pastebin.com |
13:01.19 | MHSL | or something similar, dont paste here... |
13:02.42 | fyrestrtr | p_masho: default port in debian is 8180 |
13:02.43 | xigamy | http://pastebin.com/db350915 |
13:06.47 | xigamy | where do i have to place that file whith my own credentials? |
13:06.51 | MHSL | xigamy, you said that you tried to access your webapp using root username? |
13:07.08 | xigamy | yes and it worked |
13:07.31 | MHSL | can i see your tomcat-users.xml |
13:07.34 | xigamy | but only if i used the existing role "manager" not if i tried my own role |
13:07.46 | xigamy | yes |
13:09.13 | xigamy | http://pastebin.com/d79bf8cef |
13:12.13 | *** join/#tomcat bindaas_ (n=chatzill@59.94.107.229) |
13:12.36 | xigamy | but it only works if i declare the role "manager" in the web.xml , it wont work when i declare "webdriveuser" |
13:13.49 | xigamy | i also tried to declare the roles in the tomcat-users.xml with the <role>-element or to omit that element. but it didnt make any difference |
13:16.14 | xigamy | also when i try to login with any other user then root, it seems like tomcat doesnt know them. because when i declare the webdriveuser-role and try to login as root, then i am not authorized. but when i try to login as david, then the login prompt will not stop to popup. |
13:20.29 | MHSL | xigamy, <realm-name>Web Drive</realm-name> -> can this be anything or this should match with the one specified in server.xml? |
13:21.08 | kjkoster5489 | p_masho: http://java-monitor.com/forum/showthread.php?t=4 |
13:21.58 | kjkoster5489 | p_masho: Better use a vanilla tomcat from apache.org |
13:23.40 | xigamy | i dont think so, because the tomcat manager app also has no matching entry in the server xml and all works fine. |
13:25.01 | MHSL | nvm, now i know what realm-name is for |
13:25.59 | xigamy | i am following this guide: http://www.onjava.com/pub/a/onjava/2001/07/24/tomcat.html |
13:26.24 | xigamy | i think it doesnt do anything, ist just a name to display for the user |
13:27.04 | MHSL | i cant see anything wrong |
13:27.21 | xigamy | oh no wait a second |
13:27.21 | MHSL | btw, did you restart tomcat after changing tomcat-users.xml? |
13:27.26 | xigamy | yes |
13:27.39 | MHSL | ok |
13:30.31 | xigamy | ups |
13:30.44 | xigamy | there seems to be something really wrong with my install... |
13:31.51 | *** join/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu) |
13:32.26 | xigamy | wow, you wont believe this !!!!! |
13:32.34 | xigamy | windows really sucks! |
13:33.13 | xigamy | i have this file on my computer: C:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\tomcat-users.xml |
13:33.33 | MHSL | then? |
13:33.39 | xigamy | when i double click it, then it opens in my favorite editor npp |
13:34.05 | xigamy | when i right click and click edit, then it opens in windows notepad |
13:34.16 | xigamy | but the content of the file is different!!!! |
13:34.40 | xigamy | although it really is the same file! Windows Vista Business Edition |
13:37.13 | xigamy | i have seen this already before ... its only in the program files dir. somehow it depends on whether files are opened by admin or by user ... i dont understand ... but i dont like this feature |
13:40.52 | xigamy | yes, that was the problem. Somehow windows seems to maintain different versions of files with the same URI. So when i run my editor as admin then i get i different version of the file. Now i see the "real" content. probably now everything will be alright. i try and let you know. |
13:47.12 | xigamy | yes, that was the problem. i had to edit the tomcat-users.xml as admin, then everything was alright. sorry for that |
13:51.58 | MHSL | ok |
14:38.14 | *** join/#tomcat cgp_-_ (n=chatzill@165.215.99.245) |
14:38.36 | *** join/#tomcat karstensrage (n=karstens@76.21.8.74) |
14:43.31 | *** join/#tomcat cgp_-_ (n=chatzill@165.215.99.245) |
14:43.55 | *** part/#tomcat cgp_-_ (n=chatzill@165.215.99.245) |
14:46.45 | *** join/#tomcat cgp_-_ (n=chatzill@165.215.99.245) |
14:50.30 | *** join/#tomcat gogosys (n=o2o2o2o2@87.116.224.36.strzyzow224.tnp.pl) |
14:51.33 | gogosys | Hello This is possible to create connection pool where source code (jsp, java) are already using jdbc connection for each jsp page and java file? |
14:51.56 | gogosys | I'm talking about tomcat |
14:52.19 | *** join/#tomcat cgp_-_ (n=chatzill@165.215.99.245) |
14:53.01 | gogosys | Tomcat is 5.5. I think rest doesn't matter this is Linux. |
14:55.11 | gogosys | apache-tomcat-5.5.26/jdk1.5.0_14/CentOS5 |
15:05.12 | MHSL | gogosys, what do you mean? you mean you want to use connection pool on top of your existing jsp and classes? |
15:09.07 | gogosys | MHSL Thank you! I have a lot of static "connection = DriverManager.getConnection("jdbc:mysql:" in JSP files. I want to use connection pool because I have limited MYSQL connections. |
15:09.47 | gogosys | This is possible to overwrite this configuration some how just by placing connection pool in context.xml file? |
15:10.50 | *** join/#tomcat ircleuser (n=qultum@80.187.215.186) |
15:15.30 | MHSL | gogosys, yes, you should read http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html |
15:29.58 | *** join/#tomcat bindaas_ (n=chatzill@59.94.101.133) |
15:47.55 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-ecb0bff59ac085f8) |
15:50.36 | *** join/#tomcat rewb0rn (n=chatzill@p57A0EE7F.dip.t-dialin.net) |
15:51.26 | rewb0rn | hi |
15:52.33 | rewb0rn | is there a way to upload files to a client using tomcat? using java 1.6, win xp and the latest tomcat |
15:53.45 | chillitom | rewb0rn, http://commons.apache.org/fileupload/ |
15:53.51 | rewb0rn | thx |
15:54.10 | xigamy | upload to the client ?? the commons is for uploading to the server ... |
15:54.25 | *** join/#tomcat magentar (n=magentar@ip-81-210-151-106.hsi.iesy.net) |
16:00.23 | rewb0rn | lol |
16:00.51 | rewb0rn | never mind we do it by links now ;) |
16:00.56 | rewb0rn | have a nice evening |
16:07.13 | xigamy | to send a file to the client i would use a servlet and set the appropriate headers in the response and attach the file , right? |
16:08.20 | xigamy | but if links work, its even easier |
16:13.55 | *** join/#tomcat Levia (n=Levia@unaffiliated/levia) |
16:14.50 | *** join/#tomcat linkslice (n=bryan@officefw.tac.opticfusion.net) |
16:20.22 | *** part/#tomcat xigamy (n=David@hnvr-4dbb63c3.pool.einsundeins.de) |
16:24.08 | *** join/#tomcat blacksheep1666 (n=chatzill@dsl-243-11-165.telkomadsl.co.za) |
17:22.25 | *** join/#tomcat mesut (n=power@tuxhacker/mesut) |
17:40.47 | *** join/#tomcat da_krowa (n=Miranda@chello089077099221.chello.pl) |
17:57.28 | Levia | I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and Java SE 6. I have it set up so I can access the main Tomcat page..but when I go to the manager from there, it shows a (apache) 404 error. Can someone help me with this problem? I have the configuration files ready for those who wants to have a look at them (mod_jk.conf (auto generated), httpd.conf (where I include mod_jk.conf), server.xml and workers.properties). |
18:27.10 | *** join/#tomcat bindaas (n=chatzill@59.94.103.148) |
18:50.48 | *** join/#tomcat roue (n=roue@afterthought.ACS.Carleton.edu) |
19:12.06 | *** join/#tomcat Navi` (n=Navi`@a82-95-218-113.adsl.xs4all.nl) |
19:20.22 | *** join/#tomcat joecoder (n=EricPogg@12.156.132.2) |
19:20.55 | joecoder | trying to get tomcat working on sles 10.0 |
19:21.04 | joecoder | i've installed the package and the jsp-examples work |
19:22.00 | joecoder | but when I copy my website project to /usr/share/tomcat5/webapps and access it through the browser by its folder name, I get a not available error |
19:23.59 | joecoder | also, on windows, http://localhost:8080/manager/html takes me to the tomcat manager, but on suse it prompts for a username/password (looked in /etc/tomcat/tomcatusers.xml, it was tomcat/tomcat) and then I get an access denied error. |
19:31.23 | *** join/#tomcat Evolution (n=jperrin@centos/admin/Evolution) |
19:31.45 | Evolution | quick question about the new 5.5.27 tomcat release. |
19:32.01 | Evolution | Does it address the recent CVEs related to comcat? |
19:32.04 | Evolution | er tomcat rather. |
19:32.33 | Evolution | specifically CVE 2008-1232 2008-1947, and 2008-2370 ? |
19:33.21 | joecoder | i asked a question about 12 minutes ago and this is the first chat i've seen since then. |
19:34.05 | joecoder | i know very little about tomcat, don't know what a CVEis. |
19:34.08 | barnum | patience is the key here most people are working |
19:34.31 | barnum | CVE is common vulnerabilities and exposires |
19:34.43 | barnum | i.e. security bugs |
19:34.51 | barnum | for all products not just tomcat |
19:35.04 | joecoder | thanks. |
19:35.27 | barnum | evolution the changelog usuallylists what vulns are addressed in a version |
19:35.56 | joecoder | i'm a developer but i sometimes find myself in the role of system administrator, which i know very little about. |
19:36.02 | barnum | http://tomcat.apache.org/tomcat-5.5-doc/changelog.html |
19:36.07 | joecoder | at least when it comes to java server technologies. |
19:36.55 | Evolution | barnum: right. I was reading that, and trying to figure out if things like 'Add additional checks for URI normalization' translated to the XSS vuln fix and such. |
19:37.05 | Evolution | it does not specifically spell out CVE patching. |
19:37.09 | Evolution | which concerns me a bit. |
19:38.16 | barnum | i know ive seen a tc page with the CVE's listed addressed |
19:38.44 | Evolution | barnum: that very page lists some for 5.5.26 |
19:38.49 | Evolution | just not for 5.5.27 |
19:39.19 | *** part/#tomcat randrew (n=raj@dyn-128-59-53-165.dyn.columbia.edu) |
19:45.48 | barnum | k guess thats where i saw it before |
19:45.53 | barnum | weird they didnt include it this time |
19:46.01 | barnum | brb |
19:52.24 | *** join/#tomcat smoore (i=adsf@cm30.epsilon161.maxonline.com.sg) |
19:52.41 | *** join/#tomcat IIVX (n=IIVQ@a213-84-33-86.adsl.xs4all.nl) |
19:53.01 | IIVX | hello |
19:53.11 | IIVX | I have a nice encoding problem |
19:53.38 | IIVX | I'm on a windows Vista machine, using tomcat and java and a MySQL database with data |
19:54.09 | IIVX | my data is sent from a the database via a JSP as XML to a HTML where the javascript parses it. |
19:54.16 | IIVX | Strange characters all work fine |
19:54.42 | IIVX | now all my code AND the database is all transferred to my colleague's computer |
19:54.55 | IIVX | now special characters DON't work fine... |
19:55.11 | IIVX | Database: all columns in the table are UTF-8 |
19:55.50 | IIVX | JSP: has first line <?xml version="1.0" encoding=UTF-8"?> |
19:56.31 | IIVX | and a line with <%@ page contentType="text/html;charset=UTF-8" pageEncoding="ISO-8859-1" %> |
19:56.36 | IIVX | doesn't work |
19:57.12 | IIVX | the a with a ^ on it (a circonflex) gets sent in the HTML as two characters (actually A+~, c+/) |
19:58.10 | IIVX | also with pageEncoding="UTF-8" or all the other encodings as ISO-8859-1, setting the browser to ISO-8859-1 manually (it's in UTF-8 automatically) - all stays the same |
19:58.19 | IIVX | this is all with Internet Explorer 7 |
19:58.24 | IIVX | but Chrome does the same... |
19:58.35 | IIVX | any hints? |
19:59.33 | joecoder | what encoding does the browser show the page |
19:59.38 | joecoder | in firefox, it's tools-> page info |
20:00.18 | joecoder | i've dealt with this problem with php, but i don't know much about java web development. |
20:04.14 | *** part/#tomcat joecoder (n=EricPogg@12.156.132.2) |
20:07.23 | IIVX | joecoder: UTF-8 |
20:16.34 | *** join/#tomcat GhostDWORD` (n=gottadoi@unaffiliated/gottadoit) |
20:27.23 | Levia | I have a problem using Tomcat 6.0.18, latest Apache, latest mod_jk and Java SE 6. I have it set up so I can access the main Tomcat page..but when I go to the manager from there, it shows a (apache) 404 error. Can someone help me with this problem? I have the configuration files ready for those who wants to have a look at them (mod_jk.conf (auto generated), httpd.conf (where I include mod_jk.conf), server.xml and workers.properties). |
20:38.03 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
20:59.29 | smoore | hi, not much familiar with tomcat.. i'm handling a server from godaddy which is owned by my friend. the web developer ask me if tomcat is connected to apache through mod_jk, how can i check this? |
21:16.27 | *** join/#tomcat balla (n=balla@217.201.72.59) |
21:23.55 | *** join/#tomcat gottadoit (n=gottadoi@unaffiliated/gottadoit) |
22:25.07 | *** join/#tomcat akdfjjjj (i=adsf@cm30.epsilon161.maxonline.com.sg) |
22:39.17 | *** join/#tomcat Infinito- (n=yingyang@li6-217.members.linode.com) |
23:02.10 | *** join/#tomcat kim0 (n=kimoz@unaffiliated/kim0) |
23:02.12 | *** join/#tomcat karstensrage (n=chatzill@75-55-199-5.mobitv.com) |
23:02.48 | kim0 | Hello guys. My first minutes of tomcat. I am trying to deploy a webapp. I deployed, but it's not starting |
23:02.55 | kim0 | where do I begin to look please ? |
23:03.13 | kim0 | getting default tomcat page |
23:03.20 | karstensrage | $CATALINA_HOME/logs/catalina.out |
23:03.26 | kim0 | okie |
23:03.42 | karstensrage | look very carefully , it can have a lot of cruft |
23:04.20 | kim0 | hmm, doesn't mention my app name at all |
23:05.07 | *** join/#tomcat vinse (n=vinse_@208.253.223.146) |
23:05.38 | karstensrage | then it didnt deploy |
23:05.47 | karstensrage | go to the tomcat page, login to status |
23:05.52 | karstensrage | go to list applications |
23:06.07 | kim0 | karstensrage: I am using some configuration management tool that some other team has written. It is supposed to aid in depoying. Where do I look to make sure the correct things were written to tomcat config files ? |
23:06.32 | kim0 | I need to know which files should contain what pointing to my app |
23:07.22 | kim0 | karstensrage: the steps were adding a listener (IP and port), then giving it the path to the war file |
23:07.43 | kim0 | I just wanna make sure the correct stuff was written afterwards |
23:09.37 | kim0 | karstensrage: could you please help me with that ? |
23:10.50 | smoore_ | this might be a very simple question, pardon me.. not much with tomcat.. aside from deploying the .war file from tomcat manager, is there any way of deploying it? |
23:13.12 | kim0 | wants the low level steps too (copy war into ..., write this in that xml file ... etc) |
23:14.02 | barnum | drop it in webapps and restart? |
23:14.04 | barnum | workss for me |
23:15.29 | kim0 | barnum: where would the listener IP and port be defined should I want to customize them |
23:16.31 | barnum | sec reading up |
23:16.56 | barnum | well listner ip and port are part of the conf/server.xml |
23:17.25 | barnum | application specific stuff can go there but is better placed in the context.xml |
23:17.38 | kim0 | barnum: is there some doc explaining how to edit and deploy that way ? |
23:18.14 | barnum | well its not really a deployment step per se unless your considering the installation of tomcat to be a deployment |
23:18.42 | barnum | we use global variables for our db connectors and stuff |
23:18.51 | barnum | and context specific for things like app path etc.. |
23:19.10 | kim0 | barnum: hmm ... I have my app-war.zip in webapps, restarted ... didn't get anything in logs about it |
23:19.43 | barnum | why a zip? |
23:19.48 | barnum | should be app.war in webapps |
23:20.12 | kim0 | eh .. just coz it's my first minute with tomcat :) |
23:21.42 | barnum | :) |
23:21.52 | barnum | yeah tomcat knows how to extract war files but not zips afaik |
23:22.13 | kim0 | hmm ... well now the logs mention my app |
23:22.18 | kim0 | it seems starting up |
23:22.32 | kim0 | but I am not sure how to contact it in the browser |
23:25.14 | kim0 | barnum: any help please why it's not showing up yet |
23:25.36 | barnum | hostname:port/appname/ |
23:25.48 | barnum | does it have a default index |
23:26.04 | barnum | what port is tomcat running on? |
23:26.05 | kim0 | what would that be |
23:26.07 | kim0 | 8080 |
23:26.14 | barnum | ok so try ip:8080/app/ |
23:26.22 | barnum | or ip:8080/app/url |
23:27.25 | kim0 | barnum: cool stuff ... Yeeeeeeeha |
23:27.39 | kim0 | that's actually pretty simple once you get it going |
23:27.46 | kim0 | barnum: thanks a million man |
23:27.52 | barnum | :) |
23:28.03 | barnum | the tomcat oreilly book that randrew worked on is pretty helpful too |
23:28.53 | kim0 | barnum: assume, I wanna have that app listen to a different port 8090, I would set that in conf/server.xml or context.xml , correct ? |
23:29.43 | smoore_ | hi, not much familiar with tomcat.. i'm handling a server from godaddy which is owned by my friend. the web developer ask me if tomcat is connected to apache through mod_jk, how can i check this? |
23:39.10 | MHSL | kim0, it's server.xml not context.xml |
23:40.02 | MHSL | smoore_, just check whether you have mod_jk on your apache and respective configuration files |
23:40.24 | MHSL | smoore_, or check apache log, it should be specified on the server signature printed on the log (if turned on) |
23:43.06 | smoore_ | alright, thanks MHSL |
23:43.16 | MHSL | np |
23:44.18 | MHSL | kim0, refer to http://tomcat.apache.org/tomcat-6.0-doc/config/http.html |