00:09.32 | *** join/#tomcat vinse_ (~delfonic_@66-151-49-205.sog.polarisnet.net) |
01:12.28 | *** join/#tomcat ps` (~ps@yoda.rsn.bth.se) |
02:04.46 | jasonb | ibot: tomcat-benchmarks is http://www.mail-archive.com/tomcat-dev@jakarta.apache.org/msg56210.html http://www.webperformanceinc.com/library/ServletReport/ |
02:04.47 | ibot | jasonb: okay |
02:04.47 | jasonb | ibot: wake up! |
02:04.49 | ibot | up!: GOOD MORNING!!! |
02:04.54 | jasonb | heh |
02:11.29 | vinse_ | hi jasonb |
02:13.45 | jasonb | hi vinse_. |
02:14.09 | jasonb | ibot: php-from-tomcat is http://wiki.apache.org/jakarta-tomcat/UsingPhp |
02:14.10 | ibot | jasonb: okay |
02:15.20 | vinse_ | jasonb |
02:15.39 | vinse_ | i'm not understanding how container managed security is saving sesssion state |
02:15.42 | vinse_ | where are my cookies? |
02:18.30 | jasonb | Well, with the exception of the session cookie itself (JSESSIONID), all other cookies are request/response-specific.. so they're stored in the request and response objects. |
02:19.01 | jasonb | The JSESSIONID cookie is really a session ID that is stored in the session object. |
02:19.21 | vinse_ | i.e. session.getID() ? |
02:19.32 | vinse_ | where is it stored on the client side? |
02:19.51 | jasonb | But, when a session-active request comes in, the browser sends the JSESSIONID cookie to Tomcat, and Tomcat puts that into the request object. I think it automatically also sends it out with the response. |
02:20.07 | vinse_ | well |
02:20.13 | jasonb | Yeah, Session.getID() or something like that. |
02:20.32 | jasonb | On the client side, cookies are stored however the http client wants to store them. |
02:20.34 | vinse_ | when i call request.getCookies() i get an array of size zero |
02:20.54 | vinse_ | although the api sez i should get null |
02:20.57 | vinse_ | if there are no cookies |
02:21.29 | jasonb | Okay, so if your request has no cookies that means that 1) the http client sent no cookies with the request, and 2) Tomcat doesn't know of a session ID cookie for this request (not a logged-in user?) |
02:21.39 | vinse_ | no it's a logged in user |
02:21.58 | vinse_ | becuase several isUserInRole calls return the correct result |
02:22.31 | jasonb | Hmm. |
02:22.42 | vinse_ | that's what i thought was strange |
02:22.47 | jasonb | You're right about the getCookies() returning a null if there aren't any.. that's what the servlet API says. |
02:22.51 | jasonb | Which version of Tomcat is this? |
02:22.59 | vinse_ | most recent |
02:23.01 | vinse_ | 5.0.x |
02:23.20 | vinse_ | but if there's a logged-in user, why would there not be any? |
02:23.29 | vinse_ | when there is no logged in user it returns null |
02:23.40 | vinse_ | when there is a logged in user it returns an empty array |
02:24.34 | vinse_ | i think |
02:24.38 | jasonb | Hmm.. that could actually be a TC5 bug. |
02:25.08 | vinse_ | maybe JSESSIONID is a "virtual" cookie, but doesnt end up in the Cookies[] array? |
02:25.25 | jasonb | I haven't tried the same thing between TC4 and TC5, but if that's the behavior.. and if it's repeatable, you should probably file it as a bug. |
02:25.32 | vinse_ | ack |
02:25.41 | vinse_ | filing it as a bug means i'm not fixing it =O |
02:25.43 | jasonb | No, JSESSIONID is really a cookie when there is one, and it should be in that array. |
02:25.51 | vinse_ | i guess it's not hurting me any |
02:26.00 | vinse_ | i can still invalidate the session when they log off |
02:26.01 | jasonb | vinse_: If you file that as a bug, it's possible they'd fix it fast. |
02:26.22 | vinse_ | ok, i'll make sure that's what's happening and file it |
02:26.53 | jasonb | Yes, please do. |
02:27.09 | jasonb | That is a good find, if it's true, and that could be causing others trouble. |
02:27.26 | vinse_ | should i be keeping my authorization when i close the browser while using form authentication and container managed security? |
02:27.27 | jasonb | TC5 is stable, and has been tested quite a bit, but things like this could fall through the cracks. |
02:27.29 | vinse_ | because i'm not |
02:28.16 | jasonb | That depends on what kind of cookie JSESSIONID is.. there are two kinds: one that is stored in RAM and goes away when you restart your browser, and another kind that actually persists to disk. |
02:28.20 | vinse_ | i have to relog in regarless of the session timeout value when i open a new browser, if that's not supposed to happen i'd guess it's a symptom of this bug |
02:28.33 | jasonb | I'm not remembering how to choose which type of cookie it is, though. |
02:28.43 | vinse_ | yeah i couldnt find that anywhere |
02:28.59 | vinse_ | but from what i read it seemed like a persistent cookie was the default |
02:29.03 | vinse_ | in the realm how-to |
02:33.45 | vinse_ | i did that too |
02:33.48 | vinse_ | saw none from localhost |
02:35.00 | vinse_ | ima go home now and play w/ it tonight, i'll let you knwo what happens |
02:36.04 | jasonb | Okay.. thanks! |
02:36.21 | vinse_ | thank you ;) |
02:36.22 | vinse_ | again |
02:39.04 | *** join/#tomcat matroska (~chatzilla@c-67-169-52-64.client.comcast.net) |
02:40.07 | matroska | i am getting this erroe : what doe sit mean - * Deploy error : uPortal : org.objectweb.jonas.web.JWebContainerServiceException : Cannot read the deployment descriptors '/E:/subversion/jonas-3-3-1/webapps/uPortal/': org.objectweb.jonas_web.deployment.api.WebContainerDeploymentDescException:jonas-resource missing for res-ref-name jdbc/PortalDb: jonas-resource missing for res-ref-name jdbc/PortalDb |
02:44.29 | *** join/#tomcat trilluser (~trillian@november.kirovcity.ru) |
02:46.22 | trilluser | could anyone answer my question? |
02:52.12 | matroska | whats your question |
02:54.42 | jasonb | matroska: Wow. That's a whole lot of neat stuff. |
02:55.04 | matroska | whata neat ? |
02:56.09 | trilluser | the thing is: |
02:56.09 | trilluser | I use Tomcat 5. |
02:56.09 | trilluser | I have the following configuration in server.xml: |
02:56.09 | trilluser | ... |
02:56.09 | trilluser | <Host name="<hostname>" debug="0" appBase="Z:/Clients/Beta/Glendoveertennis" unpackWARs="true" autoDeploy="true"> |
02:56.11 | trilluser | <Context path="" docBase="Webroot" debug="0" reloadable="true"/> |
02:56.13 | trilluser | </Host> |
02:56.15 | trilluser | and when tomcat service is started there's error in log: |
02:56.17 | trilluser | Document base Z:\Clients\Beta\Glendoveertennis\Webroot does not exist or is not a readable directory |
02:56.19 | jasonb | matroska: That error message.. it shows how many cool pckages you're running.. |
02:56.26 | trilluser | Z is a network drive |
02:56.56 | trilluser | when I change Z: to C: all is fine |
02:57.10 | trilluser | and I cannot understand what is a problem? |
02:57.21 | jasonb | trilluser: Sounds like a windows problem. |
02:57.41 | matroska | jasonb : so... whats the problem? |
02:57.41 | jasonb | trilluser: What kind of network drive is Z? |
02:57.55 | jasonb | trilluser: Is it an SMB windows file share? |
02:58.43 | jasonb | I actually don't know if that should work or not. |
02:59.26 | matroska | jasonb: have you deployed uportal or chef from scratch/sources? |
03:00.04 | jasonb | matroska: I haven't even heard of it. Do you have a URL? |
03:00.18 | trilluser | no |
03:02.15 | jasonb | Hmm.. http://mis105.mis.udel.edu/ja-sig/uportal/ |
03:02.17 | trilluser | I wonder why does it work on local drive but doesn't work on network drive. |
03:02.17 | trilluser | The network path exists and accessible from Windows |
03:02.32 | matroska | chefproject.org and uportal.org |
03:02.35 | jasonb | trilluser: Is it writeable from windows? |
03:02.39 | matroska | chef has such a crappy documentation |
03:02.46 | matroska | and the same with uportal |
03:03.01 | trilluser | jasonb: yes |
03:03.03 | matroska | uportal has better but i still cant get it to run under this jonas |
03:03.17 | matroska | maybe its jonas's problem ... i am running the 4.0 beta |
03:03.25 | matroska | th eone that came out two nights ago |
03:03.41 | matroska | but its unlikely that is jonas's problem |
03:04.43 | jasonb | matroska: Ugh, chef builds on Velocity and Turbine. Don't trust it. |
03:05.32 | jasonb | matroska: Hmm, seems like a deployment/JNDI problem running uportal on Jonas. |
03:05.54 | jasonb | matroska: I've heard lots of good things about Jonas, so I'd be more suspicious of uportal. |
03:06.04 | matroska | why not? |
03:06.24 | jasonb | matroska: uportal's license looks great. |
03:06.37 | jasonb | matroska: And, looks like lots and lots of people are using it -- another good sign. |
03:06.59 | matroska | yes ... but i cant get the stupid thing to run :( |
03:07.17 | matroska | first its hsql database wont start |
03:07.23 | matroska | gives an exception |
03:07.48 | matroska | if i try the mysql version .. it doesnt even want to get deployed - the error above |
03:08.11 | jasonb | matroska: Hmm, looks like uportal doesn't need a whole J2EE server.. it looks (from the docs) as though you can just run it on Tomcat stand-alone. |
03:08.21 | matroska | jasonb: .. let me knwo if you can run chef .. i like chef a lot |
03:08.35 | matroska | jasonb: i was doing the source build |
03:08.40 | jasonb | matroska: I wish I had time to try all that stuff. Ugh. |
03:08.53 | matroska | i dont like its tomcat standalone |
03:09.16 | matroska | it has hsqldb inbuilt ... which doesnt want to run |
03:09.27 | matroska | actually, one has to manually start the stupid hsqldb for uportal |
03:09.35 | matroska | adn the one thats with it doesnt run |
03:09.51 | *** join/#tomcat chsh (~chsh@d235-181-206.home1.cgocable.net) |
03:09.51 | matroska | i have like no experience whatsoever with hsql |
03:10.41 | jasonb | matroska: hsql is very nice. I've used it before, and have only good things to say about it. |
03:11.05 | jasonb | matroska: It's small, pure-Java (so it's portable), and seemingly fast. |
03:11.35 | jasonb | matroska: It's possible for people to bundle hsql and bundle it in a broken way.. That might be the case for uportal, but it's not hsql's fault. |
03:12.20 | matroska | <PROTECTED> |
03:12.34 | matroska | even though it has the .bats they are no goo |
03:12.36 | matroska | d |
03:12.44 | jasonb | ugh.. are you running Windows? |
03:13.13 | matroska | yup |
03:13.31 | matroska | dont have enough space for linux :( |
03:13.33 | matroska | the entire 40 gigas haddisk is full |
03:13.37 | matroska | gigs |
03:14.33 | matroska | can you figure out and tell me how to deploy the tomcat uportal to deploy inside jonas |
03:15.28 | jasonb | No. Sorry. I just don't have the time to do stuff like that. |
03:15.34 | matroska | oh |
03:16.32 | jasonb | There are lots of cool apps I'd like to test out on several different application servers, I just don't have the time. |
03:17.30 | jasonb | matroska: But, you should mail one of their mailing lists and tell them the troubles you've had. |
03:17.33 | jasonb | http://www.uportal.org/getinv.html |
03:17.46 | jasonb | Maybe even file a bug. :) |
03:18.40 | jasonb | Welp, gotta go. |
03:22.58 | matroska | wait |
03:23.02 | matroska | one last question |
03:23.11 | matroska | whats the default login/password for tomcat5 |
03:29.12 | matroska | whats the default login/password for tomcat5 |