Re: Receiving duplicate requests when code that processes the initial request blocks for a long time ...

2008-08-21 Thread Mashama McFarlane
I don't think any of the subsequent requests are intended functionality of Tomcat. Having a single request be serviced more than once does not make sense to me. I don't think it is a browser issue. I have replicated it with both Firefox and IE. I have replicated it with standard browser POSTs

how to set context path on TOMCAT6

2008-08-21 Thread Sushil Dodake
hi all, I am using TOMCAT 6. i have a application war file named as 'aaa.0.0.1d.war' i need to set a context path for this application as '/reporting-application' so for this to work i am creating a xml file 'reporting-application.xml' and deploying it in the conf/Catalina/locahost/ direcotry.

Re: [programmazione] how to set context path on TOMCAT6

2008-08-21 Thread Luca Cicale
A simple way is to put in your web application a file named context.xml in META-INF directory, with the following content: ?xml version=1.0 encoding=UTF-8? Context path=/reporting-application / then you can produce your war and deploy it as usually (a simple way is to place it in your webapp

Re: [programmazione] how to set context path on TOMCAT6

2008-08-21 Thread Sushil Dodake
my requirement is to create a application specific xml file. am i making any mistake here? On Thu, Aug 21, 2008 at 2:35 AM, Luca Cicale [EMAIL PROTECTED] wrote: A simple way is to put in your web application a file named context.xml in META-INF directory, with the following content: ?xml

Setting The REMOTE_USER Environment Variable By The Client's Subject DN Using Tomcat 5.5

2008-08-21 Thread Sameek Bhaumik
Hi,   We’re using Tomcat 5.5 as our Web server and intend to implement SSO for our application. As a part of the requirement, we need to set the REMOTE_USER environment variable with the Subject DN retrieved from the client certificate (We’ve edited conf\server.xml, so that Tomcat listens to

Re: how to set context path on TOMCAT6

2008-08-21 Thread Felix Schumacher
On Thu, August 21, 2008 9:04 am, Sushil Dodake wrote: hi all, I am using TOMCAT 6. i have a application war file named as 'aaa.0.0.1d.war' i need to set a context path for this application as '/reporting-application' so for this to work i am creating a xml file 'reporting-application.xml'

Re: [programmazione] how to set context path on TOMCAT6

2008-08-21 Thread Luca Cicale
In the way I explained you create a application specific xml. the META-INF directory containing the context.xml is in your application, in your war file. -- From: Sushil Dodake [EMAIL PROTECTED] Sent: Thursday, August 21, 2008 9:52 AM To:

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Mark Thomas
Bill Davidson wrote: I've been through the docs. I've been through Google. I can't seem to figure this out. Server: Tomcat 6.0.18, JDK: 1.6.0_07, Redhat Server 5.2 Client: jconsole from JDK 1.6.0_07 on Windows XP I've got all of these in $CATALINA_OPTS and they do show up in the java

Re: Tomcat can't see a new function

2008-08-21 Thread Mark Thomas
Daniel L. Gross wrote: org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:420) You really, really want to avoid using the InvokerServlet. Mark - To start a new topic, e-mail: users@tomcat.apache.org

Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-21 Thread Pid
lmk wrote: hello all, I try ti use tomcat security management with DataSourceRealm but I never get authentication console, log shows that user 'Successfully passed all security constraints' I declare Realm inside server.xml: Realm className=org.apache.catalina.realm.DataSourceRealm

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Dominic Mitchell
On 21 Aug 2008, at 09:25, Mark Thomas wrote: Bill Davidson wrote: I've been through the docs. I've been through Google. I can't seem to figure this out. Server: Tomcat 6.0.18, JDK: 1.6.0_07, Redhat Server 5.2 Client: jconsole from JDK 1.6.0_07 on Windows XP I've got all of these in

Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-21 Thread lmk
thanks! it seems that role is mandatory, so i add role name, now user authenticated succefely but it he cannot access to ressources because of exception: exception retrieving roles for USERNAME I defined the Roles table and role columns inside releam and the user USERNAME has an athorized role..

Remastering tomcat installer ..

2008-08-21 Thread Albert Kam
Hello, I'm just wondering if it is possible to 'remaster' or rebuild tomcat-windows-installer, so that i could put my war files or my webapps along with it to produce a custom tomcat installer + my own webapps .. Is this legal and possible ? =) Regards, Albert Kam -- Do not pursue the past.

Newer version of mod_jk much slower than 1.2.13

2008-08-21 Thread Leandro Dardini
I am sorry for the long email, but I like to be complete. I just stay with mod_jk 1.2.13 for a long time. It is used between apache 2.0.52 and tomcat 5.5.26 each one on Linux Redhat ES4 64 bit. There are two apache with dns load balancing and four tomcat with mod_jk balancing. Last day I upgrade

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Mark Thomas
Dominic Mitchell wrote: On 21 Aug 2008, at 09:25, Mark Thomas wrote: Bill Davidson wrote: I've been through the docs. I've been through Google. I can't seem to figure this out. Server: Tomcat 6.0.18, JDK: 1.6.0_07, Redhat Server 5.2 Client: jconsole from JDK 1.6.0_07 on Windows XP

Re: Remastering tomcat installer ..

2008-08-21 Thread Mark Thomas
Albert Kam wrote: Hello, I'm just wondering if it is possible to 'remaster' or rebuild tomcat-windows-installer, so that i could put my war files or my webapps along with it to produce a custom tomcat installer + my own webapps .. Is this legal and possible ? =) Yes on both counts,

Re: Remastering tomcat installer ..

2008-08-21 Thread Albert Kam
Hello, Thanks for the quick reply ! Could you point me the way to do this ? Like where can i find the the Installer build files for the latest tomcat release, what installer does it use (i assume it's NSIS), and how to build it .. I hope for some links. Keywords for me to search would be

Re: Disabling catalina.out log

2008-08-21 Thread emerson cargnin
Kees That one is another log file, configured at logging.properties: 1catalina.org.apache.juli.FileHandler.level = INFO 1catalina.org.apache.juli.FileHandler.directory = ${catalina.base}/logs 1catalina.org.apache.juli.FileHandler.prefix = catalina. On 20/08/2008, Kees Jan Koster [EMAIL

Re: how to set context path on TOMCAT6

2008-08-21 Thread David Smith
You have two options. 1. Rename aaa.0.0.1d.war to reporting-application.war and place it in tomcat's webapps directory. This is the easiest and recommended method of deployment. 2. Deploy the war file from somewhere outside tomcat's webapps directory and add reporting-application.xml to

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread David Smith
Can any one please guide me on the correct direction so that i don't mess up anything! I've never worked with Tomcat that is why i have no idea on how to do it. Yes. Just open the server.xml file in tomcat's conf directory and look for the Connector ... / elements that aren't wrapped in xml

Re: Remastering tomcat installer ..

2008-08-21 Thread Len Popp
The source code for the latest Tomcat release is in the Subversion repository here: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/ The build script for the release package is here: http://svn.apache.org/repos/asf/tomcat/tc6.0.x/tags/TOMCAT_6_0_18/dist.xml The NSIS install

Tomcat ignores the missing JDBC DataSource reference in web.xml

2008-08-21 Thread Gennady Shumakher
My web.xml descriptor missing reference to JDBC data source defined in context.xml (resource-ref section), but web application runs just fine and pooled data source consumed by hibernate. From my perspective it is one setting less I have to care of. But since it does not apply neither the

HTTPConnector url redirection

2008-08-21 Thread raveendra
Hi all, I am want to run my entire application on https which is developed using struts2.So i configured my server.xml and web.xml as shown below. server.xml Connector port=8080 protocol=HTTP/1.1 maxThreads=150 connectionTimeout=2

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread Mark H. Wood
On Thu, Aug 21, 2008 at 02:31:41AM +0200, André Warnier wrote: Markus Schönhaber wrote: [snip] Furthermore, if I understand the OP's statement above correctly, he wants to be able to restart the development Tomcat without affecting the production Tomcat. That's not possible with either of

tomcat service can't bundle domain

2008-08-21 Thread francin
I have a problem and i can't solve it for several whole night! I have a domain name (such as www.yourname.cn) and it resolve to an ip (such as 222.11.11.11) First of all, my tomcat is ZIP version. If I use the file startup.bat which is in %TOMCAT_HOME%\bin to start tomcat, it can bundle my

Re: Disabling catalina.out log

2008-08-21 Thread emerson cargnin
Which are the views of other people in the list? On 21/08/2008, emerson cargnin [EMAIL PROTECTED] wrote: Kees That one is another log file, configured at logging.properties: 1catalina.org.apache.juli.FileHandler.level = INFO 1catalina.org.apache.juli.FileHandler.directory =

How to run Tomcat with multiple JVM's?

2008-08-21 Thread Parks, Lincoln R.
I have two applications that need two different JVM's to run. I am on a Windows 2k environment. One application needs JVM 1.5 to run and the other needs 1.4 to run. Is there a way to have Tomcat 5.5 run but utilize the different JVM's for each application? When I change the configuration to use

Re: How to run Tomcat with multiple JVM's?

2008-08-21 Thread Mark Thomas
Parks, Lincoln R. wrote: I have two applications that need two different JVM's to run. I am on a Windows 2k environment. One application needs JVM 1.5 to run and the other needs 1.4 to run. Is there a way to have Tomcat 5.5 run but utilize the different JVM's for each application? When I

Add yourself to mobchannel.com

2008-08-21 Thread Arun
Guys, I am running the site (mobchannel.com) which aggregates all the blogs in www. It does a clean update of all blogs on a per day basis and categorizes them in so many ways This is the one BIG site which can give you much more capabilities in the near future. If you find the site interesting,

Re: How to transfer session to another browser

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Massoud, kohanm wrote: If I add cookie=false in Context, it's geting worse and the session in the original browser does not work properly. It sounds like you have not coded your webapp properly, then. If you had, disabling cookies would have

Re: How to transfer session to another browser

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jens, Jens Kapitza wrote: i think if you really will do this you can make a warper to the session object in the tomcat app. and store all the data in the database (select by the ip,username or id) - you have to pass this as parameter - (or

Re: tomcat 5.5 DataSourceRealm not taken in charge

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 To whom it may concern, lmk wrote: it seems that role is mandatory, so i add role name, now user authenticated successfully but it he cannot access to resources because of exception: exception retrieving roles for USERNAME You have not set any

Re: tomcat service can't bundle domain

2008-08-21 Thread David Smith
OS? Also what do you mean by tomcat's services? Do you mean jsvc or a shell script that supports start|stop|restart? Depending on OS and start method, you may be running into the old privileged ports problem common on *nix systems. Last question -- what's reported in the tomcat logs when

Re: HOW TO install/setup 2 instances of tomcat on same server

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Ed, edponce wrote: I know this question has been asked a lot but I've read different solutions depending on the needs of the problem. I need to have 2 instances of tomcat on the same server for the same application. One would be for production and

Re: [programmazione] how to set context path on TOMCAT6

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Luca, Luca Cicale wrote: A simple way is to put in your web application a file named context.xml in META-INF directory, with the following content: ?xml version=1.0 encoding=UTF-8? Context path=/reporting-application / No, no, no.

Re: how to set context path on TOMCAT6

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sushil, Sushil Dodake wrote: i have a application war file named as 'aaa.0.0.1d.war' i need to set a context path for this application as '/reporting-application' so for this to work i am creating a xml file 'reporting-application.xml' and

Re: How to run Tomcat with multiple JVM's?

2008-08-21 Thread Johnny Kewl
- Original Message - From: Parks, Lincoln R. [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Thursday, August 21, 2008 4:43 PM Subject: How to run Tomcat with multiple JVM's? I have two applications that need two different JVM's to run. I am on a Windows 2k environment. One

Re: HTTPConnector url redirection

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Raveendra, raveendra wrote: But after accepting the certificate and loading the page.If i change my url to http://localhost:8443/myapp/start.action just by removing 's' it is loading the pages with some GUI errors and after traversing couple of

Re: tomcat service can't bundle domain

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 David, David Smith wrote: OS? See below. Also what do you mean by tomcat's services? Do you mean jsvc or a shell script that supports start|stop|restart? Depending on OS and start method, you may be running into the old privileged ports

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Bill Davidson
On 21 Aug 2008, at 09:25, Mark Thomas wrote: Add some logging to your firewall configuration to see what is being dropped. Dominic Mitchell wrote: That should help, but it's likely to be a different port in use each time. Because JMX uses RMI by default, and RMI uses two ports: a fixed port to

tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Fu-Tung Cheng
Hi, I have different instances of tomcat running on different ports of the same machine. The processes are running as different users. In this case could a user different than the one who launched the process connect to the tomcat shutdown port and cause the other instance to shutdown? It

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Tim Funk
An easy kludge is to run jconsole locally on the server and send the display to yourself. ssh -Y yourserver (or ssh -X server YMMV) $JAVA_HOME/bin/jconsole pid No iptables tricks needed. -Tim Bill Davidson wrote: Is this random port opened by the server side (Tomcat) or the client side

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Kees Jan Koster
Dear Bill, I've been through the docs. I've been through Google. I can't seem to figure this out. Server: Tomcat 6.0.18, JDK: 1.6.0_07, Redhat Server 5.2 Client: jconsole from JDK 1.6.0_07 on Windows XP I've got all of these in $CATALINA_OPTS and they do show up in the java command line

Re: tomcat service can't bundle domain

2008-08-21 Thread francin
I solve it , the reason is the windows firewall block the port 80! thanks in advance! David Smith-2 wrote: OS? Also what do you mean by tomcat's services? Do you mean jsvc or a shell script that supports start|stop|restart? Depending on OS and start method, you may be running

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread André Warnier
Fu-Tung Cheng wrote: Hi, I have different instances of tomcat running on different ports of the same machine. The processes are running as different users. In this case could a user different than the one who launched the process connect to the tomcat shutdown port and cause the other

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Bill Davidson
Tim Funk wrote: An easy kludge is to run jconsole locally on the server and send the display to yourself. ssh -Y yourserver (or ssh -X server YMMV) $JAVA_HOME/bin/jconsole pid No iptables tricks needed. I'm running the client on a Windows machine. I did try Cygwin/X and an ssh tunnel with

Re: Another confused person trying to get jconsole to monitor tomcat.

2008-08-21 Thread Tim Funk
vnc might have acceptable performance. Not sure if you'd run into issue by installing vncserver. -Tim Bill Davidson wrote: Tim Funk wrote: An easy kludge is to run jconsole locally on the server and send the display to yourself. ssh -Y yourserver (or ssh -X server YMMV)

IIS6 Tomcat6 Integration Question!

2008-08-21 Thread francin
I can't configure Tomcat with IIS web server with the tomcat-connector! My server's os is 64bit Windows2003, IIS is 6, Tomcat is 6. I tried to download the file isapi_redirect-1.2.26.dll (64bit version),add it as an ISAPI filter, and I added the directory which isapi_redirect-1.2.26.dll in as a

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Fu-Tung Cheng
Thanks for the response. The shutdown port is used to shutdown the application this can include things that need to cleanup or flush data to disk. It is used by the stop scripts so if I completely disabled it then I couldn't stop the server properly.. I am sure there must be an option in the

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Hassan Schroeder
On Thu, Aug 21, 2008 at 1:07 PM, Fu-Tung Cheng [EMAIL PROTECTED] wrote: I am sure there must be an option in the stop script to require a username/password. And I'm sure that wouldn't matter -- it's simply a matter of telneting to that port and issuing the shutdown command, no script required

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Fu-Tung, Fu-Tung Cheng wrote: I have different instances of tomcat running on different ports of the same machine. The processes are running as different users. In this case could a user different than the one who launched the process connect

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Markus Schönhaber
Christopher Schultz schrieb: As Andre points out, there is no way to restrict TCP/IP ports to certain users. Well, no way is a bit strong a statement. For example Linux' netfilter provides an owner match for locally generated packets. This should be usable to indeed create a per-user

Re: tomcat instances on different ports running as different users can anyone shutdown?

2008-08-21 Thread Mark Thomas
The simple solution (from Filip): Set the shutdown port to -1. Use kill to stop Tomcat. Mark - To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Call for Participation - CIS Tomcat 5.5/6.x Security Configuration Guide Review

2008-08-21 Thread Blake Frantz
Hello, I represent the Center for Internet Security (www.cisecurity.org). We are a non-profit organization that leverages volunteer minds and a consensus process to create free security configuration guides for various technologies. We have created an initial draft of a Tomcat 5.5/6.x guide

Re: Add yourself to mobchannel.com

2008-08-21 Thread supareno
Arun a écrit : Guys, I am running the site (mobchannel.com) which aggregates all the blogs in www. It does a clean update of all blogs on a per day basis and categorizes them in so many ways This is the one BIG site which can give you much more capabilities in the near future. If you find the

Tomcat not sending Set-Cookie info if Filter is present

2008-08-21 Thread whizdom
The zipped folder attached ( http://www.nabble.com/file/p19099859/struts-beans.tar.gz struts-beans.tar.gz ) is ready for deployment on Tomcat. It contains a very basic sample app to illustrate the problem we are facing. With the Filter in place, whenever we don't have a session and the initial

override 100-continue response in servlet

2008-08-21 Thread Craig Perras
Hello - I'm writing a servlet to allow large-file uploads (with ranges and resume). One issue I noticed was that if the range is invalid (I do the checks in doPut), and I return a 416, the client (curl in this case) continues to upload the body (possibly gigabytes of data that will be

Re: HTTPConnector url redirection

2008-08-21 Thread raveendra
Yes i am sure, initially when i type my default url http://localhost:8080/myapp/start.action it is getting redirected to https://localhost:8443/myapp/start.action. But after accepting certificate and page is loaded if i remove s from redirected url it is still loading the page.It shouldn't even