RE: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
Hi Johnny, Thanks a lot. I read the http RFC and find something like this: The chunk-size field is a string of hex digits indicating the size of the chunk. The chunked encoding is ended by any chunk whose size is zero, followed by the trailer, which is terminated by an empty line. Do u have any

How to install a prepackaged Tomcat app

2008-02-26 Thread John Pye
Hi all I have a pre-written Tomcat application that I would like to install on my Fedora 7 server. There are binaries for Tomcat available for this linux distro, so theoretically I assume it should be possible to run a Tomcat instance on this platform without having to compile Tomcat from sources.

How do I make a redirection?

2008-02-26 Thread nkarytia
Under Tomcat I have installed Liferay CMS and what I am trying to do is that every time the user types in http://mysite.com/hello in the address bar of his browser it gets redirected to another site like hello.newsite.com. Is this possible? Thank you in advance, Nikos. -- View this message in con

Re: Connection Pooling

2008-02-26 Thread abhishek reddy
thanks Mr Adam Gordon for the reply, Can u tell me how to determine why oracle is generating those many processes? Also tell me where to check the number of oracle processes in use and how to reduce it? On Wed, Feb 27, 2008 at 4:18 AM, Adam Gordon <[EMAIL PROTECTED]> wrote: > Hi, I think you may

Re: Connection Pooling

2008-02-26 Thread abhishek reddy
thanks Mr Barry for the reply, In the whole application we are using type one driver i.e. jdbc odbc driver Driver Class :sun.jdbc.odbc.JdbcOdbcDriver But can u tell me what could be the reason for the number of processes exceeded in the oracle.. when the user logged into the application 5 connecti

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
Omg I must be tired... Ex-ay on the reply-ay... (can you tell I'm tired??) Final configuration: /tomcat_home/conf/server.xml Webapp starts fine, serves fine... rest of previous is okay - just the server.xml section ~LZM~ -Original Message- From: Lessie Z. Mitch [mailto:[EMAIL P

Re: Configuring Tomcat for multiple users

2008-02-26 Thread Binding Servlet
Ok, thanks for the replies. I will look into both these options. On Mon, Feb 25, 2008 at 12:20 PM, Mark H. Wood <[EMAIL PROTECTED]> wrote: > Note that the user web application mechanism only recognizes one > webapp per user. > > If you need more than that, you might write up a little gadget (to

RE: Apache/Tomcat - mod_jk issues

2008-02-26 Thread Lessie Z. Mitch
Thank you Adam! 1- eepers! Okay, that was overlooked! Changed that. ^.^ 2- Not everything is secure (https). SSL is configured outside of the httpd.conf file for security reasons and defined in conf.d/someotherfile.conf, with conf.d being included (see previous post) 3- context files are loca

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread AH NF
Thanks Mark, could my context.xml also just live in my WAR/META-INF file? So let me get this right, the location of "appBase" is purely for where WARs are uploaded. Never should "document roots" live under it? So if I upload a war to "appBase" Tomcat then unpacks it to the "context" "doc

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread AH NF
Here is what I have setup going off the examples, but it is not working like a I would like a) a Host definition in my server.xml which has appBase="tomcatHome/ myAppBase" b) a WAR file named ROOT.war. Inside there is a context.xml located in META-INF I am not sure what to put in for

Trying to track down security for a tcl CGI script spawning ssh

2008-02-26 Thread manuel mantis
Hi all. I'm trying to spawn an SSH session via a tcl CGI script on Tomcat 6.0.14running on Windows 2003 server. My Java is jdk1.6.0_04 and my tcl is 8.5 I can run the tcl script from a command line, and it executes plink.exe or ssh2.exe fine. I have set up the CGIServlet and confirmed that it is

Re: executor does not work with AJP connector

2008-02-26 Thread Filip Hanik - Dev Lists
you might have forgotten to uncomment or configure that actual executor, hence the NPE Filip nitin dubey wrote: Hi, I tried configuring executor in tomcat 6.0.14 for AJP Connector like following: executor="tomcatThreadPool" connectionTimeout="2" /> While starting tomcat it gives

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
This is going to be long... so bear with me. My want was to name the context xmls something other than "ROOT". In a previous setup I had with TC5.5.16, my contexts were actually in the server.xml document - which we all know is really a bad thing. I had other webapps running on the same host s

RE: Connection Pooling

2008-02-26 Thread Propes, Barry L
YIKES!!! I see something that I think is the problemat least it caused me ample problems and I was totally tarred and feathered on the Sun Java forum for doing. Are you using that driver you show? driverClassName="sun.jdbc.odbc.JdbcOdbcDriver" or is that just the example that you peeled of

Re: Connection Pooling

2008-02-26 Thread Adam Gordon
Hi, I think you may be confusing the number of allowable processes with the number of allowable threads. Per Tomcat's documentation, maxActive refers to the maximum number of DB connections whereas the Oracle error you are seeing refers to the maximum number of processes (threads?) which are n

Re: Apache/Tomcat - mod_jk issues

2008-02-26 Thread Adam Gordon
Lessie- Sorry to hear you're having trouble. We use Apache/Tomcat in the same way and assuming your snippets are reasonably complete I've noticed some issues that may or may not be helping to cause problems: 1. First and foremost, your worker list defines the worker name as "tomcat" yet in

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: Sorry.. didn't finish... (hit the damned button) And my application context.xml files would read something like... No - completely wrong. In short (just doing one host) you want something like: /tomcat_home/conf/server.xml Context file location (for ROOT

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
Sorry.. didn't finish... (hit the damned button) And my application context.xml files would read something like... For webapp1 - a deployed .war file For webapp2 - a .jsp structure - no .war No path element? Maluhia mua (Safety first) ~~ Lessie Z.

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
> Use context.xml - approach #2 and configure both a docBase and a path. Note the docBase *must* be outside of any host's appBase. So I can have setup as such: Server setup /tomcat_home/conf/server.xml Context file locations: /tomcat_home/conf/Catalina/mywebapp1/m

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
Lessie Z. Mitch wrote: If you are using apache, you still need to name your Virtual hosts in the httpd.conf. I am myself having mod_jk issues and awaiting response. ahnf wrote: http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Does this work for TC5.5.x??? that is for TC6

RE: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Lessie Z. Mitch
If you are using apache, you still need to name your Virtual hosts in the httpd.conf. I am myself having mod_jk issues and awaiting response. > ahnf wrote: > http://tomcat.apache.org/tomcat-6.0-doc/virtual-hosting-howto.html Does this work for TC5.5.x??? that is for TC6 -Original Message

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Jeff Hoffmann
Mark Thomas wrote: ahnf wrote: My question is, is there any way other than making the application's root directory be "ROOT" or deployed under ROOT/ in order to get it to respond to "/"? I tried the "path" attribute but it says that it is only valid when the is defined in server.xml and not i

Re: Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread Mark Thomas
ahnf wrote: My question is, is there any way other than making the application's root directory be "ROOT" or deployed under ROOT/ in order to get it to respond to "/"? I tried the "path" attribute but it says that it is only valid when the is defined in server.xml and not in META-INFO/context.xml

RE: Incorrect cookie value in tomcat5.5.26

2008-02-26 Thread Sushil Vegad
Our code is the same as yours. Our scenario is we set the username in the cookie when the user logs in Cookie cookie = new Cookie(Constants.REMEMBERME, username); cookie.setVersion(1); cookie.setMaxAge(Integer.MAX_VALUE); response.addCookie(cookie); When the user opens a new browser inst

Re: Why is session unbound called after cluster failover?

2008-02-26 Thread Filip Hanik - Dev Lists
kill -9 my friend :) Andrew Hole wrote: The "valueUnbound" is NOT being propagated from the TC instance shutting down across the cluster. The valueunbound is executed when I do the shutdown of an TC instance (session logout tracking was done -> database record inserted). After that I still wor

Re: How to make Tomcat do not use /dev/random?

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Alan, Alan Chaney wrote: | Problems with /dev/random relate to waiting to generate enough entropy | after restart of the OS. Does this slow start up happen only after the | machine has been restarted or does it happen every time Tomcat is | started?

RE: NIO connector under heavy load drops incoming requests?

2008-02-26 Thread Emile Litvak
Filip, I tried it with 1, 2 or 4 acceptors and it had the same rate of processing (about a third of all incoming requests). If you figure out what is going on, and I'll send in the interesting stack trace :) I think I am going to file a bug for tracking/documentation purposes. Sooner or later thi

Virtual Hosts: path="/" without using ROOT folder?

2008-02-26 Thread ahnf
Hi, We would like to have 2-4 virtual hosts setup on a Tomcat 5.5.x server. I want all of these applications to respond under "/" I have read all the documentation on how to setup a new "host" in server.xml with a custom appBase and then specify your "context" file in META-INF. My question is,

Re: Tomcat & Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, excuse the top post but one caveat: IMHO as I hurriedly explained in the first post the all-around best and SERIOUS tesing using JMeter is the distributed testing. However, like a lot of FOSS JMeter is not without a gothca: JMeter has a concurrency problem but the work around is eas

Re: Security and Performance Configuration

2008-02-26 Thread Peter Stavrinides
Hmm... AJP Connector is definitely an option. Mark H. Wood wrote: Well, IF you are sure you want to use Apache HTTPD to frontend Tomcat, there's no reason for Tomcat to run an HTTP connector at all. Just use the AJP connector, and only allow it to listen to your frontend service(s), or firewall

Re: Tomcat & Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, you would fare much better to join the JMeter ML where the real gurus haunt. HTH, David. Steve Burt wrote .. > Hi David, > > Really appreciate your pointers.. but cant give you all the answers as > i am not on site yet... > > I have downloaded JMeter and hey presto it works out of

Re: Tomcat & Cisco Loadbalancers

2008-02-26 Thread Andrew Miehs
On 26/02/2008, at 2:26 PM, Steve Burt wrote: pix firewall -> cisco loadbalance -> apache webservers -> application -> Oracle DB Problem that I am expericing is every time I try into introduce the appserver into the loadbalancer config, the keep alive request seems to be agrivating tomcat and c

Re: Tomcat & Cisco Loadbalancers

2008-02-26 Thread Steve Burt
Hi David, Really appreciate your pointers.. but cant give you all the answers as i am not on site yet... I have downloaded JMeter and hey presto it works out of the abox as it said it would after I configured my $PATH variable to point to the correct jdk.. So Now I need to create a simple test..

Re: Session expiration and AJAX issues

2008-02-26 Thread Adam Gordon
Not easily. See Christopher's response in this thread chain. There is not currently a way to not tell Tomcat that a request has come in and not update the last ping time (or similar) on the Session. Jason Pyeron wrote: -Original Message- From: Adam Gordon [mailto:[EMAIL PROTECTE

Re: How to make Tomcat do not use /dev/random?

2008-02-26 Thread Alan Chaney
Problems with /dev/random relate to waiting to generate enough entropy after restart of the OS. Does this slow start up happen only after the machine has been restarted or does it happen every time Tomcat is started? If the latter, then it is unlikely to be associated with /dev/random and much

Re: JVM Uninstall

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Pranab, [EMAIL PROTECTED] wrote: | ops...please find attached now. You will probably have to re-install your service (not Tomcat entirely... just the service) since Tomcat has moved. I think you can adjust the existing service in-place, but in your

Re: sessionID moves to other PC

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Sascha, Sascha Monteiro wrote: | I now put <% out.println(session.getId()); %> in the page.. | I see my sessionID, but then navigate to another page and then see the | sessionID of the other user! | then I press reload in my browser, and I get my own

Re: Custom URL handlers in Tomcat web app

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | actually I just realized that this is not gonna help if Tomcat does not honor | the java.protocol.handler.pkgs setting, because even if Tomcat can load the JAR | and knows where to look for it, it would still need to read this s

Re: Custom URL handlers in Tomcat web app

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Matthias, MK wrote: | Christopher Schultz christopherschultz.net> writes: |> |> As I'm reading more in the API, I can see that the URL class has a |> constructor that takes a URLStreamHandler. Could you utilize this |> constructor instead? | | that'

Re: Tomcat plans for per-webapp session replication

2008-02-26 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Andrew, Andrew R Feller wrote: | My apologies; let me clarify: | | Are there plans for session replication such that configuring server.xml | is unnecessary? So rather than configuring it at the server level and | simply marking a webapp as distribu

Re: Tomcat & Cisco Loadbalancers

2008-02-26 Thread David Brown
Hello Steve, this does not mean there is anything inherent in the use of the loadbalancer that is causing the problem. IMHO you need to establish a baseline metric with a real JVM testing tool (like JMeter). You need to create a model of the real production environment and network topology using

Tomcat & Cisco Loadbalancers

2008-02-26 Thread Steve Burt
Hi Folks, This is a resurection of a problem that I think many fellow Administrators are experiencing but I think there has never been a real solution to the problem... I am responsible for a web application config is as follows pix firewall -> cisco loadbalance -> apache webservers -> applicat

RE: Tomcat plans for per-webapp session replication

2008-02-26 Thread Andrew R Feller
My apologies; let me clarify: Are there plans for session replication such that configuring server.xml is unnecessary? So rather than configuring it at the server level and simply marking a webapp as distributable, you could configure session replication in a webapp's META-INF or WEB-INF. Thanks

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-26 Thread emerson cargnin
Hummm, right, I haven't thought of it. But this would make the whole deployment process awkward. The generation of the war and it's expansion would have to be done manually, but it's one more option. Thanks Emerson On 26/02/2008, Johnny Kewl <[EMAIL PROTECTED]> wrote: > > -

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-26 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-26 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --

Re: JVM Uninstall

2008-02-26 Thread Tim Funk
Most likely - the new jvm was installed into a different directory. And the tomcat service knows nothing about the new directory. The easiest thing to do would be to go into the registry and find the Tomcat service - and then change the JVM path in the registry as needed. (I can't recall the k

Re: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Johnny Kewl
--- HARBOR: http://coolharbor.100free.com/index.htm The most powerful application server on earth. The only real POJO Application Server. Making the Java dream come true. --

Re: Mapping JSP's to outside of the war or expanded folder

2008-02-26 Thread emerson cargnin
Still, the main issue that remains is the jsp's. We have three options here: - Creating symlinks: this solves the problem in linux. In windows we would have to copy manually or through a build script/maven extension the content from outside the project to inside the war. Always a risk to have dif

Re: sessionID moves to other PC

2008-02-26 Thread Sascha Monteiro
I accessed from a new pc, which never accessed the page... I'll do the System.out too ta Sascha - Original Message - From: "Yuval Perlov" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Tuesday, February 26, 2008 11:28 PM Subject: Re: sessionID moves to other PC Maybe the browser

Re: sessionID moves to other PC

2008-02-26 Thread Yuval Perlov
Maybe the browser is getting an old page from the cache? Clear the browser cache and see if its better. Also, use a System.out.println() and make sure what you are seeing on the browser is what really happens on the server. Yuval Perlov www.r-u-on.com On Feb 26, 2008, at 10:22 AM, Sascha Mo

RE: how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
Sorry for sending again, add the version info here: Tomcat version: 6.0 Http Connector: org.apache.coyote.http11.Http11NioProtocol Thanks Han

Connection Pooling

2008-02-26 Thread abhishek reddy
Here are the pool configuration details in context.xml file. software: database : oracle 9i server: tomcat 5.5 iam getting the following error: java.sql.SQLException: [Oracle][ODBC][Ora]ORA-00020: maximum number of processes (150) exceeded. I have set the maxActive to 130 then

how to send http response in several chunked package with Tomcat

2008-02-26 Thread Hanks Wang (hanwan)
Hi all, Is there a way to make tomcat generate http response in chunked-encoding style? suppose I have a file resp.log and I can parse it in byte[], how can I send the byte array in several chunked package? Any suggestion is welcome! Thanks Han

RE: JVM Uninstall

2008-02-26 Thread Quodras, Naveen
Did you set your JAVA_HOME environment variable correctly ?? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 4:23 AM To: [EMAIL PROTECTED]; users@tomcat.apache.org; users@tomcat.apache.org Subjec

Re: JVM Uninstall

2008-02-26 Thread Antonio Petrelli
2008/2/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > I think you have not understood what I'm saying, we are facing one > problem. We have uninstall the JVM and install it again in our production > tomcat server, but the tomcat services it not working although it is set to > automatic. Please find

RE: JVM Uninstall

2008-02-26 Thread pranab.das
I think you have not understood what I'm saying, we are facing one problem. We have uninstall the JVM and install it again in our production tomcat server, but the tomcat services it not working although it is set to automatic. Please find attached the error. >From the event logs we find that

Re: JVM Uninstall

2008-02-26 Thread Mary Joseph
After un installing , did you install a JVM? >>> <[EMAIL PROTECTED]> 02/26/08 2:37 PM >>> Hi Folks, Can any body say if unstalling of JVM in a machine will effect to the Tomcat service/server. We need to update the JVM in our production machine where Tomcat 4.1 is running, Becausewe have u

RE: JVM Uninstall

2008-02-26 Thread Quodras, Naveen
:) -Original Message- From: Antonio Petrelli [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 26, 2008 4:10 AM To: Tomcat Users List Subject: Re: JVM Uninstall 2008/2/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Can any body say if unstalling of JVM in a machine will effect to the >

Re: JVM Uninstall

2008-02-26 Thread Antonio Petrelli
2008/2/26, [EMAIL PROTECTED] <[EMAIL PROTECTED]>: > > Can any body say if unstalling of JVM in a machine will effect to the > Tomcat service/server. WTF? In what language do you think Tomcat is written? Antonio

JVM Uninstall

2008-02-26 Thread pranab.das
Hi Folks, Can any body say if unstalling of JVM in a machine will effect to the Tomcat service/server. We need to update the JVM in our production machine where Tomcat 4.1 is running, Becausewe have unstall the JVM but tomcat fails to start, please suggest anybody. Thank you!! Thanks & Rega

Re: sessionID moves to other PC

2008-02-26 Thread Sascha Monteiro
Thanks, I now put <% out.println(session.getId()); %> in the page.. I see my sessionID, but then navigate to another page and then see the sessionID of the other user! then I press reload in my browser, and I get my own session again, till I navigate again... I am not sure if the session is r

executor does not work with AJP connector

2008-02-26 Thread nitin dubey
Hi, I tried configuring executor in tomcat 6.0.14 for AJP Connector like following: While starting tomcat it gives this error. Any problem with the configuration OR this is a bug? Feb 26, 2008 1:42:36 PM org.apache.tomcat.util.digester.Digester startElement SEVERE: Begin event threw excepti