tomcat-users.xml user and role elements

2008-07-31 Thread firtzel
Hi, I looked at several tomcat configurations, and found that there are a couple of things that do not agree with Tomcat's documentation (this is taken from http://tomcat.apache.org/tomcat-5.5-doc/realm-howto.html tomcat-5.5 realm how-to documentation ): The users file (by default,

Re: WAR files updates not recognized by Tomcat

2008-07-31 Thread Torsten
Sorry: I'm using Tomcat version 5.5. Regards, Torsten --- Alessandro Ferrucci [EMAIL PROTECTED] schrieb am Mi, 30.7.2008: Von: Alessandro Ferrucci [EMAIL PROTECTED] Betreff: Re: WAR files updates not recognized by Tomcat An: Tomcat Users List users@tomcat.apache.org, [EMAIL PROTECTED]

Re: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Edi
consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? please advise. Vinay Chilakamarri wrote: I guess you are trying to host different resources on different ports. Running multiple Tomcat instances will just

RE: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Peter Crowther
From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Correct. But it's not always that simple :-). It's your choice how you want to split up your applications between

Re: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Christian Andersson
Peter Crowther skrev: From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Correct. But it's not always that simple :-). It's your choice how you want to split up your

RE: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Peter Crowther
From: Christian Andersson [mailto:[EMAIL PROTECTED] Peter Crowther skrev: If you are not careful when tuning the system, you might find that one application in one Tomcat/JVM runs out of memory although there is plenty of spare memory in the system. If you put them all into one

Re: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Martin
If this happens on the front end this sounds like a misconfiguration try setting min and max heap params for your JVM e.g. -Xms256m -Xmx512m -XX:MaxPermSize=512m -XX:+PrintGCDetails XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled On the back end use stack variables as they fall out of

RE: Setting up Comet on Tomcat 6

2008-07-31 Thread Talal Rabaa
package testing.comet; import java.io.IOException; import javax.servlet.ServletException; import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; import org.apache.catalina.CometEvent; import

Re: adding a virtual host with jmx

2008-07-31 Thread Olivier Vergès
oh sorry I've forgot, i'm using tomcat 6.0. Thx for your help... but like i didn't know the english expression on the fly, i wasn't able to find docs. now, yes... and i've found. so org.apache.catalina.Mbeans is full of useful functions (like createStandardHost...) (I've spent a lot of time to

Re: Find out Who-I-Am for Realm User

2008-07-31 Thread Alessandro Ferrucci
Well actually, the proposed solution I suggested requires you to use a third party project called SecurityFilter, which emulates container managed security: http://securityfilter.sourceforge.net/. When using securityFilter you are in control of setting SecurityFilter as a custom servlet filter in

RealmBase's 'Container' requirement

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Securityfilter includes a feature that allows users to wrap Tomcat Realm classes (Such as DataSourceRealm, JAASRealm, etc.) so they don't have to implement their own. The adapter that provides the plumbing between the sf code and the tc code is

Re: request parameters mishandle utf-8 encoding

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Bill, Bill Barker wrote: | The HTTP spec specifies that header information is encoded in iso-latin-1 Could you provide a reference for this? Whenever I dig into the HTTP specification, I end up having to read all over it to find things like this. I

Re: Down the rabbit hole with JDBC

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matt, Just a note: as you seem to be just getting started with everything, might I make the bold recommendation that you avoid doing any database work from JSPs? Databases are notoriously finicky when it comes to resource management (cleaning up

Re: Hot deployment Using Tomcat

2008-07-31 Thread hisameer
Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the previous .war file and the exploded war (which is exploded by tomcat) from webapps directory I cannot delete them unless until I stop the server. I want to do this on the fly.

Re: Programmatically detecting login or logout events

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Martin, MartinOShea wrote: | I'm trying to find a way to detect the events caused when a user logs into | or logs out of an application I'm working on. There is no good way to do this in Tomcat. In order to do something similar (we want to load

Re: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Thomas Haines
From: Edi [mailto:[EMAIL PROTECTED] consider, i had 4 java application running in one tomcat, if one application crashes, all the other 3 application gets crashes. right? Edi It's also worth remembering that when your java webapp 'crashes', tomcat will catch the exception and display the

Re: tomcat security and window open js

2008-07-31 Thread Christopher Schultz
binjUCQUyxUig.bin Description: PGP/MIME version identification

Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
Yes I have a domain, ex, mydomain.com, I have as A-record going to that IP. The issue is that I want when someone types in mydomain.com in the address bar to forward to http://00.00.00.00:8080/mywebapp/welcome.action and still display mydomain.com. I need the urlrewrite to forward mydomain.com to

[ANN] Apache Tomcat 6.0.18 released

2008-07-31 Thread Remy Maucherat
The Apache Tomcat team announces the immediate availability of Apache Tomcat 6.0.18 stable. This release includes many bugfixes over Apache Tomcat 6.0.16. Apache Tomcat 6.0 includes new features over Apache Tomcat 5.5, including support for the new Servlet 2.5 and JSP 2.1 specifications, a

Re: Find out Who-I-Am for Realm User

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Guojun, Guojun Zhu wrote: | I am | wondering whether I can find out who is the login user in realm? I think you're looking for HttpServletRequest.getPrincipal(). Calling Principal.getName() will give you the username of the currently-logged-in

Threads are busy...but my application is moderately used!!

2008-07-31 Thread Thangavel Sankaranarayanan
Hi, Hi, I am facing a problen with Tomcat 4.1.27. Operating System:Microsoft Windows2000. Web-Server is IIS. I am getting the error All Threads are busy,Please increase the max Threads. also i can find hundreds of Connection timed out error in it.why does this occur?? Connector is JK2 ajp13

Re: address bar shows ip instead of domain name

2008-07-31 Thread Ken Bowen
I think what you are looking for is to make your application the default application for your Tomcat instance. Search the archives about this, since it is a common question. Basically you need to delete the existing ROOT, and rename your app to be ROOT. On Jul 31, 2008, at 10:50 AM,

Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder. Ken Bowen wrote: I think what you

Re: Threads are busy...but my application is moderately used!!

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Thangavel Sankaranarayanan wrote: | I am facing a problem with Tomcat 4.1.27. Note that everything you are using is very out of date. Tomcat just released 6.0.18, mod_jk is at version 1.2.26 (and JK2 is dead, dead, dead), and win2k,

Re: address bar shows ip instead of domain name

2008-07-31 Thread Mark Thomas
nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to same ip. I want the domain name entered to go to specific folder.

How to restrict access to tomcat manager to specific hosts?

2008-07-31 Thread Nar Karapetyan
Hi, I need to allow access to tomcat manager (http://servername:port/manager/html) only to the localhost using Tomcat's means. Inspecting the request for the IP, and blocking a non-localhost ip is not accepted as per the requirement I have. How can I do that? I have tried to add the

Re: Threads are busy...but my application is moderately used!!

2008-07-31 Thread Thangavel Sankaranarayanan
Thanks Chris, I tried to obtain a thread dump.. I read how to create a thread dump... i went to my command prompt pressed ctrl+break...and i could'nt get any information .. how to create one.. this is wat fully found in std.err INFO: connection timeout reached 31/07/2008 15:31:15

finding thread status when using tomcat as a window service??

2008-07-31 Thread Thangavel Sankaranarayanan
Hi, I am using tomcat as a window service..in tat case how can i do a threaddump on it? Thanks, Thangavel.S - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Tomcat 6.0.16 serving 40K jpg files

2008-07-31 Thread Tommy Pham
Hi, I just start learning Java programming a while back and doing some tutorials/learning trails at netbeans.org. One of the tutorial using Visual JSF, http://www.netbeans.org/kb/60/web/fileupload.html, I'm doing is not working as I think it should and I'm not getting any http error or Java

Re: HttpSessionListener session listener in tomcat cluster

2008-07-31 Thread Filip Hanik - Dev Lists
not at all, it just mean your HttpSessionListeners and HttpSessionAttributeListeners wont be invoked on the other servers also, you could work around the problems in another way, track logins differently Filip Pavan Singaraju wrote: If we set the notifyListenersOnReplication to false, will

Re: Session replication problem in tomcat 6.0.14 (loadbalancing with Apache)

2008-07-31 Thread Filip Hanik - Dev Lists
the error should be fixed in 6.0.18 Filip Pavan Singaraju wrote: My question here was if the other node is not available anymore, will this exception come? If so how to avoid it. The fact is the session replication is happenning and everything is working inspite of the exception. But just in

Re: finding thread status when using tomcat as a window service??

2008-07-31 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thangavel, Please do not hijack threads by replying to an unrelated message. Instead, create a new message to the list to start a new thread. (See below for answer). Thangavel Sankaranarayanan wrote: | I am using tomcat as a window service..in tat

Re: Tomcat 6.0.16 serving 40K jpg files

2008-07-31 Thread Markus Schönhaber
Tommy Pham wrote: http error or Java exception. I can upload the image fine and it will display any jpg ~40k or less. If the image size is larger, it doesn't show. I tried to browse the 40k+ image directly instead of the image tag, it doesn't show also. Does anyone know why is this? I

Re: Hot deployment Using Tomcat

2008-07-31 Thread Johnny Kewl
- Original Message - From: hisameer [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, July 31, 2008 4:29 PM Subject: Re: Hot deployment Using Tomcat Thanks for your reply Alessandro The autodeploy is set to true but but whenever my build process tries to delete the

Re: Tomcat 6.0.16 serving 40K jpg files

2008-07-31 Thread Tommy Pham
Hi Markus, --- On Thu, 7/31/08, Markus Schönhaber [EMAIL PROTECTED] wrote: From: Markus Schönhaber [EMAIL PROTECTED] Subject: Re: Tomcat 6.0.16 serving 40K jpg files To: users@tomcat.apache.org Date: Thursday, July 31, 2008, 1:28 PM Tommy Pham wrote: http error or Java exception. I

Re: Tomcat on Windows Server 2008 fails to stop completely

2008-07-31 Thread Matt Cosentino
I figured it out, it was a problem with our SSL setup. Thanks for the help. - Original Message From: Steve Ochani [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Wednesday, July 30, 2008 7:53:29 PM Subject: Re: Tomcat on Windows Server 2008 fails to stop

Re: Setting up Comet on Tomcat 6

2008-07-31 Thread Filip Hanik - Dev Lists
I took your servlet, compiled it, put it in WEB-INF/classes/testing/comet then in web.xml I put servlet servlet-nametestcomet/servlet-name servlet-classtesting.comet.CometConnection/servlet-class /servlet servlet-mapping servlet-nametestcomet/servlet-name

Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
Do I need to have Apache mod_jk connector for this to work? Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific webapp folder in tomcat. I have 5 domains on netfirms going to

Tomcat Newbie

2008-07-31 Thread Mr Junior
Hey all, i'm sort of new to Tomcat. I am trying to add a sub-folder to my website. Basically, I already have HTTP://website/arsys. I want to add a HTTP://website/dev. I found, in the conf/catalina that there was an arsys.xml that stated the path as /arsys, and told the installation path to the

Re: address bar shows ip instead of domain name

2008-07-31 Thread Mark Thomas
nilanthan wrote: Do I need to have Apache mod_jk connector for this to work? No. You can do it all just with Tomcat. Mark Mark Thomas-18 wrote: nilanthan wrote: no, i dont want to do that since i will have multiple apps on the tomcat. but I want the domain name entered to go to specific

Re: Hot deployment Using Tomcat

2008-07-31 Thread Alessandro Ferrucci
This assumes that the manager application has been correctly configured for authentication, rarely the case. What did you mean by I cannot delete them unless until I stop the server. Is it some permissions issue? Why can't you delete those files? -- Signed, Alessandro Ferrucci On Thu, Jul 31,

Re: address bar shows ip instead of domain name

2008-07-31 Thread nilanthan
Thanks alot Ken. Just got it working. ww.. so easy now..lol..but thansk again for all your time and help. Mark Thomas-18 wrote: nilanthan wrote: Do I need to have Apache mod_jk connector for this to work? No. You can do it all just with Tomcat. Mark Mark Thomas-18 wrote:

Re: address bar shows ip instead of domain name

2008-07-31 Thread Ken Bowen
Thanks to Mark for the last bit. On Jul 31, 2008, at 3:27 PM, nilanthan wrote: Thanks alot Ken. Just got it working. ww.. so easy now..lol..but thansk again for all your time and help. Mark Thomas-18 wrote: nilanthan wrote: Do I need to have Apache mod_jk connector for this to

Re: Tomcat Newbie

2008-07-31 Thread Alessandro Ferrucci
This sounds like you're simply trying to deploy another webapp with the context root of /dev. Am I mistaken? or do you want to put a folder inside the arsys webapp called dev, but want dev to have its own context root? Please explain in more detail. -- Signed, Alessandro Ferrucci Does your

Re: Apache/mod_jk serves random files from tomcat

2008-07-31 Thread dave.smith
As I mentioned upgrading to mod_jk 1.2.26 was very easy. Unfortunately, Tomcat is now crashing with An unexpected error has been detected by HotSpot Virtual Machine. # SIGSEGV (0xb) at pc=0xb7aeaf7b, pid=19887, tid=2991246224 # # Java VM: Java HotSpot(TM) Client VM (1.5.0_12-b04 mixed mode,

Re: Tomcat Newbie

2008-07-31 Thread Mr Junior
I need dev to have its own context root. The only file I will have in /dev will be a redirect to the arsys webapp, so i don't need a totally new webapp. I just need to be able to have an http://server/dev instead of http://server/arsys/dev. Thanks Alessandro Ferrucci-3 wrote: This sounds

Installation Problems

2008-07-31 Thread CrashOverride
I have been having some trouble with my tomcat installation. I am using tomcat 6 which I downloaded with the TeamCity package, running on OpenSuSE 10.3. I am fairly certain that TeamCity is not my problem, as the problem persists even when TeamCity is not running. The problem itself is that

HTTP 404 with a %22 at the end of the URL, what does it mean ?

2008-07-31 Thread Adam Posner
I get this error message when I try to go from one jsp to another. For example, I have a welcome.jsp opening page. I have a simple Trail Reviews button that when I click it simply goes to another jsp, trailReview.jsp. At this point, the url is http://localhost:8080/project-1c/trailReview.jsp?.

How to make tomcat to use javaw.exe instead of java.exe?

2008-07-31 Thread Bharat Dighe
I am using Apache Tomcat 5.5.26. Is there a way we can force catalina.bat to use javaw.exe instead of java.exe without changing that file? I mean using some startup parameter or environment varibale. TIA. - Bharat

Re: Hot deployment Using Tomcat

2008-07-31 Thread hisameer
There is no permission issue as for as I know. I am using the following error : C:\workspace\scripts\build.abstract.xml:23: The following error occurred while executing this line: C:\workspace\scripts\build.xml:27: The following error occurred while executing this line:

Re: HTTP 404 with a %22 at the end of the URL, what does it mean ?

2008-07-31 Thread Hassan Schroeder
On Thu, Jul 31, 2008 at 3:43 PM, Adam Posner [EMAIL PROTECTED] wrote: /project-1c/trailReview.jsp%22 The requested resource is not available. The %22 is probably what's causing that, but I'm not sure what the %22 means in the first place. It's an escaped quote () mark. Look at where you're

Re: Hot deployment Using Tomcat

2008-07-31 Thread Hassan Schroeder
On Thu, Jul 31, 2008 at 4:17 PM, hisameer [EMAIL PROTECTED] wrote: C:\workspace\tomcat\build.xml:23: Unable to delete file Ah, Windoze --- see the Context attributes antiJARLocking and antiResourceLocking. HTH, -- Hassan Schroeder [EMAIL PROTECTED]

Re: problem with tomcat-native 1.1.10 and tomcat 6.0.14

2008-07-31 Thread ne_fat_s
I have the same problem, but with tomcat 6.0.16 and tomcat-native 1.1.14. I installed the libapr1, libapr1-dev, libssl, libssl-dev packages from ubuntu hardy heron, and there were no problems when building the native library. I added export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:path to library to

Re: RealmBase's 'Container' requirement

2008-07-31 Thread Bill Barker
Christopher Schultz [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 All, Securityfilter includes a feature that allows users to wrap Tomcat Realm classes (Such as DataSourceRealm, JAASRealm, etc.) so they don't have to implement

RE: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Edi
I have installed JDK1.5 in my local system, And 1 tomcat5.0 installed in c drive. during the installation, i have given port 8080 And 1 tomcat5.0 installed in e drive. during the installation, i have given port 8081 during both tomcat installation, i have specified c:\program files\java\jdk1.5

Re: is it possible more than 1 tomcat in single system?

2008-07-31 Thread Christian Andersson
search your tomcats server.xml file for 8005 and you will se that this port has been declared at the very top Server port=8005 shutdown=SHUTDOWN this is the so called shutdown port, you just have to change this in your second tomcat to for example 8006. Edi skrev: I have installed JDK1.5

How to enable SSI servlet

2008-07-31 Thread suman
Hello, I enabled SSI servlet in CATALINA_HOME/conf/web.xml by uncommenting it. I restarted the tomcat server. Still I see the SSI directives in a x.shtml are not executed.I see no error in catalina.log. Any idea how to check if at all the servelet is loaded in the tomcat container? Any idea what