Re: Enabling CGI in Tomcat 6 affect all webapps.

2009-02-23 Thread Mark Thomas
denis.r wrote: > > > Mark Thomas-18 wrote: >> denis.r wrote: Hi, I followed the instructions on how to enable CGIs in Tomcat 6 found at: http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html . This works fine for my webapp that has a CGI, but unfortunately it affects ALL

Re: JDBCRealm authentication

2009-02-23 Thread Alexander Soudakov
Thanks, Troy, It works indeed, but I understand why it is better to have two separate tables. Just needed to do it fast... Thanks again, Alex On Feb 24, 2009, at 12:44 AM, Troy Davis wrote: Hi Alex, In most circumstances I would recommend otherwise, I've been surprised by several apps I

Re: Enabling CGI in Tomcat 6 affect all webapps.

2009-02-23 Thread denis.r
Mark Thomas-18 wrote: > > denis.r wrote: >>> Hi, >>> I followed the instructions on how to enable CGIs in Tomcat 6 found at: >>> http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html . This works fine >>> for >>> my webapp that has a CGI, but unfortunately it affects ALL my webapps >>> within

Re: JDBCRealm authentication

2009-02-23 Thread Troy Davis
Hi Alex, In most circumstances I would recommend otherwise, I've been surprised by several apps I've written where users develop a need to belong to multiple groups. But I've done the same thing for unusual circumstances, just give the same table name for the realm's config values. HTH,

JDBCRealm authentication

2009-02-23 Thread Alexander Soudakov
Hi everybody, I have a question about JDBCRealm authentication in Tomcat 5.5. I'm trying to use mysql database for authentication and I was wondering if it is possible to use just one single table with usernames, passwords and role names instead of two with usernames, passwords and with u

Re: very slow class loading on initial JSP/servlet request after restart

2009-02-23 Thread Sam Hokin
Christopher Schultz wrote: Sam, On 2/20/2009 6:44 PM, Sam Hokin wrote: Thanks, Chris. I ran e2fsck with the -c option, which runs badblocks, when I tested it earlier. And I just ran badblocks again - 0 bad blocks found. Did you run badblocks on the array, or on an individual disk? I would

Re: Tomcat 5.5 services hangs during "net stop"

2009-02-23 Thread Anurag Kapur
Another easy to use utility to take thread dumps can be found here: http://www.adaptj.com/main/downloadYou can use the free to use utility present on the link above to gather the required thread dumps. Else as Chuck mentioned use jps (to obtain process ID) and jstack (to trigger a thread dump on t

RE: Tomcat 5.5 services hangs during "net stop"

2009-02-23 Thread Caldarale, Charles R
> From: Ramamoorthy, Saku [mailto:saku.ramamoor...@oliverwyman.com] > Subject: RE: Tomcat 5.5 services hangs during "net stop" > > I found the below lines in the Catalina log Nothing of any real interest there. > how do I get the thread dump? GIYF. The jstack tool is often the easiest way on Wi

RE: Authenticating Users

2009-02-23 Thread Propes, Barry L
This is what I did for our JDBC realmforced uppercase with javascript on the alphan-numeric user id. Then the password was whatever they made it, even though it was case sensitive. Trying to figure out what the good of making passwords case-insensitive would be. Purpose-defeating at best it

Request for 'Scriptresource.axd' results in download of 'Scriptresource.txt'

2009-02-23 Thread Mark Kimmerly
I have written a servlet request filter that inspects the URI of incoming requests and redirects them to an IIS server if appropriate (such as when a .aspx resource is requested). To summarize, the filter constructs an HttpURLConnection to the IIS server, transfers the GET or POST data from the or

RE: Tomcat 5.5 services hangs during "net stop"

2009-02-23 Thread Ramamoorthy, Saku
Chuck, I found the below lines in the Catalina log, how do I get the thread dump? Feb 21, 2009 8:30:00 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote HTTP/1.1 on http-80 Feb 21, 2009 8:30:00 PM org.apache.coyote.http11.Http11BaseProtocol pause INFO: Pausing Coyote H

RE: Tomcat 5.5 services hangs during "net stop"

2009-02-23 Thread Caldarale, Charles R
> From: Ramamoorthy, Saku [mailto:saku.ramamoor...@oliverwyman.com] > Subject: Tomcat 5.5 services hangs during "net stop" > > We have to kill the Tomcat process manually to restart > the service. There are no errors in the Tomcat logs. What does a thread dump show? The usual cause is a webapp th

RE: How to prevent application from deploying to ROOT

2009-02-23 Thread Caldarale, Charles R
> From: pbwebguy [mailto:pbweb...@yahoo.com] > Subject: How to prevent application from deploying to ROOT > > The latest is that our application when I start > Tomcat is deploying to STAD even though I have > not configured anything to deploy as ROOT. That's not a description of a problem. > I am

RE: Tomcat 5.5 and Windows Vista x64

2009-02-23 Thread Caldarale, Charles R
> From: "Christian Döbel" [mailto:christian.doe...@gmx.de] > Subject: Tomcat 5.5 and Windows Vista x64 > > Firstly I downloaded and installed Java JDK 1.5.0 > and JRE 1.4.2. Throw away the JRE 1.4.2; that will just confuse things. Use the 1.5 (or better yet, 1.6) JDK and/or JRE. Did you get the

How to prevent application from deploying to ROOT

2009-02-23 Thread pbwebguy
I have Tomcat 5.5.27 running on Windows and have been having some really strange problems cropping up. The latest is that our application when I start Tomcat is deploying to STAD even though I have not configured anything to deploy as ROOT. I am perplexed as to where to look. This configuration

Tomcat 5.5 and Windows Vista x64

2009-02-23 Thread Christian Döbel
Hello together, I'm trying to use Tomcat 5.5 together with Windows Vista x64. Firstly I downloaded and installed Java JDK 1.5.0 and JRE 1.4.2. After doing that I got Apache Tomcat 5.5 from the server and installed this as well. Tomcat Monitor is starting but localhost:8080 was not found (in ser

Tomcat 5.5 services hangs during "net stop"

2009-02-23 Thread Ramamoorthy, Saku
Hello, We have a nightly job that stops/starts our application for backup purposes. The job runs fine most of the time. Sometimes Tomcat service hangs during net stop "Apache Tomcat" command. We have to kill the Tomcat process manually to restart the service. There are no errors in the Tomca

Re: Fwd: J2EE on Mac

2009-02-23 Thread Alan Chaney
Mighty Tornado wrote: Hi, I installed Tomcat on my mac OS X and it's running. I also have Eclipse Europa. Now I don't think I have J2EE installed - How do I do it? I went to Sun's website and it gave me an archive with GlassFish which I don't need. Can somebody please tell me where I can downloa

Re: J2EE on Mac

2009-02-23 Thread Alan Chaney
Caldarale, Charles R wrote: That was already specified: the OP wants to compile servlets; nothing beyond a JDK is needed. - Chuck Everything said about J2EE, classpaths etc is perfectly correct. However, the other thing the OP said was that they want to use Eclipse on a Mac. To build we

RE: J2EE on Mac

2009-02-23 Thread Caldarale, Charles R
> From: NBW [mailto:email...@gmail.com] > Subject: Re: J2EE on Mac > > The statement "installing JEE usually causes problems" > implies JEE is something apart from Tomcat that doesn't > play well with it. There's no such implication; unfortunately, new users of any J2EE pieces have this annoying

Re: J2EE on Mac

2009-02-23 Thread NBW
A system wide CLASSPATH is a bad idea to begin with. Keep you classpath scoped to you application/application server and you will never have this issue. On Mon, Feb 23, 2009 at 9:52 AM, Martin Gainty wrote: > > as chuck mentioned you have 2 different environments that deploy web > archives > If

Re: J2EE on Mac

2009-02-23 Thread NBW
Tomcat is not J2EE, and Glassfish is not J2EE. J2EE is a set of specs. Tomcat contains implementations of some of them. Glassfish happens to bundle implementation of all of them. Tomcat provides a piece of the EE stack, installing the Glassfish application server bundle will you get one implementat

RE: J2EE on Mac

2009-02-23 Thread Martin Gainty
as chuck mentioned you have 2 different environments that deploy web archives If you absolutely positively need GF (which I do) then keep it on a separate drive and do NOT place common servlet*.jar on system classpath you want to avoid GF and TC contending for the same resource(servlet<-api>.jar

RE: Enabling CGI in Tomcat 6 affect all webapps.

2009-02-23 Thread Caldarale, Charles R
> From: denis.r [mailto:denis.rac...@hp.com] > Subject: Enabling CGI in Tomcat 6 affect all webapps. > > This works fine for my webapp that has a CGI, but > unfortunately it affects ALL my webapps Instead of uncommenting the CGIServlet area in conf/web.xml, copy the and entries for cgi to the d

RE: J2EE on Mac

2009-02-23 Thread Caldarale, Charles R
> From: Mighty Tornado [mailto:mighty.torn...@gmail.com] > Subject: Fwd: J2EE on Mac > > Can somebody please tell me where I can download the latest > J2EE for Mac? You do not need or want J2EE in order to compile servlets (and JSPs); the regular JDK is enough. Since you state Tomcat is already

Re: Cannot find workers

2009-02-23 Thread Wesley Schwengle
On 20.02.09 14:25 Christopher Schultz wrote: The only thing I moved from mod_jk config to the vhost config is the following: " Obviously, something else changed, too. Yes, I've made some changes in a script and guess the change was buggy ;) I found out when wanted to post both old and new si

Re: Enabling CGI in Tomcat 6 affect all webapps.

2009-02-23 Thread Mark Thomas
denis.r wrote: > Hi, > > I followed the instructions on how to enable CGIs in Tomcat 6 found at: > http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html . This works fine for > my webapp that has a CGI, but unfortunately it affects ALL my webapps within > the container. Even those that don't have

Enabling CGI in Tomcat 6 affect all webapps.

2009-02-23 Thread denis.r
Hi, I followed the instructions on how to enable CGIs in Tomcat 6 found at: http://tomcat.apache.org/tomcat-6.0-doc/cgi-howto.html . This works fine for my webapp that has a CGI, but unfortunately it affects ALL my webapps within the container. Even those that don't have CGIs. The webapps that do

Re: how to make more than one web applications run without context root name on tomcat (Virtual hosting)

2009-02-23 Thread Mark Thomas
sweta bachhety wrote: > I am trying to configure my server(tomcat 5.5.26) in a way that i can access > two applications without mentioning their context name. http://tomcat.apache.org/tomcat-5.5-doc/virtual-hosting-howto.html is the best way to do this. There is too much wrong with your current