[Tomcat] Looking for JSESSIONID in Tomcat

2006-07-28 Thread gaston . azerty
Hello, My cuurent work relates to a context where we want to update a J2EE application without stopping it. So it exists a period during which we have two kinds of clients : Those who are working on the "old version" and the others who are working on the "new version". As a result we have to sep

Re: Tomcat 5.5.17 won't Start

2006-07-28 Thread Raju Balugu
Hi , It seems to be the port problem.Can u please let us know what changes you have done for IPv6 activate? Did u change anything in server.xml ?are you working apache also? Regards Raju On 7/27/06, KuArZo <[EMAIL PROTECTED]> wrote: This is the error: java.net.BindException: Can't assign re

File Writing Permission Problem with Tomcat

2006-07-28 Thread Li
Hi guys, I am running a struts app on tomcat 5 on Fedora 4 (psa v8.0.1_build80060613.20 os_FedoraCore 4), when i was trying to upload file and write the file into a folder inside my apache vritual host folder, i have exception says, file writing denied. Selinux is disabled, i had assigned the

Re: [SPAM:] - tomcat , wondoze , Unable to find a javac compiler; - Email has different SMTP TO: and MIME TO: fields in the email addresses

2006-07-28 Thread Raju Balugu
Hi My comments in line with <<>> On 7/28/06, Leo Donahue - PLANDEVX <[EMAIL PROTECTED]> wrote: From the Tomcat 5.0 setup page: http://tomcat.apache.org/tomcat-5.0-doc/setup.html "Java location: The installer will use the registry or the JAVA_HOME environment variable to determine the base pa

Apache fails to talk to Tomcat

2006-07-28 Thread Barry Clarkson
Hi all, I have just installed Tomcat with mod_jk on the same machine and performed the necessary configuration with workers.properties, server.xml etc. I can connect to the port directly with Tomcat (http://:8090/dir) but if I omit the port and go through Apache the jk.log indicates that "Tomca

Re: Apache fails to talk to Tomcat

2006-07-28 Thread Mladen Turk
Barry Clarkson wrote: Red Hat Linux AS 4 Mod_jk 1.2.18 (binary distribution mod_jk-apache-2.0.49-linux-i686.so) Apache 2.0.52 worker.ajp13.cachesize=10 Remove this directive. I suppose you are using prefork mpm? server.xml: What is the number of StartServers in httpd.con

RE: Tomcat and Sun's Application server

2006-07-28 Thread Jon Hoffman
Thank you so much for the reply but it did not work. Tomcat would not even start up it threw a bunch of exceptions like the one at the bottom of this reply: I wish they would make the servlet-api and jsp-api generic so you could swap them between servlet-containers. It just can not seem to unders

Multiple JAAS configurations, one Tomcat

2006-07-28 Thread Mikolaj Rydzewski
Hi, I wonder if there are any chances to get my setup working. I'd like to know it before I start digging in the docs ;-) My goal is: * deploy several (at least two) different applications with security constraints defined in web.xml * use JAAS realm to auntethicate users * use

Out Of Memory - String Operation

2006-07-28 Thread Viks
Hi, My app is running out of app. Code does a lot of string opeartion.It involves fetching records from DB Initially i was using string objects- Program used to finish in about 40-45 min with ~95 cpu usage We did some optimization on the code like changing the query from S

Re: Out Of Memory - String Operation

2006-07-28 Thread Mikolaj Rydzewski
Viks wrote: My app is running out of app. Why do you think it is tomcat specific problem? -- Mikolaj Rydzewski <[EMAIL PROTECTED]> smime.p7s Description: S/MIME Cryptographic Signature

Problems reading XML file from Tomcat 5.5, ¿Have Tomca t a file cache?

2006-07-28 Thread Yeray Santana Borges
Hi, i have problems when i read a xml file from tomcat. My application read this file, make something with it, call a servlet that write the file in tomcat web directory. After, when my application reading the file again, the server returned the old copy. I must wait a time, reading again the file

Re: Out Of Memory - String Operation

2006-07-28 Thread David Delbecq
Viks wrote: Hi, My app is running out of app. Code does a lot of string opeartion.It involves fetching records from DB Initially i was using string objects- Program used to finish in about 40-45 min with ~95 cpu usage String concatenation like this String c = a+b; is done in

Problem while submiting the page

2006-07-28 Thread Prafulla Nawale
Hi, I am facing one problem on submit of jsp. I think its most probably an issue related to javascript. Can you please help me in figuring out it. There is a button on the screen, on click of that button i invoke the javascript function and in that function i submit the form two times, to two d

How to run EJB in Tomcat itself ?

2006-07-28 Thread chanchal bera
Hi All, I came to know that Tomcat 5.5.17 itself is now supporting to run EJB, but not sure! No such proper information is available in the Tomcat Site. If possible, can any body give information about how to run EJB in Tomcat itself, not integrating with any EJB container?       Tha

RE: Tomcat 5.5.17 won't Start

2006-07-28 Thread KuArZo
Nothing change on server.xml and you have reason, the port is the problem, i install "diablo-jdk1.5.0" and disable "jdk-1.5.0p3_2" and run without problems. This is for FreeBSD Admin. Thanks KuArZo -Original Message- From: Raju Balugu [mailto:[EMAIL PROTECTED] Sent: Viernes, 28 de J

Re: Problem while submiting the page

2006-07-28 Thread Frank W. Zammetti
Hi, I think you might be running into a timing issue. I would suggest this... onClick of the button, first, disable the button, and then set a timeout, set for like 1 millisecond (which is probably a lower resolution than is available, but it will basically fire immediately, that's what you

Tomcat 5.5.17 can connect to any webserver without mod_jk ?is this true?

2006-07-28 Thread Raju Balugu
Hi All, I recently migrated to tomcat5.5.17 from 4.1.29.I got the info like we can connect to any webserver wihout the mod_jk .is this true?please let me know ?if yes ,how to configure that? (Currently tomcat 5 can connect with any webserver without using mod_jk connector. Tomcat 5 has a connect

Re: How to run EJB in Tomcat itself ?

2006-07-28 Thread Raju Balugu
As for my knowledge ,Tomcat 5.5.17 is not supporting for EJB u need to go by other application server ...weblogic or websphere.. Regards Raju On 7/28/06, chanchal bera <[EMAIL PROTECTED]> wrote: Hi All, I came to know that Tomcat 5.5.17 itself is now supporting to run EJB, but not sure!

Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread David Gagnon
Hi all, Thanks for the info! I do need some more details since there is some obscur points. For now I only have 1 host with lots of application under it So (1 host->X applications). If I want to use virtual host I do need to have 1 vHost per application (1 host -> 1 application) right ?

Re: An exception, would anybody tell me the reason?

2006-07-28 Thread Christopher Schultz
Pang, > Hi , I deployed a app in tomcat, and monitored this with thread dump. > > Now I get an exception as below. Who can tell me the possible reason. > > Thanks in advance for your replies. There does not appear to be an exception in there. It's just a stack trace, which one would expect to r

Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread Hassan Schroeder
On 7/28/06, David Gagnon <[EMAIL PROTECTED]> wrote: For now I only have 1 host with lots of application under it So (1 host->X applications). If I want to use virtual host I do need to have 1 vHost per application (1 host -> 1 application) right ? No. A virtual host can have an arbitrary numb

Re: newbie installation problems

2006-07-28 Thread Christopher Schultz
Timothy, The more likely scenario is that the original poster modified his login scripts (/etc/profile, for example), and then never ran them. Try: $ source /etc/profile or whatever login script is appropriate for your shell. That ought to help. -chris Timothy Collett wrote: > On Jul 27, 2006

Re: servlet and HTTP authentication

2006-07-28 Thread Christopher Schultz
Kristian, > However, following this approach I cannot use container-based > authentication as the DBMS user management repository is not easily > accessible via such a configuration but there are Java classes to > authenticate the user using an API which to be called from another Java > class, a s

Re: Unavailabe to retrieve the list of portlets

2006-07-28 Thread Christopher Schultz
Keyur, > I wanted to make the tomcat container secure. So I converted the http > to https by generating self signed certificate. [snip] > [gridsphere portal] was unable to show the list of portlets > running which it was previously showing before making the tomcat > container secure. When using

Re: newbie installation problems

2006-07-28 Thread D. Salemink Klikstudio
I dont know what the problem was, i did so many things to try to solve it, I'm almost sure I exited tomcat before starting up the newer version but i cant be sure. Whatever it was ,the system restart solved my problem! On 7/28/06, Christopher Schultz <[EMAIL PROTECTED]> wrote: Timothy, The mor

Re: Password retries

2006-07-28 Thread Christopher Schultz
Simon, > Has anyone done anything with tomcat authorisation to configure in a > maximum number of retries before an address/account is blocked. I'm pretty sure that Tomcat's authentication system does not support this feature. You could probably write your own authenticator to track that kind of

Re: [Tomcat] Looking for JSESSIONID in Tomcat

2006-07-28 Thread Christopher Schultz
Thomas, > My current work relates to a context where we want to update a J2EE > application > without stopping it. Well, you'll certainly have to stop the application at some point. I assume you mean that you don't want a complete cut-over to the new system: you need a phased cut-over to assure

Re: File Writing Permission Problem with Tomcat

2006-07-28 Thread Christopher Schultz
Li, > when i was trying to upload file and write the file into a folder inside my > apache vritual host folder, i have exception says, file writing denied. Have you confirmed that the path is what you expect (i.e. is really is trying to write to /your/target/directory instead of /somewhere/else/y

Re: Tomcat and Sun's Application server

2006-07-28 Thread Christopher Schultz
Jon, > It just can not seem to understand why it is so hard to get a Java > servlet container to communicate with an Enterprise Java Bean, it > seems like they should work together seamlessly. Forgive my ignorance (I don't have much experience with EJBs), but it sounds like you are trying to use

Re: Tomcat Upgrade

2006-07-28 Thread Ibrahim . Siddiqui
Anyone know of website which has a step by step procedure to upgrade? "Guilherme Silveira" <[EMAIL PROTECTED]> Sent by: [EMAIL PROTECTED] 07/27/2006 08:28 PM Please respond to "Tomcat Users List" To: "Tomcat Users List" cc: Subject:Re: Tomcat Upgrade

[OT] Re: Out Of Memory - String Operation

2006-07-28 Thread Christopher Schultz
Viks, > My app is running out of [memory]. > > Code does a lot of string opeartion. It involves fetching records > from DB. [snip] > For around 100k records my apps goes down on memory. > > Wondering if the app is able to sustain on String Obj why it is going > down with StringBuffer Objects.

Re: Tomcat Upgrade

2006-07-28 Thread Andrew Miehs
On 28/07/2006, at 6:55 PM, [EMAIL PROTECTED] wrote: Anyone know of website which has a step by step procedure to upgrade? What exactly is your problem with upgrading? The 'webapp' or the installation of tomcat 5? I would just install a new version of tomcat, with the JVM that you want,

RE: Tomcat and Sun's Application server

2006-07-28 Thread Jon Hoffman
What I am trying to do is access an EJB from a Tomcat servlet which is what EJB's are designed for. For example, lets say I have an EJB that excepts a two Strings. One is the username and the other is the Password. The EJB then verifies the username/password with the datasource and sends a succe

Re: Problems reading XML file from Tomcat 5.5, ¿Have Tomcat a file cache?

2006-07-28 Thread Christopher Schultz
Yeray, > Sorry if my english is not correc No problem. We can usually figure out what you're trying to say. I just hope you understand the response. :) Let me see if I've got this right: 1. You request an XML file from your server. 2. You process this file and make modifications. 3. You post th

Session not released after session.invalidate()

2006-07-28 Thread Laurent Duperval
Hello, I am using JBoss 3.2.5 with Tomcat 5.0.26. We are doing performance testing and we have found some issue which may be related to the way Tomcat handles sessions. Specifically, when we do a login/logout then look at the active sessions using the JBoss console, it says that there is one acti

Re: Problem while submiting the page[OT]

2006-07-28 Thread Christopher Schultz
Prafulla, FYI, this post is totally off-topic. Please indicate it as such. > There is a button on the screen, on click of that button i invoke the > javascript function and in that function i submit the form two times, to two > different actions. This is not going to work: the web wasn't inten

Re: Tomcat and Sun's Application server

2006-07-28 Thread Christopher Schultz
Jon, > What I am trying to do is access an EJB from a Tomcat servlet which is > what EJB's are designed for. Sure, EJBs are designed to be used from servlets, but they can't really leave their containers (as you have found). Since you need j2ee.jar available to support the EJBs, there are all kin

RE: Tomcat and Sun's Application server

2006-07-28 Thread Jon Hoffman
You are right it is an imcompatibilities between the Libraries. The j2ee.jar contains a servlet.class that conflicts with the servlet.jar. I have tried "cutting" out portions of the j2ee.jar that interferes with the servlet.class but then I get exceptions from other parts tring to access servlet.c

RE: Tomcat and Sun's Application server

2006-07-28 Thread dhay
Have you looked at Spring? J2EE without EJB (in most cases). Many are finding it a MUCH better solution... cheers, David |-+> | | "Jon Hoffman"| | | <[EMAIL PROTECTED]| | | ch.com> | |

RE: Apache - Tomcat connector

2006-07-28 Thread Atul Govande
Thanks, I am using mod_jk in auto config. mode as my Apache and Tomcat are on one machine. I setup the httpd.conf to load mod_jk.so . Started Apache by apachectl start command. Then try to run the numberguess example, but it appears to me that jsp pages are not executing correctly. I get internal s

Re: Tomcat using only 1 cpu

2006-07-28 Thread David Rees
On 7/27/06, Guilherme Silveira <[EMAIL PROTECTED]> wrote: If running CpuTest once gives you 25% its a OS/java problem. If it gives you 100%... its tomcat's fault... This particular problem is not likely to be Tomcat's fault, it's most likely a synchronization/perfromance bug in the applicat

Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread David Gagnon
Yes but for each URL: http://vhost1.site.com http://vhost2.site.com I need a host entry in server.xml, so in this case 2 host defined in server.xml. Is there a way to have only 1 host defined and using alias or something like this ? Thanks /David Hassan Schroeder wrote: On 7/28/06, David

Re: How to run EJB in Tomcat itself ?

2006-07-28 Thread Maurice Yarrow
Hello Raju Try OpenEJB, which can be run in both tomcat-embedded mode (drop their openejb_loader .war into tomcat/webapps) and also a detached server mode. http://openejb.codehaus.org/download.html This is an open-source product, and they have a good e-mail user support community. It is a

Re: [OT?] is there a way to map an application URL on tomcat like: http://a.com/app1 to http://app1.a.com/

2006-07-28 Thread Hassan Schroeder
On 7/28/06, David Gagnon <[EMAIL PROTECTED]> wrote: Yes but for each URL: http://vhost1.site.com http://vhost2.site.com I need a host entry in server.xml, so in this case 2 host defined in server.xml. Is there a way to have only 1 host defined and using alias or something like this ?

Re: Password retries

2006-07-28 Thread Maurice Yarrow
Simon, Chris If you write your own mechanism, you might want to take a look at the configuration script for "DenyHosts", which is a highly configurable tool for port blocking (via mods to /etc/hosts.deny) of sshd upon too-many failed attempts in a given time interval. This is similar to what you

RES: Back to 404 problem: The requested resource (/Sisc/servlet/s ervle ts/PesquisaTabPeriferica) is not available

2006-07-28 Thread Siomara
Thanks Guilherme and everybody else that helped me regarding the 404 problem The mistake was mine. I decided to create a web.xml file from scratch insted of using an existing one and by mistake included all my servlets into one and tag. It was working fine with just one servlet but the second o

connectionTimeout and reusing Tomcat threads

2006-07-28 Thread Ramdas . Hegde
Hello I have an application which uses Apache(2.0.53) as the Webserver and mod_jk(1.2.10) to forward servlet/jsp requests to Tomcat(5.0) as part of the JBoss container - all running on Linux. It looks like mod_jk is not reusing the existing connections that it establishes with the Tomcat resulti

RES: Out Of Memory - String Operation

2006-07-28 Thread Siomara
I faced the same problem once and solved it by closing resultsets, statments, setting them to null and forcing garbage colletor from inside my application. try speading out "System.gc();" in estrategic points of your application. -Mensagem original- De: Viks [mailto:[EMAIL PROTECTED] Env

Re: Tomcat and Sun's Application server

2006-07-28 Thread Rainer Jung
Tomcat will not load any webapp jar containing javax.servlet.Servlet or javax.servlet.jsp.JspPage. I would suggest to remove package javax.servlet from your j2ee.jar. Furthermore trouble is to be expected, if you try to load classes java.* from webapp jars. I guess you don't use the security manag

Re: connectionTimeout and reusing Tomcat threads

2006-07-28 Thread Rainer Jung
I know this sounds very general, but 1.2.10 is quite antique. First update to 1.2.18, try again and if your problem is still reproducible, post your config (workers.properties and Jk* from httpd.conf) and relevant parts of the mod_jk-Logfile with LogLevel trace. Also try to relate tcp connection i

Re: Problems with IE6, AJP1.3, Apache httpd and tomcat

2006-07-28 Thread Rainer Jung
You should download the most recent release jk-1.2.18 under http://www.apache.org/dist/tomcat/tomcat-connectors/jk/binaries/ Concerning 1.2 vs. 1.3: There are AJP protocol version 1.2 and 1.3. Tomcat and mod_jk support both, but 1.2 has been deprecated a long time ago. This is independant of the

Tomcat running as service on XP? Runtime.getRuntime().exec(commandLine)

2006-07-28 Thread Warren
I have Tomcat 5.5 installed on a Windows XP machine. I am running an app that uses MS Access to print reports via: Process p = Runtime.getRuntime().exec(commandLine); So far this combination has been very reliable when running Tomcat under the current logged in user. But when I run Tomcat as a se

Databaseaccess speed

2006-07-28 Thread Jan Strauch
Hello world !!! I have a greater problem with delays between write and read-access using tomcat. The scenario: tomcat 5.0.28 mysql Ver 14.7 Distrib 4.1.10a, for suse-linux (x86_64) 1. a servlet inserts data given by user via browser into the database 2. a second servlet uses these data to crea

Re: Databaseaccess speed

2006-07-28 Thread Christopher Schultz
Jan, > The problem is: this only works if there are 30 minutes time between 1. and 2. The only thing that I can think of is that you have autocommit set to FALSE and are never committing the transaction. However... > - all connections of the servlets are closed after the job > - all variables ar

Missing Request Parameters

2006-07-28 Thread rache
Parameter values are set in the jsp either as hardcoded links(http://j.jsp?param=value) or as hidden parameters. When the program enters the doGet() or doPost() method of a servlet and check for the parameter, its null. String pvalue = req.getParameter("param"); This happens intermittently. Is t

where can I find the rule about how to translate JSP to servlet jave?

2006-07-28 Thread Peng Li
Hi in tomcat, the jsp is translated to java, and then compiled to class. does anyone know where can i find the rule about how to do the translation? appreciate any help cheers Peng

Re: Missing Request Parameters

2006-07-28 Thread Ben Souther
Since all webapps rely on request parameters, I'd say this would be a huge bug if it were one. So huge that it would render Tomcat unusable for any commercial grade application. Such a bug would fill this list with hundreds or thousands of complaints. Since we're not seeing those complaints, it'

Re: Missing Request Parameters

2006-07-28 Thread rache
That's what I was thinking - that it couldn't have been a bug :) I'm quite new to Tomcat but I know it coundn't have been one since many are using it. I don't have any code access now since codebase is at the office. But this usually occur after redirects. Most of the pages (servlets and those ur