Re: Logout for multiple webapps.

2005-12-07 Thread Peter Rossbach
Use SingleSignOn Valve Peter Mathew Joseph schrieb: Hi, My web application consists of 2 webapps. And these are internally invoking each other. Or the user itself can make calls to any of these webapps using the common menu page. Now, when i try to logout (session.invalidate()), its

Re: Internationalization Problem with Tomcat 5.5.9

2005-12-07 Thread Vijay Babu
On 12/8/05, Vijay Babu <[EMAIL PROTECTED]> wrote: > > Hi, > > Thanks for your suggestions. But unfortunately none of them worked. > > Actually the application sets the Locale based on browser settings. So > the response encoding is set to the appropriate Locate that is set in the > browser with

Re: Internationalization Problem with Tomcat 5.5.9

2005-12-07 Thread Vijay Babu
Hi, Thanks for your suggestions. But unfortunately none of them worked. Actually the application sets the Locale based on browser settings. So the response encoding is set to the appropriate Locate that is set in the browser with Tomcat 4. But its always set to ISO-8859-1 with Tomcat 5 and t

Logout for multiple webapps.

2005-12-07 Thread Mathew Joseph
Hi, My web application consists of 2 webapps. And these are internally invoking each other. Or the user itself can make calls to any of these webapps using the common menu page. Now, when i try to logout (session.invalidate()), its not logging off from both webapp sessions. Is there any way

RE: Mapping a war to a context located in a subdirectory.

2005-12-07 Thread Caldarale, Charles R
> From: Leif Mortenson [mailto:[EMAIL PROTECTED] > Subject: Mapping a war to a context located in a subdirectory. > > Is there a way to map a web application's context > directory to be located in a directory that is not > a direct child of the root. Not quite sure what you mean by "root", but

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread John Poley
*sigh* it just had to be something simple, didn't it? Even right in front of me with the http://tomcat.apache.org/tomcat-5.5-doc/class-loader-howto.html page that someone suggested earlier. I put freemarker in the tomcat/shared/lib directory and all is well. I am having serious issues grasping t

Mapping a war to a context located in a subdirectory.

2005-12-07 Thread Leif Mortenson
Sorry if this is a simple question. Is there a way to map a web application's context directory to be located in a directory that is not a direct child of the root. For example, I would like to map my web app to be: /R1234/myapp/ Then if possible, map another web app to: /R1234/myappadmin/ or eve

Re: Start Tomcat as a Linux daemon

2005-12-07 Thread Warren Pace
Mario, Have you recently installed ver 5.5.12 and created symlinks to "jakarta-tomcat"? If not your script needs to be edited to reflect the new directory structure - CATALINA_HOME=/usr/local/apache-tomcat-5.5.12 DAEMON_HOME=/usr/local/apache-tomcat-5.5.12/bin Otherwise, just strip the /bin o

Re: question about mod_jk2 and workers2,properties

2005-12-07 Thread Robert Palmer
Thanks for your help. I resolved this. The version of apxs that Plesk had installed was for Apache 1.3. I downloaded the httpd-devel package for 2.0.51 and was able to get this working. Mladen Turk wrote: Robert Palmer wrote: I'm running 2.0.51 of Apache. I build mod_jk with --with-apxs. ??

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread Tim Funk
BINGO! freemarker.jar does not belong in the system classloader. It belongs in WEB-INF/lib. [ Quick rule of thumb - putting a lib in java/lib/ext will cause problems 99% of the time. ] -Tim John Poley wrote: And as for me, since we seem to be having similar issues, I cut out eclipse

Re: Start Tomcat as a Linux daemon

2005-12-07 Thread Warren Pace
Which tomcat version? On Wed, 2005-12-07 at 12:35 +, Mário Gamito wrote: > Hi, > > I'm trying to start Tomcat as a linux daemon at server boot, but i don't > have jsvc (although i've installed package admin), like explained in > Tomcat's page. > > An year ago or so, i had this ctl script tha

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread John Poley
And as for me, since we seem to be having similar issues, I cut out eclipse all together, worried that somehow it was cause some kind of issue. I have a .war file that was was exported by a colleague who is running the same .war within tomcat and having no trouble at all with it. I copy that .wa

Re: Can anyone give suggestions on Best practices for Farmwardeployer in a tomcat cluster??

2005-12-07 Thread Kim Brianne Go
Peter, Thank for the info. Previously I was having problems with inconsistent classes when we do some patches on the deployed application on Tomcat. Somehow the changes made to the jsp files were inconsistent with the parsed results displayed over the browsers. Is there another way of dealing wi

Permissions issues

2005-12-07 Thread Ryan Daly
All: I'm noticing something else strange. I'm attempting to bring up a web application using the Security Manager. I have the following coming up in my catalina.out log: access: access denied (java.lang.RuntimePermission getClassLoader) Yet, I have the following in my catalina.policy file:

Tomcat Connection Pool config

2005-12-07 Thread dan stephens
Has anyone else tried to use the connection pool in Tomcat with the below parameters.. removeAbandonedTRUE removeAbandonedTimeout10 logAbandonedTRUE I can see that when I first issue a connect I get below, and I can use that datasource. But according to the commons-dbcp

Re: connection pooling and character set problem

2005-12-07 Thread tvrtko stosic
Thanks Mark. Besides that, I used wrong property. Right statement should be: &useUnicode=true&characterEncoding=charset Now server.xml is ok but I'm still getting strange characters when retrieving text from database. I changed characterEncoding property to several differe

Re: Java databases as alternative to MySQL on OS X Server? (OT)

2005-12-07 Thread Stanley Bradbury
Mieke Banderas wrote: Mike Sabroff suggested: Cloudscape is it faster than Apache Derby in your experience? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] The IBM

Unable to switch back from https to http

2005-12-07 Thread Kondadasula, Vikram
> I want only the login in ssl and rest in non-ssl.So from the welcome page > when somebody clicks login goes to login page.The login is > in ssl/https mode and after that remaining pages should be in > non-ssl(http)mode. > > I am able to switch from http to https but unable to switch from htt

RE: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread Armand Rock
I personally have not changed any classpath settings. The classes are build using Eclipse SDK Version 3.1.1 with the Tomcat plugin from sysdeo (3.1.0.beta). I have noticed that the NoClassDefFoundError occurs on specific pages but only the first time the pages are loaded, everything else within th

Security manager issue

2005-12-07 Thread Ryan Daly
All: I have discovered the following in catalina.out: policy: reading file:/opt/tomcat/v5.5.12/logcom.dev.ctc.com/conf/catalina.policy policy: Adding policy entry: policy: signedBy null policy: codeBase file:/usr/java/jdk1.5.0_04/jre/lib/- policy: (java.security.AllPermission ) policy: p

Re: changing the webdav root

2005-12-07 Thread Mark Thomas
Tony wrote: > Has the webdav servlet been updated to allow the dav files to be placed > outside of the servlet context? > > For example I would like to specify the DAV files be placed on /space/dav. > > There was a thread on this about a year ago but i'm not sure if there was > ever closure. The

Re: connection pooling and character set problem

2005-12-07 Thread Mark Matthews
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 tvrtko stosic wrote: > I use connection pooling with Tomcat 5.5.4. Corresponding entry in > server.xml looks like this: > > crossContext="true"> > maxActive="100" maxIdle="30" maxWait="1" username="user" password="java" > driverClassName="co

Re: Re: Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Raja Neravati
I can try tuning this on the servers. But as I told in my first email, this wierd problem started happening only after migrating to Tomcat 5.5. So if these were to create a problem, I should have faced it in 4.0.6 also - Right. ..Raj On Thu, 08 Dec 2005 Mladen Turk wrote : >Raja Neravati wrote

AW: Howto delete a file with a servlet???

2005-12-07 Thread Anne Milbert
Yes, now it works. Thanks a lot. regards, anne -Ursprungliche Nachricht- Von: Carl Olivier [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 7. Dezember 2005 19:35 An: 'Tomcat Users List' Betreff: RE: Howto delete a file with a servlet??? Hi. Solution 2 - 1 is not a great idea! Also, try

Re: RE: Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Raja Neravati
I quickly looked at my Tomcat 4.0.6 settings. It was also having AJP 1.3 connector only. Please have a look at this: - *** Tomcat 4.0.6 *** Please let me know if I am missing anything. Thanks & Regards, ..Raj   On Wed, 07 Dec 2005 Duan,Nick wrote :

Tomcat Security

2005-12-07 Thread Luis Correia
This is my first post to the list... I've to check if the security settings of Tomcat server, kind of a security audit... Can anyone please tell me where should I start? How do I analyse the configuration file? Is there a security check list ? Please fell free to send me any documentation that

RE: Howto delete a file with a servlet???

2005-12-07 Thread Carl Olivier
Hi. Solution 2 - 1 is not a great idea! Also, try something like: String fileName = request.getParameter("Id") + ".xml"; File toDel = new File("c:\\", fileName); //get some info out.println("File exists:" + toDel.exists()); out.println("File is readOnly: " + !toDel.canWrite()); If (toDel.exists(

Re: Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Mladen Turk
Raja Neravati wrote: worker.worker1.recycle_timeout=60 Remove this directive. worker.worker1.retries=3 minSpareThreads="100" maxThreads="300" maxSpareThreads="80" acceptCount="60" debug="0" connectionTimeout="-1" /> maxThreads should be equal to MaxClients in httpd.conf. If it's smaller

RE: Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Duan, Nick
Well, the problem seems to be that you were using AJP 1.2 on the apache site whereas tomcat was configured with AJP 1.3 (default for 5.5). Interim solution: reconfigure tomcat to use AJP 1.2. Best solution: Upgrade Apache to version 2 and AJP to 1.3. ND -Original Message- From: Raja Ne

Issue with Apache 1.3 + Tomcat 5.5 + Mod JK 1.2.10

2005-12-07 Thread Raja Neravati
Hi All, We have a production server with 2 Apache in Front-End and one Tomcat as Application server setup with sticky sessions and a firewall in between. Apache communicates with Tomcat over 8009 port. My application is using JDK 1.4.2_01 and its a struts based application. We have been us

AW: Howto delete a file with a servlet???

2005-12-07 Thread Eickvonder Bjoern
Hello, > -Ursprüngliche Nachricht- > Von: Anne Milbert [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 7. Dezember 2005 17:13 > An: Tomcat Users List > Betreff: Howto delete a file with a servlet??? > > Hi anyone, > > I'd like to delete a file with a servlet. I tried it with the > dele

RE: Howto delete a file with a servlet???

2005-12-07 Thread Peter Crowther
> From: Carl Olivier [mailto:[EMAIL PROTECTED] [...] > if (!toDel.delete()) { > Thread.sleep(1000); //try get around file lock/release > issue? (? Stab in the dark maybe!) [...] Heh. Is someone working on Windows here? There's a known issue that the JVM holds onto file handl

RE: Howto delete a file with a servlet???

2005-12-07 Thread Carl Olivier
Hi. Solution 2 - 1 is not a great idea! Also, try something like: String fileName = request.getParameter("Id") + ".xml"; File toDel = new File("c:\\", fileName); //get some info out.println("File exists:" + toDel.exists()); out.println("File is readOnly: " + !toDel.canWrite()); If (toDel.exists(

Re: Howto delete a file with a servlet???

2005-12-07 Thread Mauricio Nuñez
El mié, 07-12-2005 a las 17:13 +0100, Anne Milbert escribió: > Hi anyone, > > I'd like to delete a file with a servlet. I tried it with the delete() > function and with the runtime.exec() function. What am I doing wrong? > > Here's my code: > Solution 1: > [...] > String cmd = "del C:\\" + reques

Howto delete a file with a servlet???

2005-12-07 Thread Anne Milbert
Hi anyone, I'd like to delete a file with a servlet. I tried it with the delete() function and with the runtime.exec() function. What am I doing wrong? Here's my code: Solution 1: [...] String cmd = "del C:\\" + request.getParameter("Id") + "-" + eleno + ".xml"; Runtime runtime = Runtime.getRunti

RE: Start Tomcat as a Linux daemon

2005-12-07 Thread Richard Mixon
Mario, Your CATALINA_HOME and DAEMON_HOME should be pointing to /usr/local/jakarta-tomcat not the bin subdirectory. That should help - Richard -Original Message- From: Mário Gamito [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 5:36 AM To: users@tomcat.apache.org Subject:

Tomcat, IIS, Integrated Windows Authentication, and request.getRemoteUser()

2005-12-07 Thread Michael Neel
I'm running Tomcat 5.5.9 connected to IIS 5.1 with the isapi_redirect.dll using AJP/1.3. I am trying to enable Integrated Windows Authentication in IIS and have Tomcat access the username of the remote user. I've tried: ---server.xml--- and: ---server.xml--- and: ---server.xml--- ---j

RE: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Caldarale, Charles R
> From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] > Subject: Re: What's the difference between .zip and .exe from > download site? > > I only knew that those batches/scripts are mostly for startup and > shutdown tomcat. Which files could help debugging easier? Frequently, there's output

RE: Tomcat with Apache 2.2.0

2005-12-07 Thread mukesh
Can u tell me please if you've happened to use Apache2.0 with Tomcat 5.5.12 on Redhat Linux 7 using mod_jk ? -Mukesh -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Sam Lee Sent: Wednesday, December 07, 2005 7:23 PM To: users@tomcat.apache.org Subject: Tomcat with Apa

Tomcat with Apache 2.2.0

2005-12-07 Thread Sam Lee
Anyone tried the newest apache 2.2.0 with tomcat using jk? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AW: making a singleton servlet

2005-12-07 Thread James Black
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Thomas Strauß wrote: > This worker-thread can easily serialize all incoming requests in a working > queue (database- or file-based) and your servlet just pushes a job into the > working queue for the thread. That is my basic plan is to have one th

Re: Start Tomcat as a Linux daemon

2005-12-07 Thread Mirek Kopriva
You could send your tomcat init script, it would give me more info about what could be wrong. It looks like something is missing on the classpath. One thing you could try. Don't copy jsvc and use it directly from where it was build. We had errors when running it by using a symlink to the original

Re: USAGE OF WEBDAV

2005-12-07 Thread Martin Gainty
Good Morning Karthik Some webdav information is available at https://ssl.madison.com:8443/webdav/index.html HTH. Martin - Original Message - From: "Karthik" <[EMAIL PROTECTED]> To: "TOMCAT" Sent: Wednesday, December 07, 2005 8:05 AM Subject: USAGE OF WEBDAV Hi form Cam some b

Re: Start Tomcat as a Linux daemon

2005-12-07 Thread Mário Gamito
Hi, Ok, jsvc is in $CATALINA_HOME/bin Now, i run the ctl and get this error: --- [EMAIL PROTECTED] init.d]# ./tomcat start Unable to redirect to /usr/local/apache-tomcat-5.5.12/bin/logs/catalina.out [EMAIL PROTECTED] init.d]# 07/12/2005 13:20:58 6860 jsvc.exec

Re: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Seak, Teng-Fong
Exactly! I've used the zip version once or twice and I found the exe version a much better one. And that's why I wonder what "debugging easiness" one could help with the scripts. Karthik wrote: Hi The exe version installs a auto service automatically on windows system during intallat

AW: making a singleton servlet

2005-12-07 Thread Thomas Strauß
Hi, If I understood you correctly, the problem you are trying to solve should better be solved by a worker-thread-singleton that is started for example by your servlet's init() method. This worker-thread can easily serialize all incoming requests in a working queue (database- or file-based) an

USAGE OF WEBDAV

2005-12-07 Thread Karthik
Hi form Cam some body give me a simple step by step usage process of "WEBDAV" application present in tomcat.zip Please with regards Karthik - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

Re: Start Tomcat as a Linux daemon

2005-12-07 Thread Mirek Kopriva
Hi, It's in $CATALINA_HOME/bin/jsvc-src.tar.gz you need to unpack it and compile it yourself. See the tomcat/startup documentation for more details. Regards, Mirek On 12/7/05, Mário Gamito <[EMAIL PROTECTED]> wrote: > Hi, > > I'm trying to start Tomcat as a linux daemon at server boot, but i don't

Re: Question concerning java.lang.NoClassDefFoundError: javax/servlet/ServletContext

2005-12-07 Thread David Smith
> ...and that servlet-api.jar from tomcat is in the path. You wouldn't happen to be messing with the classpath at all would you? That will cause headaches. Best advise is to leave the classpath alone and let tomcat's classloader hierarchy handle finding classes. Thought 2: Tell me more abou

Start Tomcat as a Linux daemon

2005-12-07 Thread Mário Gamito
Hi, I'm trying to start Tomcat as a linux daemon at server boot, but i don't have jsvc (although i've installed package admin), like explained in Tomcat's page. An year ago or so, i had this ctl script that worked, but now again, i don't have jsvc. Any help would be apreciated. Warm Regards, Má

Re: how to better save a trans in DBCP?

2005-12-07 Thread David Smith
No. Connection.close only returns the connection to the pool so it can be used by another request. --David pc leung wrote: Will a Connection.close() close a connection and decrease the number of connections in connection pool? Connection con = null; try { ds = (DataSource)myContext.lookup

RE: Tomcat 5.0.18 crashes everyday

2005-12-07 Thread Carl Olivier
Hi. I would suggest settings some JVM memory switches, for example: -XX:+UseParallelGC (you have multiple processors?) -XX:+DisableExplicitGC (in case code is calling System.gc()) -Xss128k(Small native thread stack size mem allocations) Also - you will notic

Tomcat 5.0.18 crashes everyday

2005-12-07 Thread Sethuraman, Prabhu \(Cognizant\)
Folks, We have been facing issues with an application that has been good and working hard for almost a month without any issues. Its just that we get an OutofMemory error and the JVM dies! Below are the errors that I have seen so far: 1. Exception java.lang.OutOfMemoryError: requested 512000 b

RE: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Karthik
Hi The exe version installs a auto service automatically on windows system during intallation but the zip version does not may be this would help u with regards Karthik -Original Message- From: Seak, Teng-Fong [mailto:[EMAIL PROTECTED] Sent: Wednesday, December 07, 2005 4:33 PM

Get install directory?

2005-12-07 Thread Fred Baube
Hi all, How can I find out what directory Tomcat was installed to, so that I can navigate its directories ? Do I have to check environment variables ? thx fred -- F.Baube [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAI

Re: Questions for mod_jk quys - are my RedHat compilation instructions correct

2005-12-07 Thread Mirek Kopriva
Hey, I did exactly the same. Looks good, nothing to add. Mirek On 12/7/05, Edmon Begoli <[EMAIL PROTECTED]> wrote: > > Hi guys, > > I recently walked few people through the process of compiling the most > recent mod_jk on RedHat 4. Process required few steps that required some > digging, > so I do

Re: Can anyone give suggestions on Best practices for Farmwardeployer in a tomcat cluster??

2005-12-07 Thread Peter Rossbach
Hey, the current FarmWarDeployer is only support development. Active redeployment inside a cluster is very dangerous. You can have problemes with different versions of classes or the classloader not free all classes. My strategie is: setup a new catalina.base. Start the new generation s

Re: What's the difference between .zip and .exe from download site?

2005-12-07 Thread Seak, Teng-Fong
Caldarale, Charles R wrote: From: David Chen [mailto:[EMAIL PROTECTED] Subject: What's the difference between .zip and .exe from download site? So, then what is that .zip download for? In which scenarios we should use .zip instead of .exe to install TomCat on Windows system? First o

Re: Critical problem with Tomcat worker threads

2005-12-07 Thread Mirek Kopriva
Well, We were using our own connection pool and first thing, which came into my mind was exactly this. So we changed it to tomcat's connection pooling (DataSource in JNDI) and the result was the same bad. Besides, in the jvm stack trace (I missplaced it, but I will send here a new one when I have a

RE: RE: JSP on apache

2005-12-07 Thread mukesh
Hi friends,     First, thanks to warren.     In my case workers.properties file is on Tomcat side, not on apache side. Its in /usr/local/tomcat-5/conf/jk. And I've followed the instructions.     I am giving my entire configuration   /usr/local/tomcat-5/conf/jk/workers.prope

RV: How to reload jsp using ant in Tomcat 5.5?

2005-12-07 Thread Guillermo Sobrino
Hello, I'm using Tomcat 5.5 on wich I deploy a web application with ant using: where install.home/component.name-component.version is a local directory wich contains a typical structure with JSP's and a WEB-INF directory wich includes lib and classes directories. I get

How to reload jsp using ant in Tomcat 5.5?

2005-12-07 Thread Guillermo Sobrino
Hello, I'm using Tomcat 5.5 on wich I deploy a web application with ant using: where install.home/component.name-component.version is a local directory wich contains a typical structure with JSP's and a WEB-INF directory wich includes lib and classes directories. I get

AW: Critical problem with Tomcat worker threads

2005-12-07 Thread Konrath Thomas
Hi ... Thanks for your hint, but I think this also didn't work for us ... You wrote like there could be a problem with the jdbc driver. Could you explain that in more detail? Do you use a connection pool? If yes, which one? Currently, we are using a connection pool which has been made from us

Re: apr port + tomcat

2005-12-07 Thread Thomas Hartwig
Strangely it is working now without any changes, perhaps there was some old process blocking the port. Thomas Thomas Hartwig wrote: Hello, I try to use the APR (1.2.2) in conjunction with tomcat 5.5.12 and tomcat-native-1.1.0. All works fine except one thing: I can only use it with root pri