RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
Hi, Could you verify that you have declared your admin role in the web.xml file. security-role role-nameadmin/role-name /security-role -Message d'origine- De : Luke [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 février 2005 07:33 À : Tomcat Users List Objet : Security Newbie

Tale of two servers

2005-02-10 Thread Dola Woolfe
Hi, I'm running TC5.5 on two different servers in the same office. Both run XP Pro SP2. Both servers are programmatically queried by users and are bombarded with thousands of requests. One of the servers responds much more quickly than the other. In fact, one of them causes timeouts. The

Re: Running heavily loaded tomcat sites.

2005-02-10 Thread Thomas Chille
For me it refuses to open under IE6 but FF works perfectly fine - no passwords required. closing the title-tag in html-source make it readable on ie6 too ... lg t - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: WELCOME to tomcat-user@jakarta.apache.org

2005-02-10 Thread Harry Mantheakis
Complete guess here, but you might want to check permission settings for the Tomcat home (installation) directory - and also see that you've got a Tomcat user account set up, etc. I have a no-login 'tomcat' user, and permissions for the Tomcat home directory (and all its contents) is assigned to

Re: stop context properly

2005-02-10 Thread Lionel Farbos
No response, so nobody knows how to ?... Perhaps this feature doesn't exist in TC4.1?... Is this feature (stop context without interrupt running threads) available in TC5.0 or TC5.5 ? On Wed, 9 Feb 2005 19:36:50 +0100 Lionel Farbos [EMAIL PROTECTED] wrote: Hi all, I work with Tomcat

Re: Running heavily loaded tomcat sites.

2005-02-10 Thread Harry Mantheakis
The 'LD_ASSUME_KERNEL' setting was needed with Red Hat 9. I'm on FC3 now and it seems to be working fine *without* having to specify LD_ASSUME_KERNEL. Actually, I could swear (though I have no metrics) that FC3 is running my Java stuff much faster than RH9 did with a forced LD_ASSUME_KERNEL

Re: Security Newbie - Need Help

2005-02-10 Thread Luke
Hi; Here is the roles table: mysql select * from roles; +---+ | role_name | +---+ | admin | +---+ 1 row in set (0.02 sec) I noticed I did have a mistake in the realm declaration in my server.xml. I had the wrong user table name. That is fixed this but still have the

Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
I cannot run apache with mod_jk on Windows XP Pro + SP1. I have had no troubles doing the same thing with multiple versions of Apache mod_jk on multiple versions of Solaris, Linux and FreeBSD. This is, however, my first attempt at mixing Windows with real software :-S I'm running the

Memory Usage from Mbean

2005-02-10 Thread Roberto Cosenza
Hi. I'm trying to build a Servlet to retrieve some memory information about tomcat. I'm using Tomcat 5.5.7. Which bean contains the jvm memory data? Thanx ___ Roberto Cosenza http://robcos.com - To unsubscribe, e-mail: [EMAIL

RE: Trouble getting CGI script to execute

2005-02-10 Thread Brelsfoard, Alex
Thanks David. Question 1: Yes. I've made this mistake enogh times in the past that I'm pretty good about it now. Plus I have made other changes that required (and received) a Tomcat reboot after doing that name change. Question 2: That's a good thought... I've gone through the mappings and

RE: Trouble getting CGI script to execute

2005-02-10 Thread Brelsfoard, Alex
No worries. I really appreciate any help I can get. I'm familiar with Apache, but I've just been tossed Tomcat and already have projects that need to be finished in a timely manner. Such is the life of our line of work... Thanks. --Alex Alex Brelsfoard Web Applications Developer Web

Re: TC 5.5.4 wiil not start from script

2005-02-10 Thread Charles Patterson
root or primary user login default ports Parsons Technical Services wrote: Who are you running as when you manually start it? Are you on the default ports or did you change them? When you mail the list always start with a new message unless replying to a post on the list. Doug - Original

RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
It seems that you have a wrong role table (roles or user_roles). Have you declare security-role element ? -Message d'origine- De : Luke [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 février 2005 16:02 À : Tomcat Users List Objet : Re: Security Newbie - Need Help Hi; Here is the roles

Re: Trouble getting CGI script to execute

2005-02-10 Thread David Smith
Ok. I may try to go through and try this setup myself to see what happens, but that won't happen until tonight. My boss seems to expect me to do some work for the department -- go figure. In the meantime, you may want to try removing the existing servlet mappings from your web application's

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Andoni
Hi, Try using the version of mod_jk.dll which you can find here: http://www.apache.org/dist/jakarta/tomcat-connectors/jk/binaries/win32/jk-1.2.6/ Called: mod_jk_1.2.6_1.3.31.dll Don't forget to change the line which refers to it in httpd.conf. Also don't forget to rename it to mod_jk.dll. I

RE: Trouble getting CGI script to execute

2005-02-10 Thread Brelsfoard, Alex
Yeah, it's good thinking. But these are my only mappings: servlet-mapping servlet-namedefault/servlet-name url-pattern//url-pattern /servlet-mapping !-- The mapping for the JSP servlet -- servlet-mapping servlet-namejsp/servlet-name

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
Thanks Andoni, that appeared to work. However, I don't really understand why. I had actually thought that this might be related to EAPI, which I understand is the primary difference (apart from mod_ssl itself) between Apache without SSL and Apache with SSL. However, I couldn't find any

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Andoni
Hi Richard, If you have been reading this list for any period of time you may have noticed that JK is more to do with Zen and Voodoo than real computer science! It causes so many people heartache that it is unbelievable. The only reason I knew the answer to your problem is because I have recently

Problem: mozilla, https

2005-02-10 Thread Michal Kwiatek
Dear all, I'm having a strange problem with mozilla firefox. Sometimes it cannot understand the way tomcat sends https certificate and in consequence it fails to over HTTPS. The answer (some) users get is: Couldn't establish an eencrypted connection because certificate presented by

Re: Apache/Win32 + mod_jk problem

2005-02-10 Thread Richard Russell
Nope, new to the list -- never had any problems to speak of on *nix :-S I think I'll go for option B. Cheers Richard Russell Deutsche Bank AG London Global Markets Customer Solutions Office: +44 20 7545 8060 Mobile: +44 79 0661 2237 Andoni [EMAIL PROTECTED] 02/10/2005 03:30 PM Please

Re: Problem: mozilla, https

2005-02-10 Thread Jason Bainbridge
On Thu, 10 Feb 2005 16:32:36 +0100, Michal Kwiatek [EMAIL PROTECTED] wrote: Dear all, I'm having a strange problem with mozilla firefox. Sometimes it cannot understand the way tomcat sends https certificate and in consequence it fails to over HTTPS. The answer (some) users get is: Couldn't

Re: RE : Security Newbie - Need Help

2005-02-10 Thread luke
Where would the security-role be declared? WEB-INF/web.xml? The tables I have are roles, user_roles and users. When you say wrong role table which of the tables I have should be renamed? Thanks for you help, Luke It seems that you have a wrong role table (roles or user_roles). Have you

problem with JspCompilationContext

2005-02-10 Thread ssk 2001
Hi I get this error when i start the tomcat server . pls help me to solve this.. Thanks very much HTTP Status 500 - - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this

Server.xml help

2005-02-10 Thread Charles P. Killmer
Does anyone see anything wrong with this server.xml? I am still trying to pin down my database connectivity issues and would like some validation that I have Tomcat setup appropriately. Server port=8005 shutdown=SHUTDOWN debug=0 Listener

Server.xml configuration in Tomcat 4.1

2005-02-10 Thread Shilpa Nalgonda
Hi All, i am using Tomcat4.1, and whenever i create new application i am adding the context details in server.xml Is it possible to create a new myapp.xml file and put the context info in that. I tried to create a myapp.xml and place it under webapps directory, but the application is not finding

RE : RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
-Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 février 2005 16:57 À : Tomcat Users List Objet : Re: RE : Security Newbie - Need Help Where would the security-role be declared? WEB-INF/web.xml? Yes The tables I have are roles, user_roles and

Elusive context path issue

2005-02-10 Thread David W. Brown
Hello Tomcat gurus, I am sure this has shown up a few thousand times but I have just downloaded the TC 5.5 in hopes that my little JSP app I am dreaming up will run on the servlet server. Here is the problem: I cannot get the context path right no matter what and the TC manager just claims:

RE: help: connecting Tomcat 5.5 to Apache 2.0 with mod_jk 1.2.8 on ISP's server: SOLVED.

2005-02-10 Thread Jason Nichols
Chris: It's working! Thanks a LOT! What you gave me wasn't the full answer, but it let me eliminate a lot of dead-ends and other mistakes I had made. One (of several) problems this helped was that I was using AddModule and not LoadModule, which is also addressed here:

Re: Running heavily loaded tomcat sites.

2005-02-10 Thread sudip shrestha
It was good to read your paper. I was wondering why ReiserFS is suitable for webapps that you are hosting. On Wed, 09 Feb 2005 00:18:52 +0100, Wojciech Sobczuk [EMAIL PROTECTED] wrote: Hello, I have collected my experiences with running a heavily loaded (and soon to be high availability)

RE : RE : RE : Security Newbie - Need Help

2005-02-10 Thread LERBSCHER Jean-Pierre
Sorry, i understand what you mean. Your role table seems ok. -Message d'origine- De : LERBSCHER Jean-Pierre [mailto:[EMAIL PROTECTED] Envoyé : jeudi 10 février 2005 17:40 À : 'Tomcat Users List' Objet : RE : RE : Security Newbie - Need Help -Message d'origine- De : [EMAIL

RE: Running heavily loaded tomcat sites.

2005-02-10 Thread George Sexton
You are really just starting document the issues necessary for running a high volume site. The URL http://www.mhsoftware.com/resources/top10asp.html Has some things that are IIS specific, but also apply to Tomcat applications: Specifically: Store as little as possible on the session. I'm

Basic Auth Errors

2005-02-10 Thread Omar Adobati
Good Morning, I'm here again with a trouble that I had already submitted but that isn't yet solved. Here is the topic: I'm trying to setup a basic authentication using realm. I'm working on a Linux Machine with Tomcat 5.0.28 and JDK 1.4.2 (last stable before Tiger). Then, I've set up the

Re: Valves

2005-02-10 Thread Mark Anderson
Right. I believe that the reason that Tomcat can't find ValveBase is that it is loaded with a different class loader than classes in the common directory. Filip Hanik - Dev wrote: put your class in server/classes, valves should not be common Filip

Re: Tale of two servers

2005-02-10 Thread Vinny
More details please. Are both machine running the same version of Java. Are they both connecting to an external database? Exact same versions of Tomcat 5.5.x ? On Thu, 10 Feb 2005 01:19:10 -0800 (PST), Dola Woolfe [EMAIL PROTECTED] wrote: Hi, I'm running TC5.5 on two different servers in

What does each part of a className mean?

2005-02-10 Thread Chris Hosler
I am having a problem getting SSL to work on my tomcat 5 sever so I would like to know what each segment of the class name means from the server.xml file (className=org.apache.coyote.tomcat5.CoyoteConnector) and how it affect the SSL on my server. When I looked at my server.xml file the

Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
I have two machines running Tomcat 5.0 with java 1.4. Both are clustered together. Every once in a while, one or the other just starts spinning out of control and clocking wall time. This is on hp ux version 11. New machines, lots of resources (16 Gig of RAM) Any ideas? Thanks, Micky

RE: Tale of two servers

2005-02-10 Thread Mike Curwen
does the fast one run any anti-virus software? That's been known to kill performance. Mike Curwen - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Tim Funk
Are you using apache in front of tomcat? Have you done thread dumps when in a good state vs a 100% cpu state? Sounds like an inifinite loop. -Tim Micky Williamson wrote: I have two machines running Tomcat 5.0 with java 1.4. Both are clustered together. Every once in a while, one or the other

Re: RE : Security Newbie - Need Help

2005-02-10 Thread Dennis Payne
you will not need a roles table for tomcat... it is only useful to your own applications that will edit the data. The system only utilizes the the user-role table and the user-password table (at least for basic authentication). Each servlet in the system that is secure is setup this way and

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
No, not using Apache to front end. Haven't done any thread dumps...yet. I just was throwing feelers out to see if there is any history of this. Tim Funk wrote: Are you using apache in front of tomcat? Have you done thread dumps when in a good state vs a 100% cpu state? Sounds like an inifinite

Re: RE : RE : RE : Security Newbie - Need Help

2005-02-10 Thread luke
No I think you are right. I have user_roles in the server.xml realm and the table in tomcatusers is called roles. Is there a correct naming (user_roles vs roles)? Concerning the security-role is this required when using a JDBCRealm? Thanks, Luke Sorry, i understand what you mean. Your

Re: Restart-On-Failure for Tomcat?

2005-02-10 Thread Robert McIntosh
Hi Paul, I hope you don't mind the direct e-mail. Would you mind sharing your wget script? Thanks, Robert On Sat, 05 Feb 2005 23:02:50 -0600, Paul [EMAIL PROTECTED] wrote: I would suggest either a process monitor or using cron to run script every minute or so that would use wget to get a

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
probably is the multi cast receiver that freaks out. This can happen if the network cable is unplugged. I will add in a sleep on the receiver so that even in this case it wont freak out. so in the scenario above, its a known problem, checking in a fix right now. if you do provide a dump however,

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
Filip, thanks for the information. I did notice that on our test servers, it doesn't happen as frequently. And in the production server.xml we had: Sender className=org.apache.catalina.cluster.tcp.ReplicationTransmitter replicationMode=pooled/ In the test one it

Re: What does each part of a className mean?

2005-02-10 Thread Hassan Schroeder
Chris Hosler wrote: I am having a problem getting SSL to work on my tomcat 5 sever Read this: http://jakarta.apache.org/tomcat/tomcat-5.5-doc/ssl-howto.html If, after that, you're still having problems -- let us know. :-) -- Hassan Schroeder - [EMAIL PROTECTED]

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
ah, you might be having problems with the java.nio package, (TCP) as the conf below you are mentioning, are using those settings. asynch doesn't require an ack message, and some VM's on some platforms have problems sending data back on a NIO channel. linux had this issue unless you set

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Micky Williamson
hmm is there any difference in performance with pooled vs async? The OS is HPUX 11 Filip Hanik - Dev wrote: ah, you might be having problems with the java.nio package, (TCP) as the conf below you are mentioning, are using those settings. asynch doesn't require an ack message, and some VM's

Re: Tomcat 5 cluster spins out of control periodically

2005-02-10 Thread Filip Hanik - Dev
there have been a few articles, check onjava.com for example, asynch will result in a faster response time, but doesn't guarantee that the session gets replicated for the next request. Filip - Original Message - From: Micky Williamson [EMAIL PROTECTED] To: Tomcat Users List

Re: Restart-On-Failure for Tomcat?

2005-02-10 Thread Martin Grotzke
hello, i also have the problem that my tomcat stops does not respond, and this more than once a day. i'm currently looking for the cause of the problem, so i wrote a monitoring script that collects the top-output, does a thread-dump on the tomcat-process and performs a `netstat -p -n`, and

Re: Restart-On-Failure for Tomcat?

2005-02-10 Thread Martin Grotzke
On Thu, 2005-02-10 at 23:30 +0100, Martin Grotzke wrote: hello, i also have the problem that my tomcat stops does not respond, and this more than once a day. i'm currently looking for the cause of the problem, so i wrote a monitoring script that collects the top-output, does a

coyote standalone?

2005-02-10 Thread Adam Fisk
Can I use Coyote HTTP 1.1 server outside of the rest of tomcat? I'm interested in just plugging in the coyote jar for serving static content using Jetty, but it appears to have dependencies on the rest of tomcat. I don't want to use the rest of Tomcat due to size constraints. Thanks. -Adam

Re: coyote standalone?

2005-02-10 Thread Brad Neuberg
Hi Adam. I always get headaches when I got into the Tomcat source base; its almost too abstract and I can't figure out what does what. There is a book that is comming out or may already be out that details Tomcat's internal architecture that I've been meaning to read. Why isn't Jetty enough

Re: coyote standalone?

2005-02-10 Thread Adam Fisk
Hi Brad- The Jetty ResourceHandler works fine, but it's just a little clunky and unmaintainable. I already adapted their static resource handler to suite my needs, but there are lots of methods that are about 100 lines long and things like that. It does things like require a Jetty Resource

mod_jk config - worker.worker1.retries property does not work?

2005-02-10 Thread Betts, Chuck
Hi, I was just wondering if anyone else has experienced this problem. I am using mod_jk 1.2.8, and I'm trying to configure two tomcat workers under a load balancer worker. I set the properties for the two workers as follows: worker.worker1.retries=1 worker.worker2.retries=1 But

Re: coyote standalone?

2005-02-10 Thread Brad Neuberg
Adam, sounds interesting. Can't wait to see the results. Feel free to keep talking with me if you have any more questions or ideas. By the way, I pushed out a first release of Paper Airplane last sunday. Check out the blog post and installation instructions on it at

Re: coyote standalone?

2005-02-10 Thread Adam Fisk
Wow -- I somehow missed that. I'll definitely check it out. Congratulations on the release! -Adam Brad Neuberg wrote: Adam, sounds interesting. Can't wait to see the results. Feel free to keep talking with me if you have any more questions or ideas. By the way, I pushed out a first release

Relative Path in web.xml

2005-02-10 Thread Rodrigo Avila
Hi, is possible to make a Propertie, in the web.xml file, poiting to a file using the relative path of the file? Something like: propertie: fooProp value: conf/file.txt (file.txt is in $CATALINA_HOME/conf directory, or /usr/local/tomcat/conf) Thanks the help! -- Rodrigo de Avila [EMAIL

JAASRealm and useContextClassloader=true

2005-02-10 Thread Jeremy Grodberg
Is anyone using the JAASRealm with the useContextClassloader flag set to true in Tomcat 5.0.28? It is not working the way I expect it to. Although the posted documentation is confusing, reading the history of the flag in Bugzilla (see http://issues.apache.org/bugzilla/show_bug.cgi?id=29406

Re: Trouble getting CGI script to execute

2005-02-10 Thread David Smith
Ok. Just completed this myself using Tomcat 5.5.7, JDK 5 on a Mandrake Linux system and got it to work right. Here's what I did from clean install: 1) Setup Tomcat -- there's tons of docs on this and no need to rehash things. 2) Renamed $CATALINA_HOME/server/lib/servlets-cgi.renametojar to

Re: RE : Security Newbie - Need Help

2005-02-10 Thread Luke
Hi Dennis; Where is IMS defined? Otherwise I have specified everything as you recommended. Yet I still get this error once I hit the page (no login prompt): HTTP Status 403 - Configuration error: Cannot perform access control without an authenticated principal type Status report message

tomcat 5.5.7 won't start because of NPE

2005-02-10 Thread Joseph Shraibman
Using the out of box config files and webapps: java version 1.5.0_01 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_01-b08) Java HotSpot(TM) Client VM (build 1.5.0_01-b08, mixed mode, sharing) This appears on catalina.out: Feb 11, 2005 12:35:51 AM

tomcat problem

2005-02-10 Thread ssk 2001
After starting the tomcar when i enter my application url it fails .. The error is given below , pls help me .. HTTP Status 500 - - type Exception report message description The server encountered an internal error () that prevented it from fulfilling this

Tomcat doesnot shutdown properly

2005-02-10 Thread Narayan, Satya
Hi, Tomcat doesnot shutdown when one of the threads is in process. I type catalina stop to stop the tomcat but it does not work cos one of the threads is in process Is there any way out of this of tomcat forcibly killing all threads and shutting down tomcat ? Kindly advise. Best