Re: Silent install of tomcat 4.1.31 on windows fails

2006-08-01 Thread Mark Thomas
[EMAIL PROTECTED] wrote: > My company is upgrading our product to use Tomcat > 4.1.31 (from 4.1.29). I have found that when I > do a clean install of Tomcat 4.1.31 the installer > fails to do a couple of things that 4.1.29 used to do: > > 1) There is no entry for Apache Tomcat in the Windows

Re: org.apache.catalina.servlets.DefaultServlet won't deallocate

2006-08-01 Thread Mark Thomas
Jean-Francois Beaulac wrote: > Hi, > > Sometimes when I reload/shutdown my application I see this error message > in tomcat's console window: > 1-Aug-2006 3:06:50 PM org.apache.catalina.core.StandardWrapper unload > INFO: Waiting for 26 instance(s) to be deallocated This is an INFO message, not a

Re: Tomcat Cluster

2006-08-01 Thread Filip Hanik - Dev Lists
it means that server-A has the webapp /edac but server-B doesn't. and server B is receiving messages, and ignoring them doesn't mean its an error, only if you expect both servers to have the webapp. This is not the case if one server is starting up and has not deployed the app yet Filip Ralf S

RE: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Prahlad . Thakur
I checked the $CATALINA_HOME/conf/web.xml, it does have the save default Servlet configuration as in your note. I will look further in the doc link you sent. The Admin and manager functions work fine clicking on the links from in the default page. Thanks, Paul Email Firewall made the following

Tomcat Cluster

2006-08-01 Thread Ralf Schneider
Hi, I started some experiments with a cluster of 2 Tomcats (5.5.16). I configured the two Tomcats nearly identically (except the ports). I think the cluster works as I see messages in the console saying that a new cluster member was recognized when the second Tomcat starts. The only confusing

Re: cpu 100% java

2006-08-01 Thread Christopher Schultz
Ben, > I'm on OS X 10.4.7 running with weblog software (blojsom) > I have to do a kill -9 on java to stop it from using 100+ on cpu > sometimes, to let users connect. I assume that you also have to restart Tomcat at this point, yes? > This comes up over and over in the log: > 2006-08-01 17:22:08

Re: HTTPS connector and clientAuth=want: how to retrieve client cert in servlet?

2006-08-01 Thread Shankar Unni
Shankar Unni wrote: However, I'm stuck trying to retrieve the client certificate from the ServletRequest in the servlet itself. Never mind - I had botched the truststore setup for the server, so the client cert was not being passed in. Answer for the archives: import java.security.cert

Does Tomcat 5.5's classloader handle "classpath*"

2006-08-01 Thread dhay
Hi, There is a mechanism in Spring to load all classpath resources that match a particular name using "classpath*:myfilename". Apparently various classloaders behave differently in this respect - see http://static.springframework.org/spring/docs/2.0.x/reference/resources.html#d0e5951 and http://

cpu 100% java

2006-08-01 Thread Benjamin Adams
I'm on OS X 10.4.7 running with weblog software (blojsom) I have to do a kill -9 on java to stop it from using 100+ on cpu sometimes, to let users connect. This comes up over and over in the log: 2006-08-01 17:22:08 StandardWrapperValve[blojsom]: Servlet.service() for servlet blojsom threw ex

Silent install of tomcat 4.1.31 on windows fails

2006-08-01 Thread ehawkes
Hi, I'm new to this list. Apologies if my question is naive or insufficiently researched. I have spent some time searching the web and these mail archives, but I haven't come across this problem. My company is upgrading our product to use Tomcat 4.1.31 (from 4.1.29). I have found that w

Re: Tomcat 5.5 and IPv6 configuration

2006-08-01 Thread Hans Müller
Hi and thanks for your reply. > I've never had the problem you describe. I use Linux though. On my machine > the > shutdown port binds to IPv6 representation of 127.0.0.1: > > tcp6 0 0 :::127.0.0.1:8007 :::*LISTEN > > 7970/java I made some more tests

Re: Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread Harakiri
Thank you David judging by the description of "All ServletContextListeners are notified of context initialization BEFORE any filter" its exactly what i need. --- David Smith <[EMAIL PROTECTED]> wrote: > Depending on your version of tomcat, > ServletContextListener may be an > excellent standard

Re: Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread David Smith
Depending on your version of tomcat, ServletContextListener may be an excellent standard way to go. There was a thread just a few days ago on that. --David Harakiri wrote: Hello, is it possible to dynamically add a Filter for a web app using the tomcat ? If so, is there an example how to d

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Mark Eggers
As an additional comment: Based on earlier comments, it looks like the vendor's application is using the system property tomcat.home to create the file path to open. As you found out this will prevent using CATALINA_BASE or creating virtual hosts under one Tomcat. The vendor might look at usin

Dynamically add Filter to webapp without declaring in web.xml

2006-08-01 Thread Harakiri
Hello, is it possible to dynamically add a Filter for a web app using the tomcat ? If so, is there an example how to do this ? OR is it possible to somehow init some webapps params before the Filter is loaded ? I tried to use a Servlet and used the 1 within the web.xml - however the servlet is lo

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Okay, so I finally connected with someone at the vendor. Surprise! It turns out they do not follow the standard method for creating multiple instances of tomcat, i.e., by using $CATALINA_BASE. Instead, I was advised to copy the entire tomcat directory structure for each instance. I did this and it

org.apache.catalina.servlets.DefaultServlet won't deallocate

2006-08-01 Thread Jean-Francois Beaulac
Hi, Sometimes when I reload/shutdown my application I see this error message in tomcat's console window: 1-Aug-2006 3:06:50 PM org.apache.catalina.core.StandardWrapper unload INFO: Waiting for 26 instance(s) to be deallocated The number of instances is never the same. I made myself a custom to

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell
Martin Gainty wrote: Lou- I have noted these maladies can happen when Tomcat's default-servlet is not configured correctly Please display configuration for defaultServlet located at $CATALINA_HOME/conf/web.xml (it should look something like) default org.apache.catalin

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
Hmmm. and the plot thickens. Have you asked the vendor about this issue? Can they offer any insights as to how they access the myapp.properties file? --David Robinson, Eric wrote: David, I do not know if the 3rd party app has hard-coded paths. I grepped for tomcat in the app directory

RE: clustering problem

2006-08-01 Thread Sharma, Siddharth
Which part? The apache tomcat specific stuff? This is available on the tomcat website. Look at the connectors section. That's how I configured everything. The proxy? That's proprietary. Sorry cannot divulge. -Original Message- From: MW Janssen [mailto:[EMAIL PROTECTED] Sent: Tuesday,

RE: clustering problem

2006-08-01 Thread MW Janssen
I have a question of the architecture you created..i am interseting in it. Do you have a document how you did this? thx Maarten -Oorspronkelijk bericht- Van: Sharma, Siddharth [mailto:[EMAIL PROTECTED] Verzonden: maandag 31 juli 2006 23:06 Aan: Tomcat Users List Onderwerp: clustering

Re: How to disable cookies for session management in Tomcat

2006-08-01 Thread Luis . Amorim
Thank you for your reply, Chris. I've set the cookies attribute to false in the server.xml file, restarted tomcat and now the cookie session management is disabled. Regards, Luís Amorim Christopher Schultz <[EMAIL PROTECTED]> 01-08-2006 17:34 Please respond to "Tomcat Users List"        

Re: Tomcat 5.5 Configuration Question

2006-08-01 Thread Christopher Schultz
James, I think you can't use auto-deploy for this: you need to do this: signature.asc Description: OpenPGP digital signature

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Christopher Schultz
Eric, > It makes sense, but before I try the symlink approach, be advised of the > full scenario. Multiple doctor's offices will be connected to the same > server. Each office will have its own instance of tomcat running a copy > (sometimes a different version) of the 3rd party app. The config fil

Tomcat 5.5 Configuration Question

2006-08-01 Thread James Howe
I'm trying to set up Tomcat 5.5 to run an internally developed web application. The machine on which Tomcat is installed will only ever run this one application. I would like to install the application in such a way that when a URL such as: http://localhost:8080/ is entered, the user wil

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Martin Gainty
Lou- I have noted these maladies can happen when Tomcat's default-servlet is not configured correctly Please display configuration for defaultServlet located at $CATALINA_HOME/conf/web.xml (it should look something like) default org.apache.catalina.servlets.DefaultServ

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Martin Gainty
I would think that you would want Application specific folder option of docBase in your context.xml -symlink All users of the box (unless specifically excluded) will operate with the symlink -docBase an attribute which is embedded in your webapps context /META-INF/context.xml If you only wan

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell
[EMAIL PROTECTED] wrote: I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows): URL's tried: Tomcat default page: http://:8080/ Next, I clicked on the jsp examples link on the default Page, it returned HTTP Status 404 - /jsp-examples/ http://:8080/jsp-examples/ I ev

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Chris, It makes sense, but before I try the symlink approach, be advised of the full scenario. Multiple doctor's offices will be connected to the same server. Each office will have its own instance of tomcat running a copy (sometimes a different version) of the 3rd party app. The config files are

RE: Sessions in Tomcat

2006-08-01 Thread Skidmore, Donald \(GTI PE\)
Cookies are turned on and I see the jsessionid in the url. I have even deleted the cookie and tried a refresh of the page. It recreates the cookie but I still get the same null pointer exception. The only way I have been able to get around the problem is to do a reload. I am running Tomcat 5.0. I h

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
David, I do not know if the 3rd party app has hard-coded paths. I grepped for tomcat in the app directory and below and I see a couple of places where it is doing a System.GetProperty("tomcat.home"), but that's about it. -- Eric Robinson -Original Message- From: David Smith [mailto:[EMA

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Christopher Schultz
Eric, > java.io.FileNotFoundException: > /usr/local/tomcat5/webapps/mobiledoc/conf/mobiledoccfg.properties (No > such file or directory) > > Grrr... Okay, time for the brute force method: $ grep "conf/mobiledoccfg" `find /home/myacct/tomcat5/ -type f` Assuming that you find a .class file (or e

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Christopher Schultz
Prahlad, > URL's tried: > > Tomcat default page: http://:8080/ > Next, I clicked on the jsp examples link on the default Page, it > returned HTTP Status 404 - /jsp-examples/ > http://:8080/jsp-examples/ > > I even tried individual pages, same 404 return code: HTTP Status 404 - > /jsp-e

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Steve, Thanks for the idea. Unfortunately, it did not work. Here is what /home/myacct/tomcat5/conf/Catalina/localhost/mobiledoc.xml now looks like: But when I start tomcat, I get... java.io.FileNotFoundException: /usr/local/tomcat5/webapps/mobiledoc/conf/mobiledoccfg.propert

Re: Sessions in Tomcat

2006-08-01 Thread Christopher Schultz
Donald, > The first browser session works fine and I can > navigate thru all my pages without a problem. A few minutes later I open > another browser window and I immediately get a null pointer exception. Is it possible that you are have cookies turned off and are having the JSP encode the jsessi

Re: Streaming PDF over HTTPS

2006-08-01 Thread Christopher Schultz
Francesco, > These work fine over http, but Tomcat gives me the > following message if I run the application over https > > sun.security.validator.ValidatorException: No trusted certificate found This usually indicates that Java is trying to make an HTTPS connection to a server that does not hav

Re: Tomcat creates a cookie with a new jsessionid when timeout occurs

2006-08-01 Thread Christopher Schultz
Luis, > Hello, Christopher. > Thanks for your reply. > > Can you please tell me how do I turn off container-managed authentication? You need to remove any elements from your web.xml file. Note that the presence of any elements probably means that your application is expecting some kind of aut

Re: How to disable cookies for session management in Tomcat

2006-08-01 Thread Christopher Schultz
Luis, > Is there any way to tell Tomcat to never use cookies for session > management? RTFM: http://tomcat.apache.org/tomcat-4.1-doc/config/context.html Look for the 'cookies' attribute. -chris signature.asc Description: OpenPGP digital signature

Re: Tomcat 5.5 and IPv6 configuration

2006-08-01 Thread Markus Schönhaber
Hans Müller wrote: > currently I'm trying to set-up a standalone Tomcat 5.5.17 server in an IPv6 > environment on a FreeBSD 6.1 machine. Unfortunately, Tomcat refuses to > start. Here is the relevant content of the catalina.out log-file: > > SEVERE: StandardServer.await: create[8005]: > java.net.Bi

RE: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Prahlad.Thakur
I have tomcat 5.0.28 installed under AIX 5.03 (no issues under Windows): URL's tried: Tomcat default page: http://:8080/ Next, I clicked on the jsp examples link on the default Page, it returned HTTP Status 404 - /jsp-examples/ http://:8080/jsp-examples/ I even tried individual pages,

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
Fair enough. Are the JSPs, servlets, etc., ... all being called from the /home/myaccount/tomcat5/webapps directory? Here's where I'm going with this: If resources like this properties file are being opened from the wrong location, but other webapp resources (images, jsps, servlets, etc., ...

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Hassan Schroeder
On 8/1/06, Robinson, Eric <[EMAIL PROTECTED]> wrote: I deleted the first one. It was a legacy of when the application used to be in that path. Same result. And restarted Tomcat? What is your instance of Tomcat's relevant appBase pointing to? -- Hassan Schroeder [EMAIL

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Sorry, I cannot answer that question as I am not the developer. Although I called it "myapp" for simplicty, it is really a third-party application. -- Eric Robinson -Original Message- From: David Smith [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 01, 2006 8:23 AM To: Tomcat Users Li

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
I deleted the first one. It was a legacy of when the application used to be in that path. Same result. -- Eric Robinson Disclaimer - August 1, 2006 This email and any files transmitted with it are confidential and intended solely for Tomcat Users List. If you are not the named addressee yo

Sessions in Tomcat

2006-08-01 Thread Skidmore, Donald \(GTI PE\)
I am running into a strange situation with my session using tomcat 5.0.I have a jsp that puts two objects into a session which is used by all succeeding jsp pages. The first browser session works fine and I can navigate thru all my pages without a problem. A few minutes later I open another browser

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread David Smith
I'm responding to the first message in the thread, but have read all of it. A thought: How are you opening this file? Hopefully it's via ServletContext.getResourceAsStream( "/myapp/conf/myapp.properties" ) ; --David Robinson, Eric wrote: Hello all, When I start tomcat, I get several mes

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Steve Lianoglou
On Aug 1, 2006, at 10:15 AM, Robinson, Eric wrote: The contents of the file are as follows: Just a stab in the dark, but why don't you try to put the absolute path to the mobiledoc webapp in the docBase attribute? It looks like something is getting screwy with your environment (CATLINA_{

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Hassan Schroeder
On 8/1/06, Robinson, Eric <[EMAIL PROTECTED]> wrote: mobiledoc.xml exists in /usr/local/tomcat5/conf/Catalina/localhost mobiledoc.xml exists in /home/myaccount/tomcat5/conf/Catalina/localhost The above just feels wrong -- why both places? I'd delete the first one. The contents of the file a

Tomcat Config Problem: Will Pay for a Quick Answer!

2006-08-01 Thread Robinson, Eric
Please accept my apologies for being so direct, but we're in a huge hurry to get the answer to a tomcat configuration problem. I think it is a simple problem, but I have been unable to figure it out. (See my post earlier today entitled, "Someone Please: Why Is Tomcat Looking In The Wrong Directory?

[OT] RE: Servlet that needs ROOT access

2006-08-01 Thread Peter Crowther
[Marked OT as this is now some distance from Tomcat] > From: Christopher Schultz [mailto:[EMAIL PROTECTED] > I might even go farther and suggest that you go with > more a batch-job-list configuration I was assuming the app was for interactive control and that the OP wanted the user of the webapp

Streaming PDF over HTTPS

2006-08-01 Thread Francesco Marelli
Hi all, I have setup the standard 8443 ssl connector in Tomcat after creating my own certificate and everything works fine... My application has a few servlets that generate dynamic pdf files using the iText classes library. These work fine over http, but Tomcat gives me the following message if

RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread Aynalem, Seblewengel (Trawick)
Yes, SQL Server is expected to accept connection on 1433 - which is the default port. For you question: SQL Server is running... I can see it clearly on the Task Manager. I am trying to see if it is actually using TCP/IP or named pipes... Thanks, -Original Message- From: Christopher

RE: Tomcat restart needed

2006-08-01 Thread Peter Crowther
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] > In my web application, I have a thread running in the background that > sends emails to the user when some event occurs. > However, yesterday it stopped sending emails. [...] > My question is: why did this happen, why was necessary to > resta

Re: How to disable cookies for session management in Tomcat

2006-08-01 Thread Alessandro Colantoni
Hi You have to put in your context cookies="false" For more have a look at http://tomcat.apache.org/tomcat-5.5-doc/config/context.html hope this help On 8/1/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi there. Is there any way to tell Tomcat to never use cookies for session management? R

Re: Tomcat creates a cookie with a new jsessionid when timeout occurs

2006-08-01 Thread Luis . Amorim
Hello, Christopher. Thanks for your reply. Can you please tell me how do I turn off container-managed authentication? Regards, Luís Amorim Christopher Schultz <[EMAIL PROTECTED]> 01-08-2006 15:19 Please respond to "Tomcat Users List"                 To:        Tomcat Users List        

How to disable cookies for session management in Tomcat

2006-08-01 Thread Luis . Amorim
Hi there. Is there any way to tell Tomcat to never use cookies for session management? Regards, Luís Amorim

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

2006-08-01 Thread Propes, Barry L
the JSPs (at runtime) automatically create a servlet in the work directory. Is that what you're asking? -Original Message- From: Peng Li [mailto:[EMAIL PROTECTED] Sent: Friday, July 28, 2006 7:55 PM To: users@tomcat.apache.org Subject: where can I find the rule about how to translate JSP

Re: mod_jk connection_pool_size property

2006-08-01 Thread Mladen Turk
Java Rab wrote: I have setup load balancing between Apache 1.3.33 and Tomcat 4.0.6 using the mod_jk connector. Initial tests were fine and the balancing seemed to work a treat. However, with any load on the server, I was seeing 503 errors reporting server unavailability. To resolve this issue, I

Re: Tomcat restart needed

2006-08-01 Thread Christopher Schultz
Luis, > My question is: why did this happen, why was necessary to restart tomcat > to get things right? This could have happened for lots of reasons. You'll to check your log files to see if you got any exceptions or anything like that. Specifically, check your application's log file (if you are

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread Christopher Schultz
Trawick, > I do check the firewall, yes it was on. It has the option of adding > exceptions to allow programs/service to connect to the machine. So I > added SQL server 2000 on port 1433. This probably shouldn't have mattered, since you mentioned that everything is running on the local machine

Re: HTTP Status 404 - /jsp-examples/

2006-08-01 Thread Lou Caudell
[EMAIL PROTECTED] wrote: Can't get the jsp-example to run, getting 404 error. I have installed tomcat 5.0.28 under AIX 5.3 and Java SDK 1.4.2. The service is running under the same account that I used to install. I have setup the following environment variables: CATALINA_HOME

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Hello Guru, The name of the application is actually "mobiledoc," not "myapp." In my previous e-mail I called it "myapp" for the sake of simplicity. From now on I will call it by its real name, mobiledoc. mobiledoc.xml does not exist in /usr/local/tomcat5/conf mobiledoc.xml does not exist in /hom

Re: Tomcat creates a cookie with a new jsessionid when timeout occurs

2006-08-01 Thread Christopher Schultz
Luis, > I am using the url rewriting method for session maintenance, but when a > timeout occurs in my web application, tomcat sets a cookie named > jsessionid (used for session tracking purposes) with a new session id > value before redirecting the user to the login page. This jsessionid > cookie

Tomcat restart needed

2006-08-01 Thread Luis . Amorim
Hi. In my web application, I have a thread running in the background that sends emails to the user when some event occurs. However, yesterday it stopped sending emails. I've checked catalina.out log and there was no exception in there, apparently it was all ok. So, I've restarted tomcat and thi

Re: Servlet that needs ROOT access

2006-08-01 Thread Christopher Schultz
Everyone, >> The servlet application needs to do things like mkfs, >> vgcfgrestore, vgchange, >> mount and umount. Eek. From a webapp? > I'd use setuid scripts with very careful permissions: > > - Write some shell scripts, one per action, to do what you need; > > - Audit those scripts for po

Re: configuring 2 servlets on different ports

2006-08-01 Thread Christopher Schultz
Jim, > actually, they are already in separate webapps, > and I still can't find a way to configure them to > bind to separate ports. Are you running a single instance of Tomcat with two connectors? Or, are you running two instances of Tomcat, each with one connector? I think the second option w

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread David Smith
I think you have your answer. The SQL Server is not setup to listen on 1433 or not running. Address this and things should start working. --David Aynalem, Seblewengel (Trawick) wrote: Thanks David, Raju and Johnny for your time and valuable suggestions. To David's question: I checked Cl

RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread Aynalem, Seblewengel (Trawick)
Thanks David, Raju and Johnny for your time and valuable suggestions. To David's question: I checked Client Network Utility service for SQL server 2000 and saw that TCP/IP is enabled on port 1433. I do check the firewall, yes it was on. It has the option of adding exceptions to allow progra

RE: configuring 2 servlets on different ports

2006-08-01 Thread Sharma, Siddharth
All webapps listen on the same http port if deployed within the same tomcat instance. Your option is to deploy each webapp on its own instance of tomcat, each listening on a different port. Creating a new instance of tomcat means a separate JVM with all the additional needs from system resource per

Tomcat creates a cookie with a new jsessionid when timeout occurs

2006-08-01 Thread Luis . Amorim
Hi there. I have the following problem in my web application. I am using the url rewriting method for session maintenance, but when a timeout occurs in my web application, tomcat sets a cookie named jsessionid (used for session tracking purposes) with a new session id value before redirecting the

RE: Servlet that needs ROOT access

2006-08-01 Thread Peter Crowther
> From: Paul McMahon [mailto:[EMAIL PROTECTED] > The servlet application needs to do things like mkfs, > vgcfgrestore, vgchange, > mount and umount. I'd use setuid scripts with very careful permissions: - Write some shell scripts, one per action, to do what you need; - Audit those scripts for

RE: configuring 2 servlets on different ports

2006-08-01 Thread Williams, Jim
actually, they are already in separate webapps, and I still can't find a way to configure them to bind to separate ports. -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Monday, July 31, 2006 4:57 PM To: Tomcat Users List Subject: Re: configuring 2 servlets

RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread johnny
Just a thought Is the SQL server installed as a non-default named instance? If so, the port probably not 1433. You can check it by using the Server Network Utility (select TCP/IP and click on properties). Good luck, Johnny "Aynalem, Seblewengel (Trawick)" <[EMAIL PROTECTED]> 08/01/

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Raghupathy,Gurumoorthy
Can you post ( copy the content and paste it into the email ) the myapp.xml in the conf directory of tomcat ? Guru Gurumoorthy Raghupathy Systems Operations - Fidelity Investments International * Tel: +44 1737 836798 * Internal: 8-724 6798 * Tel (R): +442086610646 * Tel (R): +447899033459 * Tel

RE: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
I checked and the permissions are correct, but I think you missed the basic problem. We have an application, "myapp." It exists in /home/myaccount/tomcat5/webapps/myapp But tomcat is looking for it in /user/local/tomcat5/webapps/myapp Hence the "file not found" errors. The que

Re: Servlet that needs ROOT access

2006-08-01 Thread Paul McMahon
I think I can limit a few of the ROOT actions required. The servlet application needs to do things like mkfs, vgcfgrestore, vgchange, mount and umount. On Tuesday 01 August 2006 13:46, Peter Crowther wrote: > > From: Paul McMahon [mailto:[EMAIL PROTECTED] > > Is it possible to run Tomcat as non

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

2006-08-01 Thread Raju Balugu
Thanks David Smith for your valuable information. Regards Raju On 8/1/06, David Smith <[EMAIL PROTECTED]> wrote: mod_proxy is the old proxy that Apache has had since 1.3 or earlier. Basic idea is to pass on the incoming request to another server. mod_proxy_ajp was introduced in Apache 2.2 to

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread Raju Balugu
Hi , 1.Have you fallowed the same steps whic is mentioned in this link.Pleasecheck once again . http://tomcat.apache.org/tomcat-5.5-doc/jndi-datasource-examples-howto.html and check one more link they also having the same problem http://forum.sun.com/jive/thread.jspa?threadID=101183&tstart=0 2.C

RE: Servlet that needs ROOT access

2006-08-01 Thread Peter Crowther
> From: Paul McMahon [mailto:[EMAIL PROTECTED] > Is it possible to run Tomcat as non ROOT, > but have a servlet that needs ROOT access? No. > Or is the solution to have the servlet application code > running as a separate > daemon outside tomcat, with some form of comms to tomcat > servlet wh

Re: Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Corobitsyn Roman
Hello Eric, Try to check OS permissions for dir webapps/myapp/conf Tuesday, August 1, 2006, 4:36:09 PM, you wrote: RE> Hello all, RE> When I start tomcat, I get several messages like these: RE> java.io.FileNotFoundException: RE> /usr/local/tomcat5/webapps/myapp/conf/myapp.properties (No

Re: mod_jk not compiling correctly (apparently) - 'garbled' error

2006-08-01 Thread Tim Hunt
Found the problem, so in case anyone is interested: Chris wrote: >My suggestion above is almost certainly the problem: you have two >competing versions of Apache installed. You should pick one and >uninstall the other. From experience, I have to say that using the >version available from th

Someone Please: Why Is Tomcat Looking In The Wrong Directory?

2006-08-01 Thread Robinson, Eric
Hello all, When I start tomcat, I get several messages like these: java.io.FileNotFoundException: /usr/local/tomcat5/webapps/myapp/conf/myapp.properties (No such file or directory) This file actually exists in /home/myaccount/tomcat5/webapps/myapp/conf/myapp.properties I have $CATALINA_

Re: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread David Smith
And you are sure your test with the client software was via TCP, not some other piped/ODBC connection scheme? I'm guessing this is a Windows system. Have you checked your firewall for allowing the connections? Also try using TCPMon from sysinternals.org to see what's happening with connectio

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

2006-08-01 Thread David Smith
mod_proxy is the old proxy that Apache has had since 1.3 or earlier. Basic idea is to pass on the incoming request to another server. mod_proxy_ajp was introduced in Apache 2.2 to extend the mod_proxy module with the ability to pass client HTTP requests back to a tomcat instance via the AJP/1

RE: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

2006-08-01 Thread Aynalem, Seblewengel (Trawick)
Thanks David. I am able to connect to SQL Server 2000. Actually Tomcat 5.5.17 and SQL Server 2000 is on the same machine that I am working on. Could there be any other cause for this error: org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory (The TCP/IP conn

Re: Servlet that needs ROOT access

2006-08-01 Thread David Smith
Is it possible to run tomcat as root? Yes. Is it advised? No. I think you're on the right track with the separate process idea. That would limit the opportunities presented to would be hackers. Another idea, you might be able to do something with the sudo command and Runtime.exec() as long

Tomcat 5.5 and IPv6 configuration

2006-08-01 Thread Hans Müller
Hello guys, currently I'm trying to set-up a standalone Tomcat 5.5.17 server in an IPv6 environment on a FreeBSD 6.1 machine. Unfortunately, Tomcat refuses to start. Here is the relevant content of the catalina.out log-file: SEVERE: StandardServer.await: create[8005]: java.net.BindException: Ca

Re: Servlet that needs ROOT access

2006-08-01 Thread Li
Hi Paul, If you use root to run, which means tomcat can access anywhere as your root can do upload a simple script (if you application has that function can crash your system), if you create a specific user and group, and define permission nicely, this specific user can only do specific thing as

Re: Servlet that needs ROOT access

2006-08-01 Thread Paul McMahon
Yes I meant as root user in Linux, not the ROOT webapp. I could try giving tomcat user root group access; this is also potentially a security hole though? On Tuesday 01 August 2006 12:14, you wrote: > It is possible to run as non root (assume the "root" here is "root" > for Unix/Linux?) > you ca

Re: Servlet that needs ROOT access

2006-08-01 Thread Li
It is possible to run as non root (assume the "root" here is "root" for Unix/Linux?) you can create a specific user say "tomcat" but still assign with group root, or you can create group "tomcat", make sure your jdk is accessible by the tomcat user and or group Is you mean the root application in

Servlet that needs ROOT access

2006-08-01 Thread Paul McMahon
Is it possible to run Tomcat as non ROOT (desirable as I see from FAQs/other threads), but have a servlet that needs ROOT access? Or is the solution to have the servlet application code running as a separate daemon outside tomcat, with some form of comms to tomcat servlet when tasks need to be

mod_jk connection_pool_size property

2006-08-01 Thread Java Rab
I have setup load balancing between Apache 1.3.33 and Tomcat 4.0.6 using the mod_jk connector. Initial tests were fine and the balancing seemed to work a treat. However, with any load on the server, I was seeing 503 errors reporting server unavailability. To resolve this issue, I set the following

Problem starting Tomcat 5.5 or 5.0 with java option, instead of jvm.

2006-08-01 Thread itamar_bs
Hi I'm unable to start Tomcat (5.5.16, 5.0.28) when the startup mode is set to java Starting it in jvm mode is ok No errors in tomcat logs, Tried to find related information on the web, but all related info is did not help. This is a basic installarion, no modification have been made windows 2003