problem with executing a batch file in tomcat JAVA servlet

2008-10-15 Thread Daniel L. Gross
I'm trying to execute a batch file in my servlet in tomcat5. I'm using the Process class exec() and issuing a command of cmd.exe /C file.bat Then I do a p.waitFor(); after this. However, it appears that a few of the files copy, then the process hangs. If I stop the calling program, the batch

Tomcat can't see a new function

2008-08-20 Thread Daniel L. Gross
I have a strange problem. I am using Borland to compile my source files and create jar files. For some reason things are not working correctly. In one jar library, I can create new functions, rebuild the library, and when I put them up in Tomcat 5.5 WEB-INF, it recognizes them. However, I h

Re: Mapped File Access Problems in Servlets

2007-08-24 Thread Daniel L. Gross
change the user to Administrator under the windows services window and I can start and stop tomcat there as well. Again, thanks for your quick responses, got me out of a tight Jam. Dan Gross, ATLC Mark Thomas wrote: Daniel L. Gross wrote: I have a servlet that does a direct read from a mapped

Re: Mapped File Access Problems in Servlets

2007-08-24 Thread Daniel L. Gross
I just tried changing the login configuration to log onto the administrator account, and I still get access denied. Any thoughts??? Thanks, Dan Gross, ATLC Mark Thomas wrote: Daniel L. Gross wrote: I have a servlet that does a direct read from a mapped drive in Windows. It works fine

Re: Mapped File Access Problems in Servlets

2007-08-24 Thread Daniel L. Gross
when I put those 5 lines in the servlet, I got the access denied. How do I change the configuration in the tomcat service to allow it to see other computers? Thanks, Dan Gross, ATLC Mark Thomas wrote: Daniel L. Gross wrote: I have a servlet that does a direct read from a mapped drive in

Mapped File Access Problems in Servlets

2007-08-23 Thread Daniel L. Gross
I have a servlet that does a direct read from a mapped drive in Windows. It works fine in tomcat as long as I use a drive on the local machine. However, I need to access a mapped drive on a different machine. When I run the program, I get a FileNotFound error in JAVA and (access denied) next

Re: Memory Usage

2006-11-22 Thread Daniel L. Gross
In MySql the timeout is 10 seconds. I have tried various times in the tomcat configuration file, but nothing seems to matter. -- Dan Caldarale, Charles R wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: Memory Usage The tomcat start/stop manager has a dump threads

Re: Realm authentication - unconventional usage

2006-11-22 Thread Daniel L. Gross
I think that will be my next attempt. There are two reasons I haven't done that. 1. The original code for this application was written with a direct-connect to the database because it was set up to run on either Oracle or MySql, and it has been working fine up until we went to Tomcat 5.5.

Re: Memory Usage

2006-11-22 Thread Daniel L. Gross
$ControlRunnable.run() I think we have found the problem. Every time I make a connection, it leaves one of these threads hanging. Now whats the solution? That's the $50. question. Thanks, Dan Caldarale, Charles R wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: M

Re: Memory Usage

2006-11-22 Thread Daniel L. Gross
a connection to the database. If this helps any. Thanks again. I really need to solve this problem because it's a show stopper for my application. -- Dan Daniel L. Gross wrote: I looked at the profiler and it appears that there are many timer threads left hanging. I have not set

Re: Memory Usage

2006-11-22 Thread Daniel L. Gross
t; + DATABASE_USERNAME + "&password=" + DATABASE_PASSWORD); System.out.println("Connection made"); //debug } Caldarale, Charles R wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: Memor

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
Is there a way to force Tomcat 5.5 to run a garbage collection? Thanks, Dan Caldarale, Charles R wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: Memory Usage I have run the lamda probe on the software, but it didn't show anything useful. It's not

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
, Tomcat leaves an inactive thread hanging. I think if I could clear up the inactive threads, the garbage collection routine would get the memory back. Is there any way to release inactive threads in Tomcat 5.5? Thanks again so much, -- Dan. Caldarale, Charles R wrote: From: Daniel L. Gross

Re: Memory Usage

2006-11-21 Thread Daniel L. Gross
wrote: From: Daniel L. Gross [mailto:[EMAIL PROTECTED] Subject: Re: Memory Usage I have run the lamda probe on the software, but it didn't show anything useful. It's not a profiler, and was never intended to be. Where do I turn on the -verbose:gc? In the tomcat start-up scri

Memory Usage

2006-11-21 Thread Daniel L. Gross
I really could use some help here. Has anyone used tomcat 5.5 with the J-Connector? I made a simple servlet that just opens a connection to my MYSQL database and then closes it and does nothing else. When I look at the windows task manager, the memory usage of Tomcat jumps each time I run th

Re: Memory Leaks

2006-11-13 Thread Daniel L. Gross
leave memory hanging in tomcat 5. Any ideas? Thanks again, Dan Daniel L. Gross wrote: I am running tomcat 5.5.17 with the newest J-Connector talking to MySql. I have many servlets which access the database, and with Tomcat 5.5.17, it seems that each time I access a servlet, it uses more

Memory Leaks

2006-11-13 Thread Daniel L. Gross
I am running tomcat 5.5.17 with the newest J-Connector talking to MySql. I have many servlets which access the database, and with Tomcat 5.5.17, it seems that each time I access a servlet, it uses more memory, and doesn't release it when the servlet is done. Previously I was running tomcat 4

memory problems

2006-09-13 Thread Daniel L. Gross
I have some servlets that run without problem on tomcat 4, but when I upgraded to Tomcat 5.5.15, everytime a servlet is accessed, it uses a little more memory, and finally after many users, runs out of heap space. Any clues? Thanks Dan Gross -