Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Pid
DIGLLOYD INC wrote: I came across the following: -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true at this page: http://hillert.blogspot.com/2008/05/if-tomcat-is-running-out-of-memory.html I haven't tried it yet, and I don't know what it does (limits something apparently).

Re: Tomcat with LDAP - admin part authentication

2008-09-26 Thread Alex Mestiashvili
yann bizouerne wrote: Hi, I have installed tomcat 6 on our Lunix server. I have configure it in order to use LDAP authentication for our application and it is working fine. My concern is about the admin part of the tomcat server. Now the tomcat-users.xml seems not used anymore for the

Re: Tomcat manager 'list' command - why does it return html markup

2008-09-26 Thread Rainer Jung
sk1ds wrote: Hi all probably a silly question from a newbie but... According to the doco http://tomcat.apache.org/tomcat-6.0-doc/manager-howto.html#Introduction HERE I says I should be able to use the Manager web application using A minimal version using HTTP requests only which is

[OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
Martin Gainty wrote: no no no.. he was NOT talking about LDAP but a DB connection the statement stands even with a 'local TC reference' you STILL have to contact the server ! there exists a company which sells server services for this very reason (if the op desires to know i will pass this

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Johnny Kewl
- Original Message - From: DIGLLOYD INC [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 26, 2008 7:01 AM Subject: tomcat won't download large files -- out of memory error I have some large zip files I want to make available for download. When

How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Hi. This is a simple question (i think) After playing with server,xml (and various other .xml files) I am unable to work out how to host multiple domains on a Tomcat 6 (standalone) server (running on port 80) .. I have read - http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html

Re: Tomcat manager 'list' command - why does it return html markup

2008-09-26 Thread Johnny Kewl
- Original Message - From: sk1ds [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Friday, September 26, 2008 4:31 AM Subject: Tomcat manager 'list' command - why does it return html markup Hi all probably a silly question from a newbie but... According to the doco

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread André Warnier
Can you tell us on what kind of host system you are running this ? It would help guessing where the files are. Thanks. P.S. I am not the expert, but it should indeed be relatively simple, so I'll try. In a nutshell : - start again from the original server.xml file. - in it, locate the Host

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Hi. It is on an Ubuntu Gutsy server.. As mentioned the tomcat applications are working I can just figure out to point domains at the contexts.. cheers 2008/9/26 André Warnier [EMAIL PROTECTED] Can you tell us on what kind of host system you are running this ? It would help guessing

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Sorry - didn't see your complete response... http://www.mrblue.com/mrblu http://www.mrblue.com/mrbluee - already goes to the mrblue context - i want http://www.mrblue.comhttp://www.mrblue.com/mrblueto go the mrblue context. Thanks for the advise - it seems that I do need to set the ROOT

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Mark Thomas
DIGLLOYD INC wrote: I have some large zip files I want to make available for download. When I try to download a 70MB file, tomcat is trying to cache these huge files (it seems). The result is that downloading them always fails. I *want* caching for most everything eg jpegs, html, etc and

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Mark Thomas
Morgan Cox wrote: Sorry - didn't see your complete response... http://www.mrblue.com/mrblu http://www.mrblue.com/mrbluee - already goes to the mrblue context - i want http://www.mrblue.comhttp://www.mrblue.com/mrblueto go the mrblue context. Thanks for the advise - it seems that I do

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread David Smith
Stab in the dark guess on Ithaca -- I'm one of the people that first responded to the OP and my email domain is cornell.edu, whose main campus is in Ithaca, NY --David Pid wrote: Martin Gainty wrote: no no no.. he was NOT talking about LDAP but a DB connection the statement stands even

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Mark Thomas
Mark Thomas wrote: DIGLLOYD INC wrote: Is there a way to limit the size of the file that will be cached? Not at present. I have added a configuration option for this to trunk and proposed it for 6.0.x Mark - To start a new

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
David Smith wrote: Stab in the dark guess on Ithaca -- I'm one of the people that first responded to the OP and my email domain is cornell.edu, whose main campus is in Ithaca, NY Interesting... is that new? I don't remember seeing that occur before. p --David Pid wrote: Martin Gainty

RE: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Martin Gainty
In other words if you have an opportunity to attack someone instead of providing an intelligent solution then yes by all means CHANGE the question (so you'll look good and the other guy looks like an idiot..) from a JDBC DataSource lookup to LDAP question.. if the question is a comparison of

RE: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Caldarale, Charles R
From: Morgan Cox [mailto:[EMAIL PROTECTED] Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to same context .. Thanks for the advise - it seems that I do need to set the ROOT webapp for each virtual server - anyone got any ideas of how to do this. Read *all* of

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Thanks to everybody whos responded. I shall try these suggestions and let you know how it goes.. 2008/9/26 Caldarale, Charles R [EMAIL PROTECTED] From: Morgan Cox [mailto:[EMAIL PROTECTED] Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to same context

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread André Warnier
Caldarale, Charles R wrote: From: Morgan Cox [mailto:[EMAIL PROTECTED] Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to same context .. Thanks for the advise - it seems that I do need to set the ROOT webapp for each virtual server - anyone got any ideas of how to

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread János Löbb
. The gamma energies used generally range from 0,05 MeV to 3 MeV. Yes!! That is exactly I need to able to read this list. 3 Megawatti minimum, forget about electronVolts. Even better 5 GigaWatt. Where is the LHC when I need it ?? to generate some black holes ?? János

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Hi André - between yours and Mark's advice I have managed to do what i needed to. Thank you all - i'm amazed at the level of response... (half expected to look in a month and see no responses.) One last thing - If you upload the .war files with the tomcat manager / host-manager is there a way to

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Pid
Martin Gainty wrote: In other words if you have an opportunity to attack someone instead of providing an intelligent solution then yes by all means CHANGE the question (so you'll look good and the other guy looks like an idiot..) from a JDBC DataSource lookup to LDAP question.. I did

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Mark Thomas
Morgan Cox wrote: Hi André - between yours and Mark's advice I have managed to do what i needed to. Thank you all - i'm amazed at the level of response... (half expected to look in a month and see no responses.) One last thing - If you upload the .war files with the tomcat manager /

RE: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Caldarale, Charles R
From: Morgan Cox [mailto:[EMAIL PROTECTED] Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to same context .. One last thing - If you upload the .war files with the tomcat manager / host-manager is there a way to do this Once the Host elements are set up, you

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Mikolaj Rydzewski
Mikolaj Rydzewski wrote: Now, I want to setup Josso single sign on system (www.josso.org) and force it to use JNDI DataSources as well. With no luck. Here's the solution for anyone interested (addition to typical josso setup): * define DataSource within GlobalNamingResources (e.g.

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Morgan Cox
Thanks everybody for your input. I'll try to deploy the manager for each host as suggested. Cheers everybody. 2008/9/26 Caldarale, Charles R [EMAIL PROTECTED] From: Morgan Cox [mailto:[EMAIL PROTECTED] Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to

RemoteAddrValve for a specific URL pattern

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, I'm looking for something like the RemoteAddrValve but that can be used on a particular URL pattern. Basically, I have an administrative health check URL that I'd like to hit, but only from approved clients. The rest of the application should be

jdbc driver fails with tomcat

2008-09-26 Thread Dini Omar
I am trying to send an array to a pl/sql module but for some reason i am unable to get the connection object. Here is the line of code that fails [code] Connection conn = null; ArrayDescriptor rectabDescriptor = ArrayDescriptor.createDescriptor(CCS21_CONSIGNMENTLIST_TYPE,conn); FAILS HERE ARRAY

Re: [OT obviously] Re: Some Prilim questions

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, Martin Gainty wrote: In other words if you have an opportunity to attack someone instead of providing an intelligent solution then yes by all means CHANGE the question (so you'll look good and the other guy looks like an idiot..) from a

Re: jdbc driver fails with tomcat

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Dini, Dini Omar wrote: I am trying to send an array to a pl/sql module but for some reason i am unable to get the connection object. Here is the line of code that fails [code] Connection conn = null; ArrayDescriptor rectabDescriptor =

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Mikolaj, A few notes: see below. Mikolaj Rydzewski wrote: Mikolaj Rydzewski wrote: Now, I want to setup Josso single sign on system (www.josso.org) and force it to use JNDI DataSources as well. With no luck. Here's the solution for anyone

Re: jdbc driver fails with tomcat

2008-09-26 Thread Ziggy O
Hi, When i debug the code, it doesnt get to the point where i am initialising the OracleCallableStatement object. It failed just after the initialisation of the ArrayDescriptor object. I have tried to change it to use CallableStatement and im now getting another error. Here is how i've changed

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread DIGLLOYD INC
Thanks to multiple people responding to this! My site diglloyd.com serves almost entirely static content, with many large JPEG files. I have set: CATALINA_OPTS=-Xmx1024M That's limiting the JVM to 1GB of memory. And in tomcat/conf/ context.xml, I set: Context cacheMaxSize=150

Re: j_security_check requires session

2008-09-26 Thread Rossen Raykov
... or simply switch to BASIC auth-method. Rossen - Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Thursday, September 25, 2008 6:42:40 PM GMT -05:00 US/Canada Eastern Subject: Re: j_security_check requires session

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Mark Thomas
DIGLLOYD INC wrote: Thanks to multiple people responding to this! My site diglloyd.com serves almost entirely static content, with many large JPEG files. I have set: CATALINA_OPTS=-Xmx1024M That's limiting the JVM to 1GB of memory. And in tomcat/conf/context.xml, I set: Context

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread DIGLLOYD INC
Thanks Mark. How to force the 64-bit JVM to run? For now I'm using -Xmx2047M, which solves the immediate problem. Lloyd Chambers http://diglloyd.com [Mac OS X 10.5.5 Intel, Tomcat 6.0.16] On Sep 26, 2008, at 11:19 AM, Mark Thomas wrote: DIGLLOYD INC wrote: Thanks to multiple people

Re: tomcat won't download large files -- out of memory error

2008-09-26 Thread Mark Thomas
DIGLLOYD INC wrote: Thanks Mark. How to force the 64-bit JVM to run? For now I'm using -Xmx2047M, which solves the immediate problem. The latest Java updates for Mac include 32 and 64 bit 1.6.0_07. You need to use the Java Preferences (Applications Util Java - or something close to

Re: How to have multiple domains/contexts with Tomcat ? they all go to same context ..

2008-09-26 Thread Johnny Kewl
- Original Message - From: André Warnier [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 26, 2008 12:10 PM Subject: Re: How to have multiple domains/contexts with Tomcat ? they all go to same context .. Can you tell us on what kind of host

Re: RemoteAddrValve for a specific URL pattern

2008-09-26 Thread André Warnier
Christopher Schultz wrote: [...] I see that tuckey's urlrewrite library can probably do this for me (redirect somewhere else if the address doesn't match), but it seems a bit overkill. I recommend though. The setup is very easy and flexible, and the author claims it is very light-weight. I

Accessing server directory from applet

2008-09-26 Thread Bai Shen
I have an applet that I'm hosting on Tomcat. When I try to access the file system, I end up on the users file system, not the servers. Is there a way to connect to the servers file system? Bai Shen

Re: Accessing server directory from applet

2008-09-26 Thread Mark Thomas
Bai Shen wrote: I have an applet that I'm hosting on Tomcat. When I try to access the file system, I end up on the users file system, not the servers. Is there a way to connect to the servers file system? Applets run on the client so the only option you have for accessing remote (ie server)

clustering on different machines

2008-09-26 Thread János Löbb
Hi, I posted it earlier, but received no answers, so I try again. I have apache2 2.2.9, mod_jk 1.2.26, and Tomcat 6.0.18 running on my Mac with OSX 10.5.6. Its domain name is bml0087.yalepath.org. On my Windows 2000 machines I have tomcat 6.0.16 and its domain name is

Re: Accessing server directory from applet

2008-09-26 Thread Johnny Kewl
- Original Message - From: Bai Shen [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Friday, September 26, 2008 10:30 PM Subject: Accessing server directory from applet I have an applet that I'm hosting on Tomcat. When I try to access the file system, I end up

Re: jdbc driver fails with tomcat

2008-09-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ziggy, Ziggy O wrote: When i debug the code, it doesnt get to the point where i am initialising the OracleCallableStatement object. It failed just after the initialisation of the ArrayDescriptor object. Strange. Are you sure you are working with

Re: How to access JNDI resources on Tomcat level

2008-09-26 Thread Mikolaj Rydzewski
Christopher Schultz wrote: * add JNDI support to josso webapp (e.g. and ResourceLink to META-INF/context.xml and resource-ref to WEB-INF/web.xml) Note that this is not required for Realms. See

RE: Accessing server directory from applet

2008-09-26 Thread Martin Gainty
If your client does'nt mind objects loaded into your browser embed src=TheAnschluss.swf id=TestForFlex3 quality=high bgcolor=#869ca7 name=TheAnschluss allowscriptaccess=sameDomain pluginspage=http://www.adobe.com/go/getflashplayer; type=application/x-shockwave-flash align=middle height=100%

Re: Accessing server directory from applet

2008-09-26 Thread Bai Shen
This is an existing applet, so I'm stuck with it until I rewrite the whole thing. No security problems. Not sure why. And unfortunately there's not automatic pull for anything other than images or music. After I posted, I figured out about the pulling it from the server. I was jus' wondering

Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-26 Thread G Kontos
I'm wondering why I'm seeing such a long deployment time with my project. 4 to 7 minutes is way longer than I am used to seeing with projects of similar or larger size. My war file is about 15M - and it lives on a red hat server. I'm at a loss about what I could be doing wrong. I'm even at a

image download

2008-09-26 Thread Dave
For img src=http://domain.com/servlet/pictures/image.jpg/   in servlet get method,   InputStream is = new FileInputStream(/apphome/pictures/image.jpg); OutputStream os = response.getOutputStream();   byte[] buffer = new byte[256*1024];  //256k while (true) { int n = is.read(buffer);      if

Re: image download

2008-09-26 Thread Dave
InputStream is = new FileInputStream(/apphome/pictures/image.jpg); OutputStream os = response.getOutputStream();   byte[] buffer = new byte[256*1024];  //256k while (true) { int n = is.read(buffer);      if (n 0)   break;   os.write(buffer, 0, n); }   is.close(); os.close();

Re: image download

2008-09-26 Thread Konstantin Kolinko
2008/9/27 Dave [EMAIL PROTECTED]: For img src=http://domain.com/servlet/pictures/image.jpg/ in servlet get method, InputStream is = new FileInputStream(/apphome/pictures/image.jpg); OutputStream os = response.getOutputStream(); byte[] buffer = new byte[256*1024]; //256k while (true) {

Re: image download

2008-09-26 Thread T . K . Thiyagarajan
My code given below works fine. U can try if u want public void sendImageFile(HttpServletResponse response) { FileInputStream in=null; File f = null; try { f = new File(webapps/Plasma/graphs, image.gif); in = new FileInputStream(f);

Re: Tomcat 5.5 war takes 4 to 7 minutes to deploy

2008-09-26 Thread Gabe Wong
Hi G, First what is the available memory (RAM) and CPU on your system? Are you on a VPS or Private JVM in a Hosted environment. Quite possible it is simply a matter or resources or lack of. If on VPS, certain ones have a tendency to be slow on disk IO. G Kontos wrote: I'm wondering why I'm