Problem with realm not displaying login form

2007-06-08 Thread Troy Davis
Hello, I'm having a problem with a realm setup that used to work under a previous version of Tomcat (5.5.9), but isn't now that I'm using 5.5.23. For some reason it's not redirecting users to the login form upon first access of a protected URL setup in /WEB-INF/web.xml. Instead they get

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Zdeněk Vráblík
Hi Will, what java JDK do you have installed? It looks you don't have installed SUN JDK 5 or higher. Regards, Zdenek On 6/8/07, Will Parkinson [EMAIL PROTECTED] wrote: Hi Rene, Thanks for the help, i removed the line i tried the -Xmx=128m alteration to the JAVA_OPTS line and nothing

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Will Parkinson
Hi Zdenek I have JDK 6.0 installed (from this url http://java.sun.com/javase/downloads/index.jsp) Cheers Will On 6/8/07, Zdeněk Vráblík [EMAIL PROTECTED] wrote: Hi Will, what java JDK do you have installed? It looks you don't have installed SUN JDK 5 or higher. Regards, Zdenek On

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Kristian Rink
Will; [Will Parkinson [EMAIL PROTECTED] @ Fri, 8 Jun 2007 16:35:45 +1000] Hi Zdenek I have JDK 6.0 installed (from this url http://java.sun.com/javase/downloads/index.jsp) Ubuntu comes preinstalled with GNU classpath and friends so no matter whether or not you install an additional JDK,

Embed license to tomcat

2007-06-08 Thread Li
Hi guys, Our company is going to deploy a system externally. In order to prevent illegal deployment by our customer to other tomcat in case. My boss asked me to embed our license ID into the tomcat by building our own tomcat. I had done several work such as creating a manager for our customized

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Hakan Koseoglu
Will Parkinson said the following on 06/08/2007 05:14 AM: Hi All, I am having a few problems with tomcat 5.5 on ubuntu feisty Your system is set to use GNU Java. Youse the update-alternatives command to change the Java version to the Sun JREs. Cheers, Hakan

Re: Programmatically Determine JVM Version used by Tomcat

2007-06-08 Thread Johnny Kewl
I copied this from the wildcat source at http://coolese.100free.com/ sInfo += OS Name: + System.getProperty(os.name) + \n; sInfo += OS Version: + System.getProperty(os.version) + \n; sInfo += Architecture: + System.getProperty(os.arch) + \n;

Re: NIOSelector busy wait

2007-06-08 Thread Sebastiaan van Erk
Hi, I found out why I was so consistently able to reproduce the NIO busy wait bug: I was closing the http socket on the client side with a SO_LINGER value of 0, causing a RST packet to be received by Tomcat while the SelectionKey was still registered with interestOps of 0. Commenting out

mime type problem and aliasing as well

2007-06-08 Thread Arian Abrahantes
Hi All: I am new to the list and to web administration as well. I used tomcat 4.1 connected via proxy to apache 2.2. I deployed opencms into tomcat. Everything works fine but I am having a problem with special mime types in my site I have some extensions quite peculiar, for instance

Re: Embed license to tomcat

2007-06-08 Thread Leon Rosenberg
it sounds rather sick :-) I mean, if you secure and deploy your customized tomcat version, how does it prevent the pirate from simply putting your webapp in a vanilla tomcat? regards Leon On 6/8/07, Li [EMAIL PROTECTED] wrote: Hi guys, Our company is going to deploy a system externally. In

Re: Embed license to tomcat

2007-06-08 Thread Mikolaj Rydzewski
Li wrote: Our company is going to deploy a system externally. In order to prevent illegal deployment by our customer to other tomcat in case. My boss asked me to embed our license ID into the tomcat by building our own tomcat. I had done several work such as creating a manager for our

Re: Embed license to tomcat

2007-06-08 Thread Filip Hanik - Dev Lists
I would consider your license and mac id work to be a waste of time. If they want to crack your software, they will. Instead just attach your company's software license to it. Instead spend the time building the application so good that they will want to buy it from you, and buy support for it

Re: mime type problem and aliasing as well

2007-06-08 Thread Arian Abrahantes
Hi all: mime problem solved had to change more deeper in the config, down to opencms. So now alias question is what's missing. cheers and TIA, arian Arian Abrahantes wrote: Hi All: I am new to the list and to web administration as well. I used tomcat 4.1 connected via proxy to apache

Re: Embed license to tomcat

2007-06-08 Thread Kristian Rink
[Li [EMAIL PROTECTED] @ Fri, 8 Jun 2007 15:29:45 +0800] Our company is going to deploy a system externally. In order to prevent illegal deployment by our customer to other tomcat in case. Why do you want to keep people from deploying your application to another tomcat installation? Do you

Re: mime type problem and aliasing as well

2007-06-08 Thread David Smith
Best suggestion I can offer is to have a configurable filter in the ROOT webapp that looks at the request and does a client side redirect to the proper target. The client side redirect will correct the url in the browser for all future reference. --David Arian Abrahantes wrote: Hi all:

Re: webappclassloader won't get garbage colelcte, need suggestions (out of memory)

2007-06-08 Thread David Delbecq
Hi, thanks for suggestions. All threads are terminated properly. I got confused in profiler because another webapplicaiton, still running, created similary named Thread. So i thought terminated Thread were still attached to ThreadGroup, maybe it's not the case. Am still trying to figure why some

RE: mime type problem and aliasing as well

2007-06-08 Thread Arian Abrahantes Quintana
Hi David thanks very much. I googled for a while and I think I am going to use URLrewrite. antry I think it fits my needs, cheers, arian From: David Smith [mailto:[EMAIL PROTECTED] Sent: Fri 6/8/2007 1:05 PM To: Tomcat Users List Subject: Re: mime type

Re: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-08 Thread Mark H. Wood
On Thu, Jun 07, 2007 at 11:19:06AM -0600, Larry Meadors wrote: [Consolidating 69 different copies of libraries from '.war's into ${CATALINA_HOME}/common/lib] It's one of those ideas that looks good on paper, but sucks in practice. Okay, I'll ask: why? -- Mark

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Matthew Whittaker-Williams
On Friday 08 June 2007 15:16, Leonel wrote: On 6/7/07, Will Parkinson [EMAIL PROTECTED] wrote: Hi All, I am having a few problems with tomcat 5.5 on ubuntu feisty When i start the tomcat service, its outputs that its started ok, but when i view the status (/etc/init.d/tomcat5.5

RE: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-08 Thread Peter Crowther
From: Mark H. Wood On Thu, Jun 07, 2007 at 11:19:06AM -0600, Larry Meadors wrote: [Consolidating 69 different copies of libraries from '.war's into ${CATALINA_HOME}/common/lib] It's one of those ideas that looks good on paper, but sucks in practice. Okay,

Tomcat 6 clustering question

2007-06-08 Thread Prabhu
We have enabled tomcat 6 clustering with two machines. After doing that we noticed two things. 1. Tomcat is taking atleast 5 minutes to start. There are only 5 webapps in total. 2. useDirtyFlag=false in Cluster tag, doesn't seem to work. I am posting our cluster entry here. Cluster

Re: Tomcat5.5 Ubuntu startup error

2007-06-08 Thread Leonel
On 6/7/07, Will Parkinson [EMAIL PROTECTED] wrote: Hi All, I am having a few problems with tomcat 5.5 on ubuntu feisty When i start the tomcat service, its outputs that its started ok, but when i view the status (/etc/init.d/tomcat5.5 status) it says the service is not running. This is in the

Re: Programmatically Determine JVM Version used by Tomcat

2007-06-08 Thread Mark H. Wood
If you fetch 'java.runtime.version' in freestanding code then you'll get the version of the current default JRE, which might not be what Tomcat is using. But if you fetch it in a servlet, then you should get the version of the JRE that's running Tomcat, no? ?xml version=1.0 encoding=US-ASCII ?

Re: Tomcat 6 clustering question

2007-06-08 Thread Filip Hanik - Dev Lists
change channelSendOptions=6 to channelSendOptions=0 and see how that works for you Filip Prabhu wrote: We have enabled tomcat 6 clustering with two machines. After doing that we noticed two things. 1. Tomcat is taking atleast 5 minutes to start. There are only 5 webapps in total. 2.

Re: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Rhodebump, rhodebump wrote: I have 5 war files, each containing the springframework, hibernate jars, tapestry jars, lots of jars so that each war file is 30 megs. How much space do you save if you move that stuff out of your WAR file? Just

RE: Invalid Content-Length error for the size greater than

2007-06-08 Thread Caldarale, Charles R
From: Daniel Dang [mailto:[EMAIL PROTECTED] Subject: Invalid Content-Length error for the size greater than But when I tried to send 3GB binary data I got the following error below: Since Bill B already answered your question the first time you sent it, why did you send it again? -

Re: Programmatically Determine JVM Version used by Tomcat

2007-06-08 Thread Mark H. Wood
Well, that was silly. The Tomcat HTML Manager already provides the JRE version at the bottom of the page, if you wanted to manually check it. To check by script, you could use the plain Manager: [EMAIL PROTECTED] ~ $ wget --quiet -O - --user USER --password PASSWORD

Invalid Content-Length error for the size greater than

2007-06-08 Thread Daniel Dang
Hi All I am using Apache-tomcat-5.5.16 version (ajp connector). Every time when I send 2.1GB binary data the apache-tomcat-5.5.16 is working fine. But when I tried to send 3GB binary data I got the following error below: I am looking for a solution to send more than 3GB data to apache-tomcat

Re: Invalid Content-Length error for the size greater than

2007-06-08 Thread Filip Hanik - Dev Lists
the servlet specification defines Content-Length as an int. even though in some places tomcat has it as a long, you are still running into this limitation so the problem is in the spec, and needs to be corrected there Filip Daniel Dang wrote: Hi All I am using Apache-tomcat-5.5.16 version

Re: 30 Mb of common jars in each of 5 war files, should i consolidate?

2007-06-08 Thread Rashmi Rubdi
On 6/7/07, rhodebump [EMAIL PROTECTED] wrote: I have 5 war files, each containing the springframework, hibernate jars, tapestry jars, lots of jars so that each war file is 30 megs. I wonder, from a performance/memory perspective would it be better to move these common library jars into the

Re: Embed license to tomcat

2007-06-08 Thread David Tonhofer
Mikolaj Rydzewski wrote: Li wrote: Our company is going to deploy a system externally. In order to prevent illegal deployment by our customer to other tomcat in case. My boss asked me to embed our license ID into the tomcat by building our own tomcat. I had done several work such as creating

Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Mark Claassen
Has anyone tried to get the jasper compiler to be something other than the JDT? I tried several things, each of them not working. The docs say an alternative compiler can be specified, but makes no mention of how to specify it. This seems to be controlled by settings in the web.xml. Below is

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Caldarale, Charles R
From: Mark Claassen [mailto:[EMAIL PROTECTED] Subject: Using Javac instead of JDT to compile JSPs The docs say an alternative compiler can be specified, but makes no mention of how to specify it. Actually, the docs say this: The servlet which implements Jasper is configured using init

RE: Processing of multipart/form-data request failed. Stream ended unexpectedly

2007-06-08 Thread Propes, Barry L
I wonder if you had to tweak the in-memory document cache? Although I wouldn't think that would do it. I wonder if when you added the filter if it added an option to adjust the size of uploads? I haven't added that ISAPI director myself. Fortunately haven't needed to. -Original

Re: Problem with realm not displaying login form

2007-06-08 Thread Troy Davis
A follow-up on this issue: Downgrading to Tomcat 5.5.12 resolved the problem. What changes between .12 and .23 could cause this? Thank You, Troy - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail:

Tomcat 6 classloader leak in Commons Pool

2007-06-08 Thread Diego Rodríguez Martín
Hi, I have a webapp that is running ok under tomcat 5.5. I have upgrade to Tomcat 6 and I have found a big memory leak because WebAppClassLoader gets never garbage collected. I have used a profiler and have found that the object that is stopping the garbage collector could be

IIS and Tomcat 5.5

2007-06-08 Thread Michael Angelo
I have followed the instructions on the Apache web site verbatim and I still cannot get IIS and Tomcat 5.5 to work together. I have set up the jsp-examples like the instructions say. The isapi.log file shows the filter matching on *.jsp and it determines it should be redirected to ‘jakarta’. I get

Tomcat 5.5 manager question.

2007-06-08 Thread William C. Mount
Hello All, I'm in the process of setting up an environment and need a little help. Here's the story. 2 webserver boxes in network A. 2 app server boxes in network B. Firewall between them. I have apache running on the webserver boxes using mod_jk to talk ajp to the app servers. all

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Caldarale, Charles R
From: Mark Claassen [mailto:[EMAIL PROTECTED] Subject: RE: Using Javac instead of JDT to compile JSPs param-valuecom.sun.tools.javac.main.JavaCompiler/param-value That appears to be the wrong class. Try just com.sun.tools.javac.Main instead (note capitalization). One of my servlets

Re: Embed license to tomcat

2007-06-08 Thread David kerber
Mark H. Wood wrote: As others have noted, this may be doable but it's the wrong approach. You are trying to solve a legal problem with information technology. It is very rare for such an approach to accomplish much, other than to irritate customers who are behaving properly. MAC address is a

Re: Embed license to tomcat

2007-06-08 Thread Mark H. Wood
As others have noted, this may be doable but it's the wrong approach. You are trying to solve a legal problem with information technology. It is very rare for such an approach to accomplish much, other than to irritate customers who are behaving properly. MAC address is a particularly poor

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Mark Claassen
Thanks for your help, and I didn't mean to raise anyone's ire. I did read the docs, but started to loose confidence when it was not working. The part of the documentation that is missing is the specification of the param-value. Is this param-value supposed to be a java class, an executable,

Re: Tomcat 6 classloader leak in Commons Pool

2007-06-08 Thread Rémy Maucherat
On 6/8/07, Diego Rodríguez Martín [EMAIL PROTECTED] wrote: It affects version 1.3 of commons pool. In tomcat 6, commons pool is embbeded in /tomcat-dbcp.jar/, and the docs don't say with version of commons is inside. It's that version. A new commons-pool version will be integrated when it's

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Caldarale, Charles R
From: Mark Claassen [mailto:[EMAIL PROTECTED] Subject: RE: Using Javac instead of JDT to compile JSPs Even with this fix, neither of the values below worked. param-valuecom.sun.tools.javac.main.Main/param-value Again, that's not the right class; from the previous message: Try

Re: IIS and Tomcat 5.5

2007-06-08 Thread Daniel Dang
Hi Mike, The attachment is an instruction that work well for me If you can follow them...! --Daniel On Fri, 2007-06-08 at 14:25 -0400, Michael Angelo wrote: I have followed the instructions on the Apache web site verbatim and I still cannot get IIS and Tomcat 5.5 to work together. I have

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Mark Claassen
I noted the capitalization before, but not the missing part of the package. Here it is now. init-param param-namecompiler/param-name param-valuecom.sun.tools.javac.Main/param-value /init-param It still doesn't work. I removed the jasper-jdt.jar again as

Re: Embed license to tomcat

2007-06-08 Thread Kristian Rink
David kerber schrieb: ... hardware failures won't cause problems. If they move to a completely new machine, but you politely post a nag screen that says something to the effect New hardware detected; please contact Mycompany within 30 days for a new license, then that's not likely to offend

A question about Tomcat 6.0.13

2007-06-08 Thread Pedro Barragan
Hi everyone, I wonder if you could tell me Where I´ll be able to find the Tomcat Web Server Administration Tool for Tomcat 6.X, because I was looking for it through the whole Tomcat site, for a lot of websites, and I wasn´t able to find it anywhere; I hope you could inform me about this toll.

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Caldarale, Charles R
From: Mark Claassen [mailto:[EMAIL PROTECTED] Subject: RE: Using Javac instead of JDT to compile JSPs param-namecompiler/param-name Looking at the code in org.apache.jasper.EmbeddedServletOptions, it appears the parameter name should be compilerClassName rather than compiler. If

Re: Embed license to tomcat

2007-06-08 Thread David kerber
Kristian Rink wrote: David kerber schrieb: ... hardware failures won't cause problems. If they move to a completely new machine, but you politely post a nag screen that says something to the effect New hardware detected; please contact Mycompany within 30 days for a new license, then that's

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Mark Claassen
When using Main. This is in the localhost.log -- SEVERE: Servlet.service() for servlet jsp threw exception java.lang.ClassCastException: com.sun.tools.javac.Main at org.apache.jasper.JspCompilationContext.createCompiler(JspCompilationContext

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Caldarale, Charles R
From: Mark Claassen [mailto:[EMAIL PROTECTED] Subject: RE: Using Javac instead of JDT to compile JSPs Looking at the source, the Compiler needs to be a: org.apache.jasper.compiler.Compiler, which, clearly, javac is not. I'm guessing this comment in the code is propbably pertinent: *

Re: A question about Tomcat 6.0.13

2007-06-08 Thread GHOSTRIDER
Tomcat Admin Tool? The only one that I am aware of is built into the server, you should be able to access it on the machine Tomcat is running on at: http://localhost:8080/manager/html Thats as much admin. as you can get for Tomcat... as far as I know... without installing a 3rd party app. of

8443 on the URL (tommcat-connector)

2007-06-08 Thread Farid Hamjavar
Red Hat 4 Tomcat 5.5.23 Apache 2.0.52 Hello, I have Apache+Tomcat up and this works: https://hostname.unm.edu:8443 (Tomcat welcome page) I use mod_jk2 and workers2.properties to connect Apache and Tomcat And this works too: https://hostname.unm.edu:8443/appname (app's welcome login page)

Re: Erratic HTTP response behavior

2007-06-08 Thread Matt Cosentino
I tried looking through the archive and just couldn't find any help. The problem has recently reproduced itself on a new Tomcat 5.5.23 install on one of my co-worker's machine, so it's not my PC. I've also experienced it more often with random images or other resources not loading, and when I

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Lakshmi Venkataraman
I have been successfully using something other than Jasper in my development enviroment. This is what I did: 1) Remove jasper-compiler-jdt.jar from CATALINA_HOME/common/lib 2) Add JDK_HOME/lib/tools.jar in CATALINA_HOME/common/lib 3) Add ant.jar also to CATALINA_HOME/common/lib. The ant.jat that

RE: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Lakshmi Venkataraman
CORRECTION: In step 5, I mean servlet-mapping and NOT servlet-name. -Original Message- From: Lakshmi Venkataraman [mailto:[EMAIL PROTECTED] Sent: Friday, June 08, 2007 4:41 PM To: Tomcat Users List Subject: RE: Using Javac instead of JDT to compile JSPs I have been successfully using

Re: A question about Tomcat 6.0.13

2007-06-08 Thread Mark Thomas
Pedro Barragan wrote: Hi everyone, I wonder if you could tell me Where I´ll be able to find the Tomcat Web Server Administration Tool for Tomcat 6.X, because I was looking for it through the whole Tomcat site, for a lot of websites, and I wasn´t able to find it anywhere; I hope you could

Re: Using Javac instead of JDT to compile JSPs

2007-06-08 Thread Mark Thomas
Caldarale, Charles R wrote: [Note for Mark T:] If you're running on Windows, there's a bug in the Tomcat 6.0.13 setclasspath.bat script which checks for tools.jar in the wrong place. You'll need to include the tools.jar location explicitly in your CLASSPATH environment variable. (The problem

Re: Embed license to tomcat

2007-06-08 Thread Li
Hi thanks all you guys' comments. I agree with Filip's words that we should spend more time on doing statis secure analysis, codes refine and bug fixing instead of building a castle. Thanks Kristian but unfortunately it is not that possible to persuade my boss accept your suggestion. Thanks