00:00.21 | *** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com) |
00:05.39 | *** join/#tomcat dvnayande (i=ayande@83.251.71.28) |
00:05.49 | dvnayande | can i run tomcat with apache? |
00:06.00 | dvnayande | http server both on same machine |
00:07.51 | dvnayande | i have apache-tomcat-6.0.16 |
00:08.04 | jasonb | Yes. |
00:08.19 | jasonb | Why do you think you need Apache httpd though? |
00:08.33 | dvnayande | i always had it :) |
00:08.39 | dvnayande | just found tomcat |
00:08.57 | dvnayande | so it works just fine as a http server? |
00:09.04 | dvnayande | i use it instead? |
00:09.35 | jasonb | Tomcat is a faster http server for most uses. |
00:09.42 | dvnayande | ah nice |
00:09.44 | dvnayande | :) |
00:09.48 | jasonb | And, yes, it works great as a web server. |
00:09.48 | dvnayande | thanks |
00:09.53 | jasonb | You're welcome. |
00:09.56 | dvnayande | one thing though |
00:10.03 | dvnayande | after installation it wont start |
00:11.34 | dvnayande | and im using a windows xp |
00:12.49 | dvnayande | any ideas? |
00:12.59 | jasonb | First idea: give us all of your version numbers. |
00:13.18 | dvnayande | apache-tomcat-6.0.16 |
00:13.27 | dvnayande | for windows xp |
00:14.41 | dvnayande | downloaded from Tomcat 6.x |
00:14.50 | dvnayande | im not sure i know more |
00:15.00 | dvnayande | i also installed jre-1_5_0_15-windows-amd64 |
00:19.46 | jasonb | Are you running 64-bit windows XP? |
00:21.40 | dvnayande | yes i am |
00:21.52 | dvnayande | trying reinstall |
00:22.25 | internat85 | this may not be the right place for this but knowledgeable people etc.. is there a jsp equivlent to horde3? |
00:30.41 | jasonb | internat85: What is horde3? |
00:45.40 | internat85 | its a php web application frame work, that has webmail/calander/organiser/phonebook etc |
00:58.58 | *** join/#tomcat Infinito_ (n=yingyang@201-10-138-241.gnace701.dsl.brasiltelecom.net.br) |
01:20.30 | *** join/#tomcat exploid (n=vince@CPE00184d84c287-CM001ac317d78e.cpe.net.cable.rogers.com) |
01:20.36 | *** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com) |
01:20.56 | *** part/#tomcat exploid (n=vince@CPE00184d84c287-CM001ac317d78e.cpe.net.cable.rogers.com) |
01:32.51 | *** join/#tomcat mib_nmwokjya (i=c0926546@gateway/web/ajax/mibbit.com/x-98240904ae7ff7f3) |
01:39.53 | *** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com) |
02:03.16 | *** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com) |
02:10.14 | *** join/#tomcat odin__ (n=dlm@host86-128-203-229.range86-128.btcentralplus.com) [NETSPLIT VICTIM] |
02:10.37 | *** join/#tomcat mitcivs (n=sv@67.15.117.214) [NETSPLIT VICTIM] |
02:11.24 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) [NETSPLIT VICTIM] |
02:11.24 | *** join/#tomcat azka (n=mimpini@62.80.120.214) [NETSPLIT VICTIM] |
02:11.24 | *** join/#tomcat pucko (i=andreas@81-234-246-21-o933.tbon.telia.com) [NETSPLIT VICTIM] |
03:09.18 | *** join/#tomcat Infinito_ (n=yingyang@201-10-138-241.gnace701.dsl.brasiltelecom.net.br) |
03:41.48 | *** join/#tomcat alpha255 (n=Thomas@dsl092-048-188.sfo4.dsl.speakeasy.net) |
03:46.34 | *** join/#tomcat kanai (n=kanai@124.32.114.226) |
03:53.09 | *** join/#tomcat acidjnk (n=have@pD9509613.dip0.t-ipconnect.de) |
04:45.38 | *** join/#tomcat Nicke (n=niclasa@ua-83-227-140-135.cust.bredbandsbolaget.se) |
04:51.49 | *** join/#tomcat victori_ (n=victori@cpe-75-80-141-237.san.res.rr.com) |
05:21.37 | *** join/#tomcat ggns (n=ggns@203.129.255.188) |
05:41.59 | *** join/#tomcat rambo123 (n=viny@59.94.103.108) |
05:45.45 | *** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-125-42.dsl.emhril.ameritech.net) |
05:52.05 | *** join/#tomcat rambo124 (n=viny@59.94.102.195) |
06:09.55 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
06:20.36 | *** join/#tomcat Fischi (i=GroundHa@mue-88-130-47-138.dsl.tropolys.de) |
06:36.49 | joonas_ | internat85: i think you might have success taking a look at different portal services.. not that i know many of those |
06:38.14 | joonas_ | internat85: but as a fellow php dev i don't think that in the java world such horde3 like "all-in-one" packages exists.. at least for free |
06:38.50 | lyken | internat85: is a douche bag |
06:38.55 | lyken | you hear me nat ! |
06:38.57 | lyken | DOUCHE 1 |
06:39.18 | joonas_ | you two know each other? :) |
06:41.20 | lyken | yeah |
06:41.26 | lyken | we went to the same university |
06:41.28 | lyken | i was his tutor |
06:41.40 | joonas_ | oki :) |
06:44.45 | *** join/#tomcat Bollinger (n=peter@88-105-238-209.dynamic.dsl.as9105.com) |
06:45.23 | *** join/#tomcat kjkoster5489 (n=kjkoster@233-250-103-145.cust.glaslokaal.nl) |
07:00.17 | deebo | anyone got the /etc/init.d/tomcat script handy |
07:15.13 | lyken | let me see |
07:15.15 | lyken | i might have one |
07:22.47 | *** join/#tomcat ca (n=ca@5.80-203-236.nextgentel.com) |
07:23.42 | faltrion | anyone here that is awake that might be able to help me with tomcat 6 and webservices (jax-ws) |
07:26.16 | faltrion | _My problem is that I'm getting "javax.xml.ws.soap.SOAPFaultException: Cannot find the dispatch method" when I try to access the webservice from a .net client (I have not tested with anything else) and I know this webservice has worked for other persons using glassfish) |
07:26.17 | kjkoster5489 | faltrion: read the channel topic. |
07:26.22 | kjkoster5489 | ah, sorry. |
07:26.58 | kjkoster5489 | So you have it working in a Glassfich server? |
07:28.14 | faltrion | not I, since I'm using tomcat, but an workmate of mine has it working in glassfish (2ur2) I'm using tomcat 6.0.13 |
07:29.57 | kjkoster5489 | I see. And when you connect you .net client to his server it works? |
07:30.10 | faltrion | I've followed the information in "Arun gupta's Blog" about "JAX-WS 2.0 Samples on Tomcat 5.5.x" and modifiede that for tomcat 6 |
07:30.35 | faltrion | yes, sing the very same client on the same machin and connecting to glassfish, it works.. |
07:32.19 | faltrion | we are both running this on mandriva linux 2008.1 and the same java version (1.6.0_01) |
07:33.28 | kjkoster5489 | Cool. |
07:33.50 | kjkoster5489 | I'm curious if you found any other messages? Maybe something in catalina.out? |
07:34.09 | faltrion | I got a complete stacktrace if you want that |
07:34.25 | kjkoster5489 | You could pastebin that. It might be helpful. |
07:35.04 | faltrion | http://pastebin.com/d838d33 |
07:35.10 | kjkoster5489 | Just as a disclaimer: I have no large experience with jax-ws, but I (unfortunately) have a lot of experience tracking problems in Java. :-) |
07:36.38 | faltrion | well anything/anyone is better then me at the moment since I'm stuck! I've been at this problem since yesterday morning, searching the net for that exception, etc... but found nothing that was helpfull |
07:38.03 | kjkoster5489 | Hmm. |
07:38.14 | kjkoster5489 | It looks like you have the right libraries and everything. |
07:38.44 | kjkoster5489 | How did you tell that servlet what methods to publish? |
07:40.24 | faltrion | it uses annotations to declare the methods (@WebMethod) and then we run wsgen on the class (wsgen from the jax-ws download) |
07:40.52 | kjkoster5489 | Is there a way to get your dispatcher servlet to produce the WSDL of the service? |
07:41.17 | kjkoster5489 | You can do that on the GF and TC servers and see if they are the same. |
07:41.35 | kjkoster5489 | Try appending ?WSDL to the service endpoint url. |
07:41.42 | faltrion | I'm not sure if this is needed on glassfish or if it is done by glassfish, since I'm not using glassfish and the person using glassfish is unavailable at the moment.. |
07:43.02 | faltrion | http://pastebin.com/d30b49a28 |
07:43.14 | *** join/#tomcat Dwayne_Hicks_ (n=elsie@adsl-68-74-74-168.dsl.emhril.ameritech.net) |
07:45.05 | *** part/#tomcat yassine (n=yassine@unaffiliated/yassine) |
07:45.11 | faltrion | and the schema http://pastebin.com/d1659fc58 |
07:45.28 | faltrion | from what I can see ther eis no problem with this one.. |
07:46.06 | *** join/#tomcat vikumar (n=Vimal@nat/redhat-in/x-5b80b2c8dc499c23) |
07:51.25 | kjkoster5489 | These are served up from Tomcat? |
07:52.08 | kjkoster5489 | I mean, did you get these files from the file system, or did you point a browser at tomcat to get them? |
07:53.31 | faltrion | I pointed the browser to the webservice and appending ?wsdl, I did not manually write any of these, they have been generated by the webservice system |
07:53.52 | faltrion | so I think it is this servlet that produces the wsdl and the schema ...com.sun.xml.ws.transport.http.servlet.WSServlet |
07:54.16 | faltrion | since that is the servlet defined in web.xml |
07:55.17 | kjkoster5489 | ok. |
07:56.39 | faltrion | http://pastebin.com/d2ee268a6 the parts in web.xml and the sun-axws.xml file |
07:56.54 | kjkoster5489 | But these are identical for the GF install? |
07:58.17 | kjkoster5489 | Does it matter that you use call it outlookStuff in one file and outlookWebservice in the other? |
07:59.02 | faltrion | the sun-jaxws.xml is identical, but the part in web.xml is "missing" since glassfish reads sun-jaxws.xml by default.. |
08:00.06 | kjkoster5489 | Ok. |
08:00.16 | faltrion | I'm not sure if it matters.. w8 |
08:00.38 | faltrion | no it does not matter, just changed it so it is the same, and i still go the exception.. |
08:00.44 | kjkoster5489 | So the most likely candidate for error is the web.xml file. |
08:01.18 | kjkoster5489 | Are you certain that sun-jaxws.xml is read? |
08:01.31 | kjkoster5489 | No errors or odd messages at Tomcat startup? |
08:02.13 | faltrion | nothing that should not be there .-) |
08:02.52 | faltrion | and it do serve the wsdl and if I remove the servlet/servletmapping part from web.xml i get a 404 |
08:05.14 | kjkoster5489 | Ah, true. |
08:05.18 | kjkoster5489 | Hmm. |
08:05.51 | kjkoster5489 | So we have two app servers, both of which read their configuration and one of which works completely. |
08:05.51 | faltrion | I think I might have to set up glassfish here to get this working .-( |
08:06.09 | kjkoster5489 | Or ask you co-worker to look at his. |
08:06.36 | kjkoster5489 | It might be interesting to request the WSDL from his machine and compare that to your Tomcat-generated one. |
08:07.15 | faltrion | yeah when he gets back late next week (I hate vacations right now)... |
08:07.29 | kjkoster5489 | That is frustrating indeed. |
08:07.41 | kjkoster5489 | Setting up Glassfish is no big deal. |
08:07.51 | faltrion | I'm trying to get someone at his office to start up the system so I can compare it, but most of them don't do linux nor anthing like that |
08:07.57 | kjkoster5489 | I did it once and it took me less than an hour. |
08:08.12 | kjkoster5489 | *tsk* Fire them all. ;-) |
08:08.56 | kjkoster5489 | To start linux, you just have to press the power button on the machine. That can't be too different from how Windows machines do it. |
08:10.16 | faltrion | yeah, but then they have to login, open up a shell, start the server, deploy the application, etc..... |
08:12.29 | kjkoster5489 | Ahh. |
08:17.32 | faltrion | ok, thanks anyway I'll setup glassfish here now.. |
08:17.36 | faltrion | (surrendering9 |
08:17.58 | faltrion | btw, do you know how much of glassfish is "tomcat" ? |
08:24.04 | kjkoster5489 | Not much I think. |
08:24.30 | kjkoster5489 | JBoss uses Tomcat as the web container, but I am not sure if GF does the same. |
08:25.15 | kjkoster5489 | Tomcat was originally written by Sun, like GF is, so it would make sense to use TC. But then, when did large corporations ever make sense? :) |
08:30.54 | faltrion | in gf I've noticed when trying to help debugging that there is a some org.apache.catalina exceptions :-) which is why I wondered.. |
08:35.26 | deebo | why the fuck is my tomcat trying to find a WEB-INF/classes/logging.properties for all my contexts and the crashes when its not found |
08:40.44 | kjkoster5489 | deebo: that's really odd. |
08:41.16 | deebo | found out, it was a policy bug |
08:42.04 | kjkoster5489 | ? |
08:42.15 | kjkoster5489 | Could you explain that, please? |
08:43.33 | deebo | debian package installation is total bullshit regarding java policies |
08:43.39 | deebo | it doesnt allow anything |
08:43.52 | deebo | cant even use System.getEnv |
08:44.53 | CaBa| | is there a way to access an enum item by name... a String to be more precise? something like Class.forName() but for references? :P |
08:44.53 | kjkoster5489 | Hmm. I tend to tell people to not use re-packaged Tomcats. |
08:44.53 | kjkoster5489 | I see that that is sound advice. :) |
08:44.53 | deebo | kjkoster5489: me too, but this time i have to use prepackaged due to some scripts i need to run |
08:45.28 | kjkoster5489 | CaBal: you'll have better luck on #java with that question. |
08:46.54 | kjkoster5489 | Cabal: Check the javadoc of java.lang.Enum. Specifically the valueOf() method. Does that do what you would like to have done? |
08:47.02 | kjkoster5489 | deebo: I see. |
08:50.11 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
08:51.27 | CaBa| | kjkoster5489: looks good! thx... |
08:51.44 | kjkoster5489 | np |
08:52.47 | deebo | anyone got a /etc/init.d/tomcat script for a package installation |
08:52.56 | deebo | the one with debian packaging is too specific to tomcat |
08:53.45 | azka | hi there! |
08:54.18 | azka | has anyone ever had troubles with tomcat not closing properly his File Descriptors? |
08:56.17 | kjkoster5489 | azka: I had trouble with my code not doing so, but not Tomcat. What are you seeing? |
09:11.54 | azka | kjkoster5489: a huge FDs leak |
09:12.15 | kjkoster5489 | No kidding? Duh. I figured that. |
09:12.25 | kjkoster5489 | What OS are you on? |
09:13.02 | azka | I have 2 boxes: same OS, same environment, exactly the same tomcat version and configuration, and on 1 of the 2 boxes, tomcat doesn't close properly his FDs so lsof returns ~ 20000 FDs after tomcat running for 2 hours |
09:13.10 | kjkoster5489 | Try running fdstat (or equivalent) to figure out what FD's are in use by your tomcat.. |
09:13.27 | kjkoster5489 | What type of fd? |
09:13.27 | azka | os is rhel ES release 4 |
09:13.35 | kjkoster5489 | Network/file/other? |
09:13.41 | azka | files on disk |
09:13.55 | *** join/#tomcat hooch (n=hooch@203.98.74.2) |
09:14.26 | kjkoster5489 | What files? |
09:14.48 | kjkoster5489 | Is this an app you wrote? |
09:15.13 | kjkoster5489 | Same app and app version on both machines? |
09:16.02 | azka | files are little executables available to download on a website |
09:16.40 | azka | yes, i've copied the whole tomcat directory to be sure |
09:17.01 | azka | and the network environment (LB, Firewall, etc.) is the same too |
09:17.26 | kjkoster5489 | So you serve up files from Tomcat and the fd's to those files do not get closed? |
09:17.36 | azka | yes |
09:17.58 | kjkoster5489 | Are these files generated? |
09:18.10 | kjkoster5489 | As part of the request, I mean. |
09:18.44 | azka | no, they're just stocked on a local hd and selected by the client |
09:18.59 | azka | (if i understand well your question) |
09:19.40 | kjkoster5489 | Hmm. So you have two identical setups and one misbehaves. |
09:19.48 | kjkoster5489 | That's odd. |
09:20.15 | azka | yes exactly. also, i'm using a perl script to check that every of these files is available to download (i'm not downloading them really, and i suspect this to be the issue) |
09:20.20 | kjkoster5489 | Are you sure these are identical? Same user they run as, same file permission, same permissions on the directoies that the files are in? |
09:20.36 | kjkoster5489 | How so? |
09:20.51 | azka | the script is runned every 2 hours, and i can see the FDs grows very fast when the script is running |
09:21.51 | kjkoster5489 | And when you run the script against the other tomcat it does not grow on that machine? |
09:21.51 | azka | yes, the user is the same (with exactly the same rights on files etc.), and the whole directory has been copied with option to keep files attributes |
09:21.56 | azka | yes |
09:22.19 | kjkoster5489 | There must be a difference between the two systems. |
09:22.23 | azka | well, it grows, but after a few minutes it goes down again |
09:24.02 | kjkoster5489 | Are these both local disk systems, or does one use a network mounted disk? |
09:24.31 | kjkoster5489 | Different versions of Java? |
09:26.13 | azka | they are nfs (not the tomcat dir, but just the dir containing the files) |
09:27.40 | kjkoster5489 | On both machines? |
09:27.45 | azka | yes |
09:27.49 | kjkoster5489 | Hmm. |
09:27.51 | azka | and java version is the same |
09:28.01 | kjkoster5489 | NFS mount options are the same? |
09:28.59 | kjkoster5489 | What you could try is to move the files to a local disk, just to test. |
09:29.17 | azka | yes nfs options are the same (ro,soft) |
09:29.26 | kjkoster5489 | NFS is not free of bugs, in my meagre experience. |
09:29.54 | hooch | what's the best way to set up tomcat5.5 with apache these days? |
09:30.02 | kjkoster5489 | mod_proxy |
09:30.22 | kjkoster5489 | Or just skip Apache entirely if all it does is delegate to Tomcat. |
09:30.36 | kjkoster5489 | mod_proxy_http |
09:30.40 | hooch | so mod_jk and all that is history? |
09:32.36 | hooch | like, ajp, etc |
09:32.57 | hooch | i haven't set up a tomcat app since tomcat 4.0 |
09:34.57 | kjkoster5489 | They are around and will work fine. From the admins I spoke to I heard that they prefer mod_prxy_http because you can leave out the AJP connector on Tomcat. |
09:35.05 | kjkoster5489 | It's just simpler. |
09:35.09 | azka | kjkoster5489: the only difference i see in autofs is the pgrp option. Do you know what it is exactly? |
09:37.04 | kjkoster5489 | No idea. What does the man page say? I have no RH box to read the man page on. |
09:37.08 | hooch | using mod_proxy_http a lot for other contexts, yes as Ruby on Rails |
09:37.21 | kjkoster5489 | Perhaps pastebin the relevant man page section? |
09:37.59 | kjkoster5489 | hooch: so you are already familiar with it? Then it is an even better route to explore. :) |
09:38.29 | hooch | thanks kjkoster5489 |
09:38.32 | kjkoster5489 | Though again: if all Apache does is front for tomcat, better leave it out. |
09:38.34 | kjkoster5489 | np |
09:40.21 | hooch | kjkoster5489: best not to bother tomcat with static content requests though, is it? |
09:41.21 | kjkoster5489 | There is a dude on this channel who wrote a book on Tomcat administration. His tests suggest that Tomcat is actually faster alone, even with static content. |
09:41.42 | kjkoster5489 | I'm not sure if that is still the case when Tomcat and Apache get their own machines or clusters. |
09:42.17 | kjkoster5489 | Personally I would use Tomcat stand-alone until it buckles and then start to find solutions. |
09:42.42 | kjkoster5489 | Tomcat can be clustered too (if your apps are well-written). |
09:43.03 | kjkoster5489 | I'd say it depends more on what your shop is like. |
09:43.56 | kjkoster5489 | If you have Apache all set up and serving up your stuff, delegate to Tomcat using mod_proxy. If you have to install a special machine with Apache for that, leave Apache out and save some time, |
09:44.53 | kjkoster5489 | Tomcat is multithreaded and I'm sure that you won't notice static content requests in the performance, especially on SMP machiens. |
09:47.29 | internat85 | lyken: dont make me slap you stupid :P |
09:48.18 | hooch | kjkoster5489: cheers for that |
09:48.36 | kjkoster5489 | np |
09:49.20 | lyken | internat85: BRING IT ON ! |
09:49.24 | lyken | hey dude btw ;) |
09:56.51 | *** join/#tomcat Vanuatoo (n=Vanuatoo@host-85-114-227-35.adsl.caucasus.net) |
09:56.56 | internat85 | hi hi :) |
09:57.18 | internat85 | any particular reason i was a douche bag before, or just the usual greeting? |
09:57.35 | lyken | just the usual |
09:57.37 | lyken | i was bored at work |
10:45.04 | *** join/#tomcat _milligan (n=Milligan@82.148.189.34) |
10:58.47 | kjkoster5489 | azka: found the issue yet? |
10:59.44 | *** join/#tomcat miligan (n=Milligan@82.148.189.34) |
11:10.44 | *** join/#tomcat Dwayne_Hicks (n=elsie@adsl-68-74-74-168.dsl.emhril.ameritech.net) |
11:13.09 | *** join/#tomcat _ProZaC_ (n=none@201.73.96.194) |
11:24.43 | *** join/#tomcat GroundHack (i=GroundHa@mue-88-130-21-129.dsl.tropolys.de) |
11:35.32 | azka | kjkoster5489: no :( |
11:35.39 | azka | really odd issue |
11:35.51 | azka | same box, same softs, same config |
11:43.20 | *** join/#tomcat _change (n=_change@195.250.132.186) |
12:30.48 | *** part/#tomcat CaBa| (i=caba@unique-inter.net) |
12:35.36 | *** join/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br) |
12:36.20 | clovisw | hi, anyone know how to configure tomcat 6.0.16 to use a JDBC 3.0 driver? |
12:37.33 | pucko | socken23: clovisw http://tomcat.apache.org/tomcat-6.0-doc/jndi-datasource-examples-howto.html |
12:40.14 | clovisw | pucko: with that i only can use the Driver version, i dont find a way to use the class that implements javax.sql.DataSource, i want to configure com.sap.dbtech.jdbcext.DataSourceSapDB but just works with com.sap.dbtech.jdbc.DriverSapDB, using DataSourceSapDB the DBCP says that isnt a suitable driver, appears that DBCP dont check the instace of javax.sql.DataSource. |
12:40.33 | *** join/#tomcat clajo04 (n=clajo04@152.sub-75-193-109.myvzw.com) |
12:40.53 | clovisw | the documentation about the drivers is at http://maxdb.sap.com/doc/7_6/ef/2de883d47a3840ac4ebb0b65a599e5/frameset.htm |
13:25.01 | *** join/#tomcat maier (n=maier@p15-15.med.unc.edu) |
13:27.33 | *** join/#tomcat dmorris__ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:27.41 | *** part/#tomcat dmorris__ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:37.46 | *** join/#tomcat dmorris__ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:42.14 | *** part/#tomcat dmorris___ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:47.34 | *** join/#tomcat marciofrayze (n=user@189.100.109.110) |
13:47.37 | marciofrayze | hi all |
13:48.03 | *** join/#tomcat dmorris (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:51.19 | *** join/#tomcat fjt6q (n=chatzill@forgery.sys.Virginia.EDU) |
13:51.42 | *** join/#tomcat fjt6q (n=chatzill@d-128-6-213.bootp.Virginia.EDU) |
13:51.49 | fjt6q | hello |
13:52.07 | *** join/#tomcat dmorris___ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:53.18 | fjt6q | NickServ |
13:55.36 | dmorris___ | How do I get identified? |
13:56.36 | *** part/#tomcat dmorris___ (n=dmorris@core-edge-dq-src-a.dynamicquest.com) |
13:56.53 | fjt6q | yeah |
14:01.27 | marciofrayze | Tomcat: 5.5.17 Java: 1.6 Netbeans: 5.5.1 OS: Windows XP - SP2. When I try to deploy and/or run the aplication from netbeans I get an error on a class that I already changed. Its using an outdated .class file and I have no idea why.. alredy deleted the .wa |
14:05.25 | *** join/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com) |
14:16.41 | *** join/#tomcat clajo04 (n=clajo04@178.sub-75-221-210.myvzw.com) |
14:27.06 | fjt6q | hello? |
14:31.12 | MHSL | marciofrayze, try to delete your build directory or do a clean and build |
14:34.15 | MHSL | fjt6q, ask your question if you need help |
14:37.55 | clovisw | anyone knows a good connection pool for JDBC for tomcat? |
14:42.29 | fjt6q | hello there |
14:42.36 | fjt6q | i am trying to install Axis 2 |
14:42.47 | fjt6q | my Tomcat works I believe |
14:42.54 | fjt6q | and I can access localhost8080 |
14:43.14 | fjt6q | I downloaded Axis 2 and unzipped in in the webapps folder |
14:43.21 | fjt6q | is this where I should put it? |
14:43.49 | pucko | <Resource name="jdbc/mySapjndi" auth="Container" type="javax.sql.DataSource" username="foo" password="bar" driverClassName="com.sap.dbtech.jdbc.DriverSapDB" url="jdbc:sapdb://localhost/database_name*" /> |
14:44.16 | pucko | fjt6q: you should probably ask Axis-guys about that. |
14:44.40 | fjt6q | who are the axis guys? |
14:44.46 | fjt6q | do they have an IRC |
14:44.47 | MHSL | fjt6q, you mean the war file? yes you can simply extract it to webapps dir under axis2 folder or something |
14:45.15 | fjt6q | i downloaded the binary dist |
14:45.22 | fjt6q | do I only need to downlaod the .war file? |
14:45.29 | MHSL | fjt6q, you need to read axis2 documentation |
14:45.39 | fjt6q | its right here |
14:45.49 | fjt6q | wha tis the difference between the war file and the binary dist? |
14:46.01 | MHSL | fjt6q, then you should know the difference |
14:46.43 | randrewj | clovisw: dbcp, which comes with tomcat, is ok. it's a good idea to test that it's doing what you expect. |
14:46.54 | fjt6q | i says you can drag and drop it |
14:47.12 | fjt6q | but i did so in the webapps |
14:47.19 | MHSL | fjt6q, http://ws.apache.org/axis2/1_4/installationguide.html#servlet_container |
14:47.19 | fjt6q | and it still doesnt allow me to use axis |
14:47.19 | clovisw | randrewj: with that i only can use the Driver version, i dont find a way to use the class that implements javax.sql.DataSource, i want to configure com.sap.dbtech.jdbcext.DataSourceSapDB but just works with com.sap.dbtech.jdbc.DriverSapDB, using DataSourceSapDB the DBCP says that isnt a suitable driver, appears that DBCP dont check the instace of javax.sql.DataSource. |
14:48.07 | clovisw | randrewj: now i think to implement my own pool control |
14:48.08 | MHSL | clovisw, driverClassName means the driver class name not data source |
14:48.40 | clovisw | MHSL: but how to tell DBCP to use the DataSource class ? |
14:48.56 | MHSL | clovisw, you dont need to |
14:49.18 | fjt6q | TTP Status 404 - /axis2 |
14:49.20 | fjt6q | type Status report |
14:49.21 | fjt6q | message /axis2 |
14:49.23 | fjt6q | description The requested resource (/axis2) is not available. |
14:49.24 | fjt6q | Apache Tomcat/6.0.16 |
14:49.28 | MHSL | clovisw, if you want to use the dbcp comes with tomcat, then you don't care about the data source, what you need to configure is the driver not data source |
14:49.41 | MHSL | fjt6q, do you have a directory named axis2 under your webapps folder |
14:49.42 | MHSL | ? |
14:49.44 | *** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net) |
14:49.56 | fjt6q | yes |
14:49.58 | pucko | yo jason |
14:50.35 | clovisw | MSHL: but how do if i need to use the DataSource class, and dont the driver class? |
14:50.59 | clovisw | MSHL: i think that, then i must create my own type of pool, right? |
14:51.01 | MHSL | clovisw, you can't, on driverclassname you specify the driver class name not data source |
14:51.09 | fjt6q | i got to localhost:8080/axis2 to access it right? |
14:51.22 | pucko | the stuff I pasted before shows the configuration |
14:51.31 | MHSL | clovisw, no, that's the whole poing of using jdbc resource with tomcat, it will maintain the connection pool for you |
14:51.39 | MHSL | point* |
14:52.03 | clovisw | MSHL: ok, but if i must use DataSource class and dont the driver, then i must create my own pool control that uses the com.sap.dbtech.jdbcext.DataSourceSapDB |
14:52.07 | MHSL | fjt6q, are the files inside axis2 the contents of war file? |
14:52.29 | fjt6q | yes |
14:52.41 | fjt6q | the axis2.war is that all it is? one file? |
14:52.59 | MHSL | clovisw, you can't do that with the jdbc resource, but if you use the data source directly in your code, then yes you have to either implement your own connection pool or use existing ones (recommended) |
14:53.19 | marciofrayze | <PROTECTED> |
14:53.22 | MHSL | fjt6q, 1) do you know how to deploy webapp on tomcat? 2) do you know what a war file is? |
14:53.42 | clovisw | MSHL: do you know one that deals well with classes that implements javax.sql.ConnectionPoolDataSource ? |
14:54.25 | fjt6q | 1)never done it 2)never seen it |
14:54.26 | fjt6q | ill look into that real quick |
14:55.10 | fjt6q | any info on those things? |
14:55.15 | MHSL | clovisw, no, i don't really need to know that, because i'm using c3p0 for connection pool on java app, and jdbc resource on tomcat |
14:55.22 | MHSL | fjt6q, tomcat.apache.org |
14:56.34 | fjt6q | http://tomcat.apache.org/tomcat-6.0-doc/deployer-howto.html ? |
14:57.26 | jasonb | good morning pucko |
14:57.47 | fjt6q | is downloading the tomcat client deployer absolutely necessary |
14:57.56 | *** join/#tomcat Infinito_ (n=yingyang@201-2-47-90.gnace701.dsl.brasiltelecom.net.br) |
14:58.06 | jasonb | fjt6q: No. |
14:58.38 | fjt6q | which method do you think is best? |
15:00.05 | jasonb | fjt6q: I think you'd benefit from reading about deployment on Tomcat in our book Tomcat: The Definitive Guide, 2nd Edition (O'Reilly). It has all of the detailed explanations you would need on how to choose, and how each option for deployment works. |
15:00.50 | fjt6q | um, i've love to get the book, but I happen to need to do this today. |
15:01.42 | jasonb | fjt6q: Then you can always read it online (right now) on O'Reilly's Safari web site. |
15:03.21 | jasonb | http://safari.oreilly.com |
15:03.50 | fjt6q | found it. |
15:03.58 | fjt6q | chapter? |
15:04.32 | *** part/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br) |
15:05.54 | jasonb | Chapter 3. |
15:06.55 | jasonb | Have a look at the sections on deploying a war file and deploying an unpacked directory. |
15:07.44 | jasonb | I also suggest you have a look at the section on the Manager webapp. |
15:14.34 | fjt6q | Ok I get it |
15:14.43 | fjt6q | Copy the .war file into the webapps folder |
15:14.52 | fjt6q | thats all it says to do |
15:15.12 | fjt6q | am I missing some huge part of this process? |
15:15.42 | jasonb | Well, not huge, really, but you do need to pay attention to your settings on your <Host> element, as our text shows. |
15:16.40 | fjt6q | in the axis2 text? |
15:16.59 | jasonb | The Tomcat: The Definitive Guide text. |
15:18.05 | fjt6q | i dont see that change. |
15:18.23 | fjt6q | it says you can access apps by going to your host/xxx |
15:23.57 | fjt6q | do I need apache Ant |
15:26.43 | jasonb | You probably don't need it. You especially don't need it if you're not rebuilding any of these OSS packages.. you can just use the release binaries. |
15:26.56 | jasonb | I don't know what you're developing, though, if anything. |
15:28.39 | fjt6q | *sigh |
15:28.51 | fjt6q | i dont see what im doing wrong |
15:37.13 | fjt6q | okay im setting up the tomcat manger |
15:53.34 | fjt6q | im stuck creating a manger. |
15:58.38 | *** join/#tomcat Quiddity (n=steve@ng1.cptxoffice.net) |
16:04.36 | fjt6q | can anyone help me |
16:06.58 | *** join/#tomcat tieTYT (n=none@216.174.112.81) |
16:06.59 | tieTYT | hello |
16:07.03 | tieTYT | in the conf folder |
16:07.27 | tieTYT | i've got 3 potential server.xml's. One is called server.xml.bkp, the other is called server-minimal.xml, the other is called server.xml |
16:07.33 | tieTYT | is tomcat using the server.xml? |
16:07.54 | tieTYT | or does it depend on some other config option? I want to make sure i'm changing the one that's in use |
16:08.03 | Quiddity | Yes, it's using server.xml |
16:08.08 | tieTYT | doh |
16:08.15 | tieTYT | i ran into that problem again |
16:08.40 | tieTYT | where it complains that i need to change maxthreads from 200 to something larger. But server.xml doesn't even have the number 200 in it |
16:09.12 | ^Quiddity | well, 200 is the default value, so it's implied if no other value is specified |
16:09.16 | ^Quiddity | for that setting any how |
16:09.46 | fjt6q | im trying to create a manager role, by defining th euser and setting the role, however the specified user and password do not work |
16:10.03 | tieTYT | ^Quiddity: good to know |
16:10.16 | tieTYT | maybe i'll set the other Connectors into this file to 201, 202... so i can tell which one is the problem |
16:10.36 | tieTYT | the one listening to port 8080 is set to 250 so it's apparently not that one |
16:11.48 | fjt6q | should i "restart" tomcat and is that even possible |
16:22.49 | fjt6q | has no one had any experience with tomcat manager? |
16:40.47 | *** join/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br) |
16:41.08 | clovisw | anyone know the svn link to see the sources of tomcat-dbcp.jar ? |
16:52.36 | *** join/#tomcat jasonb (n=jasonb@75.144.23.117) |
16:55.22 | *** join/#tomcat CaBa| (i=caba@unique-inter.net) |
16:55.25 | CaBa| | hi |
16:57.26 | *** join/#tomcat erstazi (n=erstazi@unaffiliated/erstazi) |
17:05.04 | clovisw | anyone know the svn link to see the sources of tomcat-dbcp.jar ? |
17:11.28 | *** join/#tomcat ox1 (i=trallall@zue-tix-bbcs-dynip-168-236.vtx.ch) |
17:17.14 | *** join/#tomcat gregor_k (n=a@stgt-4dbdaf51.pool.einsundeins.de) |
17:22.56 | *** join/#tomcat maier_ (n=maier@p15-15.med.unc.edu) |
17:27.02 | *** join/#tomcat maier (n=maier@p114-152.med.unc.edu) |
17:36.52 | *** join/#tomcat andyt (n=andyt@THOMPSON-LAPTOP.ADMIN.SCPS.NYU.EDU) |
17:50.16 | *** join/#tomcat blistov (n=blistov@static-66-38-159-228.gtcust.grouptelecom.net) |
17:50.50 | blistov | i'm having problems convincing mod_jk.so to mount anything. |
17:51.01 | blistov | http://pastebin.ca/1039670 |
17:51.57 | blistov | idea's? |
17:59.06 | randrewj | blistov: is tomcat running and listening for ajp at 127.0.0.1:8009? |
18:00.24 | *** join/#tomcat maier_ (n=maier@p15-15.med.unc.edu) |
18:08.13 | blistov | Yes, I figured it out though. |
18:08.18 | blistov | :) took 2 days though. |
18:08.33 | blistov | alias cannot be the same name as your webapp. |
18:10.14 | *** join/#tomcat odin_ (n=dlm@host86-128-203-229.range86-128.btcentralplus.com) |
18:11.04 | *** part/#tomcat odin_ (n=dlm@host86-128-203-229.range86-128.btcentralplus.com) |
18:11.48 | *** join/#tomcat odin_ (n=dlm@host86-128-203-229.range86-128.btcentralplus.com) |
18:31.12 | *** join/#tomcat rambo123 (n=viny@59.94.102.146) |
18:40.42 | *** part/#tomcat yassine (n=yassine@unaffiliated/yassine) |
18:51.12 | *** join/#tomcat clajo04 (n=clajo04@cpe-72-229-214-63.nyc.res.rr.com) |
19:01.48 | *** join/#tomcat SiftLinux (n=Siftzill@bas6-montrealak-1167862415.dsl.bell.ca) |
19:05.17 | clovisw | about things on JDBC Data Sources causing many threads to be BLOCKED and freeze the tomcat for some time, is better to discuss here, or with DBCP folks? |
19:18.55 | *** part/#tomcat blistov (n=blistov@static-66-38-159-228.gtcust.grouptelecom.net) |
19:34.34 | *** join/#tomcat a4akba (n=a4akb@62.215.156.215) |
19:44.23 | *** join/#tomcat victori_ (n=victori@cpe-75-80-141-237.san.res.rr.com) |
19:46.46 | randrewj | clovisw: it's non-trivial to get that stuff right. there is not likely to be much interest in discussing re-implementation of dbcp here. |
19:48.51 | clovisw | randrewj: isnt a reimplementation, but maybe a problem that causes system Freeze, i opened a BUG report on tomcat since i dont know if its a problem on DBCP or in the tomcat-dbcp.jar |
19:49.12 | clovisw | randrewj: if you like to see about its is https://issues.apache.org/bugzilla/show_bug.cgi?id=45144 |
19:52.05 | *** join/#tomcat JZA (n=jza@189.132.183.80) |
19:52.19 | JZA | hi I want to know how can I verify that a tomcat app is actually running |
19:52.30 | JZA | the server.xml says that it will run on 8080 |
19:52.43 | JZA | the /etc/init.d/ service is running |
19:53.00 | JZA | however I lynx to localhost:8080 and I get that the site is unreachable |
19:57.45 | JZA | anyone? |
20:01.35 | fjt6q | hello |
20:01.40 | fjt6q | does anyone have experience with |
20:01.42 | fjt6q | http://wso2.org/library/1719 |
20:07.57 | randrewj | clovisw: interesting. dbcp svn is http://svn.apache.org/viewvc/commons/proper/dbcp/trunk/, but not sure what version is in the tc you're using. |
20:08.55 | randrewj | JZA: is a java process running? |
20:10.07 | randrewj | clovisw: for that bug it might be useful to know the dbcp params you're setting |
20:10.23 | JZA | randrewj: how can I check that, it should be running |
20:10.30 | *** join/#tomcat dfas (n=none@10.201.216.81.static.s-o.siw.siwnet.net) |
20:10.55 | clovisw | randrewwj: ok i will update with how Resource is configured |
20:11.06 | *** part/#tomcat dfas (n=none@10.201.216.81.static.s-o.siw.siwnet.net) |
20:11.12 | JZA | randrewj: I did a top -b |grep java and there are pid of java running |
20:15.48 | JZA | randrewj: is that what you meant? |
20:18.29 | *** join/#tomcat blistov (n=blistov@static-66-38-159-228.gtcust.grouptelecom.net) |
20:18.32 | blistov | http://pastebin.com/m554f74b2 |
20:18.40 | blistov | Having problems still with mod_jk.so |
20:18.46 | blistov | As referenced above. |
20:18.50 | blistov | Any ideas? |
20:20.10 | *** join/#tomcat yassine (n=yassine@unaffiliated/yassine) |
20:21.12 | clovisw | randrewj: i updated the BUG with how Resource is configured |
20:22.02 | randrewj | JZA: yeah, how about something like: /usr/sbin/lsof -i TCP:8080 |
20:24.34 | *** part/#tomcat erstazi (n=erstazi@unaffiliated/erstazi) |
20:28.42 | randrewj | clovisw: when the problem occurs, how many connections are there to the db? |
20:29.46 | clovisw | randrewj: about 73 |
20:30.52 | clovisw | randrewj: but really need to connect is 32 |
20:31.08 | clovisw | 73 is at database monitor of sessions opened |
20:31.25 | clovisw | i think that 73 is the max opened and the 32 is the currently active |
20:31.31 | clovisw | or running |
20:34.17 | clovisw | if you see the full stack, you can see all 32 connection BLOCKED waiting to lock PoolableConnectionFactory |
20:40.11 | JZA | randrewj: nothing |
20:41.25 | JZA | althought I could see a couple of tomcats running |
20:43.13 | randrewj | clovisw: dunno, maybe some clues here: http://www.mail-archive.com/user@commons.apache.org/msg00640.html |
20:45.21 | randrewj | JZA: you need to clarify whether the tomcat you are intending to run is running |
20:46.25 | JZA | yes how do I do that, or rather I think it might colliding with other tomcats so the question will be how can I configure tomcat listening on another port |
20:47.38 | JZA | can I know from lsof the path of the tomcat process? |
20:48.17 | JZA | this is my pastebin |
20:48.40 | JZA | this is the server.xml on the conf folder from the tomcat i want to run |
20:48.42 | JZA | http://pastebin.mozilla.org/452505 |
20:48.47 | JZA | at least a snippet |
20:49.26 | JZA | I am a bit confused between the Connector port and the server port |
21:05.30 | randrewj | JZA: ps -e -o "%p %a"|grep java |
21:05.33 | JZA | nope |
21:05.34 | JZA | I get a whole buch of things as output but nothing that tells me that is coming from my path |
21:05.34 | JZA | most of them come with the system tomcat at /usr/share/tomcat5.5/ |
21:05.34 | JZA | so my next question is how to run the tomcat on /opt/ |
21:05.34 | JZA | and what could make this tomcat not run |
21:05.35 | randrewj | JZA: it will not run if some other tomcat is already using the ports and it will not run if your config is broken |
21:05.35 | JZA | well bad news is that I just broke the config :p |
21:05.35 | JZA | now when I try to restart I get that the deamon is not running |
21:05.35 | JZA | but PID file exists |
21:05.36 | randrewj | JZA: learning a little more unix would probably be handy at this point |
21:05.36 | JZA | randrewj: lol, I do know unix, just not tomcat |
21:05.36 | *** join/#tomcat pfn (n=pfnguyen@hanhuy.com) |
21:06.08 | randrewj | JZA: hehe. |
21:08.32 | randrewj | JZA: when you see those tomcat processes, look at the catalina.home and catalina.base params. the real config file is $catalina.base/conf/server.xml |
21:09.21 | blistov | anyone have any idea's on why i get this?/ Error connecting to tomcat. Tomcat is probably not started or is listening on the wrong port. worker=ajp13 failed errno = 111 |
21:09.33 | blistov | says its trying for 127.0.0.1:8009, which is listening. |
21:09.45 | blistov | when i curl http://127.0.0.1:8009, i get no response. |
21:10.25 | *** join/#tomcat ruxpin (n=pkunk@195.148.225.17) |
21:14.14 | randrewj | JZA: you should be certain that whatever mechanism you are using to start tomcat is using the config file you intend, and if it doesn't start you should look for a message logs/ |
21:14.42 | blistov | this is the only error message being written to any log. |
21:15.02 | blistov | http://pastebin.com/m2fbf4696 |
21:15.14 | blistov | catalina.out says everything is well. |
21:15.31 | blistov | part of the jakarta script that starts, initiates a telnet session to a database, which also works fine. |
21:15.40 | JZA | randrewj: yes thats what I thought initially but the log folder is empty, it might be because the debug parameter is set to 0 |
21:15.52 | blistov | debug for everything is set to 9 |
21:16.02 | JZA | randrewj: is my first experience with tomcat so please forgive my discovery process :) |
21:24.47 | randrewj | blistov: you need to verify that tomcat is configured with an ajp connector at 127.0.0.1:8009, and is running. curl is good for testing http but not ajp. |
21:26.57 | randrewj | JZA: how are you attempting to start tomcat? |
21:27.43 | *** part/#tomcat clovisw (n=clovis@201-40-80-179.cscgo300.ipd.brasiltelecom.net.br) |
21:31.04 | *** part/#tomcat randrewj (n=raj-user@user-160u629.cable.mindspring.com) |
21:32.14 | ox1 | hi |
21:33.00 | ox1 | does anyone know if it's possible to override a web.xml file? |
21:34.00 | ox1 | I deployed a web application to /sharedwebapp and I'm consuming it in /instance1 and instance2 |
21:35.33 | ox1 | the webapps /instance1 and /instance2 which have their docbase set to the dir of /sharedwebapp both have a META-INF dir with a context.xml which overrides the context.xml from /sharedwebapp |
21:42.01 | JZA | I actually uninstall the program and gonna start over |
21:42.12 | JZA | the problem is that I have system tomcat and an application tomcat |
21:42.17 | JZA | as stand-alone |
21:43.43 | ox1 | I assume overriding is somehow possible, because I believe the web.xml from a webapp usually overrides the web.xml in tomcat conf dir |
21:46.21 | *** part/#tomcat JZA (n=jza@189.132.183.80) |
21:53.44 | *** join/#tomcat spundun (n=spundun@playa.isi.edu) |
21:54.34 | spundun | hi all... I have started the tomcat using startup.sh, but the localhost:8080 page is empty... is that right? or should I see some apache tomcat welcome page? |
22:04.56 | *** join/#tomcat balla (n=balla@adsl-ull-103-28.51-151.net24.it) |
22:09.03 | spundun | I did tail on catalina.out and catalina-2008-6-5.log and then tried tomcat startup again... here is what I got. http://pastebin.com/m399d5a7d |
22:10.10 | spundun | the log has no errors, and a bunch of info, including "XML validation disabled" and... |
22:10.21 | spundun | "The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path:...<paths>" |
22:10.56 | spundun | then I goto http://localhost:8080/ and the page I get is blank (not any 404 errors or anything like that). |
22:18.49 | ox1 | spundun: how did you install tomcat? |
22:20.26 | ox1 | the localhost:8080 should show a tomcat info page by default |
22:20.56 | ox1 | spundun: what's in your webapps/ROOT dir? |
22:30.29 | *** part/#tomcat blistov (n=blistov@static-66-38-159-228.gtcust.grouptelecom.net) |
22:32.21 | ox1 | does anyone know if it's possible to override WEB-INF/web.xml settings from a docBase? |
22:35.09 | spundun | oxl: I installed tomcat through fink on my mac osx macbookpro, 10.4 Tiger |
22:36.57 | spundun | oxl: ok.... my prefix is /sw |
22:37.10 | spundun | tomcat is installed in var/tomcat5 |
22:37.18 | spundun | so that's the catalina home I think. |
22:37.24 | ox1 | spundun: well, I'm not sure if you really need to use fink |
22:37.33 | spundun | in there there is a webapps... and there is a server/webapps |
22:37.40 | ox1 | maybe you could just run tomcat local, as it's java |
22:37.42 | spundun | which one should I use... |
22:37.47 | spundun | oxl: hmmm |
22:38.07 | spundun | I am running tomcat local only... |
22:38.20 | spundun | but using fink as my package management system |
22:38.21 | ox1 | I ran the same version on windows and on debian |
22:38.30 | ox1 | I assume it runs fine on osx too |
22:38.38 | spundun | do you know which webapps directory I should look into? |
22:38.51 | ox1 | well, there should be only on webapps dir |
22:38.59 | spundun | there are two... oneis tomcat5/webapps and the other is tomcat5/server/webapps |
22:39.17 | ox1 | that's unusual |
22:39.40 | ox1 | but I'n not familiar how fink dudes thought about configuring tomcat for osx |
22:39.56 | ox1 | but I don't believe only one of those is used |
22:40.04 | ox1 | have a look at your server.xml |
22:40.07 | spundun | tomcat5/webapps is a broken link to ../../shar/webapps |
22:40.15 | spundun | lemme check |
22:40.26 | ox1 | there you should be able to see what it's using |
22:41.03 | spundun | <Host name="localhost" appBase="webapps" |
22:41.14 | spundun | that means it's using tomcat5/webapps rightr? |
22:41.23 | ox1 | yep |
22:41.32 | spundun | thats unfortunately a broken softlink over here... |
22:41.52 | ox1 | well, then delete it and create a working softlink |
22:41.55 | spundun | I'm going to move the server/webapps to ../../share/webapps and see what happens |
22:42.02 | spundun | yeah :_ |
22:42.04 | spundun | :) |
22:42.21 | ox1 | I forgot the synta x to create a softlink in osx |
22:42.27 | ox1 | something like ln -s |
22:42.30 | ox1 | not sure |
22:43.20 | ox1 | in the end, ls in tomcat5/webapps should show you some dirs |
22:45.24 | ox1 | spundun: any news? |
22:48.30 | spundun | ox1: now the webapps is there... and I think I'm getting one extra message... - Unable to find config file. Creating new servlet engine config file: /WEB-INF/server-config.wsdd |
22:48.30 | spundun | - Unable to find required classes (javax.activation.DataHandler and javax.mail.internet.MimeMultipart). Attachment support is disabled. |
22:48.45 | spundun | and the front page is still blank |
22:49.10 | spundun | webapps folder has the following directories admin axis host-manager manager |
22:49.32 | ox1 | great |
22:49.40 | ox1 | no ROOT dir? |
22:49.55 | spundun | nope... |
22:50.10 | ox1 | what do you see in http://localhost/manager/html ? |
22:50.22 | ox1 | I mean http://localhost:8080/manager/html |
22:50.41 | spundun | checks |
22:50.54 | spundun | username and password |
22:51.01 | ox1 | good |
22:51.06 | spundun | I have no idea how to authenticate though |
22:51.31 | spundun | I'm glad *something* is working... |
22:51.39 | ox1 | tomcat-users.xml |
22:51.50 | ox1 | it might contain user and password |
22:52.06 | ox1 | seems like fink dudes have preconfigures some stuff in your tomcat dist |
22:52.23 | spundun | ok logged in. |
22:52.29 | ox1 | I recommend to google for some osx tutorials to find out how they configured it |
22:53.10 | ox1 | well, the manager app for now is probably not that important for you if you're just getting started |
22:53.11 | spundun | I doubt there is any... I mean I am slightly (only) better at looking at fink source code than I am at looking at tomcat installations :) |
22:53.20 | spundun | ok... |
22:53.23 | ox1 | alright |
22:53.32 | spundun | gotcha... it just shows that tomcat is at least working |
22:53.36 | spundun | thanks ... |
22:53.43 | ox1 | ok, you could try this: |
22:53.44 | spundun | now I have to see if axis is happy or not |
22:53.49 | spundun | yeah? |
22:53.53 | ox1 | create a folder named ROOT in webapps |
22:53.59 | ox1 | uppercase is important |
22:54.23 | ox1 | then create a file index.html in webapp/ROOT |
22:54.34 | ox1 | and fill index.html with some random |
22:54.57 | ox1 | then open http://localhost:8080/index.html |
22:54.58 | spundun | you know what ... I'll go with your directions, although I see the axis path is responding with an html page.. thats where I want to go |
22:55.50 | spundun | yeah that ROOT/index.html file... I can see through the browser |
22:55.59 | ox1 | you probably won't need axis if you're getting started |
22:56.07 | spundun | ummm... :) |
22:56.07 | ox1 | great |
22:56.16 | spundun | I'm getting started.. yes... but my boss is not |
22:56.24 | ox1 | :-) |
22:56.33 | spundun | I need to get this soap based client/server java app running |
22:56.36 | spundun | :) |
22:56.41 | ox1 | aha, ok |
22:56.57 | ox1 | your webapp is a .war file? |
22:57.09 | spundun | clicks on the axis validation link... |
22:57.14 | spundun | umm not really |
22:57.20 | spundun | it's an eclipse project |
22:57.28 | ox1 | hmm, then you're on your own |
22:57.36 | spundun | I'm not there yet... testing the server wise |
22:57.44 | spundun | taking it one step at a time.. |
22:58.00 | ox1 | but I'd just check some things: that your required resources are set up |
22:58.17 | spundun | Error: could not find class javax.activation.DataHandler from file activation.jar |
22:58.17 | spundun | Axis will not work. |
22:58.28 | ox1 | that you don't miss any jars in the tomcat lib or in your webapp WEB-INF/lib dir |
22:58.39 | spundun | sure! |
22:58.42 | spundun | listening |
22:58.56 | ox1 | first find the class javax.activation.DataHandler |
22:59.21 | ox1 | open your jars with a zipp program and search for that class to make sure you find where it is |
22:59.55 | ox1 | if you find it in some jar, then copy that jar to your WEB-INF/lib dir and to the tomcat5/lib dir just to really make sure it's there |
23:00.07 | spundun | ok... |
23:00.07 | ox1 | even though you only need it at one of those dirs |
23:01.47 | ox1 | further set your webapp privileged for now |
23:02.22 | spundun | hehe... again... there are three lib directories... tomcat5/common/lib tomcat5/server/lib and tomcat5/shared/lib |
23:02.24 | ox1 | you may do that in META-INF/context.xml in your webapp or in tomcat5/conf/server.xml |
23:02.44 | ox1 | hmm |
23:03.08 | ox1 | i'd just put your jar containing the missing classes in all of those lib dirs |
23:03.13 | *** part/#tomcat ^Quiddity (n=steve@ng1.cptxoffice.net) |
23:03.22 | spundun | no META-INF directory here... :( |
23:03.25 | spundun | :) ok |
23:03.34 | ox1 | and when it works start reading the tomcat5 manual and delete one after one and check |
23:03.57 | spundun | ok |
23:04.02 | ox1 | well, you might copy the META-INF dir from manager to your webapp |
23:04.14 | spundun | hmmm |
23:04.37 | spundun | heh... there isn't one |
23:04.58 | ox1 | well, then just create a META-INF dir in your webapp |
23:05.03 | spundun | ok |
23:05.18 | ox1 | and create a file META-INF/context.xml and fill it with: <Context privileged="true" /> |
23:05.38 | ox1 | that gives your webapp access to tomcat's lib folders |
23:05.40 | spundun | looks like these guys stripped down a lot of tomcat stuff ? |
23:05.56 | spundun | oh ok |
23:06.02 | ox1 | well I'm not so sure about that |
23:06.11 | ox1 | I'm working with tomcat6 here |
23:06.29 | ox1 | but I'm pretty sure that works for tomcat5 too |
23:06.51 | ox1 | and I also believe they fiddled around with your install |
23:07.11 | spundun | ok |
23:07.16 | ox1 | that's why I'd recommend to just download the latest tomcat6 tar and use that one |
23:07.52 | ox1 | anyway, copying the jars to your lib dirs and setting that context.xml that I told you aren't that bad ideas |
23:08.09 | ox1 | that ensures you don't run into classpath issues |
23:09.41 | ox1 | and restart tomcat twice each time you try some stuff |
23:10.09 | spundun | oxl: I just figured out one thing... they split the webapps into a separate package tomcat5-webapps... now I have a proper ROOT and everything... |
23:10.15 | spundun | ugh... |
23:10.23 | ox1 | and delete the conf/Catalina folder when you change things in your context.xml |
23:10.41 | ox1 | hmm, weird |
23:11.07 | ox1 | they probably split it up in management webapps and in example webapps |
23:12.24 | ox1 | I recommend you to test your webapp on tomcat6 on windows or linux first and then move it |
23:13.02 | ox1 | just get it to run on linux and then move the whole tomcat folder to osx and try to get it running again |
23:13.39 | spundun | <PROTECTED> |
23:13.52 | ox1 | I don't think so |
23:14.06 | ox1 | I'd do: <!-- foo bar --> |
23:14.10 | spundun | oh yeah |
23:14.12 | spundun | right |
23:14.21 | spundun | ok |
23:16.49 | spundun | hmm, ok, I might try that once I get comfy with tomcat... |
23:17.00 | spundun | axis seems happy now.. time to try the real server... |
23:17.27 | spundun | thanks oxl... if you ever wander by Marin Del Rey, CA.. I owe you a beer... |
23:18.37 | ox1 | hehe, lol |
23:18.40 | ox1 | alright |
23:34.03 | *** part/#tomcat yassine (n=yassine@unaffiliated/yassine) |
23:42.24 | SiftLinux | I have installed tomcat 5 on a centos server using their repo. How do I start it? |