DBCP with tomcat

2007-12-14 Thread Sambo
Hello I am trying to trace database connection leak from my application installed in Tomcat 6.0. I have set up the connection with "logAbandoned="true"". But I do not see log trace. How do I enable this log trace. Regards Sam -- View this message in context: http://www.nabble.com/DBCP-with-t

Re: Question about tomcat bugzilla which is resolved but not fixed.

2007-12-14 Thread Bill Barker
"Mark Thomas" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Dan wrote: >> Hi, >> I notice that this issue has been marked fixed, but the comments on there >> indicate that the bug isnt actually fixed, and that the problem remains. >> Indeed, looking in the source of 5.5.25 it doe

Re: CATALINA_HOME

2007-12-14 Thread David Wall
My Tomcat directory is c:\Tomcat6\apache-tomcat-6.0.14. I tried starting startup.bat but got the error: The CATALINA_HOME environment variable is not defined correctly This environment variable is needed to run this program My CATALINA_HOME environment variable is set to c:\Tomcat6\apache-to

Re: directory listings per webapp

2007-12-14 Thread Dan Armbrust
On Dec 14, 2007 4:17 PM, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > From: Dan Armbrust [mailto:[EMAIL PROTECTED] > > Subject: Re: directory listings per webapp > > > > Thanks a lot. I'll see if I can get access to > > http://wiki.apache.org/tomcat/FAQ/Miscellaneous and update the answer >

Joakim T Monstad is out of the office.

2007-12-14 Thread JMonstad
I will be out of the office starting 12/14/2007 and will not return until 01/02/2008. I will respond to your message when I return, but can be reached at 952 836 4385.

RE: directory listings per webapp

2007-12-14 Thread Caldarale, Charles R
> From: Dan Armbrust [mailto:[EMAIL PROTECTED] > Subject: Re: directory listings per webapp > > Thanks a lot. I'll see if I can get access to > http://wiki.apache.org/tomcat/FAQ/Miscellaneous and update the answer > to this question - since the current answer is pretty poor. In what way? It de

Re: directory listings per webapp

2007-12-14 Thread Dan Armbrust
> Probably not. You specified a docBase of /dir/foo for the foo webapp, > but appear to have been editing webapps/foo/WEB-INF/web.xml, which is > not where you've told Tomcat the app is deployed. It's extremely bad > practice to have a directory under the appBase that's the same as > one for an

RE: directory listings per webapp

2007-12-14 Thread Caldarale, Charles R
> From: Dan Armbrust [mailto:[EMAIL PROTECTED] > Subject: Re: directory listings per webapp > I made those two changes - but I still don't get any directory listing What do you get? Did you restart Tomcat (or insure that the webapp was otherwise redeployed)? What version of Tomcat are you usin

Re: Tomcat is unable to startup in Windows 2003 Server

2007-12-14 Thread Dan Armbrust
Looks like you have an invalid / missing server.xml file. Dan On Dec 12, 2007 3:35 AM, marsulein <[EMAIL PROTECTED]> wrote: > > System configuration is as follow: > OS : Windows 2003 Server > Tomcat: 4.1.36 > JSDK: 1.4.2.13 > > Attached are the error logs generated by tomcat. > http://www.nabble.

Re: directory listings per webapp

2007-12-14 Thread Dan Armbrust
I made those two changes - but I still don't get any directory listing (I can get a file if I name it specifically - so I know that that context is working) Is my path correct for the web.xml file? Or am I missing something else? Thanks, Dan On Dec 14, 2007 3:17 PM, Caldarale, Charles R <[EMAI

RE: directory listings per webapp

2007-12-14 Thread Caldarale, Charles R
> From: Dan Armbrust [mailto:[EMAIL PROTECTED] > Subject: directory listings per webapp > > > Broken record: take out the path attribute; it's not allowed (but it's not this problem). > > foo > /foo/* > Change the to this: / - Chuck THIS COMMUNICATION MAY CONTA

Re: directory listings per webapp

2007-12-14 Thread Dan Armbrust
There is a typo in the below. This > tomcat/server/webapps/billing/WEB-INF/web.xml Should have been tomcat/server/webapps/foo/WEB-INF/web.xml So thats not the problem. Dan On Dec 14, 2007 3:10 PM, Dan Armbrust <[EMAIL PROTECTED]> wrote: > I want to create a webapp that just lists the content

directory listings per webapp

2007-12-14 Thread Dan Armbrust
I want to create a webapp that just lists the content of a directory - but I don't want to turn on directory listing globally. I've seen lots of people say it can be done, just do but I've yet to find a working example. Can someone tell me what I'm missing here? I have a file: tomcat/conf/

Re: Tomcat and IIS losing their link

2007-12-14 Thread Martin Gainty
Travis take a look at this excerpt from Tomcat committer Mladen Turk.. "Just like Apache Web server for Windows, Microsoft IIS maintains a separate child process and thread pool for serving concurrent client connections. For non server products like Windows 2000 Professional or Windows XP the numbe

Re: Comet processor blocks if chunk includes final CRLF

2007-12-14 Thread Filip Hanik - Dev Lists
I've proposed a patch for this behavior http://svn.apache.org/viewvc?view=rev&revision=604274 http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?r1=604274&r2=604273&pathrev=604274 Filip Filip Hanik - Dev Lists wrote: hi Chris, Paul Dumais just posted the same issue. I've been bit by it

Re: Comet position of CRLF in request chunks

2007-12-14 Thread Filip Hanik - Dev Lists
I've proposed a patch for this behavior http://svn.apache.org/viewvc?view=rev&revision=604274 http://svn.apache.org/viewvc/tomcat/tc6.0.x/trunk/STATUS.txt?r1=604274&r2=604273&pathrev=604274 Filip Filip Hanik - Dev Lists wrote: that's correct, that's how it works. I'll go over the specs to see i

Re: Question about tomcat bugzilla which is resolved but not fixed.

2007-12-14 Thread Mark Thomas
Dan wrote: > Hi, > I notice that this issue has been marked fixed, but the comments on there > indicate that the bug isnt actually fixed, and that the problem remains. > Indeed, looking in the source of 5.5.25 it does not seem to contain the code > in the patch in this issue. The actual patch ap

Re: Tomcat Process Memory Leak?

2007-12-14 Thread Travis Haagen
> Any ideas about what could be causing this? I realize it could be an > application-related leak, but in that case wouldn't we see it running out of > heap? Server-side application leaks are really hard to figure out, because they usually only happen in a high-traffic production environment and

RE: Tomcat does not stay on as a windows service

2007-12-14 Thread Caldarale, Charles R
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf > Of Ljuba Veselinova > Subject: Re: Tomcat does not stay on as a windows service > > However, after all this, I am still getting info about two instances > of java.exe listening on several ports, one of which is 8005. You have one or

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Ljuba Veselinova
Thank you Alan and Markus! I followed the instructions of both you and I kept getting info (via netstat) about a java.exe listening on port 8005 on localhost. I went and uninstalled both Tomcat and java; made sure all references to them are gone from the system variables and also deleted their key

Re: Tomcat and IIS losing their link

2007-12-14 Thread Rainer Jung
Travis Haagen wrote: Hello, I've got IIS 6.0 linked with Tomcat 5.5.25 (with JDK 1.5.0_14-b03 and AJP dll) via the ISAPI connector (JK 1.2.25) on Windows 2003 Server, and during high traffic periods, the connection between IIS and Tomcat is being severed. This has been occurring in the mid-after

Question about tomcat bugzilla which is resolved but not fixed.

2007-12-14 Thread Dan
Hi, We've come across a problem in Tomcat 5.5.17 not completely dissimilar to the following issue: http://issues.apache.org/bugzilla/show_bug.cgi?id=33374 I notice that this issue has been marked fixed, but the comments on there indicate that the bug isnt actually fixed, and that the problem re

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Markus Schönhaber
Ljuba Veselinova wrote: > It looks like java is listening to port 8005; there appear to be two > instances of java.exe running and each one of them is listening to > several ports. I need java to run though. Is it safe to end the > instance of java.exe listening to port 8005? If you don't know wh

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Alan Chaney
I don't think that's the best solution. The java.exe which is bound to 8005 is probably your tomcat service started but not active. From previous emails I assume you are running under Windows. Here's a suggestion (you may have tried this) 1. Go to the windows services manager and make sure tha

Re: Intermittent blank page after log-n

2007-12-14 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Steve, Steve Mitchell wrote: > I saw a "connection already closed" message from one of my DAOs and I > found a SQLExceptions from MOD_JK. mod_jk shouldn't be throwing any exceptions. I think you mean that the database driver is doing that. > It look

RE: Tomcat Process Memory Leak?

2007-12-14 Thread Caldarale, Charles R
> From: Bill Clarke-Fields [mailto:[EMAIL PROTECTED] > Subject: Tomcat Process Memory Leak? > > Any ideas about what could be causing this? I realize it > could be an application-related leak Not just could be, it almost definitely is, since this behavior isn't seen normally. > but in that ca

Tomcat Process Memory Leak?

2007-12-14 Thread Bill Clarke-Fields
Hi All, I am looking for some help. We are running into what appears to be a memory leak situation. The Java heap usage looks fine, but the overall Tomcat process memory usage continuously goes up and up, until it reaches the Windows 2GB per process limit, at which point it crashes. Using the W

Re: Tomcat and IIS losing their link

2007-12-14 Thread Travis Haagen
Thanks for the reply Per... Tomcat and IIS are running on the same machine, with no external load balancer or firewall between IIS and Tomcat. When the connection is lost, IIS displays either "service is unavailable" or a "503 error" message. I only have maxThreads=400, because I didn't think it

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Ljuba Veselinova
I have tried to kill java.exe that's listening to port 8005 several times now without success. How do I assign other ports to either java.exe or tomcat? Thanks, Ljuba On Dec 14, 2007 2:48 PM, David Smith <[EMAIL PROTECTED]> wrote: > I've also found the TcpDump tool available from Microsoft's webs

Tomcat 5 SSI crossContext

2007-12-14 Thread Shannon Scott
Hello, I have an application that needs to use server side includes (SSI ). The jsp server side includes work well from the ROOT application, but I am unable to use the jsp from another context as a server side include. I searched the archives and found other folks with this issue, but no so

Re: User roles

2007-12-14 Thread Mark H. Wood
I wonder if the OP means the shutdown password? That's in server.xml, and the only consequence of changing it that I know of is that your shutdown script needs to be kept in sync. with this or it won't work. -- Mark H. Wood, Lead System Programmer [EMAIL PROTECTED] Typically when a software ve

Re: problem in loading class file

2007-12-14 Thread Pid
David Smith wrote: > I mean the path to cib.expserver.plugin.basics.ExpressServer, which your > tomcat is complaining about not being able to find. > > Anyway... taking a closer look at the code you posted, I think the URI > you are using won't work > > file:/c:Tud/Server/program/bin should probab

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread David Smith
I've also found the TcpDump tool available from Microsoft's website extremely helpful in looking at this stuff. I would say it should be safe to stop the instance of java.exe holding on to 8005, but you should try to be sure it's not used for anything. Various third party software companies

Re: problem in loading class file

2007-12-14 Thread Faisal
Thanks David, I have used this form of the url as well but with the same result. Thanks any way, Faisal David Smith-2 wrote: > > I mean the path to cib.expserver.plugin.basics.ExpressServer, which your > tomcat is complaining about not being able to find. > > Anyway... taking

Re: problem in loading class file

2007-12-14 Thread David Smith
I mean the path to cib.expserver.plugin.basics.ExpressServer, which your tomcat is complaining about not being able to find. Anyway... taking a closer look at the code you posted, I think the URI you are using won't work file:/c:Tud/Server/program/bin should probably be more like file:///c:/

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Martin Gainty
netstat -a | grep 8005 Sverige Altid Martin- - Original Message - From: "Ljuba Veselinova" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Friday, December 14, 2007 7:18 AM Subject: Re: Tomcat does not stay on as a windows service > Apache is running but it uses port 80. As far as I c

Re: swith of a connector

2007-12-14 Thread Tim Funk
I'm guessing you mean switch OFF. Apart from chucking the connector config from the XML, not really. One kludge: you could try and make the connector port a property, And on startup with JAVA_OPTS='-Dfoo=-1' and ignore the exception which gets thrown by tomcat. (I can't recall if tomcat abort

Re: problem in loading class file

2007-12-14 Thread Tim Funk
Try using: URLClassLoader pluginClassLoader = new URLClassLoader(pluginURLs, Thread.currentThread().getContextClassLoader()); -Tim Faisal wrote: Hello, I can execute the following java code in a standalone application very well but when i put the same code in a web service and deploy it on

Re: problem in loading class file

2007-12-14 Thread Faisal
Thank you very much for replying. The tomcat version is 5.5 and Java version is 1.5.0_14 and platform is Windows XP. The class is located in webapps/axis/WEB-INF/classes/WebService.class Thanking you, Faisal David Smith-2 wrote: > > Hi Faisal. > > Could you post a few very important addition

Re: problem in loading class file

2007-12-14 Thread David Smith
Hi Faisal. Could you post a few very important additional details? Tomcat version Platform Tomcat relative path to the class/jar you're having trouble with. --David Faisal wrote: Hello, I can execute the following java code in a standalone application very well but when i put the same code i

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Ljuba Veselinova
I found info about netstat in the windows help files. I apologize for this simple question. I'm looking at the results produced by netstat and tasklist right now. It looks like java is listening to port 8005; there appear to be two instances of java.exe running and each one of them is listening to

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Markus Schönhaber
Ljuba Veselinova wrote: > Apache is running but it uses port 80. As far as I can tell (via the > Task manager panel) there are no other instances of tomcat running on > the machine. How do I check what's running specifically on port 8005? If you're using XP or better netstat -ano will show you wh

swith of a connector

2007-12-14 Thread Kovacs, Robert
Hello All, I'm looking for a method how I can switch of a configured connector. Do you know any system property or other possibility for it ? Thanks: Robert

problem in loading class file

2007-12-14 Thread Faisal
Hello, I can execute the following java code in a standalone application very well but when i put the same code in a web service and deploy it on the Tomcat 5.5 then it gives error: exception classNotFoundException: can not find the class cib.expserver.plugin.basics.ExpressServer Some one please

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread Ljuba Veselinova
Apache is running but it uses port 80. As far as I can tell (via the Task manager panel) there are no other instances of tomcat running on the machine. How do I check what's running specifically on port 8005? Thanks a lot for answering! Ljuba On Dec 14, 2007 12:37 PM, dirk ooms <[EMAIL PROTECTED

Intermittent blank page after log-n

2007-12-14 Thread Steve Mitchell
Chris, To answer your question, Chris, I do a post to j_security_check. Actually, my "login" link really just does a GET for a secured resource and Tomcat serves up a standard j_security_check form. I only post j_username and j_password, so don't expect max size to be a problem. I was not able

Re: Tomcat does not stay on as a windows service

2007-12-14 Thread dirk ooms
there is another process that already uses port 8005. check whether there are other servers (apache?) or instances of tomcat running on your machine. dirk On Friday 14 December 2007 12:31, Ljuba Veselinova wrote: > I am trying to get Tomcat going on a windows machine. There are > running and wok

Tomcat does not stay on as a windows service

2007-12-14 Thread Ljuba Veselinova
I am trying to get Tomcat going on a windows machine. There are running and woking installations of Java 2 Standard Edition Development Kit version 2, update 6, with JRE and Java Web Start Apache 2.0.58 Tomcat seems to install fine; I have created and checked the paths of the system variables CAT

Tomcat 6.0: placement JAAS config file?

2007-12-14 Thread Abel MacAdam
Hi all, I just got my JAAS example working on Tomcat 6.0. To accomplish that I created a directory in webapps called myjaas, placed my jsp file, and jaas.config file in that directory, and placed my jar-file in myjaas\WEB-INF\lib. Next I added the placement of my jaas.config to the 'Java Options'

Re: How to specify windows user in runtime in tomcat?

2007-12-14 Thread nitin403
Thanks for your help. I will try JCIFS. Your are correct about using a dedicated account. But on the tomcat server which I am deploying the servlet, has other servlets and It is not feasible for me to change its access rights. Once again thanks a lot. br1 wrote: > > You can try with jcifs (htt

Re: How to specify windows user in runtime in tomcat?

2007-12-14 Thread br1
You can try with jcifs (http://jcifs.samba.org/). It should allow you to access a remote share using a different user context, though I'd reccommend using a dedicated account for this kind of job. Hope it helps, b. nitin403 wrote: > > > > Juha Laiho wrote: >> >> nitin403 wrote: >>> I have