irclog2html for #tomcat on 20061108

00:50.19*** part/#tomcat mreynolds (n=mreynold@208.252.86.154)
00:54.53*** join/#tomcat Hugh__ (n=Hugh@puma.mxtelecom.com)
01:36.14*** join/#tomcat halicem (n=m@ip70-190-189-136.ph.ph.cox.net)
02:10.39halicemhi!
02:10.39halicemi cant get tomcat to run at all.
02:10.39halicemif i run it with tomcat5w.exe it'll throw this error:
02:10.39halicemAccess is denied.
02:10.39halicemUnable to open the service registry key
02:10.51*** join/#tomcat halicem (n=m@ip70-190-189-136.ph.ph.cox.net)
02:11.13halicemhi!
02:11.19halicemi cant get tomcat to run at all.
02:11.29halicemif i run it with tomcat5w.exe it'll throw this error:
02:11.29halicemAccess is denied.
02:11.29halicemUnable to open the service registry key
02:11.39halicemif i run it with tomcat5.exe using the command prompt:
02:11.56halicem[402 prunsrv.c] [error]
02:11.56halicemThe system cannot find the file specified.
02:12.05halicem[1246 prunsrv.c] [error]
02:12.05halicemLoad configuration failed
02:12.15halicemif i start it using windows service:
02:12.23lykenare you admin?
02:12.25halicemCould not start the Apache Tomcat service on Local Computer.
02:12.34lykenand you cant just run.. tomcat5.exe
02:12.37halicemError 1053: The service did not respond to the start or control request in a timely fashion. (though i threw up the message immediately after starting)
02:12.37halicemthere is a hotfix for error 1053(which supposedly deals with .net framework 1.1) from microsoft but even after patching, its still the same.
02:12.37halicemmy log file just contains:
02:13.27halicemyes i am, sorry, i got kicked for excess flood last time so im posting it again, not sure up to which part got through.
02:13.40halicem[info] Service Tomcat5 name Apache Tomcat
02:13.40halicem[info] Procrun finished.
02:13.41lykenyou should use the start/shutdown batch files in windows
02:13.48lykenis this windows 2k3?
02:14.01halicemits windows xp
02:14.15halicemi'm using jre9. i also tried jre8, no luck there.
02:14.15haliceminstalled using the msi and reinstalled it over and over, even tried tomcat6, still nothing. i tried tomcat 4.1 and it worked. but tomcat 5 still won't work.
02:14.15halicemjava_home and catalina_home are properly set.
02:14.31halicemi'm running windows xp sp2, and tomcat 5.5.20.
02:14.39lykenif JAVA_HOME is set
02:14.55lykenthen the installer and gui start tools should work
02:15.12halicemive tried using the batch files but nothing as well
02:15.54halicemthe start and gui tools throw up the same error as tomcat5w.exe
02:16.43lykenive never seen that before
02:16.48lykenthe process should be
02:16.51lykeninstall java
02:16.52lykeninstall tomcat
02:16.54lykenstart.
02:17.43halicemyeah, i had tomcat running before, but ireformatted a couple of months back and now i cant get it to run
02:20.21lykeni dont use windows so i cant help sorry
02:20.45halicemok, thanks anyway
02:36.17*** join/#tomcat wsmoak (i=wsmoak@VDSL-130-13-157-245.PHNX.QWEST.NET)
03:06.03*** join/#tomcat jasonb (n=jbrittai@70.89.156.205)
03:27.00wsmoakwhat's for dinner? :)
03:36.02jasonbHmm, cobb salad, corn bread, hot tea.
03:43.20puckobedtime. *off*
03:44.58jasonbg'night pucko.
04:10.06*** join/#tomcat krunk- (n=krunk-@unaffiliated/krunk-)
04:10.09krunk-Howdy
04:33.31*** join/#tomcat cobaltsixty (n=cobaltsi@201009159106.user.veloxzone.com.br)
04:54.27*** join/#tomcat valmont (n=chrishol@dsl092-043-004.lax1.dsl.speakeasy.net)
05:29.46*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-33-159.w83-114.abo.wanadoo.fr)
05:30.50*** join/#tomcat LongBeach (n=mike@AFontenayssB-152-1-33-159.w83-114.abo.wanadoo.fr)
05:43.50dburgerhow to put comment in jspx page?
05:43.53dburgercan't use:
05:44.03dburger<%-- comment --%>
05:53.06*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
07:13.36*** join/#tomcat Sergey_zsg (n=ZSG@195.64.216.43)
07:19.44*** join/#tomcat prgrmr (n=prgrmr@bzq-88-155-13-76.red.bezeqint.net)
07:35.06*** join/#tomcat PennFan (n=PennFan@141.52.7.111)
07:35.18PennFanhello everybody
07:52.00*** join/#tomcat prgrmr_ (n=prgrmr@bzq-88-152-172-249.red.bezeqint.net)
08:27.54*** join/#tomcat prgrmr_ (n=prgrmr@bzq-82-81-183-168.red.bezeqint.net)
08:37.16*** part/#tomcat tommyd (n=chatzill@85.232.10.17)
08:38.19*** join/#tomcat flexable (n=flexable@host244-109-dynamic.18-87-r.retail.telecomitalia.it)
09:09.00*** join/#tomcat Vittorio (n=chatzill@host10-255-static.47-85-b.business.telecomitalia.it)
09:14.25*** join/#tomcat kasbah (n=kasbah@62.206.116.171)
09:15.47*** join/#tomcat twilight\ (n=ask@38.80-202-90.nextgentel.com)
09:44.29*** join/#tomcat raj (n=sneharaj@203.129.239.221)
09:44.40rajhi all how to install apache ant on suse
09:45.29*** join/#tomcat yango (n=yan@unaffiliated/yango)
09:51.40*** join/#tomcat yassine (i=yassine@chello084113228143.18.14.vie.surfer.at)
10:11.23harpoonraj: find the rpm and install :-)
10:11.29harpoonyast is your friend
10:12.10harpoonif you want it "by hand", read the installation description of apache-ant
10:13.38PennFangood morning yassine :-)
10:26.03yassineheya PennFan
10:26.31yassinepennsylvenia belong now to the democrates :)
10:59.45*** join/#tomcat kousuke (n=kikuchi@221x251x19x21.ap221.ftth.ucom.ne.jp)
11:06.57lykenheh
11:24.09PennFanyassine thats great, makes me even more a PennFan ;)
11:54.04*** join/#tomcat joered (n=chatter@81-208-83-246.fastres.net)
11:54.09PowerheadHow can i recive current session id?
12:11.23*** join/#tomcat kousuke (n=kikuchi@221x251x19x21.ap221.ftth.ucom.ne.jp)
12:11.36*** join/#tomcat gregor_k (n=Miranda@p54A1C2C7.dip0.t-ipconnect.de)
12:28.47yassinePowerhead, request.getSession().getSessionID()
12:30.01*** part/#tomcat raj (n=sneharaj@203.129.239.221)
12:45.34*** join/#tomcat teite (i=shu@sun-shu.ision.net)
12:55.16*** join/#tomcat Hugh_ (n=Hugh@puma.mxtelecom.com)
13:22.37*** join/#tomcat wsmoak_ (i=wsmoak@VDSL-130-13-157-245.PHNX.QWEST.NET)
13:42.50Powerheadyassine -> thanks
13:42.50yassinePowerhead, yw :)
13:45.51harpooni see an -> operator
13:46.09harpoonwrong language :-)
13:49.37yassineheya harpoon what's up :)
13:49.54harpoonmmh
13:49.58harpoonit works
13:50.31harpooni have just ported sqlite on an embedded device with Windows CE 3.0
13:50.43harpooni hate C++
13:52.11yassinehihi
13:53.35harpoonbut it is a nice database...
13:53.59harpoonno datatypes... everything is a char*
13:54.04*** join/#tomcat ishmal (n=ishmal@rrcs-71-40-249-71.sw.biz.rr.com)
13:54.34ishmalhey, can someone here help with Ant?
13:54.52ishmalim writing a simple build tool similar to ant, and i am wondering about the syntax
13:55.06harpoonishmal: /join #ant
13:55.07harpoon:-)
13:55.14ishmalthere is one?
13:55.37harpoon<PROTECTED>
13:55.53harpoonwhat's the problem with the syntax?
13:56.05harpoonthe syntax is wellformed xml :-)
13:56.27ishmalwell, just the syntax..  i know that substitutions must be supported in attributes,   what about the text values of elements?
13:57.00harpoontext-values of elements?
13:57.03ishmallike   a="${b}"      ..   would i need to support  <xxx>${b}</xxx>  also  ?  cont find it in the manual
13:57.52harpooni can't remember any text-nodes in ant
13:58.36ishmalok cool   ..  was wondering..  im doing an ant-like tool for c++, since i like Ant so much.  i hate autoconf so much  :)
13:59.41ishmaland for long lists of libs and include dirs    -Ixxx and -lxxx     lost of elements with an attribute for each gets bulky
13:59.50ishmals/lost/lots
14:00.47ishmalalready wrote the java-like dependency handling according to the #includes
14:01.30ishmalok,  well, anyway..... thanks.  sorry to bother
14:01.51ishmalo, btw,  im normally a java guy
14:07.56*** join/#tomcat krunk- (n=krunk-@unaffiliated/krunk-)
14:17.42harpoonishmal: no problem
14:18.06harpooni work on an embedded device just in this moment
14:18.14harpoonembedded c++
14:18.19harpoonhorrible
14:18.33*** join/#tomcat Hugh (n=Hugh@puma.mxtelecom.com)
14:44.59*** join/#tomcat filter_ua (n=vasya@encode.ciklum.net)
14:46.01filter_uahi
14:47.02filter_uahave a problem with Tomcat 5.5.20
14:47.02filter_uagot this error during tomcat startup
14:47.02filter_uaError configuring application listener of class
14:47.02filter_uajava.lang.NoClassDefFoundError: javax/servlet/ServletContextListener
14:48.08filter_uajust switched from 5.0.28 where it works fine
14:56.59yassineharpoon, how far are you ?
15:06.53harpoonyassine: i'm to stupid to use an iterator i guess.
15:20.12*** join/#tomcat f0rget_ (n=f0rget@12.104.6.129)
15:20.25*** part/#tomcat f0rget_ (n=f0rget@12.104.6.129)
15:21.11*** join/#tomcat Hugh_ (n=Hugh@puma-aaisp.mxtelecom.com)
16:47.27*** join/#tomcat pompboy (n=saswel@sas13090.nat.sas.com)
17:14.16*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
17:36.03bugfixeranyone know of a proxy servlet for tomcat that would allow me to proxy requests to say /foo to another web server?
17:37.21bugfixerbugfixer: something similar to mod_proxy in apache
18:31.11*** part/#tomcat filter_ua (n=vasya@encode.ciklum.net)
18:31.20*** join/#tomcat valmont (n=chrishol@pdpc/supporter/silver/valmont)
18:32.58*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
18:33.55*** join/#tomcat vinse (n=vinse@208.253.223.146)
20:01.12*** join/#tomcat l0ngbeach (i=pap@AFontenayssB-152-1-12-5.w82-121.abo.wanadoo.fr)
20:03.40*** join/#tomcat Borges|ntg (n=admin@gentoo/developer/anpereir)
20:10.14Borges|ntghi, perhaps one of you know sth about this issue: i'm trying to upload 'big' files (say, 5-10 MB) but i get 'read timeout' errors. I tried to fix it by setting disableUploadTimeout to 'true' in server.xml but it doesn't help...any hints? (tomcat 5.5.20 - rhel 4)
20:13.22Borges|ntg'Processing of multipart/form-data request failed. Read timed out' (that's what i see in my logs)
20:34.09pompboymaybe maxpostsize as documented here: http://tomcat.apache.org/tomcat-5.5-doc/config/http.html
20:36.51*** join/#tomcat Thorn (n=thorn@X1.D-IP06.lipetsk.ru)
20:36.53Thornhello
20:38.21Thornin JSP EL, I'm trying to compare a field 'subject.role' (data type is char) to a char literal: <c:if test="${subject.role == 'S'}">, but I get: An exception occured trying to convert String "S" to type "java.lang.Long"
20:39.00ThornI made a simple test case JSP which demonstrates it: http://papernapkin.org/pastebin/view/2927
20:39.31Thorntomcat version is 5.5.20
20:40.24Thornam I missing something?
20:42.48*** join/#tomcat kasbah (n=kasbah@port-212-202-42-65.dynamic.qsc.de)
20:44.04*** join/#tomcat leonel (n=leonel@189.155.94.161)
20:54.08pompboyThorn: isn't a char a Long? Shouldn't you being using a String in the CharBean?
20:58.26Thornso I need to have a 1-character String in the bean? in Java I do e.g. if(subject.getRole() == 'S') ... without problems anyway
21:00.32*** join/#tomcat MidNight (n=midnight@173-134.static.alkar.net)
21:01.49pompboyjstl doesn't have a concept of a String and a char...it only has String data type.
21:02.16pompboy'S' is equivalent to "S"
21:03.22MidNighthi!i`m start tomcat(1st) and apache(2nd) but i have a problem: my apache server(http://localhost) is ranning good but my tomcat server(http://localhost:8080) dosn`t opened(Enabled to connect to the server!).Help me
21:03.30pompboyliterals I mean...not data types.
21:04.04pompboyMidNight: what does the log say?
21:04.06Thornpompboy: I thought it would cast a char to String if needed...
21:04.51pompboyFor Character yes, but, not char.
21:05.29pompboyI wonder if you added a toString method for your bean...if that would do the trick.
21:12.52pompboyThorn: adding a toString() will not get the job done
21:13.17MidNightSorry i/m from Ukraine and i.m at 1st at Ubuntu and Tomcat(pleace explane: what does it meen "log"?)
21:13.56Thornpompboy: I tried returning Character and String from getRole(), but I get errors from elsewhere (Spring web mvc controllers)
21:14.53Thornso looks like I'll have to drop chars for Strings altogether
21:15.29pompboyThorn: bummer...I took your example and made the data type String instead of char and all worked as you would expect...not sure what might be going wrong elsewhere. ...sorry.
21:16.38pompboyMidNight: log...where Tomcat writes information about why it can not see port 8080. It might be as simple as you have a firewall configured and it is preventing access to port 8080.
21:17.03pompboyMidNight: in the logs directory of where you installed Tomcat.
21:17.15Thornpompboy: thanks for your help
21:18.21pompboyMidNight: file is called catalina.log
21:18.47Borges|ntgpompboy: well, that doesn't seem to work, thanks anyway :)
21:19.46pompboyBorges|ntg: I would suggesting posting to the tomcat-users email list then. Somebody there should know the answer.
21:20.03MidNightit say : (in firefox)Firefox can't establish a connection to the server at localhost:8080.
21:20.30Borges|ntgpompboy: yes, thx
21:27.25*** part/#tomcat MidNight (n=midnight@173-134.static.alkar.net)
21:27.46*** join/#tomcat MidNight (n=midnight@173-134.static.alkar.net)
21:31.34jasonbBorges|ntg: What upload library are you using in your webapp?
21:32.02jasonbBorges|ntg: Also, which HTTP client are you uploading it with?  And, have you tried more than one?
21:33.24pompboyyeah the expert has arrived!
21:35.05pfnhmm, can I specify a jarfile URL to javax.net.ssl.trustStore
21:35.15*** part/#tomcat MidNight (n=midnight@173-134.static.alkar.net)
21:35.24jasonbpfn: What are you trying to do?
21:35.36pfndistribute my trust store in my ria jar file
21:35.53pfnand reference it from there
21:35.59jasonbpfn: I doubt you could do that.
21:36.07jasonbpfn: I think the path is a file system path, not a URL.
21:36.20pfnsuckass... I wonder if I can point the SSLSocketFactory there
21:36.24pfnprogrammatically
21:37.57jasonbpfn: The Connector attribute for it is even named "truststoreFile"..
21:38.13jasonbpfn: Yes, there is a way to do that.
21:38.27pfnjasonb without having to implement my own TrustManager
21:38.36jasonbpfn: The Java Security API offers a way of programmatically loading your cert, key, etc.
21:38.53pfnright, that's the pain in the ass I'd like to avoid
21:39.15jasonbNope.. you either write it yourself or you don't do it in this case.  Tomcat does not support reading them from a jar.
21:39.57jasonbAre you writing your ria to do client cert auth?
21:40.44pfnno, the ria connects to https
21:40.51pfnwhich uses my own ca cert
21:41.03pfncurrently, I just have the trustmanager overriden to accept any server cert
21:41.14jasonbThen it's not the truststoreFile you'd set, it's the keystoreFile.
21:41.21pfnit's the trust store
21:41.26pfnsince I want to trust the server cert
21:41.31pfnnot authenticate with a client cert
21:41.35jasonbok.
21:42.50pfnauthentication is handled through user/password (common)
21:43.00jasonbI guess most people don't bother making sure their HTTP clients have a copy of the server cert in the truststore..  since the HTTPS connection would function without it.
21:44.04pfnhttps connection doesn't function without it
21:44.13pfnyou get an exception in attempting to connect
21:44.48jasonbI guess it depends on which HTTPS client code you use for that.  :)
21:45.03jasonbIt doesn't have to throw an exception.
21:45.25Borges|ntgjasonb: org.apache.commons.fileupload.* ; i've tried iexplorer 6 , firefox 1.5
21:46.42jasonbBorges|ntg: I've seen that problem before.  It always stumped me.  I spent days debugging it only to give up on trying to find the fix.  I assumed it was a bug in commons-fileupload.  Do you know which exact version of commons-fileupload you're using?
21:48.21jasonbpfn: Which https client implementation are you using?
21:50.20Borges|ntgjasonb: hmm..FileUpload 1.1.1 - 08 June 2006 (latest one)
21:51.10jasonbBorges|ntg: Wow.  That seems new enough.  I would guess there's a bug that is still in there that has been there through many versions.
21:51.28*** part/#tomcat pompboy (n=saswel@sas13090.nat.sas.com)
21:51.35jasonbBorges|ntg: The worst part is, I've heard other file upload libraries are worse.. but I admit I haven't tried others.
21:51.59Borges|ntgjasonb: this issue is really annoying heh
21:52.17jasonbBorges|ntg: It sure is!  
21:53.10jasonbBorges|ntg: Another way might be: make the client do an HTTP PUT instead, and use Tomcat's PUT method to write the data into a file on disk, then have a servlet read the file.
21:53.29Borges|ntgjasonb: i was searching in google and lots of ppl seem to have it but i can't find an exact solution
21:53.57jasonbBorges|ntg: I can confirm it's a common problem, and not one easily fixed.
21:54.30jasonbBorges|ntg: Also, which HTTP server/connector are you running?
21:54.45Borges|ntgBorges|ntg: Coyote
21:54.58Borges|ntger...
21:55.00Borges|ntgjasonb: ^
21:55.34jasonbBorges|ntg: heh  :)  One thing you might try (which would be easy to try): switch to a different HTTP connector temporarily.
21:56.45Borges|ntgjasonb: i might try JK
21:57.10jasonbBorges|ntg: Try that.  If you have Apache httpd 2.2.x you can easily set that up with mod_proxy.
21:57.16jasonb(no compilation of anything required)
21:58.17jasonbProxyPass        /your-webapp ajp://localhost:8009/your-webapp
21:58.17jasonbProxyPassReverse /your-webapp ajp://localhost:8009/your-webapp
21:58.23pfnjasonb I use both URLConnection and commons-httpclient
21:58.25jasonb^^ just add that to your httpd.conf.
21:58.39Borges|ntgwell, i'd have to use apache 2.0 since it's the one provided by red hat, damn it, i wanna go home :P
21:58.59pfnjasonb URLConnection ends up making the JWS client prompt to accept the certificate
21:59.09pfnwhile commons-httpclient just throws an exception
21:59.13Borges|ntgjasonb: yeah, it's pretty straightforward, i'm just a lazy sysdmin ;)
21:59.26pfnactually, I don't use URLConnection on https, just commons-httpclient
21:59.26jasonbBorges|ntg: In that case, it may even be easier to download an apache httpd 2.2 source tar, configure it, build it, install it into, say, /opt/httpd, and run it from in there.
21:59.54jasonbpfn: Yeah.  I think commons-httpclient is slightly slower, but it's certainly nicer to work with.
22:00.04pfnjasonb if I had a "trusted" root cert signing my cert, it wouldn't be needed
22:00.09pfncommons-httpclient is nicer for many reasons
22:00.18pfn1, I can do form-auth
22:00.31pfn2, it doesn't read the entire document into memory prior to sending or receiving
22:00.40pfn3, fileupload
22:01.03pfnI use commons-fileupload, works fine with commons-httpclient
22:01.06pfnI haven't tried with a browser
22:01.21jasonbpfn: Just make a self-signed cert.
22:01.51pfnjasonb the default impl supports self-signed certs by default?
22:01.54pfnI know commons-httpclient doesn't
22:02.05jasonbbuh?
22:02.13jasonbI think it does..  hmm.
22:02.15pfnsupports = accepts
22:02.16pfnit doesn't
22:02.31pfncommons-httpclient recommends a hack if you want to accept self-signed certs
22:02.35pfnwhich I'm using a variant of
22:02.39jasonboh.
22:02.41pfn(to support my unknown ca)
22:02.49pfnalthough "recommend" is too strong
22:02.52pfnsince it's "unsafe"
22:03.03jasonbThinking back, I guess I didn't use commons-httpclient with Tomcat configured with a self-signed cert.. just web browsers.
22:03.29jasonbI tihnk commons-httpclient should be hacked to support self-signed certs.
22:03.40pfnit is hackable to support self-signed certs
22:05.15jasonbWhether it is "safe" (secure) or not depends on what you need to be safe from.  If you just need an encrypted tunnel, then a self-signed cert works fine if you know you're connecting to the right entity initially.
22:05.52jasonb(especially if you subsequently do BASIC auth, or some other additional auth)
22:15.25yassinere
22:16.24pfnthat isn't very secure at all
22:16.42pfnbecause if you connect to the "wrong" party, you've just given away your access credentials (mitm attack)
22:18.08pfnand that's the problem, with a self-signed certificate, you *don't* know that you're connect to the correct initial entity
22:18.20pfnconnecting
22:18.39jasonbIt's easy to move a commercial cert to another machine though.
22:19.17jasonbAnd, I did say ".. if you know you're connecting to the right entity initially."
22:20.05jasonbI honestly think that people give commerical certs more credit than they deserve for being secure.
22:20.31pfnjasonb it isn't "easy" to move a commercial cert to another machine... say someone manages to compromise X's network and insert a transparent proxy in front of X's server
22:20.45pfnthere's no way for that someone to inspect the SSL traffic with a valid certificate
22:20.54jasonbThat's true.  That's not what I said though.
22:21.22jasonbMove, as in scp it off to another machine and start a server there, and route the requests to it.
22:21.26pfnanyway, and like I said, I don't pay for commercial certs
22:21.41pfnI have my own CA root that I use to sign my various services
22:21.51pfn(ldap, imap, http, etc.)
22:22.15pfnoh, and my ria code as well
22:22.35jasonbThe down side to doing that is that all clients must import your ca cert..  But I can see why you might want it that way.
22:22.53pfnright, and in a non-commercial environment, I think that's acceptable
22:23.15jasonbMost people don't really know how to do that though.  :)
22:23.18*** join/#tomcat map7 (n=map7@teksup41.lnk.telstra.net)
22:23.23pfnit goes back to the original ring of trust
22:23.29jasonbIt may not be an issue with a custom client like you're writing.
22:23.32pfnit's easy, just open up my certificate url
22:23.40pfnif you're talking a browser
22:23.49pfnsimply loading up www.hanhuy...../certificate/hanhuy.crt
22:23.51pfnwill ask you to import it
22:25.34pfnbut in my case, I'm not asking anyone to import it, so I avoid the complications  :)
22:25.57jasonbI suppose, as long as the web server serves it with the proper mime type.  They make so much of this stuff easy for the web browser user now.
22:26.14pfnapache does by default
22:26.15jasonbJust click Accept or Ok all over the place, and you're good.  :)
22:26.20pfnso does tomcat (serve with correct mimetype)
22:26.29jasonbJust accept everything.  :)  Totally secure!
22:26.54pfnindeed
22:27.06jasonb# grep crt /opt/tomcat/conf/web.xml
22:27.10jasonb(no output)
22:27.27pfnjasonb DefaultServlet does the mime type mapping
22:27.30jasonb# grep cer /opt/tomcat/conf/web.xml
22:27.30jasonb<PROTECTED>
22:27.30jasonb<PROTECTED>
22:28.10jasonb# grep key /opt/tomcat/conf/web.xml
22:28.14jasonb(no output)
22:28.30jasonb# grep pub /opt/tomcat/conf/web.xml
22:28.32jasonb(no output)
22:28.37pfn[pfnguyen@ares lang]$ GET -e http://www.hanhuy.com/certificate/hanhuy.crt | grep Content-Type
22:28.40pfnContent-Type: application/x-x509-ca-cert
22:28.44pfnthat's served through tomcat
22:28.51jasonbneat.
22:29.21jasonbSo DefaultServlet has that hard coded?
22:30.16jasonb# grep x509 container/catalina/src/share/org/apache/catalina/servlets/DefaultServlet.java
22:30.16jasonb(no output)
22:30.17pfnI wonder if it comes from java activation
22:30.17pfnI know the servlet spec defines some mime mappings
22:30.17jasonbWell, but those go in conf/web.xml.
22:30.34*** join/#tomcat stoni (n=rap@cm126006.red.mundo-r.com)
22:31.00pfnthey shouldn't only be defined there
22:31.04pfnthere should be a default mechanism as well
22:31.40pfnhmm, I know I used it somewhere
22:33.53pfnhmm, old version of code, too lazy to search
22:34.29stonianyone could tell me what is failing here? http://213.60.126.6:8180/contineo/
22:35.33pfnyou're using a security manager and don't define your policy
22:35.58pfnhttp://java.sun.com/j2ee/1.4/docs/api/javax/servlet/ServletContext.html#getMimeType(java.lang.String)
22:36.09pfnjasonb I'm sure it doesn't only rely upon what's defined in web.xml
22:37.22stonihow should I define my security policity?
22:37.52pfnusing policytool
22:37.52stoniI think there must be a wrong password in the code
22:38.03jasonbpfn: Well, it doesn't have to, but it mainly does, in the case of Tomcat.
22:38.04stonibecause of i had to create an user in tomcat
22:38.17stonibut dont know how to setup it in the code
22:38.29pfnjasonb an easy way to test this would be to simply do getServletContext().getMimeType("file.crt")
22:38.41jasonbYup.
22:40.07jasonbpfn: Cert mime type: null
22:40.28jasonbThat's the output from a JSP that contains:
22:40.29jasonbCert mime type:
22:40.30jasonb<% out.print(getServletContext().getMimeType("file.crt")); %>
22:40.39jasonbSo there!  :)
22:40.40pfnI wonder if apache is doing it then
22:40.59jasonbWell, Apache httpd has a different list of mime types.
22:41.06jasonbTheirs probably does have a mapping for it.
22:41.12pfnpossibly
22:41.14jasonbYou can always add a mime type in your webapp's web.xml for it.
22:41.20pfnbut this .crt is served through tomcat via ajp
22:41.39pfnI figured tomcat would give the mime type, not apache
22:42.08pfnbecause I don't have the .crt file in apache-land, only tomcat webapp
22:42.27jasonbWelp, Tomcat does not know a mime type for it.
22:42.50jasonbTry adding a *different* mime type name for it in your web.xml.  :)
22:43.24pfnI'll just let it work  :p
22:49.40*** join/#tomcat juju_ (n=juju@LAubervilliers-151-11-60-55.w193-251.abo.wanadoo.fr)
22:57.07*** join/#tomcat deeeed (n=dee@jau72-1-88-161-53-206.fbx.proxad.net)
22:57.09deeeedhi
22:57.38pfnmeh, it'd be nice if SSLProtocolSocketFactory in commons-httpclient allowed one to configure the SSLContext
22:58.14pfnI wonder if it can just be subclassed
22:58.47deeeedDo you how how can i use a bean into another bean ? ( for example when i want to use a bean from a jsp i use: <jsp:useBean.../> but i can't do that from a bean)
22:59.45pfnhmm, guess not
22:59.56pfndeeed huh?
23:00.19deeeederf from a servlet
23:00.32deeeedi would like to use a bean from a servlet
23:00.54pfnthen you use it in a servlet
23:00.57*** join/#tomcat danl_ (n=danl@152.30.175.26)
23:01.52deeeedyes but i don't know what is similar to <jsp:useBean../> for a servlet
23:01.54deeeed??
23:02.26pfnnew Bean()
23:02.27pfnwhat else
23:02.34pfnI suspect you don't know java
23:02.41pfnyou should learn java before you try to tackle servlets
23:03.43*** part/#tomcat danl_ (n=danl@152.30.175.26)
23:03.50deeeedhmm http://forum.java.sun.com/thread.jspa?threadID=464252&messageID=2131847
23:04.09deeeedthat should work ;)
23:08.27pfnhuh?
23:08.37pfnyour design is completely messed up if that's what you want to do
23:08.41pfnwhy should a JSP forward to a servlet
23:10.21deeeedit's just for a test.
23:13.54deeeedi try to access the bean named DatabaseBean from my servlet named Servlet1 but it can't resolve the bean name http://rafb.net/paste/results/iQFbLu91.html
23:14.05deeeedthe 2 files are in the same mod1 directory
23:18.56pfnpeople shouldn't use jsp as more than just a view
23:18.59pfnthat's mistake #1
23:20.59deeeedhmm yes i guess i'll change my design
23:21.57yassinegn8 everyone
23:24.35*** join/#tomcat lintlock (i=lintlock@152.12.31.78)
23:33.41lintlockgood ness oracle take forever to install
23:33.54lintlockused the bathroom came back and its still going
23:57.50*** join/#tomcat Nolp (i=SyllabiK@ALille-257-1-88-212.w83-204.abo.wanadoo.fr)

Generated by irclog2html.pl by Jeff Waugh - find it at freshmeat.net! Modified by Tim Riker to work with blootbot logs, split per channel, etc.