00:03.29 | yassine | jasonb, yes debian |
00:05.11 | jbalint | Doesn't seem to print the exception message there. |
00:06.49 | yassine | its strange i dont get this one wind0... |
00:07.04 | yassine | its strange i dont get this on wind0... |
00:15.06 | jbalint | wind0? |
00:16.01 | yassine | window$ |
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.25 | azzz | hey 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.15 | yassine | azzz, im afraid i did not understand what you exactly need |
01:11.26 | azzz | Inside 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.09 | jasonb | azzz: 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.42 | BJ_name | hello-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.23 | BJ_name | where do I look to see how I can change this |
01:14.18 | azzz | jasonb, 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.25 | jasonb | azzz: Depends on how you mean that.. but maybe. |
01:15.37 | BJ_name | oops HttpServletResponse |
01:15.43 | azzz | res.setStatus(this.httpStatusCode); |
01:15.54 | jasonb | azzz: Something wrong with JAASRealm for ldap use? |
01:15.59 | BJ_name | thanks |
01:16.51 | azzz | jasonb, 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.40 | azzz | jasonb, what's the advantage of a JAASRealm vs JNDIRealm ? If you dont mind me asking |
01:28.31 | jasonb | azzz: You're asking that because they could both be used for ldap auth? |
01:28.43 | azzz | yes |
01:29.59 | jasonb | azzz: 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.17 | jasonb | azzz: I'm not a fan of JAASRealm really, but I'm also not a fan of LDAP. |
01:30.39 | azzz | sounds like there is no perfect solution :) |
01:30.57 | jasonb | Well, there is: don't use ldap. :) |
01:31.39 | azzz | container 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.10 | azzz | I need ldap, this has lots of accounts |
01:32.30 | azzz | thanks heaps for your help! |
01:33.24 | jasonb | azzz: 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.29 | azzz | that's what I've decided to do... plus I have already written such code :) |
01:35.30 | jasonb | Oh, wonderful. |
01:36.18 | jasonb | How did you handle loading the JNDIRealm classes? |
01:39.47 | azzz | env.put(Context.INITIAL_CONTEXT_FACTORY,"com.sun.jndi.ldap.LdapCtxFactory"); |
01:39.52 | azzz | you mean that? |
01:40.41 | lyken | hack the planet ! |
01:41.51 | jasonb | oh.. you didn't use LDAPRealm, you went straight for the JDK's ldap code.. which probably is better. |
01:42.49 | azzz | well, 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.52 | Ensiferum | bwyaaah |
10:24.01 | Ensiferum | i've just had abough |
10:24.08 | Ensiferum | been configuring apache and tomcat for the past 3 weeks |
10:24.11 | Ensiferum | argh |
10:35.21 | jrutherford | :/ |
10:57.15 | *** join/#tomcat deluxe (n=deluxe@p213.54.80.187.tisdip.tiscali.de) |
10:57.17 | deluxe | sers |
11:03.42 | Ensiferum | sweet jesus |
11:03.47 | Ensiferum | i found a solution to my problem! |
11:08.26 | *** join/#tomcat eric_ (n=eric@46.58.103-84.rev.gaoland.net) |
11:11.46 | lyken | lol |
11:11.55 | lyken | Ensiferum: what problem was that ? |
11:13.41 | Ensiferum | the custom authorization/radius problem |
11:21.57 | Ensiferum | the 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.02 | Ensiferum | sweet fuck |
11:22.29 | Ensiferum | and now this whole fucking shit |
11:22.41 | Ensiferum | given all the pain i have suffered while sorting this all out |
11:22.47 | Ensiferum | im not going to document anything |
11:22.48 | Ensiferum | bwahaha |
11:23.03 | Ensiferum | if it was painful to me it shall be painful to anyone touching it later |
11:25.59 | lyken | lol |
11:26.06 | lyken | or offer it as a service on your website |
11:26.11 | lyken | and they pay you to set it up :) |
11:44.52 | deluxe | I'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.26 | jrutherford | deluxe: check the docs at tomcat.apache.org |
11:52.40 | yassinework | hi * |
12:01.07 | Ensiferum | hmrhm, anyone know off hand what user permissions tomcat has on linux? |
12:01.45 | Ensiferum | its run as the user who started it right, cause its ghay java app and dont know shit about uids |
12:01.50 | Ensiferum | ? |
12:03.05 | deluxe | Ensiferum, you can specify the user id it should run as |
12:03.23 | deluxe | On my debian system there's a tomcat5 user |
12:05.53 | Ensiferum | how do i do that? |
12:08.15 | deluxe | I think there's an option in the config file |
12:08.17 | deluxe | just google a bit.. |
12:09.12 | Ensiferum | ok |
12:24.21 | yassinework | hi again |
12:27.07 | deluxe | Cannot create JDBC driver of class '' for connect URL 'null' - That's what he says |
12:27.22 | deluxe | I specified in my web.xml the following informations: |
12:29.37 | yassinework | deluxe, pastebin.ca your web.xml please |
12:29.45 | deluxe | yes |
12:30.32 | deluxe | yassinework, http://rafb.net/paste/results/Rh0APy62.html |
12:30.36 | deluxe | and the server.xml: |
12:31.29 | *** join/#tomcat jbalint (n=jbalint@unaffiliated/jbalint) |
12:31.44 | deluxe | http://rafb.net/paste/results/S2R6PV99.html |
12:31.59 | deluxe | and my Catalina/localhost/affiliates.xml |
12:32.44 | deluxe | http://rafb.net/paste/results/wSADuP30.html |
12:32.44 | deluxe | if it's needed |
12:35.35 | yassinework | deluxe, which tc version are you using ? |
12:35.55 | deluxe | ii tomcat5 5.0.30-10 Java Servlet 2.4 engine with JSP 2.0 support |
12:36.56 | yassinework | ok one sec let me have a look on your files |
12:37.22 | deluxe | ok, thanks .) |
12:37.23 | deluxe | :) |
12:48.59 | yassinework | deluxe, |
12:48.59 | *** join/#tomcat Mortuis (n=jmort@bi-02pt1.bluebird.ibm.com) |
12:49.08 | deluxe | yassinework, yes? |
12:49.23 | yassinework | remove the datasource from the server.xml |
12:49.40 | yassinework | and set the affiliates.xml with this : http://rafb.net/paste/results/S1QUyW83.html |
12:51.08 | yassinework | deluxe, got it ? |
12:51.16 | deluxe | one moment.. |
12:52.41 | deluxe | yassinework, same error |
12:52.55 | yassinework | mhh where is your jdbc driver stored at ? |
12:53.59 | deluxe | Some 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.25 | deluxe | yassinework, in comm/lib/ is the mysql-connectorj |
12:54.35 | yassinework | thats fine |
12:55.00 | deluxe | I think the error is not related to the driver - it's relating to the configuration giving the application the url |
12:55.01 | yassinework | can you see a file called DBSiloSystem_DataSource.log in your log dir ? |
12:55.02 | goo | Hello 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.26 | deluxe | yassinework, no, I can't |
12:55.46 | yassinework | deluxe, set the debug to 99 |
12:55.57 | deluxe | where? |
12:56.00 | yassinework | debug="0" |
12:56.06 | yassinework | in affiliates.xml |
12:56.14 | yassinework | context tag |
12:56.41 | deluxe | 20.07.2006 14:53:40 org.apache.catalina.core.StandardHostDeployer install |
12:56.41 | deluxe | INFO: Installing web application at context path /affiliates from URL file:/home/dwo/JAVA_PROJECTS/SiloAffiliates/build/web |
12:56.41 | deluxe | 20.07.2006 14:53:40 org.apache.catalina.core.StandardContext start |
12:56.41 | deluxe | WARNUNG: Error storing config file |
12:56.41 | deluxe | java.io.FileNotFoundException: /var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml (Permission denied) |
12:56.46 | deluxe | That's the log |
12:56.47 | yassinework | goo, im afraid i did not understand what you exactly want to know can you explain? |
12:56.50 | deluxe | catalina log |
12:57.08 | yassinework | so the file is not been processed |
12:57.18 | yassinework | deluxe, fix the permissions first and retry |
12:57.20 | deluxe | I give him tomcat perms..one moment |
13:00.07 | deluxe | yassinework, INFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml |
13:00.07 | deluxe | log4j:ERROR Error occured while sending e-mail notification. |
13:00.07 | deluxe | java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write) |
13:00.48 | deluxe | I will give him permissions..one moment |
13:00.51 | yassinework | deluxe, your tomcat user's permissions seems to be messed up |
13:02.08 | goo | yassinework: 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.53 | yassinework | goo, did you set the server to listen to port 8005 ? |
13:04.15 | yassinework | goo just tell me if you modified somthing in server.xml otherwise try to access it like this : http://localhost:8080 |
13:05.10 | goo | yassinework: 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.31 | yassinework | golqm-noob, that port is for shutting down the server |
13:05.42 | yassinework | and its not listening on http connection |
13:05.51 | yassinework | its only accesspting one command |
13:06.34 | goo | yassinework: 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.54 | yassinework | the 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.13 | yassinework | goo, dont telnet use your web browser |
13:08.05 | deluxe | yassinework, |
13:08.06 | deluxe | INFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml |
13:08.06 | deluxe | log4j:ERROR Error occured while sending e-mail notification. |
13:08.06 | deluxe | java.security.AccessControlException: access denied (java.util.PropertyPermission * read,write) |
13:08.13 | deluxe | don't know what to do there.. |
13:08.36 | goo | yassinework: no answer on port 8080. |
13:08.49 | yassinework | deluxe, pastbin your log4j config somewhere please |
13:09.02 | yassinework | goo, telnet to 8005 and type : SHUTDOWN |
13:09.12 | deluxe | yassinework, where is the log4j config? |
13:09.13 | yassinework | and see if the server eacts and shuts down |
13:09.39 | yassinework | in your application /WEB-INF/classes/ |
13:09.44 | yassinework | i dunno where you did it |
13:09.56 | deluxe | yassinework, I'm just seing |
13:10.03 | deluxe | he overwrote my affiliates.xml |
13:10.14 | yassinework | ? |
13:10.35 | deluxe | In Catalina/localhost/affiliate.xml: is now: <?xml version='1.0' encoding='utf-8'?> |
13:10.36 | deluxe | <Context docBase="/home/dwo/JAVA_PROJECTS/SiloAffiliates/build/web" path="/affiliates"> |
13:10.36 | deluxe | </Context> |
13:10.50 | deluxe | he overwrote it |
13:11.10 | yassinework | mhh so you still have that context in your server.xml ? |
13:11.24 | deluxe | no - now there is no data source set |
13:11.34 | yassinework | and no context too ? |
13:11.48 | deluxe | The context some lines ago is it now.. |
13:12.06 | yassinework | showme your actuall server.xml |
13:12.18 | yassinework | goo, does it shut down ? |
13:12.52 | deluxe | http://rafb.net/paste/results/orWkTH83.html |
13:13.49 | deluxe | Now, 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.01 | deluxe | should I write the data source into the META-INF/context.xml file? |
13:14.14 | yassinework | server.xml looks fine |
13:14.27 | yassinework | shutdown the server |
13:15.01 | goo | yassinework: I did. It went away from ps at least. |
13:15.09 | yassinework | use the affiliates.xml i gave you again copy it to catalin/localhost/.. and make sure it have appropriate permissions |
13:15.35 | goo | yassinework: I checked the logs. Looks like apache axis has some issues. I will have to investigate further some other time.. |
13:15.35 | yassinework | goo, restart it again and try to connect to 8080 again |
13:15.51 | yassinework | web services :s |
13:16.15 | goo | yassinework: thanks a lot for your effort :) |
13:16.27 | yassinework | your welcome ;) |
13:17.34 | yassinework | goo, 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.00 | deluxe | yassinework, I hope he doesn't overwrite it again |
13:18.11 | yassinework | we will see deluxe :) |
13:18.25 | deluxe | should I give him 666 permissions? Then it's overwritable |
13:19.01 | yassinework | no just try firt and see what will happen |
13:19.12 | yassinework | make sure you have a copy somewhere else :) |
13:19.52 | deluxe | Cannot create JDBC driver of class '' for connect URL 'null' |
13:19.54 | deluxe | still |
13:20.00 | deluxe | Let me look at the config file |
13:20.15 | yassinework | deluxe, make some errors in the affiliates.xml please |
13:20.23 | yassinework | any radom tags unclosed |
13:20.24 | deluxe | ok ;) |
13:20.25 | yassinework | and restart |
13:20.47 | deluxe | 20.07.2006 15:20:07 org.apache.catalina.core.StandardContext start |
13:20.47 | deluxe | WARNUNG: Error storing config file |
13:20.47 | deluxe | java.io.FileNotFoundException: /var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml (Permission denied) |
13:20.52 | deluxe | Error storing config? |
13:21.07 | yassinework | never met this one :) |
13:21.28 | *** join/#tomcat epswing (i=epswing@TOROON12-1178068039.sdsl.bell.ca) |
13:21.38 | yassinework | chmod u=rx affilates.xml |
13:21.45 | yassinework | assuming its owned by tomcat |
13:23.06 | fix- | :) |
13:23.48 | deluxe | yassinework, with errors: INFO: Processing Context configuration file URL file:/var/lib/tomcat5/conf/Catalina/localhost/affiliates.xml |
13:23.48 | deluxe | 20.07.2006 15:23:13 org.apache.commons.digester.Digester fatalError |
13:23.48 | deluxe | SCHWERWIEGEND: Parse Fatal Error at line 1 column 10: Attribute name "sf" associated with an element type "sfjj" must be followed |
13:23.48 | deluxe | by the ' = ' character. |
13:23.49 | deluxe | org.xml.sax.SAXParseException: Attribute name "sf" associated with an element type "sfjj" must be followed by the ' = ' character. |
13:23.52 | deluxe | so he is parsing it.. |
13:23.55 | deluxe | SCHWERWIEGEND = FATAL |
13:24.08 | yassinework | deluxe, du sprichts deutsch ? |
13:24.24 | deluxe | ja |
13:24.26 | deluxe | oh man ;) |
13:24.29 | yassinework | :) |
13:24.39 | deluxe | Darf hier deutsch geredet werden? |
13:24.45 | deluxe | Ügesprochen |
13:24.47 | deluxe | * |
13:24.49 | yassinework | dachte schon wo ich das SCHWERWIEGEND.. gesehen habe |
13:25.25 | yassinework | deluxe, /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.04 | a4akb | \msg cheeser yo |
15:13.39 | a4akb | goo morning d |
15:14.01 | a4akb | i type cant |
15:14.09 | jrutherford | a4akb: go get some coffee get back to us |
15:14.09 | a4akb | me no english speak |
15:14.10 | jrutherford | :P |
15:14.46 | a4akb | what u speak me no stand under |
15:15.33 | a4akb | Rutherford reminds me of 9th grade chemistry class |
15:15.40 | a4akb | Rutherford anomoly was it? |
15:17.43 | a4akb | man u must be pretty solid 98yrs after receiving your noble prize Ruth |
15:18.05 | jrutherford | \m/ |
15:18.46 | jrutherford | my name may suggest a pedigree that is more flattering than it ought to be |
15:18.50 | a4akb | http://www.nz.com/new-zealand/guide-book/history/lord-ernest-rutherford.aspx |
15:19.12 | jrutherford | indeed |
15:19.24 | jrutherford | there's Daniel Rutherford too, but i'm not sure what he did |
15:19.33 | jrutherford | whatever it was, i'm pretty sure he did it in Edinburgh though |
15:19.43 | jrutherford | possibly something to do with chemistry |
15:19.52 | a4akb | edinburgh pronounced edinbrah |
15:19.58 | a4akb | u scottish? |
15:20.06 | jrutherford | no, but i went to university there |
15:20.09 | jrutherford | (i'm english) |
15:20.14 | jrutherford | i speak scots though |
15:20.19 | jrutherford | och aye, etc etc |
15:20.28 | *** join/#tomcat lintlock (i=lintlock@152.12.31.7) |
15:20.45 | lintlock | question: has anyone here worked with the singlesignon? |
15:21.22 | a4akb | yassinework: speaks |
15:21.59 | lintlock | im trying to figure out how to properly implement it and the page im on doesnt really tell me |
15:22.15 | lintlock | I set up my realm and made the thing in server.xml available |
15:22.31 | lintlock | thing = host tag |
15:23.58 | yassinework | lintlock, do you mean SSO for differntr applicatiopns ? |
15:24.59 | lintlock | yes |
15:25.29 | yassinework | all you need is the SingleSigneOn Valve |
15:26.24 | lintlock | so i need to put that in each applications web.xml |
15:26.25 | lintlock | ? |
15:27.23 | lintlock | sadly this is after i configured a single app without this feature... it was a paoin |
15:27.26 | lintlock | pain that is |
15:27.40 | yassinework | lintlock, no |
15:27.47 | yassinework | you only need to set it in the server.cml |
15:27.55 | yassinework | you only need to set it in the server.xml and your done |
15:28.18 | lintlock | so how do i declare a certain application protected for someone to have to log in |
15:28.41 | yassinework | security constrains |
15:28.51 | yassinework | in the web.xml of that application |
15:29.39 | lintlock | is there a link to any documentation on security constraints? |
15:30.51 | a4akb | ruth |
15:32.36 | lintlock | i think i found an exampple |
15:32.52 | lintlock | http://servlets.com/archive/servlet/ReadMsg?msgId=339414&listName=tomcat-user |
15:40.09 | lintlock | i hope this works |
15:47.31 | lintlock | wonderful my stupid browser just decided to freeze |
16:04.57 | lintlock | ok i think this last question will clear up my problems |
16:05.48 | lintlock | do i put the initial constraints into the web.xml in the webapp im using or conf file or both? |
16:06.07 | yassinework | only in web.xml |
16:06.51 | lintlock | thats in my application correct? |
16:08.02 | yassinework | yes |
16:08.17 | lintlock | thats all i needed to know i think i have it from here |
16:08.21 | lintlock | thank you for your time |
16:09.49 | yassinework | good luck ;) |
16:14.39 | *** join/#tomcat a4akb (n=Akbara@ask13-125.qualitynet.net) |
16:26.17 | lintlock | me rams head into cpu due to stupid errors |
16:27.10 | lintlock | oops forgot the slash |
16:28.10 | lintlock | yay and papper napkin wants to beslow right now wonderful! |
16:30.40 | yassinework | re |
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.20 | lintlock | sigh |
16:44.28 | lintlock | hibernate = freeze computer |
16:45.26 | lintlock | http://papernapkin.org/pastebin/app/view/257 i have an error dealing with this file |
16:45.44 | lintlock | i 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.56 | deluxe | good evening |
17:21.57 | a4akb | Good Evening Deluxe |
17:22.19 | odin_ | Greetings a4akb |
17:23.05 | a4akb | odin_: www.hallmark.com |
17:25.27 | a4akb | ibot langly is http://www.larc.nasa.gov/ |
17:25.29 | ibot | okay, a4akb |
17:27.27 | *** join/#tomcat guigouz (n=guigouz@c906fcaa.static.spo.virtua.com.br) |
17:42.11 | deluxe | yassinework, some time for me? |
17:42.24 | yassinework | about ? |
17:42.32 | yassinework | deluxe, |
17:42.47 | yassinework | join ##tomcat.de |
17:46.07 | Ensiferum | afternoon |
17:46.44 | yassinework | heya Ensiferum |
17:48.02 | Ensiferum | heya yassinework |
17:48.30 | Ensiferum | aaah, real coding at home insted of dicking with tomcat at work |
17:48.32 | Ensiferum | \o/ |
17:48.46 | Ensiferum | the small bits of joy in life! |
17:49.26 | yassinework | you lucky you |
17:49.37 | yassinework | im here ar work since 8 hours now |
17:49.44 | yassinework | and not yet finnished |
17:51.04 | Ensiferum | ;o |
17:51.08 | Ensiferum | go home |
17:51.12 | Ensiferum | there's always be more work ;) |
17:51.30 | Ensiferum | "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.44 | lintlock | he |
18:33.46 | lintlock | h |
18:33.49 | gike | hey guys |
18:33.54 | Ensiferum | hey you |
18:33.57 | lintlock | I really wish i could fix this dumb error |
18:34.04 | lintlock | and hi gike |
18:35.10 | lintlock | Jul 20, 2006 1:02:08 PM org.apache.catalina.startup.ContextConfig authenticatorC |
18:35.11 | lintlock | SEVERE: Cannot configure an authenticator for method BASIC> |
18:35.14 | lintlock | crap |
18:35.23 | gike | quick 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.25 | Ensiferum | hmm? |
18:35.29 | Ensiferum | sounds pretty basic? |
18:35.34 | lintlock | :/ |
18:35.42 | lintlock | BOOO |
18:35.50 | Ensiferum | did you configure both web.xml and server.xml ? |
18:36.01 | lintlock | yes |
18:36.09 | lintlock | im currently only working in web |
18:36.15 | lintlock | server.xml is fine |
18:36.20 | lintlock | or i thnk it is |
18:36.21 | gike | guys? |
18:36.44 | lintlock | yes gike its suppose to be recreated |
18:36.51 | lintlock | if you have the .war file in there |
18:36.59 | gike | I have the war in there |
18:37.32 | gike | but that dir inside my apps dir is not recreated ( unless I delete the whole myapp dir ) |
18:38.05 | lintlock | id just rename the folder |
18:38.09 | lintlock | then run the war |
18:38.19 | *** join/#tomcat yassine (n=yassine@xdsl-87-78-112-35.netcologne.de) |
18:38.37 | gike | "run the war" -- restart tomcat I suppose? |
18:39.11 | lintlock | yes :) |
18:39.15 | yassine | re |
18:40.22 | gike | for some reason the folder inside my app does not get recreated -- what can be stopping it? |
18:40.50 | lintlock | tbh i have no idea on that part |
18:41.18 | lintlock | yassine: i have an error that you might know about |
18:41.33 | guigouz | gike: tomcat has permissions to read the war ? |
18:41.47 | gike | yes |
18:42.04 | gike | guigouz: when I delete the whole myapp folder, it recreated |
18:42.09 | gike | * recreates it |
18:42.11 | yassine | lintlock, go ahead |
18:42.15 | lintlock | Jul 20, 2006 1:02:08 PM org.apache.catalina.startup.ContextConfig authenticatorC |
18:42.15 | lintlock | SEVERE: Cannot configure an authenticator for method BASIC> |
18:42.28 | lintlock | authenticatorConfig |
18:42.41 | gike | guigouz: but when i rm a folder inside my app, it does not |
18:49.26 | lintlock | i probably need to show you the code |
18:51.08 | lintlock | http://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.40 | lintlock | awww great |
18:54.22 | RvnPhnx | is 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.31 | lintlock | every stupid example has <auth-method>BASIC></auth-method> but this doesnt work for me |
18:59.35 | lintlock | wonderful |
19:00.35 | swente | >BASIC></ |
19:00.40 | swente | lintlock: typo! |
19:01.14 | lintlock | your kidding |
19:01.26 | lintlock | ok ty |
19:01.26 | swente | lintlock: no. off into the corner! :) |
19:01.39 | lintlock | brb |
19:02.01 | lintlock | i doubt it too :( |
19:02.34 | swente | except if you know as much about anatomy as about proper xml-syntax *g* |
19:03.07 | lintlock | i didnt see that, but im working with topicmaps using xml format |
19:03.25 | lintlock | trying to use this singlesignon thing |
19:03.29 | swente | mmh sometimes one doesn't see the forest because of all the trees. |
19:03.47 | swente | lintlock: single-sign-on, yes i remember ;-) |
19:05.21 | lintlock | lol |
19:05.34 | lintlock | ive been reading documentation all day on it |
19:06.17 | swente | do you get any further with the BASIC-auth now? |
19:06.23 | lintlock | now I just want it to force me to authorize myself and ill be 1 step closer |
19:06.30 | swente | yup:) |
19:06.43 | lintlock | but yes it got through |
19:07.45 | swente | "tediously is the squirrels feeding" :) |
19:08.49 | lintlock | i went by the info you gave me |
19:11.17 | lintlock | http://papernapkin.org/pastebin/app/view/260 |
19:11.26 | lintlock | hats my server.xml |
19:15.18 | lintlock | trying to figure why it wont let me authenticate |
19:15.31 | lintlock | and watch its something like change letter here and it works |
19:17.10 | lintlock | .... i think i might have found it |
19:17.17 | yassine | lintlock, ? |
19:19.05 | lintlock | lol i was talking to swente for a bit |
19:19.31 | lintlock | i also had the wrong database driver |
19:21.00 | jbalint | yassine, ? |
19:21.18 | yassine | jbalint, hi |
19:21.27 | jbalint | Hey. |
19:22.20 | lintlock | sigh its still not bringing up the authentication |
19:25.43 | swente | i think you miss something to tell it which areas of the site should be protected |
19:26.32 | lintlock | hummmm |
19:26.33 | swente | <web-resource-collection> ***<url-pattern>/secure/*</url-pattern>**** </web-resource-collection> |
19:26.53 | swente | i think you want <url-pattern>/*</url-pattern> |
19:26.55 | yassine | pastebin.ca web.xml ? |
19:27.04 | swente | http://papernapkin.org/pastebin/app/view/259 |
19:28.29 | lintlock | maybe im an idiot but sometimes their documentation sucks on the site |
19:29.02 | lintlock | i love you swente |
19:29.16 | swente | :) |
19:29.36 | swente | does this mean the auth-dialog appeared?:) |
19:29.42 | yassine | love in the air |
19:29.51 | swente | yassine: shutup *g* |
19:30.04 | lintlock | yes |
19:30.06 | yassine | :) |
19:30.10 | swente | fine |
19:31.00 | lintlock | now 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.37 | swente | http://java.sun.com/products/servlet/2.3/javadoc/index.html |
19:32.49 | swente | returns a http://java.sun.com/j2se/1.5.0/docs/api/index.html |
19:32.55 | swente | eek. |
19:33.07 | swente | http://java.sun.com/products/servlet/2.3/javadoc/javax/servlet/http/HttpServletRequest.html#getUserPrincipal() |
19:33.13 | swente | http://java.sun.com/j2se/1.5.0/docs/api/java/security/Principal.html |
19:33.46 | lintlock | why cant it just work like it was in the jsp before :( |
19:34.37 | lintlock | my original concept worked fine... but cant run 2 portals in one app GRRRR |
19:37.40 | lintlock | heres 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.41 | lintlock | i feel bad. i feel like im asking too many questions now |
19:44.17 | swente | lintlock: 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.36 | lintlock | take 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.40 | yassine | re |
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.31 | Ensiferum | er |
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.48 | Jamo | hey 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.16 | jasonb | Probably not. |
21:50.21 | yassine | :) |
21:50.25 | yassine | heya jasonb |
21:50.51 | jasonb | hi yassine. |
21:51.35 | swente | oh. jasonb is back. |
21:51.48 | swente | huhu :) |
21:52.33 | jasonb | I come and go so much I'm not sure what precisely I'm back from. :) |
21:52.36 | swente | jasonb: i wonder if there's any schedule for your new book? |
21:53.14 | jasonb | swente: 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.26 | swente | so we can expect it next spring? |
21:53.35 | Ensiferum | a book? |
21:53.37 | jasonb | I believe so. |
21:53.45 | yassine | great :) |
21:53.47 | swente | ok :) |
21:53.54 | jasonb | Ensiferum: Tomcat: The Definitive Guide, 2nd Edition |
21:53.54 | Ensiferum | what kind of book? |
21:53.58 | Ensiferum | oooh |
21:54.15 | Ensiferum | sounds like O'Really book |
21:54.27 | jasonb | swente: Are you wondering about anything in particular? I might be able to give you some answers in the meantime. |
21:54.29 | yassine | no its jasonb's book |
21:54.32 | jasonb | Ensiferum: It is. |
21:54.45 | jasonb | Well, I'm only a co-author. :) |
21:55.10 | Ensiferum | http://www.amazon.co.uk/gp/product/0596003188/202-9316324-8303812?v=glance&n=266239&s=gateway&v=glance |
21:55.14 | Ensiferum | madness! |
21:55.32 | Ensiferum | i've never met any authors yet in my life ;) |
21:55.37 | Ensiferum | a new experience! |
21:56.01 | jasonb | Ensiferum: Nice to meet you. |
21:56.11 | swente | Ensiferum: don't expect anything than complaints :) |
21:56.23 | yassine | :) |
21:56.40 | Ensiferum | jasonb: heh, likewise |
21:56.46 | jasonb | That's a crazy link. It only shows me as the author, and they misspelled my FIRST name, of all things. |
21:56.59 | Ensiferum | well |
21:57.01 | Ensiferum | its amazon ;9 |
21:57.11 | jasonb | Yeah.. I shouldn't expect much from amazon. |
21:57.26 | Ensiferum | although i like their service |
21:57.33 | jasonb | " Only 4 left in stock--order soon ..." |
21:57.36 | Ensiferum | i've ordered most of my books from amazon |
21:57.46 | Ensiferum | not that i have that amny |
21:57.49 | swente | jasonb: basically i just asked because i want to avoid it three days before the new edition appears |
21:57.51 | Ensiferum | about 30 programming books |
21:58.08 | Ensiferum | out of which 14 are c++ books ;p |
21:58.18 | jasonb | ouch. |
21:58.24 | Ensiferum | \o_ |
21:58.52 | jasonb | swente: 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.21 | swente | jasonb: if i think closer .. why should i waste the money if you're back now ;-) |
21:59.25 | Ensiferum | hmm |
21:59.43 | swente | jasonb: and, btw, i feel the box horribly expensive nowadays. |
21:59.46 | Ensiferum | i always thought that authors would be grown ups doing important things instead of spending time on irc ;) |
21:59.52 | swente | s/box/books/ *sigh* |
22:00.34 | jasonb | swente: Well, you can always read it online on Safari if you want. |
22:00.45 | swente | Ensiferum: probably he likes writing horrible documentations, and watching the crowd trying to interpret his word :) |
22:00.45 | jasonb | swente: And, yeah, you can just ask me stuff. :) |
22:01.01 | jasonb | Here'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.29 | jasonb | What 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.00 | swente | *sigh* if an EUR is still > 1$ [iirc ~1.2x?] .. it costs twice as much at "amazon.de" |
22:04.27 | jasonb | ouch. |
22:05.12 | Ensiferum | euro conversion made _everything_ more expensive |
22:05.30 | Ensiferum | a cup of coffee at a garage is now 3 times the price it was before.. |
22:05.35 | swente | mmh not "all". at least not everything has risen so drastically. |
22:05.43 | Ensiferum | where do you live? |
22:05.48 | swente | northern germany |
22:05.48 | Ensiferum | germany? |
22:05.51 | Ensiferum | ach |
22:05.57 | swente | tja. |
22:06.17 | Ensiferum | ich have fünfh jahre deutsch gennen kelernt |
22:06.22 | swente | :) |
22:06.27 | Ensiferum | but i cant speak it ;) |
22:06.31 | Ensiferum | (or write) |
22:06.34 | Ensiferum | (or understand) |
22:06.37 | swente | hehehe |
22:08.47 | Ensiferum | i met some nice german girls in australia ;) |
22:08.57 | Ensiferum | should go do more study in germany |
22:09.02 | swente | *sigh*. in australia they are ... |
22:09.11 | Ensiferum | yeah mate |
22:09.19 | Ensiferum | i went to oz for 8.5 months ;) |
22:09.26 | Ensiferum | heaps of german girls |
22:09.30 | Ensiferum | all shagging about |
22:09.30 | Ensiferum | hehe |
22:09.47 | swente | hehehe .. that explains alot ;) |
22:10.43 | Ensiferum | and in my small experiment the urban legend about german women being hairy is quite untrue! |
22:11.00 | swente | lol :) |
22:14.07 | Ensiferum | not that many |
22:14.13 | Ensiferum | had other nationalities to sample as well! ;) |
22:14.39 | Ensiferum | irish, scottish, slovakian(!!!), austarlian |
22:15.21 | swente | Ensiferum: are you a hairdresser?:) |
22:16.25 | Ensiferum | swente nope, just a programmer! |
22:17.18 | swente | :) |
22:17.31 | *** join/#tomcat moprilo (n=jjohn@201.192.107.57) |
22:17.38 | moprilo | hi, how do i change tomcat's ROOt dir to something like /var/www ? |
22:18.51 | guigouz | moprilo: server.xml |
22:23.28 | *** part/#tomcat guigouz (n=guigouz@c906fcaa.static.spo.virtua.com.br) |
22:26.22 | rhizmoe | do you guys handle ant at all here? :) |
22:27.01 | Ensiferum | i have had brief encountering with ant |
22:27.34 | rhizmoe | i'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.08 | rhizmoe | trying to make a clean multi-server deployment mecanism |
22:28.14 | rhizmoe | mech* |
22:28.57 | rhizmoe | currently i'm starting to make token replacement targets |
22:29.01 | jasonb | rhizmoe: For this question, you're trying to use ant for deployment or what? |
22:29.07 | rhizmoe | build and deploy |
22:29.13 | jasonb | Of your webapp? |
22:29.15 | rhizmoe | yeah |
22:29.43 | rhizmoe | we have a webapp, and some config files that are used by the webapp, but held in different directories |
22:29.48 | jasonb | You said "deep enough to hold both hiers".. what's "hiers" in that sentence? |
22:30.12 | rhizmoe | /usr/local/tomcat/webapps/ROOT and /home/tomcat |
22:30.27 | jasonb | rhizmoe: Also, which version of Tomcat are you using for this? |
22:30.37 | rhizmoe | most files go into ROOT, but there are a few tailored files that go into home |
22:30.40 | rhizmoe | this is 5.5 |
22:31.10 | jasonb | rhizmoe: Which OS are you using? |
22:31.16 | rhizmoe | RHEL4 |
22:31.30 | jasonb | Okay, I've created a nice build environment for this very purpose. |
22:31.35 | rhizmoe | ant 1.6 :) |
22:31.39 | rhizmoe | oh yeah? |
22:31.51 | jasonb | It generates an RPM of the webapp for deployment. |
22:31.57 | rhizmoe | does it include the scp extensions in build.xml i've read about? :) |
22:32.02 | rhizmoe | ah, rpms are cool |
22:32.26 | jasonb | I 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.43 | jasonb | Then, you can update each one separately, and cleanly. |
22:32.54 | jasonb | (along the Tomcat 5.5.x releases) |
22:33.13 | rhizmoe | actually, 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.02 | rhizmoe | currently 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.20 | jasonb | rhizmoe: 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.47 | jasonb | rhizmoe: http://www.webdroid.org:8080/repo/viewcvs.cgi/ |
22:34.58 | rhizmoe | swank! thanks |
22:35.15 | rhizmoe | i knew figuring out multiserver in irssi would come in handy :) |
22:35.34 | jasonb | heh |
22:36.19 | jasonb | rhizmoe: 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.32 | rhizmoe | sweet, thanks. |
22:36.35 | jasonb | Yup. |
22:36.54 | jasonb | also: svn co svn://www.webdroid.org/repo/webapp-package/trunk webapp-package |
22:38.09 | rhizmoe | oh, i just slap the parent into subclipse and make it easy on myself :) |
22:39.51 | jasonb | Or that. |
22:40.48 | rhizmoe | have you thought about adding named targets to the webapper? |
22:40.52 | jasonb | rhizmoe: feel free to ask questions about it in here. You'll likely have some. |
22:41.06 | jasonb | rhizmoe: What do you mean by "named targets"? |
22:41.08 | rhizmoe | i'm kinda starting at the point where i just want to do "ant production" "ant qa" and "ant dev" |
22:41.40 | rhizmoe | stuff like that, with token replacement filling in the user/host/etc. changeables for each environment |
22:42.08 | jasonb | rhizmoe: 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.53 | rhizmoe | i haven't really gotten that far. i'm no dev! |
22:43.16 | jasonb | Well, you're at least developing ant build files. |
22:43.40 | rhizmoe | rpm 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.05 | rhizmoe | yeah, 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.08 | rhizmoe | for the nth time |
22:44.22 | jasonb | Why should it be makefiles and not ant files? |
22:44.59 | rhizmoe | oh, i'm just saying. like compiling from source takes vars from the particular system it's going to be compiled on |
22:45.21 | jasonb | Well, you can always make a properties file that overrides ant variable settings. |
22:45.21 | rhizmoe | i want to do similar tricks with ant and build.xml |
22:45.36 | jasonb | That's usually done with properties files overrides. |
22:45.50 | jasonb | or, with clever ant targets that figure things out based on what ant can see in the system. |
22:46.08 | rhizmoe | this is more changing text in the source itself, so what i was looking at was <filterchain> |
22:47.09 | rhizmoe | preprocessing, i suppose |
22:48.57 | *** join/#tomcat jsisson (n=sissonj@218.185.73.243) |
22:49.42 | Ensiferum | gn |
22:51.34 | jasonb | Good night Ensiferum |
22:52.32 | jasonb | rhizmoe: 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.14 | jasonb | rhizmoe: 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.47 | jasonb | rhizmoe: 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.39 | yassine | is there a way to set the j_security_check to redirect to one and only page ? |
23:00.22 | rhizmoe | jasonb: ah, is that some magic that rpm can do? |
23:01.54 | jasonb | rhizmoe: Not RPM itself, but the RPM spec file contains shell scripts that can be in charge of doing that. |
23:02.16 | yassine | let 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.07 | rhizmoe | i'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.32 | jasonb | I've seen many webapps handle it that way. |
23:04.01 | jasonb | Require the login on the startdoc page, and whenever the user is not authenticated, send them to the startdoc page. |
23:06.07 | yassine | rhizmoe, how can redirect them before loggin in ? |
23:06.51 | rhizmoe | in the same place where you find out whether their session is still valid or not |
23:07.04 | rhizmoe | if not, then send a redirect |
23:07.07 | jasonb | yassine: 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.26 | yassine | jasonb, i have a login page |
23:07.33 | rhizmoe | dang, maybe i know more about this junk than i realize |
23:07.37 | jasonb | and startdoc isn't the login page? |
23:07.43 | jasonb | rhizmoe: hehe! |
23:07.57 | yassine | but 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.09 | yassine | but my wellcome/startdoc is an other document |
23:08.51 | rhizmoe | so they get different pages whether they're logging in straight or whether they're logging in because of an expired session? |
23:09.28 | yassine | yes |
23:09.30 | yassine | exactly |
23:10.31 | rhizmoe | eh, i guess you could set a flag somewhere and pick their next page based on that |
23:11.02 | rhizmoe | i mean, why would they get different doors based on how they log in? |
23:11.15 | rhizmoe | seems overcomplicated, but that's none of my business :) |
23:11.35 | yassine | the main problem is that the site in question is multiframed |
23:12.09 | yassine | so imagine the user hits a request from frame[4] and get intercepted by the filter to login |
23:12.15 | yassine | than logs in |
23:12.35 | yassine | then he will gets the contents of that frame as a main document |
23:13.07 | yassine | but what i need is the let him get the full page with its 4 frames and contents |
23:15.03 | rhizmoe | right. all that's a bit out of my depth. |
23:17.13 | yassine | thanks anyway i guess i will have to set a filter condition or somting |
23:17.14 | pucko | try creating a session in the document before the frames-document |
23:17.37 | yassine | pucko, you mean in the login screen ? |
23:17.52 | pucko | yep |
23:18.09 | pucko | when you get the login, if it's good, then create the session |
23:18.39 | pucko | the cookie gets set while tomcat servers the frames-document |
23:19.04 | yassine | pucko, the login is beeing accomplished by the j_security_check |
23:19.43 | yassine | i 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) |