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 - D

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 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

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
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: 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(); i

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 a

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 so

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 appli

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, befo

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" 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 - From: "Carl Mosc

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: 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 sa

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: 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 same as what I am see

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: [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 e

Re: Second webapp lib folder

2007-10-12 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Russell, Pitre, Russell wrote: > Is it possible to configure the tomcat classloaders to look at second > lib folder such as /WEB-INF/lib2? If you're willing to go to such lengths, what about unpacking all the JARs into a directory and creating one, s

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 Su

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" 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 Kewl wrote: Right

Re: Second webapp lib folder

2007-10-12 Thread Johnny Kewl
- Original Message - From: "Pitre, Russell" <[EMAIL PROTECTED]> To: "Tomcat Users List" 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 intranet app. Ther

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.Stri

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 p

Re: application-managed security model and isUserInRole getRemoteUser

2007-10-12 Thread Johnny Kewl
- Original Message - From: "Stephen More" <[EMAIL PROTECTED]> To: 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" ), is there a way

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

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/ 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 :/)

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 a

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. http://www.onjava.com/pub/a/onjava/2001/04/12/listeners.h

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

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 client

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.

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: How to share tomcat sessions across multiple IE windows

2007-10-12 Thread Adam Lipscombe
I tried appending "JSESSIONID=" 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. M

Tomcat vs. Tomcat+Apache+mod_jk

2007-10-12 Thread Georg Zeiser
Hello guys, i hope you can help me... 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

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'

Tomcat load balancing issue

2007-10-12 Thread Pamarthi, Ramakrishna
Hi, We have implemented the tomcat load balancing recently. We are getting the below error in catalina.out file some times. But application is working fine. Oct 10, 2007 6:20:00 AM org.apache.jk.common.MsgAjp processHeader SEVERE: BAD packet signature 25717 Oct 10, 2007 6:20:00 AM org.apache.jk

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" 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. Peter Crowther

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 se

Re: How to write a custom realm?

2007-10-12 Thread quanxin zhu
Thanks Very Much for your help! 2007/10/11, Tim Funk <[EMAIL PROTECTED]>: > > With any luck - this will be accurate enough: > > http://www.jroller.com/funkman/entry/howto_create_a_realm_in > > -Tim > > > On Wednesday 10 October 2007, quanxin zhu wrote: > > > >> Hi, Everyone, > >> > >> Where co

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: