Problem with tomcat behind IIS and modjk using integrated windows authentication

2008-04-03 Thread Martin Grüneberg
Hello, I developed a webapplication with tomcat 6.0.14 behind IIS 6 (IIS5 isolation mode) using modJK (1.2.25) and integrated wíndows authentication. I configured IIS and modJK following the descriptions in the connectors documentation. For most of the users (~70%) it works without problems.

Changing Tomcat Home Page

2008-04-03 Thread Ian Bloggs
I want to change the default home page from /webapps/ROOT to something like /webapps/MyWebSpace. Can anyone advise how I do this please? I'm using Apache Tomcat/6.0.14 (Win32) Regards, Ian __ Sent from Yahoo! Mail. A Smarter

Re: Changing Tomcat Home Page

2008-04-03 Thread David Smith
Remove the ROOT folder and rename MyWebSpace to ROOT. --David Ian Bloggs wrote: I want to change the default home page from /webapps/ROOT to something like /webapps/MyWebSpace. Can anyone advise how I do this please? I'm using Apache Tomcat/6.0.14 (Win32) Regards, Ian

Problem serializing JDK dynamic proxies

2008-04-03 Thread nlif
Hi all, I am using Tomcat 6, and running in a cluster, with session-replication. When I put in the session a JDK dynamic proxy, the serialization fails, like so: Apr 3, 2008 2:09:24 PM org.apache.catalina.ha.session.DeltaManager messageReceived SEVERE: Manager [localhost#/users]: Unable to

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Guilherme Orioli
Didn't get it... it just doesn't work... what do I need to use instead of the response.redirect ? 2008/4/2, Alan Chaney [EMAIL PROTECTED]: You don't need the redirect. The response to the request IS the pdf file. HTH Guilherme Orioli wrote: It just doesn't show the Download dialog on

Re: Tomcat 5.5 and keep-alive and http connector

2008-04-03 Thread Andrew Miehs
On 02/04/2008, at 6:02 PM, Andrew Miehs wrote: On 02/04/2008, at 5:51 PM, Caldarale, Charles R wrote: It appears that the chart at the bottom of the above page answers your question, unless I'm misreading it. Since there is no NIO connector in 5.5, it looks like you'll need a very large

RE: Tomcat 5.5 and keep-alive and http connector

2008-04-03 Thread Caldarale, Charles R
From: Andrew Miehs [mailto:[EMAIL PROTECTED] Subject: Re: Tomcat 5.5 and keep-alive and http connector Does tomcat a) Assign a connection to a single thread and only use this thread for the connection until the connection is closed? or b) Assign a request to a thread, and return the

Re: Problem serializing JDK dynamic proxies

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Naaman, nlif wrote: | I am using Tomcat 6, and running in a cluster, with session-replication. | When I put in the session a JDK dynamic proxy, the serialization fails, like | so: | | Apr 3, 2008 2:09:24 PM

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Alan Chaney
. Hi Guilherme I can see that English isn't your first language and I have a lot of respect for anyone who is trying to work on technical things in a foreign language - I could never do it! To help our communication I have tried to explain below what I think it is that you are trying to

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guilherme, Guilherme Orioli wrote: | Didn't get it... it just doesn't work... what do I need to use instead of | the response.redirect ? These good folks are telling you to do something differently than you are currently doing it. Right now you

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Alan Chaney
Chris Very nicely put. The only thing that I'm not clear on is your comment about sending the data as a String. The OP is trying to return a pdf file, which is a byte stream. I'd worry about trying to wrap that in a String because of encoding issues. You make a good point about two

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Very nicely put. The only thing that I'm not clear on is your comment | about sending the data as a String. The OP is trying to return a pdf | file, which is a byte stream. I'd worry about trying to wrap that in a | String

Tomcat podcast server

2008-04-03 Thread Alan Chaney
Hi everybody We've just put into service a set of web applications running under tomcat which works as a sophisticated podcast server. We deliver several thousand podcasts a day of about 20MB to 70MB in size. Originally when we started we used an Apache server (because it worked... just...)

Error invoking operation addEnvironment

2008-04-03 Thread Andre Hübner
Hi List, me again, my last error could be solved. I hope this case too. I have a Problem in tomcat-admin . I got error 500 when addmin Environment Entries. Path is: Tomcat--Service--Host -- Context--Resources--Environment Entries When i choose create new env antry i got error 500. Webpage

Tomcat 32-bit on Windows 64-bit.

2008-04-03 Thread Panian, Ardo
Can you use a 32-bit Tomcat on 64-bit Windows 2k3, with a 64-bit Isapi redirector? -- Sincerely, Ardo S. Panian H: 508-969-9935 M: 781-771-6728 F: 484-771-6726

Threads

2008-04-03 Thread Stephen Caine
List members: I have a process that generates hundreds of threads. Running on Mac OS X 10.5.2 Server, the thread count tops out at approximately 2500. After which, the process is terminated. The heap size is set to 1 gigabyte. My question is how to increase the capacity of the JVM to

RE: How to force HTTPS on some of Struts-based site

2008-04-03 Thread Hyatt, Gordon
See my comments inline. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 02, 2008 8:50 PM To: Tomcat Users List Subject: Re: How to force HTTPS on some of Struts-based site -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gordon,

AW: Tomcat 32-bit on Windows 64-bit.

2008-04-03 Thread Martin Grüneberg
Hello, I didn't try it but the isapi redirektor talks over a network socket (AJP13 protokoll) with the tomcat instance. From my thinking it should work! Mit freundlichen Grüssen / Kind regards Martin Grüneberg -Ursprüngliche Nachricht- Von: Panian, Ardo [mailto:[EMAIL PROTECTED]

RE: Threads

2008-04-03 Thread Caldarale, Charles R
From: Stephen Caine [mailto:[EMAIL PROTECTED] Subject: Threads My question is how to increase the capacity of the JVM to handle more threads. There's no limit within the JVM itself on the number of threads, other than heap space required to hold the Thread objects. It's the underlying

tomcat 6.0.14 SSIs

2008-04-03 Thread Betsy Shanley Coleman
I've followed the directions in the ssi-howto.html and editted the conf/web.xml to enable these and under 6.0 it fails. I pulled the servlets-ssi.jar from the 5.5 version and tried putting that in the lib directory to no avail. I tried both the servlet and filter and neither one seemed to work.

RE: Tomcat 32-bit on Windows 64-bit.

2008-04-03 Thread Caldarale, Charles R
From: Panian, Ardo [mailto:[EMAIL PROTECTED] Subject: Tomcat 32-bit on Windows 64-bit. Can you use a 32-bit Tomcat on 64-bit Windows 2k3, with a 64-bit Isapi redirector? Tomcat is Java, and therefore platform independent. If you're using the service wrapper or APR, you'll need the 64-bit

Re: Problem with tomcat behind IIS and modjk using integrated windows authentication

2008-04-03 Thread Mark Thomas
Martin Grüneberg wrote: I think it must have something to do with the windows profile because when we delete the windows profile of the user (c:\Documents and Settings\user) and recreate it then all works well for this user. We don't no why this happens, we can't see a difference between

RE: Threads

2008-04-03 Thread Peter Crowther
From: Stephen Caine [mailto:[EMAIL PROTECTED] I have a process that generates hundreds of threads. Running on Mac OS X 10.5.2 Server, the thread count tops out at approximately 2500. After which, the process is terminated. The heap size is set to 1 gigabyte. My question is how to increase

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Guilherme Orioli
Christopher, You got it right. I was trying to generate the content, write it into server disk and redirect it to the user. Everyone recomended me to generate it and send it as a response. If that's the only option, I can accept that. If there's a way to refresh the content under tomcat server

Re: How to force HTTPS on some of Struts-based site

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Gordon, Hyatt, Gordon wrote: | I had everything working correctly using container-based security (using | digested passwords), including denying DELETE and PUT requests. But, | due to the enhanced password encryption requirements of this site (a |

RE: Threads

2008-04-03 Thread Harper, Brad
We recently resolved a similar problem on a win32 platform which presented as a java.lang.OutOfMememoryError when attempting to create a new native thread. Native threads were being created [each with their own 1Mb stack in the non-JVM heap space] in association with Thread objects as they were

Re: Threads

2008-04-03 Thread Alan Chaney
Actually another question is what is it in your application that NEEDS 2500 threads? What does the application do? Is it 3rd party or in house? Normally the creation of a thread is considered an expensive operation and typically one tries to avoid creating new threads all over the place.

Re: How can I refresh tomcat in the java code?

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guilherme, Guilherme Orioli wrote: | Everyone recommended me to generate it and send it as a response. | If that's the only option, I can accept that. If there's a way to refresh | the content under tomcat server folder, it would be better.

Re: [OT] Threads

2008-04-03 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Actually another question is what is it in your application that NEEDS | 2500 threads? Ooh! I know... it's a ray-tracer that goes ral fast if you give each output pixel its own thread. More threads = faster, right?

Re: Threads

2008-04-03 Thread Yong Hyeon Yoon
Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address space limit (1 thread may claim 1MB of virtual space for

RE: Threads

2008-04-03 Thread Caldarale, Charles R
From: Stephen Caine [mailto:[EMAIL PROTECTED] Subject: Re: Threads I am asking if there is any way to increase the number of threads that can be handled by decreasing the thread size allocation (a java option) There are some thread-specific parameters you can play with, in particular

Re: Threads

2008-04-03 Thread Stephen Caine
Yong, Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address space limit (1 thread may claim 1MB of virtual

Re: Threads

2008-04-03 Thread Andrew Miehs
From: Stephen Caine [mailto:[EMAIL PROTECTED] I have a process that generates hundreds of threads. Running on Mac OS X 10.5.2 Server, the thread count tops out at approximately 2500. After which, the process is terminated. The heap size is set to 1 gigabyte. My question is how to increase the

Re: [OT] Threads

2008-04-03 Thread Andrew Miehs
On 03/04/2008, at 7:14 PM, Christopher Schultz wrote: Alan Chaney wrote: | Actually another question is what is it in your application that NEEDS | 2500 threads? Ooh! I know... it's a ray-tracer that goes ral fast if you give each output pixel its own thread. More threads = faster,

Re: Threads

2008-04-03 Thread Stephen Caine
Chuck, There are some thread-specific parameters you can play with, in particular -Xss. But as others have pointed out, changing one factor moves the limits on others. Your best bet (assuming you really, really need that many threads) is to run in a 64-bit process, also as previously

Re: Threads

2008-04-03 Thread Yong Hyeon Yoon
On 3-Apr-08, at 11:27 AM, Stephen Caine wrote: Yong, Are you running on 32-bit or 64-bit JVM on OS X 10.5.2? If you are running java without -d64, it would be running 32-bit by default. Typicaly around 2000 or so is the thread number limit on 32-bit process due to its virtual address

Re: Threads

2008-04-03 Thread Stephen Caine
Yong, Add to here: export JAVA_OPTS=-d64 -Xms1024m -Xmx1024m -XX:+MaxFDLimit -server - Djava.awt.headless=false Thank you. Stephen - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL

How to get Tomcat to pick up Oracle database connections after database shutdown?

2008-04-03 Thread steve kerver
Hi- I'm an Oracle DBA, but since I work in a small company, I've been tasked with restarting our Tomcat servers everytime I have to shut down or restart our database. (If I shutdown the Oracle database and then don't do a Tomcat restart when the database comes back up, we get HTTP 500 errors).

rolling the console log

2008-04-03 Thread Angelina Talley
Hello! We are running Tomcat 5.0 in a production environment (so upgrading isn't an option) and have encountered an issue where our console log is getting to be quite large (on the order of gigabytes). Is there any way via Tomcat configuration to set this log up to roll daily? Ideally of course

Re: rolling the console log

2008-04-03 Thread Vamsavardhana Reddy
May be you can pipe it to rotatelogs? See [1]. [1] http://httpd.apache.org/docs/2.0/programs/rotatelogs.html ++Vamsi On Fri, Apr 4, 2008 at 2:57 AM, Angelina Talley [EMAIL PROTECTED] wrote: Hello! We are running Tomcat 5.0 in a production environment (so upgrading isn't an option) and have

Re: rolling the console log

2008-04-03 Thread Mark Thomas
Angelina Talley wrote: Hello! We are running Tomcat 5.0 in a production environment (so upgrading isn't an option) and have encountered an issue where our console log is getting to be quite large (on the order of gigabytes). Is there any way via Tomcat configuration to set this log up to roll

Re: How to get Tomcat to pick up Oracle database connections after database shutdown?

2008-04-03 Thread David Fisher
I think you are correct. We manage our Oracle connections ourselves using classes12 and a ConnectionPool. I have no need to restart tomcat after an Oracle bounce. I do restart my Tomcats much more often than Oracle - every day. It has been almost a year since we restarted Oracle. It could

Re: rolling the console log

2008-04-03 Thread Angelina Talley
Sadly, we're not running Apache. Just Tomcat standalone. On Fri, Apr 4, 2008 at 4:33 AM, Vamsavardhana Reddy [EMAIL PROTECTED] wrote: May be you can pipe it to rotatelogs? See [1]. [1] http://httpd.apache.org/docs/2.0/programs/rotatelogs.html ++Vamsi On Fri, Apr 4, 2008 at 2:57 AM,

Re: rolling the console log

2008-04-03 Thread Angelina Talley
Ideally, it would be. But, I neglected to mention we're running on Windows Server. That's the other reason I am looking for a configuration option. Thanks! On Fri, Apr 4, 2008 at 4:34 AM, Mark Thomas [EMAIL PROTECTED] wrote: Angelina Talley wrote: Hello! We are running Tomcat 5.0 in a

How can applications be isolated in Tomcat?

2008-04-03 Thread Pablo Lopez
Hi, I'm currently putting together a solution for an off-the-shelf document management application that requires Tomcat to run a form design component. I'd like to have a single Tomcat server supporting the production and five non-production environments but isolate these instances. I’m hoping

Re: Problem serializing JDK dynamic proxies

2008-04-03 Thread nlif
Christopher Schultz-2 wrote: This doesn't look like the proxy is failing; it looks like the TestBean class is not available to the receiving Tomcat instance. This happens on the /other/ Tomcat, right (i.e. not the one where the object was put into the session)? Are you sure you put