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 config. Start again using the
above how to.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 don't have
CGIs now get errors claiming they must set privileged in order to use
CGIServlet, even though they aren't using CGIServlet. Is there any way to
turn this on just for the webapp using CGIs? See error message below:

SEVERE: Error deploying web application directory ROOT
java.lang.SecurityException: Servlet of class
org.apache.catalina.servlets.CGIServlet is privileged and cannot be loaded
by this web application
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1145)
at
org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:992)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4058)
at
org.apache.catalina.core.StandardContext.start(StandardContext.java:4371)
at
org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:791)
at
org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:771)
at
org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)
at
org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:926)
at
org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:889)
at
org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)
...

Denis
-- 
View this message in context: 
http://www.nabble.com/Enabling-CGI-in-Tomcat-6-affect-all-webapps.-tp22161635p22161635.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 CGIs. The webapps that don't have
 CGIs now get errors claiming they must set privileged in order to use
 CGIServlet, even though they aren't using CGIServlet. Is there any way to
 turn this on just for the webapp using CGIs?

Move the CGIServlet definition and mapping from the global web.xml
(CATALINA_BASE/conf/web.xml) to your web application's web.xml.

Mark


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 situation, then I saw the
difference... Corrected it, and works fine. Perhaps this could be posted in a
FAQ or something.

Q: Cannot find workers
A: Check your worker.list directive in your mod_jk.conf file.

And you already proposed it:

Another layer of validation might be to issue a warning that no
worker.list was found.

Would have helped finding the issue earlier.

Cheers,
Wesley

--
Online Broadband BV, http://www.online.nl, http://www.euronet.nl
Wesley Schwengle, System Administrator, IT Operations (Development/Integration)
Muiderstraat 1, PO BOX 10241, 1001 EE Amsterdam, T: +31 20 535, F: +31 20 
5355749

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 running, you must have at least a JRE 
installed already, and most likely a full JDK.  If you can run javac, you're 
ready - nothing more is needed.

Installing the JEE usually causes problems, due to conflicts with libraries 
already supplied by Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 servlet 
and servlet-mapping entries for cgi to the desired webapp's WEB-INF/web.xml 
file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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..
(a tug of war where neither side will win)

Martin 
__ 
Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relates to the official business 
of Sender. This transmission is of a confidential nature and Sender does not 
endorse distribution to any party other than intended recipient. Sender does 
not necessarily endorse content contained within this transmission. 




 Date: Mon, 23 Feb 2009 02:05:59 -0500
 Subject: Fwd: J2EE on Mac
 From: mighty.torn...@gmail.com
 To: users@tomcat.apache.org
 
 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 download the latest J2EE for Mac?
 What I need to do to compile servlets with it in Eclipse?
 
 Thank you.

_
It’s the same Hotmail®. If by “same” you mean up to 70% faster. 
http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Same_022009

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
implementation of the entire stack. The statement installing JEE usually
causes problems implies JEE is something apart from Tomcat that doesn't
play well with it. That's wrong. You can install other J2EE pieces along
side Tomcat just fine and they don't have to be from Glassfish. For example
you can install JMS from ActiveMQ and get your JMS piece of the EE stack
from them.  What you are really trying to say is that installing other
Servlet implementations along side Tomcat's can cause problems. Even that
statement is incorrect. I run Tomcat along side a full Glassfish install
just fine, you just have to point to the libraries you want to use (Tomcat's
or Glassfish's servlet API for example) on a per project basis depending on
where your project is going to be deployed.

The question for the OP is how much of the J2EE stack do you want/need?

On Mon, Feb 23, 2009 at 9:12 AM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

  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 running, you must have at least a JRE
 installed already, and most likely a full JDK.  If you can run javac, you're
 ready - nothing more is needed.

 Installing the JEE usually causes problems, due to conflicts with libraries
 already supplied by Tomcat.

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




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 mgai...@hotmail.com wrote:


 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..
 (a tug of war where neither side will win)

 Martin
 __
 Disclaimer and confidentiality note
 Everything in this e-mail and any attachments relates to the official
 business of Sender. This transmission is of a confidential nature and Sender
 does not endorse distribution to any party other than intended recipient.
 Sender does not necessarily endorse content contained within this
 transmission.




  Date: Mon, 23 Feb 2009 02:05:59 -0500
  Subject: Fwd: J2EE on Mac
  From: mighty.torn...@gmail.com
  To: users@tomcat.apache.org
 
  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 download the latest J2EE for Mac?
  What I need to do to compile servlets with it in Eclipse?
 
  Thank you.

 _
 It's the same Hotmail(R). If by same you mean up to 70% faster.
 http://windowslive.com/online/hotmail?ocid=TXT_TAGLM_WL_HM_AE_Same_022009



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 habit of putting the J2EE jars in inappropriate places, such as 
global CLASSPATH or Tomcat's lib directory - that will cause problems.  The OP 
is obviously inexperienced in the area, and adding the full J2EE libraries (or 
even any J2EE components beyond what Tomcat supplies) to his/her particular mix 
is not necessary to achieve the stated goals.

 The question for the OP is how much of the J2EE stack do you
 want/need?

That was already specified: the OP wants to compile servlets; nothing beyond a 
JDK is needed.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 web applications with eclipse the best thing to do is 
to install the appropriate web development add-ons - we use the Web 
Standard Tools (WST) options.


This is best installed using the software updates option within Eclipse. 
After having done that and configured a local tomcat installation as a 
'Server' within Eclipse you are, as they say, good to go and all you 
need to do is to select a new Dynamic Web Project when creating a new 
project.


Eclipse then takes care of all the library and classpath issues.

There is no need to download or install anything other than a binary 
tomcat, eclipse and then, within that, eclipse WST (or the combined 
package in the first place.)


Let me just add that the above is an abridged summary to try to get the 
OP on the right path, not to start a long flame about the advantages and 
disadvantages of eclipse!


Regards

Alan Chaney




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 download the latest J2EE for Mac?
What I need to do to compile servlets with it in Eclipse?

Thank you.


!DSPAM:49a24c91167621527717022!

  

Dear Mighty,

Re-reading your email again, you say that you installed Europa. AFAIK 
Europa comes with WTP installed. All you need to do is to download a 
tomcat release, configure that as a Server and then create a Dynamic Web 
Project. See the tutorials in the eclipse help. Works for Mac, PC, 
Linux, Solaris.


Regards

Alan Chaney

( a long time eclipse user with a major love-hate relationship with eclipse)

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 Tomcat logs. What could be causing this issue?  

System configuration is,

Microsoft Windows Server 2003 O/S
Tomcat 5.5.27
Java JDK 1.5
  
Thanks for your help,


Saku Ramamoorthy
Oliver Wyman


 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
 



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 server.xml this localhost is 
named). On my x32 system (Windows Vista) everything is running fine. Do you 
know what I have to change? 

After that I tried the x64 versions of tomcat5.exe and tomcat5w.exe. These are 
not running at all. Do you know why? 

Thanks

Christian
-- 
Pt! Schon vom neuen GMX MultiMessenger gehört? Der kann`s mit allen: 
http://www.gmx.net/de/go/multimessenger01

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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
was copied over from our Linux production server and tweaked just the
slightest.  On Linux there is no ROOT directory.

Any thoughts?

John
-- 
View this message in context: 
http://www.nabble.com/How-to-prevent-application-from-deploying-to-ROOT-tp22167554p22167554.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 32- or 64-bit version of the 
JDK?

 After doing that I got Apache Tomcat 5.5 from
 the server

What server is that?  Did you get the .zip or the .exe download?  I'd recommend 
the .zip, since it includes .bat scripts to allow Tomcat to run from a command 
prompt as well as install it as a service.

 After that I tried the x64 versions of tomcat5.exe and
 tomcat5w.exe. These are not running at all. Do you know why?

The bit-ness of the tomcat5*.exe programs must match that of the JVM being 
used.  If you have a 32-bit JRE/JDK, then the existing programs from the Tomcat 
download are appropriate; only download the 64-bit versions from SVN if you are 
running a 64-bit JVM.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 perplexed as to where to look.

The server.xml file and the Tomcat logs are a good place to start.  Post your 
server.xml, since I suspect it contains errors.  (It may well be incorrect on 
the Linux box also.)

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 that fails to properly manage non-daemon threads 
that it creates.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 HTTP/1.1 on http-443
Feb 21, 2009 8:30:01 PM org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
Feb 21, 2009 8:30:01 PM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-80
Feb 21, 2009 8:30:01 PM org.apache.coyote.http11.Http11BaseProtocol
destroy
INFO: Stopping Coyote HTTP/1.1 on http-443
Feb 21, 2009 8:30:01 PM org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
INFO: Failed shutdown of Apache Portable Runtime
 
Thanks,
Saku 

-Original Message-
From: Caldarale, Charles R [mailto:chuck.caldar...@unisys.com] 
Sent: Monday, February 23, 2009 2:28 PM
To: Tomcat Users List
Subject: RE: Tomcat 5.5 services hangs during net stop

 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 that fails to properly manage non-daemon
threads that it creates.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

 
This e-mail and any attachments may be confidential or legally privileged.  If 
you received this message in error or are not the intended recipient, you 
should destroy the e-mail message and any attachments or copies, and you are 
prohibited from retaining, distributing, disclosing or using any information 
contained herein.  Please inform us of the erroneous delivery by return e-mail. 

Thank you for your cooperation.
 


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 original request to the HttpURLConnection, makes the
connection, grabs the response from IIS and writes it to the
HtpServletResponse stream.

 

This redirection works for most content, but for some reason certain
files get delivered to the client with the wrong extension.  In
particular, all .axd files end up on the client as .txt files.  I've
tried setting up a mime-mapping for .axd files (as text/javascript) in
my web.xml, but it didn't solve the problem.

 

Does anyone out there know why the extension gets changed?  Maybe I'm
leaving out header information when I forward the request on to IIS?

 

TIA,

Mark Kimmerly



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

-Original Message-
From: Gregor Schneider [mailto:rc4...@googlemail.com] 
Sent: Sunday, February 22, 2009 3:12 PM
To: Tomcat Users List
Subject: Re: Authenticating Users

To the OP:

1. May I ask what database it is you're using?

2- I'd go for the following solution:

Create a JSP-page accepting the credentials. The username should be converted 
to uppercase. The password should be left as is so that case-sensivity here is 
maintained.

Don't know if I'm missing something, but to me that looks like a walk in the 
park.

Rgds

Gregor
--
just because your paranoid, doesn't mean they're not after you...
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 the proces ID) to obtain thread dumps from command
line.

Cheers
Anurag

--
Anurag Kapur
Associate - Technology,
Sapient Corporation India.

http://www.linkedin.com/in/anuragkapur
--


On Mon, Feb 23, 2009 at 8:04 PM, Caldarale, Charles R 
chuck.caldar...@unisys.com wrote:

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

  - Chuck


 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you received
 this in error, please contact the sender and delete the e-mail and its
 attachments from all computers.

 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org




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 expect the disk-level check to be more useful.


On the array.  I'm not even sure I can get at a single disk from the OS with this hardware RAID configuration.  The OS 
had no idea that it's a RAID array as far as I know.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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  
usernames, role names, as it is explained in the documentation. So, in  
the server.xml, in the JDBCRealm definition, I would use the same name  
for userTable and userRoleTable.


Thanks,
Alex

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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



On Feb 23, 2009, at 9:50 PM, Alexander Soudakov so...@chem.psu.edu  
wrote:



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 usernames, role names, as it is explained in the  
documentation. So, in the server.xml, in the JDBCRealm definition, I  
would use the same name for userTable and userRoleTable.


Thanks,
Alex

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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
 the container. Even those that don't have CGIs. The webapps that don't
 have
 CGIs now get errors claiming they must set privileged in order to use
 CGIServlet, even though they aren't using CGIServlet. Is there any way
 to
 turn this on just for the webapp using CGIs?
 
 Move the CGIServlet definition and mapping from the global web.xml
 (CATALINA_BASE/conf/web.xml) to your web application's web.xml.
 
 Mark
 
 Moving the config to the application's web.xml did the trick. Thank you.
 It would be great if the documentation suggested this instead of modifying
 the global config. In fact it should be the standard way to do it. Now
 that you suggested it, it makes perfect sense. I only want this enabled
 for web apps that have CGIs defined, not the entire container.
 
 Denis
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Enabling-CGI-in-Tomcat-6-affect-all-webapps.-tp22161635p22176403.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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'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,
Troy



On Feb 23, 2009, at 9:50 PM, Alexander Soudakov so...@chem.psu.edu  
wrote:



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 usernames, role names, as it is explained in the  
documentation. So, in the server.xml, in the JDBCRealm definition,  
I would use the same name for userTable and userRoleTable.


Thanks,
Alex

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



==
Alexander Soudackov
Research Assistant Professor
Department of Chemistry
Pennsylvania State University
104 Chemistry Bldg
University Park, PA 16802
--
Phone:  (814) 865-1354
Fax:(814) 863-5319
E-mail: so...@chem.psu.edu
http://www.personal.psu.edu/avs10
==




-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



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 my webapps
 within
 the container. Even those that don't have CGIs. The webapps that don't
 have
 CGIs now get errors claiming they must set privileged in order to use
 CGIServlet, even though they aren't using CGIServlet. Is there any way
 to
 turn this on just for the webapp using CGIs?
 Move the CGIServlet definition and mapping from the global web.xml
 (CATALINA_BASE/conf/web.xml) to your web application's web.xml.
 Mark
 Moving the config to the application's web.xml did the trick. Thank you.
 It would be great if the documentation suggested this instead of modifying
 the global config. In fact it should be the standard way to do it.

Good to hear this is working for you.

Patches, including for the documentation, are always welcome ;)

Mark

 Now
 that you suggested it, it makes perfect sense. I only want this enabled
 for web apps that have CGIs defined, not the entire container.

 Denis


 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org



 



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org