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

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: target name=install depends=compile description=Install web application deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path}

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: target name=install depends=compile description=Install web application deploy url=${manager.url} username=${manager.username} password=${manager.password} path=${app.path}

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.properties #

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

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

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

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:

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,

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

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

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: 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

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]

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--- Connector port=8009 tomcatAuthentication=false

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:

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.getRuntime();

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 handles

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 Connector port=8009 enableLookups=false protocol=AJP/1.3 minSpareThreads=100 maxThreads=300 maxSpareThreads=80 acceptCount=60 debug=0 connectionTimeout=-1 / maxThreads should be equal

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()

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

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 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

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: Context path=/myApp docBase=myApp debug=5 reloadable=true crossContext=true Resource name=jdbc/TestDB auth=Container

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. There

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 all

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

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 https to

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

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:

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 that

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. ??

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

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

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 the

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: 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

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 Tomcat

Re: Logout for multiple webapps.

2005-12-07 Thread Peter Rossbach
Use SingleSignOn Valve Host ... Valve className=org.apache.catalina.authenticator.SingleSignOn / /Host 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