irclog2html for #tomcat on 20060720

00:03.29yassinejasonb,  yes debian
00:05.11jbalintDoesn't seem to print the exception message there.
00:06.49yassineits strange i dont get this one wind0...
00:07.04yassineits strange i dont get this on wind0...
00:15.06jbalintwind0?
00:16.01yassinewindow$
00:21.10*** join/#tomcat Fix- (n=bmonnens@83-217-93-254.adsl.realdsl.be)
00:30.18*** part/#tomcat spaescowboy (n=user@67-133-33-108.emerytech.net)
00:34.14*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
00:41.21*** join/#tomcat azzz (n=noemail@203.19.141.34)
01:07.46*** join/#tomcat BJ_name (n=BJ_name@000d88ec9831.click-network.com)
01:08.25azzzhey all, Im trying to get authentication in my servlet. I want so use username:password from an xml post. So I can't use forms auth, and I can't use the http headers. But I would like the container to do as much for me as possible. any ideas?
01:10.15yassineazzz, im afraid i did not understand what you exactly need
01:11.26azzzInside the xml that is posted to my webservice... contains the username and password. I want to use these values to authenticate against the tomcat-users.xml realm
01:12.09jasonbazzz: You either have to write your own custom authentication that you call from your servlet, or you have to tinker with Tomcat internals from within your servlet (potentially done via JMX).
01:12.42BJ_namehello-new to chat.  I am using the HttpServletRequest if i do response.setHeader("status","500 Internal Server Error"); the send site get this. However the access log shows 200.
01:13.23BJ_namewhere do I look to see how I can change this
01:14.18azzzjasonb, I eventraully wont use tomcat-users.xml.... I will use ldap... I have code to talk to ldap directly already... so I would assume JMX / Tomcat communication would be a more complex exercise with the same outcome
01:15.25jasonbazzz: Depends on how you mean that.. but maybe.
01:15.37BJ_nameoops HttpServletResponse
01:15.43azzzres.setStatus(this.httpStatusCode);
01:15.54jasonbazzz: Something wrong with JAASRealm for ldap use?
01:15.59BJ_namethanks
01:16.51azzzjasonb, nope. I avoided it else where because I was modifying ldap values... but I could use it here
01:18.22*** part/#tomcat BJ_name (n=BJ_name@000d88ec9831.click-network.com)
01:22.56*** join/#tomcat Fix- (n=bmonnens@83-217-93-254.adsl.realdsl.be)
01:27.40azzzjasonb, what's the advantage of a JAASRealm vs JNDIRealm ? If you dont mind me asking
01:28.31jasonbazzz: You're asking that because they could both be used for ldap auth?
01:28.43azzzyes
01:29.59jasonbazzz: It's probably true that either of them could be used for LDAP auth.  I actually get them confused a bit, maybe for that reason.  :)  I probably should have just mentioned JNDIRealm to you earlier.  I think JNDIRealm is more tailored for LDAP.  And, JAASRealm is more complex and has had a bad service record.
01:30.17jasonbazzz: I'm not a fan of JAASRealm really, but I'm also not a fan of LDAP.
01:30.39azzzsounds like there is no perfect solution :)
01:30.57jasonbWell, there is: don't use ldap.  :)
01:31.39azzzcontainer management is a bit nasty for me... because the xml I use for submission is very complex and I would prefer deploying as little as possible to the common/lib directory
01:32.10azzzI need ldap, this has lots of accounts
01:32.30azzzthanks heaps for your help!
01:33.24jasonbazzz: You're quite welcome.  I guess if I were you and I had to use ldap, I'd probably find a way of instantiating my own JNDIRealm and calling it from the servlet.
01:34.29azzzthat's what I've decided to do... plus I have already written such code :)
01:35.30jasonbOh, wonderful.
01:36.18jasonbHow did you handle loading the JNDIRealm classes?  
01:39.47azzzenv.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory");
01:39.52azzzyou mean that?
01:40.41lykenhack the planet !
01:41.51jasonboh.. you didn't use LDAPRealm, you went straight for the JDK's ldap code..  which probably is better.
01:42.49azzzwell, I was modifying ldap. found that easier that way
02:56.31*** join/#tomcat golqm-noob (i=poisoner@11383.unitednetworx.com)
04:03.17*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
05:52.34*** join/#tomcat ibot (i=ibot@pdpc/supporter/active/TimRiker/bot/apt)
05:52.34*** topic/#tomcat is http://tomcat.apache.org Latest stable versions of Tomcat are 5.5.17 and 4.1.31. If you are a newbie, use the official distribution on Jakarta's site, or use an RPM package from http://www.webdroid.org:8080/archives/tomcat-package. Be sure to check your log files before you attempt to search for a solution. SLOW MOTION CHANNEL (we all have jobs): Ask your question, then wait; check back often to see if anybody answered.
06:31.04*** join/#tomcat fix- (n=Bjorn@83-217-93-254.adsl.realdsl.be)
06:32.06*** join/#tomcat csp (n=csp@211.152.35.130)
06:35.37*** part/#tomcat csp (n=csp@211.152.35.130)
07:52.07*** join/#tomcat jsisso1 (n=sissonj@ppp228-19.lns3.syd7.internode.on.net)
07:53.39*** join/#tomcat kousuke (n=kikuchi@221x251x19x21.ap221.ftth.ucom.ne.jp)
07:55.32*** join/#tomcat yango (n=yango@unaffiliated/yango)
10:23.52Ensiferumbwyaaah
10:24.01Ensiferumi've just had abough
10:24.08Ensiferumbeen configuring apache and tomcat for the past 3 weeks
10:24.11Ensiferumargh
10:35.21jrutherford:/
10:57.15*** join/#tomcat deluxe (n=deluxe@p213.54.80.187.tisdip.tiscali.de)
10:57.17deluxesers
11:03.42Ensiferumsweet jesus
11:03.47Ensiferumi found a solution to my problem!
11:08.26*** join/#tomcat eric_ (n=eric@46.58.103-84.rev.gaoland.net)
11:11.46lykenlol
11:11.55lykenEnsiferum: what problem was that ?
11:13.41Ensiferumthe custom authorization/radius problem
11:21.57Ensiferumthe whole solution involves writing a custom Realm implementation with custom authorization code, configuring tomcat to use that, configuration webdavs security constraints (no login-config) and then configuring apache to use radius with http-digest authentication and then passing certain request via tomcat-apache connector to tomcat
11:22.02Ensiferumsweet fuck
11:22.29Ensiferumand now this whole fucking shit
11:22.41Ensiferumgiven all the pain i have suffered while sorting this all out
11:22.47Ensiferumim not going to document anything
11:22.48Ensiferumbwahaha
11:23.03Ensiferumif it was painful to me it shall be painful to anyone touching it later
11:25.59lykenlol
11:26.06lykenor offer it as a service on your website
11:26.11lykenand they pay you to set it up :)
11:44.52deluxeI'm trying to get into java web development. A professionel developer sent me a project directory with this layout: exploded, META-INF, resources, SiloAffiliates.iml, src, WEB-INF - Is this the common format? With which editor should I import it(if possible)?
11:45.37*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
11:50.55*** join/#tomcat yassinework (n=yel@h-213.61.164.152.host.de.colt.net)
11:52.26jrutherforddeluxe: check the docs at tomcat.apache.org
11:52.40yassineworkhi *
12:01.07Ensiferumhmrhm, anyone know off hand what user permissions tomcat has on linux?
12:01.45Ensiferumits run as the user who started it right, cause its ghay java app and dont know shit about uids
12:01.50Ensiferum?
12:03.05deluxeEnsiferum, you can specify the user id it should run as
12:03.23deluxeOn my debian system there's a tomcat5 user
12:05.53Ensiferumhow do i do that?
12:08.15deluxeI think there's an option in the config file
12:08.17deluxejust google a bit..
12:09.12Ensiferumok
12:24.21yassineworkhi again
12:27.07deluxeCannot create JDBC driver of class '' for connect URL 'null'  - That's what he says
12:27.22deluxeI specified in my web.xml the following informations:
12:29.37yassineworkdeluxe,  pastebin.ca your web.xml please
12:29.45deluxeyes
12:30.32deluxeyassinework, http://rafb.net/paste/results/Rh0APy62.html
12:30.36deluxeand the server.xml:
12:31.29*** join/#tomcat jbalint (n=jbalint@unaffiliated/jbalint)
12:31.44deluxehttp://rafb.net/paste/results/S2R6PV99.html
12:31.59deluxeand my Catalina/localhost/affiliates.xml
12:32.44deluxehttp://rafb.net/paste/results/wSADuP30.html
12:32.44deluxeif it's needed
12:35.35yassineworkdeluxe, which tc version are you using ?
12:35.55deluxeii  tomcat5                       5.0.30-10                  Java Servlet 2.4 engine with JSP 2.0 support
12:36.56yassineworkok one sec let me have a look on your files
12:37.22deluxeok, thanks .)
12:37.23deluxe:)
12:48.59yassineworkdeluxe,
12:48.59*** join/#tomcat Mortuis (n=jmort@bi-02pt1.bluebird.ibm.com)
12:49.08deluxeyassinework, yes?
12:49.23yassineworkremove the datasource from the server.xml
12:49.40yassineworkand set the affiliates.xml with this : http://rafb.net/paste/results/S1QUyW83.html
12:51.08yassineworkdeluxe,  got it ?
12:51.16deluxeone moment..
12:52.41deluxeyassinework, same error
12:52.55yassineworkmhh where is your jdbc driver stored at ?
12:53.59deluxeSome hours ago it was already working - the error was that the Resource parameters like url="" user="" etc. were in one tag - I put them into the ResourceParams <parameter> tags and it worked
12:53.59*** join/#tomcat goo (i=oo@ormset.no)
12:54.25deluxeyassinework, in comm/lib/ is the mysql-connectorj
12:54.35yassineworkthats fine
12:55.00deluxeI think the error is not related to the driver - it's relating to the configuration giving the application the url
12:55.01yassineworkcan you see a file called DBSiloSystem_DataSource.log in your log dir ?
12:55.02gooHello there, I am a n00b, and just wanted to know how I can see what exposed methods my tomcat has.. as in "how can I tell if it worked"? :)
12:55.26deluxeyassinework, no, I can't
12:55.46yassineworkdeluxe,  set the debug to 99
12:55.57deluxewhere?
12:56.00yassineworkdebug="0"
12:56.06yassineworkin affiliates.xml
12:56.14yassineworkcontext tag
12:56.41deluxe20.07.2006 14:53:40 org.apache.catalina.core.StandardHostDeployer install
12:56.41deluxeINFO: Installing web application at context path /affiliates from URL file:/home/dwo/JAVA_PROJECTS/SiloAffiliates/build/web
12:56.41deluxe20.07.2006 14:53:40 org.apache.catalina.core.StandardContext start
12:56.41deluxeWARNUNG: Error storing config file
12:56.41deluxejava.io.FileNotFoundException: /var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml (Permission denied)
12:56.46deluxeThat's the log
12:56.47yassineworkgoo, im afraid i did not understand what you exactly want to know can you explain?
12:56.50deluxecatalina log
12:57.08yassineworkso the file is not been processed
12:57.18yassineworkdeluxe,  fix the permissions first and retry
12:57.20deluxeI give him tomcat perms..one moment
13:00.07deluxeyassinework, INFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml
13:00.07deluxelog4j:ERROR Error occured while sending e-mail notification.
13:00.07deluxejava.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
13:00.48deluxeI will give him permissions..one moment
13:00.51yassineworkdeluxe,  your tomcat user's permissions seems to be messed up
13:02.08gooyassinework: I have just apt-get installed tomcat5 and copied over an application to the correct place ( the webapps dir, as stated in that apps manual). Then I restarted tomcat, and now I am wondering how I can see if that application has registered with tomcat at all. When I try to point my web browser at localhost:8005 there is no actual response readable by the browser, but telnet localhost 8005 reveals that there is something there.
13:02.53yassineworkgoo,  did you set the server to listen to port 8005 ?
13:04.15yassineworkgoo just tell me if you modified somthing in server.xml otherwise try to access it like this : http://localhost:8080
13:05.10gooyassinework: the file conf/server.xml says <Server port="8005" shutdown="SHUTDOWN" debug="0"> (remember, I am a total, non-RTFM n00b on this :)
13:05.31yassineworkgolqm-noob,  that port is for shutting down the server
13:05.42yassineworkand its not listening on http connection
13:05.51yassineworkits only accesspting one command
13:06.34gooyassinework: when I try to telnet to port 8080 there is no response
13:06.43*** join/#tomcat Fracture (n=Fracture@dsl-202-173-191-84.qld.westnet.com.au)
13:06.54yassineworkthe one stated there in the default case SHUTDOWN   shutdown="SHUTDOWN" but you can set it to samething else which is a good idea in productions env  shutdown="somthingsecure"
13:07.13yassineworkgoo,  dont telnet use your web browser
13:08.05deluxeyassinework,
13:08.06deluxeINFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml
13:08.06deluxelog4j:ERROR Error occured while sending e-mail notification.
13:08.06deluxejava.security.AccessControlException: access denied (java.util.PropertyPermission * read,write)
13:08.13deluxedon't know what to do there..
13:08.36gooyassinework: no answer on port 8080.
13:08.49yassineworkdeluxe,  pastbin your log4j config somewhere please
13:09.02yassineworkgoo,  telnet to 8005 and type : SHUTDOWN
13:09.12deluxeyassinework, where is the log4j config?
13:09.13yassineworkand see if the server eacts and shuts down
13:09.39yassineworkin your application /WEB-INF/classes/
13:09.44yassineworki dunno where you did it
13:09.56deluxeyassinework, I'm just seing
13:10.03deluxehe overwrote my affiliates.xml
13:10.14yassinework?
13:10.35deluxeIn Catalina/localhost/affiliate.xml: is now: <?xml version='1.0' encoding='utf-8'?>
13:10.36deluxe<Context docBase="/home/dwo/JAVA_PROJECTS/SiloAffiliates/build/web" path="/affiliates">
13:10.36deluxe</Context>
13:10.50deluxehe overwrote it
13:11.10yassineworkmhh so you still have that context in your server.xml ?
13:11.24deluxeno - now there is no data source set
13:11.34yassineworkand no context too ?
13:11.48deluxeThe context some lines ago is it now..
13:12.06yassineworkshowme your actuall server.xml
13:12.18yassineworkgoo,  does it shut down ?
13:12.52deluxehttp://rafb.net/paste/results/orWkTH83.html
13:13.49deluxeNow, there's no datasource with url defined - The error is "Cannot create JDBC driver of class '' for connect URL 'null' " now understandable - but not before - hm
13:14.01deluxeshould I write the data source into the META-INF/context.xml file?
13:14.14yassineworkserver.xml looks fine
13:14.27yassineworkshutdown the server
13:15.01gooyassinework: I did. It went away from ps at least.
13:15.09yassineworkuse the affiliates.xml i gave you again copy it to catalin/localhost/.. and make sure it have appropriate permissions
13:15.35gooyassinework: I checked the logs. Looks like apache axis has some issues. I will have to investigate further some other time..
13:15.35yassineworkgoo,  restart it again and try to connect to 8080 again
13:15.51yassineworkweb services :s
13:16.15gooyassinework: thanks a lot for your effort :)
13:16.27yassineworkyour welcome ;)
13:17.34yassineworkgoo,  if you have other questions and im not here please ask them here : http://tomcat.anfatech.com/cocoon/tomcat/10.html i will be glad to answe it
13:18.00deluxeyassinework, I hope he doesn't overwrite it again
13:18.11yassineworkwe will see deluxe  :)
13:18.25deluxeshould I give him 666 permissions? Then it's overwritable
13:19.01yassineworkno just try firt and see what will happen
13:19.12yassineworkmake  sure you have a copy somewhere else :)
13:19.52deluxeCannot create JDBC driver of class '' for connect URL 'null'
13:19.54deluxestill
13:20.00deluxeLet me look at the config file
13:20.15yassineworkdeluxe,  make some errors in the affiliates.xml please
13:20.23yassineworkany radom tags unclosed
13:20.24deluxeok ;)
13:20.25yassineworkand restart
13:20.47deluxe20.07.2006 15:20:07 org.apache.catalina.core.StandardContext start
13:20.47deluxeWARNUNG: Error storing config file
13:20.47deluxejava.io.FileNotFoundException: /var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml (Permission denied)
13:20.52deluxeError storing config?
13:21.07yassineworknever met this one :)
13:21.28*** join/#tomcat epswing (i=epswing@TOROON12-1178068039.sdsl.bell.ca)
13:21.38yassineworkchmod u=rx affilates.xml  
13:21.45yassineworkassuming its owned by tomcat
13:23.06fix-:)
13:23.48deluxeyassinework, with errors: INFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml
13:23.48deluxe20.07.2006 15:23:13 org.apache.commons.digester.Digester fatalError
13:23.48deluxeSCHWERWIEGEND: Parse Fatal Error at line 1 column 10: Attribute name "sf" associated with an element type "sfjj" must be followed
13:23.48deluxeby the ' = ' character.
13:23.49deluxeorg.xml.sax.SAXParseException: Attribute name "sf" associated with an element type "sfjj" must be followed by the ' = ' character.
13:23.52deluxeso he is parsing it..
13:23.55deluxeSCHWERWIEGEND = FATAL
13:24.08yassineworkdeluxe,  du sprichts deutsch ?
13:24.24deluxeja
13:24.26deluxeoh man ;)
13:24.29yassinework:)
13:24.39deluxeDarf hier deutsch geredet werden?
13:24.45deluxeÜgesprochen
13:24.47deluxe*
13:24.49yassineworkdachte schon wo ich das SCHWERWIEGEND.. gesehen habe
13:25.25yassineworkdeluxe,  /join ##tomcat.de
13:37.58*** join/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
13:39.40*** join/#tomcat a4akb (n=Akbara@ask10-62.qualitynet.net)
14:43.15*** part/#tomcat eric_ (n=eric@46.58.103-84.rev.gaoland.net)
14:45.34*** join/#tomcat dreivier (n=dreivier@port-87-234-91-22.dynamic.qsc.de)
14:55.21*** join/#tomcat Biflindi (n=Odin@pdpc/supporter/bronze/Odin)
14:55.40*** part/#tomcat Biflindi (n=Odin@pdpc/supporter/bronze/Odin)
14:57.04*** join/#tomcat a4akb (n=Akbara@ask13-3.qualitynet.net)
14:57.26*** join/#tomcat odin_ (n=dlm@host86-128-76-249.range86-128.btcentralplus.com)
15:02.41*** join/#tomcat yassinework (n=yel@h-213.61.164.152.host.de.colt.net)
15:12.53*** join/#tomcat dfr (n=dfr@soss1.fnal.gov)
15:13.04a4akb\msg cheeser yo
15:13.39a4akbgoo morning d
15:14.01a4akbi type cant
15:14.09jrutherforda4akb: go get some coffee get back to us
15:14.09a4akbme no english speak
15:14.10jrutherford:P
15:14.46a4akbwhat u speak me no stand under
15:15.33a4akbRutherford reminds me of 9th grade chemistry class
15:15.40a4akbRutherford anomoly was it?
15:17.43a4akbman u must be pretty solid  98yrs after receiving your noble prize Ruth
15:18.05jrutherford\m/
15:18.46jrutherfordmy name may suggest a pedigree that is more flattering than it ought to be
15:18.50a4akbhttp://www.nz.com/new-zealand/guide-book/history/lord-ernest-rutherford.aspx
15:19.12jrutherfordindeed
15:19.24jrutherfordthere's Daniel Rutherford too, but i'm not sure what he did
15:19.33jrutherfordwhatever it was, i'm pretty sure he did it in Edinburgh though
15:19.43jrutherfordpossibly something to do with chemistry
15:19.52a4akbedinburgh pronounced edinbrah
15:19.58a4akbu scottish?
15:20.06jrutherfordno, but i went to university there
15:20.09jrutherford(i'm english)
15:20.14jrutherfordi speak scots though
15:20.19jrutherfordoch aye, etc etc
15:20.28*** join/#tomcat lintlock (i=lintlock@152.12.31.7)
15:20.45lintlockquestion: has anyone here worked with the singlesignon?
15:21.22a4akbyassinework: speaks
15:21.59lintlockim trying to figure out how to properly implement it and the page im on doesnt really tell me
15:22.15lintlockI set up my realm and made the thing in server.xml available
15:22.31lintlockthing = host tag
15:23.58yassineworklintlock,  do you mean SSO for differntr applicatiopns ?
15:24.59lintlockyes
15:25.29yassineworkall you need is the SingleSigneOn Valve
15:26.24lintlockso i need to put that in each applications web.xml
15:26.25lintlock?
15:27.23lintlocksadly this is after i configured a single app without this feature... it was a paoin
15:27.26lintlockpain that is
15:27.40yassineworklintlock,  no
15:27.47yassineworkyou only need to set it in the server.cml
15:27.55yassineworkyou only need to set it in the server.xml and your done
15:28.18lintlockso how do i declare a certain application protected for someone to have to log in
15:28.41yassineworksecurity constrains
15:28.51yassineworkin the web.xml of that application
15:29.39lintlockis there a link to any documentation on security constraints?
15:30.51a4akbruth
15:32.36lintlocki think i found an exampple
15:32.52lintlockhttp://servlets.com/archive/servlet/ReadMsg?msgId=339414&listName=tomcat-user
15:40.09lintlocki hope this works
15:47.31lintlockwonderful my stupid browser just decided to freeze
16:04.57lintlockok i think this last question will clear up my problems
16:05.48lintlockdo i put the initial constraints into the web.xml in the webapp im using  or conf file or both?
16:06.07yassineworkonly in web.xml
16:06.51lintlockthats in my application correct?
16:08.02yassineworkyes
16:08.17lintlockthats all i needed to know i think i have it from here
16:08.21lintlockthank you for your time
16:09.49yassineworkgood luck ;)
16:14.39*** join/#tomcat a4akb (n=Akbara@ask13-125.qualitynet.net)
16:26.17lintlockme rams head into cpu due to stupid errors
16:27.10lintlockoops forgot the slash
16:28.10lintlockyay and papper napkin wants to beslow right now wonderful!
16:30.40yassineworkre
16:41.55*** join/#tomcat gorpon (n=gorpon@64.165.63.157)
16:44.14*** join/#tomcat lintlock (i=lintlock@152.12.31.7)
16:44.20lintlocksigh
16:44.28lintlockhibernate = freeze computer
16:45.26lintlockhttp://papernapkin.org/pastebin/app/view/257  i have an error dealing with this file
16:45.44lintlocki know one deals with the url-pattern
16:51.19*** join/#tomcat valmont (n=chrishol@germany.pspdev.pas.earthlink.net)
17:16.54*** join/#tomcat deluxe (n=deluxe@p213.54.80.187.tisdip.tiscali.de)
17:19.56deluxegood evening
17:21.57a4akbGood Evening Deluxe
17:22.19odin_Greetings a4akb
17:23.05a4akbodin_: www.hallmark.com
17:25.27a4akbibot langly is http://www.larc.nasa.gov/
17:25.29ibotokay, a4akb
17:27.27*** join/#tomcat guigouz (n=guigouz@c906fcaa.static.spo.virtua.com.br)
17:42.11deluxeyassinework, some time for me?
17:42.24yassineworkabout ?
17:42.32yassineworkdeluxe,
17:42.47yassineworkjoin ##tomcat.de
17:46.07Ensiferumafternoon
17:46.44yassineworkheya Ensiferum
17:48.02Ensiferumheya yassinework
17:48.30Ensiferumaaah, real coding at home insted of dicking with tomcat at work
17:48.32Ensiferum\o/
17:48.46Ensiferumthe small bits of joy in life!
17:49.26yassineworkyou lucky you
17:49.37yassineworkim here ar work since 8 hours now
17:49.44yassineworkand not yet finnished
17:51.04Ensiferum;o
17:51.08Ensiferumgo home
17:51.12Ensiferumthere's always be more work ;)
17:51.30Ensiferum"i thought i saw the end of the tunnel, but it was just some bastard with a torch bringing me more work!"
18:22.47*** join/#tomcat wam (n=wam@p549DF13C.dip.t-dialin.net)
18:33.40*** join/#tomcat gike (n=gc@208.144.114.21)
18:33.44lintlockhe
18:33.46lintlockh
18:33.49gikehey guys
18:33.54Ensiferumhey you
18:33.57lintlockI really wish i could fix this dumb error
18:34.04lintlockand hi gike
18:35.10lintlockJul 20, 2006 1:02:08 PM org.apache.catalina.startup.ContextConfig authenticatorC
18:35.11lintlockSEVERE: Cannot configure an authenticator for method BASIC>
18:35.14lintlockcrap
18:35.23gikequick question: when I delete a dir in my project inside the webapps ( eg. ./webapps/myapp/prop ) and I renew my myapps.war, is the prop dir supposed to be recreated?
18:35.25Ensiferumhmm?
18:35.29Ensiferumsounds pretty basic?
18:35.34lintlock:/
18:35.42lintlockBOOO
18:35.50Ensiferumdid you configure both web.xml and server.xml ?
18:36.01lintlockyes
18:36.09lintlockim currently only working in web
18:36.15lintlockserver.xml is fine
18:36.20lintlockor i thnk it is
18:36.21gikeguys?
18:36.44lintlockyes gike its suppose to be recreated
18:36.51lintlockif you have the .war file in there
18:36.59gikeI have the war in there
18:37.32gikebut that dir inside my apps dir is not recreated ( unless I delete the whole myapp dir )
18:38.05lintlockid just rename the folder
18:38.09lintlockthen run the war
18:38.19*** join/#tomcat yassine (n=yassine@xdsl-87-78-112-35.netcologne.de)
18:38.37gike"run the war" -- restart tomcat I suppose?
18:39.11lintlockyes :)
18:39.15yassinere
18:40.22gikefor some reason the folder inside my app does not get recreated -- what can be stopping it?
18:40.50lintlocktbh i have no idea on that part
18:41.18lintlockyassine: i have an error that you might know about
18:41.33guigouzgike: tomcat has permissions to read the war ?
18:41.47gikeyes
18:42.04gikeguigouz: when I delete the whole myapp folder, it recreated
18:42.09gike* recreates it
18:42.11yassinelintlock,  go ahead
18:42.15lintlockJul 20, 2006 1:02:08 PM org.apache.catalina.startup.ContextConfig authenticatorC
18:42.15lintlockSEVERE: Cannot configure an authenticator for method BASIC>
18:42.28lintlockauthenticatorConfig
18:42.41gikeguigouz: but when i rm a folder inside my app, it does not
18:49.26lintlocki probably need to show you the code
18:51.08lintlockhttp://papernapkin.org/pastebin/app/view/259
18:52.30*** part/#tomcat gike (n=gc@208.144.114.21)
18:53.32*** join/#tomcat RvnPhnx (n=dnorthup@drew-northup.unet.maine.edu)
18:53.40lintlockawww great
18:54.22RvnPhnxis the full SDK required to use Tomcat with JSP, or does Jasper2 handle that without outside help?
18:55.42*** join/#tomcat spaescowboy (n=user@67-133-33-108.emerytech.net)
18:56.27*** join/#tomcat bender183 (n=bfc@unaffiliated/bender183)
18:56.36*** join/#tomcat a4akb (n=Akbara@ask13-137.qualitynet.net)
18:59.31lintlockevery stupid example has <auth-method>BASIC></auth-method> but this doesnt work for me
18:59.35lintlockwonderful
19:00.35swente>BASIC></
19:00.40swentelintlock: typo!
19:01.14lintlockyour kidding
19:01.26lintlockok ty
19:01.26swentelintlock: no. off into the corner! :)
19:01.39lintlockbrb
19:02.01lintlocki doubt it too :(
19:02.34swenteexcept if you know as much about anatomy as about proper xml-syntax *g*
19:03.07lintlocki didnt see that, but im working with topicmaps using xml format
19:03.25lintlocktrying to use this singlesignon thing
19:03.29swentemmh sometimes one doesn't see the forest because of all the trees.
19:03.47swentelintlock: single-sign-on, yes i remember ;-)
19:05.21lintlocklol
19:05.34lintlockive been reading documentation all day on it
19:06.17swentedo you get any further with the BASIC-auth now?
19:06.23lintlocknow I just want it to force me to authorize myself and ill be 1 step closer
19:06.30swenteyup:)
19:06.43lintlockbut yes it got through
19:07.45swente"tediously is the squirrels feeding" :)
19:08.49lintlocki went by the info you gave me
19:11.17lintlockhttp://papernapkin.org/pastebin/app/view/260
19:11.26lintlockhats my server.xml
19:15.18lintlocktrying to figure why it wont let me authenticate
19:15.31lintlockand watch its something like change letter here and it works
19:17.10lintlock.... i think i might have found it
19:17.17yassinelintlock, ?
19:19.05lintlocklol i was talking to swente for a bit
19:19.31lintlocki also had the wrong database driver
19:21.00jbalintyassine, ?
19:21.18yassinejbalint, hi
19:21.27jbalintHey.
19:22.20lintlocksigh its still not bringing up the authentication
19:25.43swentei think you miss something to tell it which areas of the site should be protected
19:26.32lintlockhummmm
19:26.33swente<web-resource-collection>  ***<url-pattern>/secure/*</url-pattern>**** </web-resource-collection>
19:26.53swentei think you want <url-pattern>/*</url-pattern>
19:26.55yassinepastebin.ca web.xml ?
19:27.04swentehttp://papernapkin.org/pastebin/app/view/259
19:28.29lintlockmaybe im an idiot but sometimes their documentation sucks on the site
19:29.02lintlocki love you swente
19:29.16swente:)
19:29.36swentedoes this mean the auth-dialog appeared?:)
19:29.42yassinelove in the air
19:29.51swenteyassine: shutup *g*
19:30.04lintlockyes
19:30.06yassine:)
19:30.10swentefine
19:31.00lintlocknow i just need to find what var the login in stored in so i can load that info into my database for site tracking
19:32.37swentehttp://java.sun.com/products/servlet/2.3/javadoc/index.html
19:32.49swentereturns a http://java.sun.com/j2se/1.5.0/docs/api/index.html
19:32.55swenteeek.
19:33.07swentehttp://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal()
19:33.13swentehttp://java.sun.com/j2se/1.5.0/docs/api/java/security/Principal.html
19:33.46lintlockwhy cant it just work like it was in the jsp before :(
19:34.37lintlockmy original concept worked fine... but cant run 2 portals in one app GRRRR
19:37.40lintlockheres a stupid question: can i put a loginpage in my conf folder and make it do a login that way then can that access my other webapps
19:42.41lintlocki feel bad. i feel like im asking too many questions now
19:44.17swentelintlock: it's ok ;-). well, i don't get your last question correctly i'm afraid, and i'm off now for a while.
19:44.36lintlocktake care
19:53.22*** join/#tomcat Alconquian (n=w@adsl-69-152-213-10.dsl.fyvlar.swbell.net)
20:06.24*** part/#tomcat Mortuis (n=jmort@bi-02pt1.bluebird.ibm.com)
20:13.59*** part/#tomcat randrew (n=raj@dolmen.cc.columbia.edu)
21:18.15*** join/#tomcat Rizenine (n=RizeNine@159.218.3.30)
21:25.40yassinere
21:25.42*** join/#tomcat jasonb (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
21:26.10*** join/#tomcat jasonb_ (i=noneoyer@adsl-66-124-73-250.dsl.sntc01.pacbell.net)
21:26.31Ensiferumer
21:45.47*** join/#tomcat rhizmoe (n=eric@slider.synthesizer.org)
21:46.29*** join/#tomcat Jamo (n=jamo@68-184-225-236.dhcp.stls.mo.charter.com)
21:47.48Jamohey hey, I figured I'd pop in here and see if anyone had the inside scoop on a good hosting company to host a small web application on a dependable machine
21:50.16jasonbProbably not.
21:50.21yassine:)
21:50.25yassineheya jasonb
21:50.51jasonbhi yassine.
21:51.35swenteoh. jasonb is back.
21:51.48swentehuhu :)
21:52.33jasonbI come and go so much I'm not sure what precisely I'm back from.  :)
21:52.36swentejasonb: i wonder if there's any schedule for your new book?
21:53.14jasonbswente: There is.. and I'm behind.  I'm trying hard to get it out this year.  I'm not sure if that will work or not, but I'm still trying.
21:53.26swenteso we can expect it next spring?
21:53.35Ensiferuma book?
21:53.37jasonbI believe so.
21:53.45yassinegreat :)
21:53.47swenteok :)
21:53.54jasonbEnsiferum: Tomcat: The Definitive Guide, 2nd Edition
21:53.54Ensiferumwhat kind of book?
21:53.58Ensiferumoooh
21:54.15Ensiferumsounds like O'Really book
21:54.27jasonbswente: Are you wondering about anything in particular?  I might be able to give you some answers in the meantime.
21:54.29yassineno its jasonb's book
21:54.32jasonbEnsiferum: It is.
21:54.45jasonbWell, I'm only a co-author. :)
21:55.10Ensiferumhttp://www.amazon.co.uk/gp/product/0596003188/202-9316324-8303812?v=glance&n=266239&s=gateway&v=glance
21:55.14Ensiferummadness!
21:55.32Ensiferumi've never met any authors yet in my life ;)
21:55.37Ensiferuma new experience!
21:56.01jasonbEnsiferum: Nice to meet you.
21:56.11swenteEnsiferum: don't expect anything than complaints :)
21:56.23yassine:)
21:56.40Ensiferumjasonb: heh, likewise
21:56.46jasonbThat's a crazy link.  It only shows me as the author, and they misspelled my FIRST name, of all things.
21:56.59Ensiferumwell
21:57.01Ensiferumits amazon ;9
21:57.11jasonbYeah..  I shouldn't expect much from amazon.
21:57.26Ensiferumalthough i like their service
21:57.33jasonb" Only 4 left in stock--order soon ..."
21:57.36Ensiferumi've ordered most of my books from amazon
21:57.46Ensiferumnot that i have that amny
21:57.49swentejasonb: basically i just asked because i want to avoid it three days before the new edition appears
21:57.51Ensiferumabout 30 programming books
21:58.08Ensiferumout of which 14 are c++ books ;p
21:58.18jasonbouch.
21:58.24Ensiferum\o_
21:58.52jasonbswente: Considering the price isn't real high, it might help you to buy the current Tomcat book now, and then ask me questions about whatever looks out of date.
21:59.21swentejasonb: if i think closer .. why should i waste the money if you're back now ;-)
21:59.25Ensiferumhmm
21:59.43swentejasonb: and, btw, i feel the box horribly expensive nowadays.
21:59.46Ensiferumi always thought that authors would be grown ups doing important things instead of spending time on irc ;)
21:59.52swentes/box/books/ *sigh*
22:00.34jasonbswente: Well, you can always read it online on Safari if you want.
22:00.45swenteEnsiferum: probably he likes writing horrible documentations, and watching the crowd trying to interpret his word :)
22:00.45jasonbswente: And, yeah, you can just ask me stuff.  :)
22:01.01jasonbHere's the "real" link to our book on amazon: http://www.amazon.com/gp/product/0596003188/sr=8-1/qid=1153432775/ref=pd_bbs_1/002-7843033-7560007?ie=UTF8
22:01.29jasonbWhat I do to get to it is go to amazon.com, and in their search field type "tomcat" and hit search.  It's almost always the first one in the search results.
22:03.00swente*sigh* if an EUR is still > 1$ [iirc ~1.2x?] .. it costs twice as much at "amazon.de"
22:04.27jasonbouch.
22:05.12Ensiferumeuro conversion made _everything_ more expensive
22:05.30Ensiferuma cup of coffee at a garage is now 3 times the price it was before..
22:05.35swentemmh not "all". at least not everything has risen so drastically.
22:05.43Ensiferumwhere do you live?
22:05.48swentenorthern germany
22:05.48Ensiferumgermany?
22:05.51Ensiferumach
22:05.57swentetja.
22:06.17Ensiferumich have fünfh jahre deutsch gennen kelernt
22:06.22swente:)
22:06.27Ensiferumbut i cant speak it ;)
22:06.31Ensiferum(or write)
22:06.34Ensiferum(or understand)
22:06.37swentehehehe
22:08.47Ensiferumi met some nice german girls in australia ;)
22:08.57Ensiferumshould go do more study in germany
22:09.02swente*sigh*. in australia they are ...
22:09.11Ensiferumyeah mate
22:09.19Ensiferumi went to oz for 8.5 months ;)
22:09.26Ensiferumheaps of german girls
22:09.30Ensiferumall shagging about
22:09.30Ensiferumhehe
22:09.47swentehehehe .. that explains alot ;)
22:10.43Ensiferumand in my small experiment the urban legend about german women being hairy is quite untrue!
22:11.00swentelol :)
22:14.07Ensiferumnot that many
22:14.13Ensiferumhad other nationalities to sample as well! ;)
22:14.39Ensiferumirish, scottish, slovakian(!!!), austarlian
22:15.21swenteEnsiferum: are you a hairdresser?:)
22:16.25Ensiferumswente nope, just a programmer!
22:17.18swente:)
22:17.31*** join/#tomcat moprilo (n=jjohn@201.192.107.57)
22:17.38moprilohi, how do i change tomcat's ROOt dir to something like /var/www ?
22:18.51guigouzmoprilo: server.xml
22:23.28*** part/#tomcat guigouz (n=guigouz@c906fcaa.static.spo.virtua.com.br)
22:26.22rhizmoedo you guys handle ant at all here? :)
22:27.01Ensiferumi have had brief encountering with ant
22:27.34rhizmoei'm wondering if i have ant deal with files outside of the tomcat hierarchy whether i should create a separate build dir for them or make the existing build dir deep enough to hold both hiers.
22:28.08rhizmoetrying to make a clean multi-server deployment mecanism
22:28.14rhizmoemech*
22:28.57rhizmoecurrently i'm starting to make token replacement targets
22:29.01jasonbrhizmoe: For this question, you're trying to use ant for deployment or what?
22:29.07rhizmoebuild and deploy
22:29.13jasonbOf your webapp?
22:29.15rhizmoeyeah
22:29.43rhizmoewe have a webapp, and some config files that are used by the webapp, but held in different directories
22:29.48jasonbYou said "deep enough to hold both hiers".. what's "hiers" in that sentence?
22:30.12rhizmoe/usr/local/tomcat/webapps/ROOT and /home/tomcat
22:30.27jasonbrhizmoe: Also, which version of Tomcat are you using for this?
22:30.37rhizmoemost files go into ROOT, but there are a few tailored files that go into home
22:30.40rhizmoethis is 5.5
22:31.10jasonbrhizmoe: Which OS are you using?
22:31.16rhizmoeRHEL4
22:31.30jasonbOkay, I've created a nice build environment for this very purpose.
22:31.35rhizmoeant 1.6 :)
22:31.39rhizmoeoh yeah?
22:31.51jasonbIt generates an RPM of the webapp for deployment.
22:31.57rhizmoedoes it include the scp extensions in build.xml i've read about? :)
22:32.02rhizmoeah, rpms are cool
22:32.26jasonbI set it up so that the Tomcat 5.5 RPM is one RPM, and the webapp RPM is separate, and installs into a separate tree entirely.
22:32.43jasonbThen, you can update each one separately, and cleanly.
22:32.54jasonb(along the Tomcat 5.5.x releases)
22:33.13rhizmoeactually, i misspoke about my hiers, ROOT is actually a symlink to /home/tomcat/<webapp> and there's a config/util dir at /usr/local/foo
22:34.02rhizmoecurrently i have a no-pass key to the tomcat user so i can rsync from my build dir to each of the $HOME's, which works pretty well, but I have to get token replacement happening before I get RSI
22:34.20jasonbrhizmoe: Have a look at my subversion repository .. there are two projects to see.. one called "tomcat-package" which is a build system for generating customized a Tomcat RPM, and then another project called "webapp-package" for building your webapp and generating an RPM of it.
22:34.47jasonbrhizmoe: http://www.webdroid.org:8080/repo/viewcvs.cgi/
22:34.58rhizmoeswank! thanks
22:35.15rhizmoei knew figuring out multiserver in irssi would come in handy :)
22:35.34jasonbheh
22:36.19jasonbrhizmoe: If you want to pull the svn projects to your machine, do: svn co svn://www.webdroid.org/repo/tomcat-package/trunk tomcat-package
22:36.32rhizmoesweet, thanks.
22:36.35jasonbYup.
22:36.54jasonbalso: svn co svn://www.webdroid.org/repo/webapp-package/trunk webapp-package
22:38.09rhizmoeoh, i just slap the parent into subclipse and make it easy on myself :)
22:39.51jasonbOr that.
22:40.48rhizmoehave you thought about adding named targets to the webapper?
22:40.52jasonbrhizmoe: feel free to ask questions about it in here.  You'll likely have some.
22:41.06jasonbrhizmoe: What do you mean by "named targets"?
22:41.08rhizmoei'm kinda starting at the point where i just want to do "ant production" "ant qa" and "ant dev"
22:41.40rhizmoestuff like that, with token replacement filling in the user/host/etc. changeables for each environment
22:42.08jasonbrhizmoe: Well, it's possible to do that, yes.  I'm trying to keep these build files reasonably small, so I don't have those in there, but I can see why that would be useful.. triggerable via the IDE.
22:42.53rhizmoei haven't really gotten that far. i'm no dev!
22:43.16jasonbWell, you're at least developing ant build files.
22:43.40rhizmoerpm is gravy, but what i really need is to be able to generate site-specific configs, like with regular makefiles and ./configure and such.
22:44.05rhizmoeyeah, this is today's time toilet. it's what i'm doing rather than copying and modifying all of this stuff by hand :)
22:44.08rhizmoefor the nth time
22:44.22jasonbWhy should it be makefiles and not ant files?
22:44.59rhizmoeoh, i'm just saying. like compiling from source takes vars from the particular system it's going to be compiled on
22:45.21jasonbWell, you can always make a properties file that overrides ant variable settings.
22:45.21rhizmoei want to do similar tricks with ant and build.xml
22:45.36jasonbThat's usually done with properties files overrides.
22:45.50jasonbor, with clever ant targets that figure things out based on what ant can see in the system.
22:46.08rhizmoethis is more changing text in the source itself, so what i was looking at was <filterchain>
22:47.09rhizmoepreprocessing, i suppose
22:48.57*** join/#tomcat jsisson (n=sissonj@218.185.73.243)
22:49.42Ensiferumgn
22:51.34jasonbGood night Ensiferum
22:52.32jasonbrhizmoe: Well, there are at least a few ways of getting that to work from ant.  But, the new (replacement) values get introduced to ant via property overrides usually.
22:53.14jasonbrhizmoe: My ant builds do this already in some spots.  It replaces some values in some files/scripts before they get packaged into RPMs.
22:53.47jasonbrhizmoe: Also, some things that should only be replaced at install time are done that way when the RPM is installed on the destination machine.
22:59.39yassineis there a way to set the j_security_check to redirect to one and only page ?
23:00.22rhizmoejasonb: ah, is that some magic that rpm can do?
23:01.54jasonbrhizmoe: Not RPM itself, but the RPM spec file contains shell scripts that can be in charge of doing that.
23:02.16yassinelet says im surfing on some.host.com/blah/doc.html amd a session timeout occures so when i hit a reload button my browsers sends s new get /blah/doc.html the filter catch the request and ask me to log in again after a succesfull login i get redirected to the /blah/doc.html but what i want is to get redirected to some.host.com/startdoc.html  any idea ?
23:03.07rhizmoei'm not sure, but i'm guessing you might try redirecting to the startdoc before logging them in again so that that's the page they continue to.
23:03.32jasonbI've seen many webapps handle it that way.
23:04.01jasonbRequire the login on the startdoc page, and whenever the user is not authenticated, send them to the startdoc page.
23:06.07yassinerhizmoe,  how can redirect them before loggin in ?
23:06.51rhizmoein the same place where you find out whether their session is still valid or not
23:07.04rhizmoeif not, then send a redirect
23:07.07jasonbyassine: If you require a login for the page, and Tomcat notices that the session isn't valid, it can redirect the user to the page you give configure it to send them to.
23:07.26yassinejasonb, i have a login page
23:07.33rhizmoedang, maybe i know more about this junk than i realize
23:07.37jasonband startdoc isn't the login page?
23:07.43jasonbrhizmoe: hehe!
23:07.57yassinebut when the login is been done they get redirected to theire first requested docs
23:07.59*** join/#tomcat a4akb (n=Akbara@ask13-69.qualitynet.net)
23:08.09yassinebut my wellcome/startdoc is an other document
23:08.51rhizmoeso they get different pages whether they're logging in straight or whether they're logging in because of an expired session?
23:09.28yassineyes
23:09.30yassineexactly
23:10.31rhizmoeeh, i guess you could set a flag somewhere and pick their next page based on that
23:11.02rhizmoei mean, why would they get different doors based on how they log in?
23:11.15rhizmoeseems overcomplicated, but that's none of my business :)
23:11.35yassinethe main problem is that the site in question is multiframed
23:12.09yassineso imagine the user hits a request from frame[4]  and get intercepted by the filter to login
23:12.15yassinethan logs in
23:12.35yassinethen he will gets the contents of that frame as a main document
23:13.07yassinebut what i need is the let him  get the full page with its 4 frames and contents
23:15.03rhizmoeright. all that's a bit out of my depth.
23:17.13yassinethanks anyway i guess i will have to set a filter condition or somting
23:17.14puckotry creating a session in the document before the frames-document
23:17.37yassinepucko,  you mean in the login screen ?
23:17.52puckoyep
23:18.09puckowhen you get the login, if it's good, then create the session
23:18.39puckothe cookie gets set while tomcat servers the frames-document
23:19.04yassinepucko,  the login is beeing accomplished by the j_security_check
23:19.43yassinei was thinking about editing its filtering mechanism
23:20.33*** join/#tomcat dreivier (n=dreivier@port-87-234-91-22.dynamic.qsc.de)
23:29.11*** part/#tomcat spaescowboy (n=user@67-133-33-108.emerytech.net)

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.