Re: Non-standard webapp layout

2007-10-12 Thread Glen Vermeylen
My god, I'm sorry. I posted the directory structure wrong. Web-inf is the root of the project WEB-INF/web.xml WEB-INF/content/*.jsp WEB-INF/src What I posted earlier wouldn't have been a problem at all. Looking at the time, I think my mind was still on autopilot The problem is with the

How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Adam Lipscombe
Folks I restarted this thread because I inadvertently hijacked another. Peter Crowther said: You can't. This is a client-side problem. As your first link says: Use a key in the querystring, tied to a cookie or a form, if session state across windows is a necessity. Can you expand on how

RE: JAAS Realms, cookies and authentication

2007-10-12 Thread Emsley, I (Iain)
Chris, Essentially it is a remember me. Many thanks for the comments - I'm beginning to see the forest from the trees and all that JAAS ;) Thanks, Iain -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: 11 October 2007 18:25 To: Tomcat Users List Subject:

RE: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Peter Crowther
From: Adam Lipscombe [mailto:[EMAIL PROTECTED] If I pass the session ID from the calling window to the spawned window, what do I do with it? Look up the session cookie with JavaScript? Then what? Ideally I want the child window to share the same session. Thinking about this, there's a

Re: Tomcat vs. Tomcat+Apache+mod_jk

2007-10-12 Thread Tim Funk
http://tomcat.apache.org/faq/connectors.html#integrate It depends. If you (or your admins) can't do a good job of securing apache. Then one could argue - that you be LESS secure if your ran apache in front of Tomcat. Personally - the only reason I would run apache in front of Tomcat because

RE: newby user: processing when the server launches

2007-10-12 Thread Peter Crowther
From: HODAC, Olivier [mailto:[EMAIL PROTECTED] In my application, I have to perform stuff when the server starts. Where do I have to put this code? Define and use a servlet context listener. This will run as your webapp starts up.

newby user: processing when the server launches

2007-10-12 Thread HODAC, Olivier
Hello, sorry for this newby question. I am developping my first webapp, and I need to do things at the server launching step. I understood that when a client sends the first request to the server, it loads the required classes and instanciates them. So, I have to wait for the first

Re: Second webapp lib folder

2007-10-12 Thread Johnny Kewl
- Original Message - From: Pitre, Russell [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 12, 2007 3:19 PM Subject: Second webapp lib folder Sun Java 1.5 Tomcat 5.5.17 I have a requirement to integrate Java Crystal Reporting engine into our

Re: application-managed security model and isUserInRole getRemoteUser

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Stephen, Stephen More wrote: If I implement application-managed security ( I need to use cookies for Remember Me ), is there a way to make it such that HttpServletRequest.getRemoteUser() and HttpServletRequest.isUserInRole(java.lang.String

Re: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: Right or Wrong this is what I did Ugh, your solution is truly awful. It's much easier to let the session management work the way it was intended: either with a cookie (no worries!) or though a url-encoded jsessionid

Re: application-managed security model and isUserInRole getRemoteUser

2007-10-12 Thread Johnny Kewl
- Original Message - From: Stephen More [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 12, 2007 2:35 PM Subject: application-managed security model and isUserInRole getRemoteUser If I implement application-managed security ( I need to use cookies for Remember Me

Re: Non-standard webapp layout

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Glen, Glen Vermeylen wrote: I posted the directory structure wrong. Web-inf is the root of the project WEB-INF/web.xml WEB-INF/content/*.jsp WEB-INF/src That makes more (less?) sense. Now I know what you were trying to say. Yes, that's weird

Re: [OT] mod_jk - no permission to access index file

2007-10-12 Thread Albert Greinoecker
thanks for the answer. What are the permissions on each of: /usr /usr/share /usr/share/tomcat6 /usr/share/tomcat6/webapps /usr/share/tomcat6/webapps/my_app all have the following permission drwxr-xr-x 12 root root tomcat and apache2 are run as root (I know they should'nt, shame on me :/)

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Filip Hanik - Dev Lists
Johnny Kewl wrote: - Original Message - From: Carl Mosca [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 12, 2007 4:29 PM Subject: embedded Tomcat (5.5.23) application logging (java.util.logging) This was a recent related topic here but I did not understand the

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Johnny Kewl
- Original Message - From: Filip Hanik - Dev Lists [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 12, 2007 8:02 PM Subject: Re: embedded Tomcat (5.5.23) application logging (java.util.logging) Johnny Kewl wrote: - Original Message

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny Kewl wrote: If you ever figure out why the command line works but the System properties don't... let me know It's probably because, by the time your System.setProperty code runs, the logger has already been set up. What you need to

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Johnny Kewl
- Original Message - From: Carl Mosca [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, October 12, 2007 4:29 PM Subject: embedded Tomcat (5.5.23) application logging (java.util.logging) This was a recent related topic here but I did not understand the issue to quite the

RE: Second webapp lib folder

2007-10-12 Thread Pitre, Russell
I think what you could do is rename all the Jars to say Crystal_OriginalName.jar and then you can at least ID them That would be an easy solution! Thanks Russ -Original Message- From: Johnny Kewl [mailto:[EMAIL PROTECTED] Sent: Friday, October 12, 2007 9:47 AM To: Tomcat Users List

Second webapp lib folder

2007-10-12 Thread Pitre, Russell
Sun Java 1.5 Tomcat 5.5.17 I have a requirement to integrate Java Crystal Reporting engine into our intranet app. There are 69 .jar files for the Crystal reporting engine! Count them, 69 .jar files. I'm really hesitant to drop all of these .jar files into the /WEB-INF/lib folder and forget

Re: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Johnny Kewl
- Original Message - From: Adam Lipscombe [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 12, 2007 10:09 AM Subject: How to share tomcat sessions across multiple IE windows Folks I restarted this thread because I inadvertently hijacked another.

Re: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread David Delbecq
- Make sure the url provided to window.open() is properly encoded by server so that it includes the sessionId if necessary. use for that java.lang.String encodeURL(java.lang.String url) from the HttpServletResponse interface server side. - Check, if cookies are disabled on client, that the

Re: placing jars in /server/lib - can cause oome?

2007-10-12 Thread A C
har har. glad i could give everyone on this thread a good chuckle. anyway... I didn't want to rattle off more crud, so instead I collected as best I could, information that might elucidate my issue more: and everyone was right, my jar file did NOT live in \server. Application: Reporting

Re: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Adam Lipscombe
I tried appending JSESSIONID=id to all urls that are displayed in the new window. That seems to to work. It's the first time I've encountered it (or even heard it mentioned) in several years of writing and testing apps with pop-ups and multiple IE instances. Yes me too. A weird one.

embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Carl Mosca
This was a recent related topic here but I did not understand the issue to quite the same as what I am seeing. I've got an Tomcat embedded in an application and the two hosted web applications are running OK. Logging is working OK in the host application and from Tomcat itself. I am not getting

Re: Tomcat vs. Tomcat+Apache+mod_jk

2007-10-12 Thread Markus Schönhaber
Georg Zeiser wrote: We want to run a java enterprise application on Tomcat. But we don't know what is better, Tomcat (6.0.14) as standalone or Tomcat behind an Apache (2.0.59 or 2.2.x) with mod_jk. If a customer has Apache already installed, we will use the configuration with mod_jk. But

application-managed security model and isUserInRole getRemoteUser

2007-10-12 Thread Stephen More
If I implement application-managed security ( I need to use cookies for Remember Me ), is there a way to make it such that HttpServletRequest.getRemoteUser() and HttpServletRequest.isUserInRole(java.lang.String role) will respond with values from the actual logged in user ? I see an old thread

Re: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Johnny Kewl
- Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, October 12, 2007 3:32 PM Subject: Re: How to share tomcat sessions across multiple IE windows -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Johnny, Johnny

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Filip Hanik - Dev Lists
this is an example private static org.apache.juli.logging.Log log= org.apache.juli.logging.LogFactory.getLog( IntrospectionUtils.class ); as soon as that statement is executed, the logging gets initialized. as you can see, it is a static field, so when you run Tomcat embedded,

Re: [OT] mod_jk - no permission to access index file

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Albert, Albert Greinoecker wrote: Is there anything interesting in httpd's error.log file? Symbolic link not allowed: /usr/share/tomcat6 There you go. You have Options FollowSymLinks listed for /usr/share/tomcat6/webapps/my_app, but not for

URL Filter + regular expression

2007-10-12 Thread lukasK
I've got some problem with using regular expression to describe uri. I would like to redirect all files (adresses) with .jsp types. According to example on http://www.servletsuite.com/servlets/redirectflt.htm the syntax is: uri=some_url How can I define expression affected all .jsp files. I try

Re: [OT] URL Filter + regular expression

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Lukas, lukasK wrote: I've got some problem with using regular expression to describe uri. I would like to redirect all files (adresses) with .jsp types. According to example on http://www.servletsuite.com/servlets/redirectflt.htm the syntax is:

Re: placing jars in /server/lib - can cause oome?

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 A C, A C wrote: Application: Reporting application we'll call reporting.war , which unpacks to a directory size of ~ 100MB of jars/classes/static content/etc. Aah, that's a different story. Certainly, not all 100MB is being loaded into memory and

Re: placing jars in /server/lib - can cause oome?

2007-10-12 Thread Martin Gainty
You can determine the anount of remaining RAM and then set MaxRows and FetchSize to the number of Rows e.g. http://www.docjar.com/docs/api/java/lang/Runtime.html //determine how much memory is free for allocating Obects on the heap long remainingRAM = java.lang.Runtime.getRuntime().freeMemory();

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Carl Mosca
I'm missing something else. I tried this last night (but couldn't recall what I bumped into). Where is the log handler expected to be? I get this message: Can't load log handler org.apache.juli.FileHandler I think that's in commons-logging.jar (which should be available).

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Carl Mosca
I had my logging.properties files mixed up. Now I am back where I started: I have logging from the hosting app but not either of the two apps I am hosting. The logging from the app works both when I code the logging properties and when I supply them from the command line. What I am wondering is

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Carl Mosca
Is there anything that has to be done after the individual wars (context) are registered? On 10/12/07, Carl Mosca [EMAIL PROTECTED] wrote: I had my logging.properties files mixed up. Now I am back where I started: I have logging from the hosting app but not either of the two apps I am

Copying large files around

2007-10-12 Thread David Kerber
What is the most efficient (=fastest) way of copying large ( 1GB [yes, that's a Giga]) files around the network in java when running under tomcat 5.5.x? Do I use a FileInputStream and FileOutputStream with a large byte[] array? Or what? D

Re: embedded Tomcat (5.5.23) application logging (java.util.logging)

2007-10-12 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm Now Tomcat is also a cool application server --- - Original Message - From: Filip Hanik -