Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16dev1.mycompany.com  
GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open
and eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread Bovy, Stephen J
MaxThreads 


Stephen Bovy
Computer Associates
6100 Center Drive
Suite 700
Los Angeles, CA 90045
Tel: (310) 957-3930
Fax: (310) 957-3917
e-mail: [EMAIL PROTECTED]
-Original Message-
From: August Detlefsen [mailto:[EMAIL PROTECTED] 
Sent: Friday, September 02, 2005 5:21 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.5 Running out of Threads

Using the manager app (/manager/status) I am seeing multiple threads in
the 'Service' mode with times of well over 60 minutes! Here is an
example: 

Stage   TimeB Sent  B Recv  Client  VHost   Request
S   5192947 ms  0 KB0 KB67.152.68.16
dev1.mycompany.com  GET / HTTP/1.1

I know that these connections came in during a period of particularly
heavy load and the server couldn't respond to them right away. No
response was ever sent back to the browser but the threads stay open and
eat up a resource until the app server has to be restarted. 

Is there any setting that will cause such orphaned connections to be
terminated and returned to the pool? 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 5.5 Running out of Threads

2005-09-02 Thread August Detlefsen
I have maxThreads set at 250. When a high percentage of that 250 are
eaten up servicing essentially dead connections is when the server gets
unresponsive. 

What I am interested in is how tomct can know that a thread is no
longer viable -say if it has been in service mode for more than 5
minutes and hasn't sent anything. 




--- Bovy, Stephen J [EMAIL PROTECTED] wrote:

 MaxThreads 
 
 
 Stephen Bovy
 Computer Associates
 6100 Center Drive
 Suite 700
 Los Angeles, CA 90045
 Tel: (310) 957-3930
 Fax: (310) 957-3917
 e-mail: [EMAIL PROTECTED]
 -Original Message-
 From: August Detlefsen [mailto:[EMAIL PROTECTED] 
 Sent: Friday, September 02, 2005 5:21 PM
 To: tomcat-user@jakarta.apache.org
 Subject: Tomcat 5.5 Running out of Threads
 
 Using the manager app (/manager/status) I am seeing multiple threads
 in
 the 'Service' mode with times of well over 60 minutes! Here is an
 example: 
 
 Stage TimeB Sent  B Recv  Client  VHost   Request
 S 5192947 ms  0 KB0 KB67.152.68.16
 dev1.mycompany.comGET / HTTP/1.1
 
 I know that these connections came in during a period of particularly
 heavy load and the server couldn't respond to them right away. No
 response was ever sent back to the browser but the threads stay open
 and
 eat up a resource until the app server has to be restarted. 
 
 Is there any setting that will cause such orphaned connections to be
 terminated and returned to the pool? 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread ayaskant swain
Dear Sir/Madam,
I have been using tomcat 4.x/5.0.x version for web 
developmen (JSP/Servlets)but i am finding difficulties in starting the server 
itself many times.I have set the JAVA_HOME environmental variable to the 
directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under 
that folder all other subfolders like bin, jre are there.When i am trying to 
start the tomcat server by double clicking on the startup.bat inside bin folder 
the tomcat console comes only for 3-4 seconds and then disappears.I  also tried 
to solve it by changing the port no 8080 which is inside server.xml file to any 
other port (e.g. 9020,8090 etc.),but still it's not working.
 
   Also sometimes even though the server starts and runs fine and i am 
able to see the index.html page(featuring the cat) i get a 404 error of 
resource not found while trying to access my own webapplication which i create 
inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type 
http://localhost:8080/my_apps
 
These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
 
Ayaskant 
 


-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 

Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread Torrey Rice
It's tough to say what your problem is without more information. Did you 
check Tomcat's logs to see what the error is when starting up? Have you 
tried running tomcat from the console instead of from a batch file so 
that you can see the output of the server when it erors and quits?

Give those a try and let us know what the output is and maybe some one 
can help.

Regards
ayaskant swain wrote:
Dear Sir/Madam,
   I have been using tomcat 4.x/5.0.x version for web 
developmen (JSP/Servlets)but i am finding difficulties in starting the server 
itself many times.I have set the JAVA_HOME environmental variable to the 
directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under 
that folder all other subfolders like bin, jre are there.When i am trying to 
start the tomcat server by double clicking on the startup.bat inside bin folder 
the tomcat console comes only for 3-4 seconds and then disappears.I  also tried 
to solve it by changing the port no 8080 which is inside server.xml file to any 
other port (e.g. 9020,8090 etc.),but still it's not working.
  Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps

These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
Ayaskant 

		
-
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread ayaskant swain
Thanks for your instant reply.But i just checked whatever u had said.I tried to 
start it from the console by giving the command %CATALINA_HOME%\bin\startup.bat 
 but same problem still persists.The tomcat console came only for 2-3 seconds 
and then dissapeared.So i could not read the error messages.I am using Windows 
2000 server.some times it runs fine and gives me the desired output.
 
Ok what about that resource not found(404 error).I have created my own folder  
called my_apps inside webapps and the whole directory structure WEB-INF/classes 
inside that.but when am typing http://localhost:8080/my_apps in the address bar 
of the browser am getting this error.Ya one clue is that in the tomcat console 
am getting org.xml.sax.SAXPARSEException. 
web-app should match with a ending /web-app.But i have checked my 
webapplication's web.xml file  it is correct and there is no other user's 
application inside the webapps folder.
 
Currently am doing a project and i need the solution very badly.
 
First let me help in starting the server.What about that logs?
Ayaskant

Torrey Rice [EMAIL PROTECTED] wrote:
It's tough to say what your problem is without more information. Did you 
check Tomcat's logs to see what the error is when starting up? Have you 
tried running tomcat from the console instead of from a batch file so 
that you can see the output of the server when it erors and quits?

Give those a try and let us know what the output is and maybe some one 
can help.

Regards

ayaskant swain wrote:

Dear Sir/Madam,
 I have been using tomcat 4.x/5.0.x version for web developmen 
 (JSP/Servlets)but i am finding difficulties in starting the server itself 
 many times.I have set the JAVA_HOME environmental variable to the directory 
 where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that 
 folder all other subfolders like bin, jre are there.When i am trying to start 
 the tomcat server by double clicking on the startup.bat inside bin folder the 
 tomcat console comes only for 3-4 seconds and then disappears.I also tried to 
 solve it by changing the port no 8080 which is inside server.xml file to any 
 other port (e.g. 9020,8090 etc.),but still it's not working.
 
 Also sometimes even though the server starts and runs fine and i am able to 
 see the index.html page(featuring the cat) i get a 404 error of resource not 
 found while trying to access my own webapplication which i create inside the 
 webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type 
http://localhost:8080/my_apps
 
These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
 
Ayaskant 
 

 
-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 Read only the mail you want - Yahoo! Mail SpamGuard.

Re: Tomcat not running(4.0.6/5.0.19)-urgent

2005-03-19 Thread Mark Leone
Try putting an html or jsp file in your my_apps folder. I'm not sure 
what Tomcat does when you navigate to the web app with nothing other 
than WEB-INF in the web app's folder. When I navigate to one of my web 
apps the way you're trying, I get a directory listing of the files and 
folders I have there, but I notice that that WEB-INF is not included in 
that listing, even though it is present. So a better test of your web 
app would be to try to hit an html or jsp page.

As someone else pointed out, the log files should give you a good clue 
as to why Tomcat isn't starting up sometimes.

-Mark
ayaskant swain wrote:
Dear Sir/Madam,
   I have been using tomcat 4.x/5.0.x version for web 
developmen (JSP/Servlets)but i am finding difficulties in starting the server 
itself many times.I have set the JAVA_HOME environmental variable to the 
directory where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under 
that folder all other subfolders like bin, jre are there.When i am trying to 
start the tomcat server by double clicking on the startup.bat inside bin folder 
the tomcat console comes only for 3-4 seconds and then disappears.I  also tried 
to solve it by changing the port no 8080 which is inside server.xml file to any 
other port (e.g. 9020,8090 etc.),but still it's not working.
  Also sometimes even though the server starts and runs fine and i am able to see the index.html page(featuring the cat) i get a 404 error of resource not found while trying to access my own webapplication which i create inside the webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type http://localhost:8080/my_apps

These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
Ayaskant 

		
-
Do you Yahoo!?
Yahoo! Small Business - Try our new resources site! 
 

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat not running

2005-03-19 Thread ayaskant swain
Hello,
 i have already tested these things which you are telling.When i put 
some html or jsp files directly ubder my_apps folder i see the list of these 
files when i type http://localhost:8080/my_apps but my problem is that 
sometimes i am not able to see this  also.it says /my_apps is not 
available.coming back to your point ya a client can't see the WEB-INF 
directory.It's kept secret from the client by the server itself.That's why when 
we run our servlets which we put inside classes folder under WEB-INF we 
generally call it through a url-pattern which we declare in the web.xml file.
 
Ayaskant

Mark Leone [EMAIL PROTECTED] wrote:
Try putting an html or jsp file in your my_apps folder. I'm not sure 
what Tomcat does when you navigate to the web app with nothing other 
than WEB-INF in the web app's folder. When I navigate to one of my web 
apps the way you're trying, I get a directory listing of the files and 
folders I have there, but I notice that that WEB-INF is not included in 
that listing, even though it is present. So a better test of your web 
app would be to try to hit an html or jsp page.

As someone else pointed out, the log files should give you a good clue 
as to why Tomcat isn't starting up sometimes.

-Mark

ayaskant swain wrote:

Dear Sir/Madam,
 I have been using tomcat 4.x/5.0.x version for web developmen 
 (JSP/Servlets)but i am finding difficulties in starting the server itself 
 many times.I have set the JAVA_HOME environmental variable to the directory 
 where i have installed the j2sdk1.4.2. e.g. E:\j2sdk1.4.2. and under that 
 folder all other subfolders like bin, jre are there.When i am trying to start 
 the tomcat server by double clicking on the startup.bat inside bin folder the 
 tomcat console comes only for 3-4 seconds and then disappears.I also tried to 
 solve it by changing the port no 8080 which is inside server.xml file to any 
 other port (e.g. 9020,8090 etc.),but still it's not working.
 
 Also sometimes even though the server starts and runs fine and i am able to 
 see the index.html page(featuring the cat) i get a 404 error of resource not 
 found while trying to access my own webapplication which i create inside the 
 webapps folder.though it is there 
already.For an example i create a folder named my_apps/WEB-INF/classes inside 
webapps but i get a 404 error (resource not found) when i type 
http://localhost:8080/my_apps
 
These two problems are really making me annoyed.I am fade of these 
problems.Please tell me the solution to these problems.
 
Ayaskant 
 

 
-
Do you Yahoo!?
 Yahoo! Small Business - Try our new resources site! 
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
Do you Yahoo!?
 Yahoo! Mail - Find what you need with new enhanced search. Learn more.

Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread David Bilodeau



Can anyone point me to a thread discussing 
the following configuration or something similar, where the discussion relates 
to the CPU running up to 100%?

Windows 2003 Server Standard Edition running 
IIS 6.0
Tomcat 5.0.28 installed and running (as a 
service)
SQL Server 2000 SP3 connected to Tomcat (and 
IIS), but running from another server.

Our symptom is that after a few days the 
server CPU usagehits 100%, with Tomcat consuming most of it. 
Stopping and restarting each Tomcat virtual site, or stopping  restarting 
the Apache service does not resolve the issue. Only a boxreboot 
will.

I need some guidance as to where to suggest 
to the developers they should look, presuming this is caused by the code. 
I am the system admin of the environment and so do not develop the code myself, 
but I am seeing this symptom and now need to ask the developers to examine their 
code to find a root cause.

I bet someone, somewhere, has run across 
this on a thread on this forum and can point me to it? I've been searching 
some but have not found much yet that is recent.

Regards,


David Bilodeau
Enterprise Marketing  Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038


RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread George Sexton
I think it's something in Tomcat personally. I have had a customer report
this with our Application, which when run under Tomcat on Unix will run for
weeks at a time.
 

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

 


  _  

From: David Bilodeau [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 03, 2005 11:13 AM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%


Can anyone point me to a thread discussing the following configuration or
something similar, where the discussion relates to the CPU running up to
100%?
 
Windows 2003 Server Standard Edition running IIS 6.0
Tomcat 5.0.28 installed and running (as a service)
SQL Server 2000 SP3 connected to Tomcat (and IIS), but running from another
server.
 
Our symptom is that after a few days the server CPU usage hits 100%, with
Tomcat consuming most of it.  Stopping and restarting each Tomcat virtual
site, or stopping  restarting the Apache service does not resolve the
issue.  Only a box reboot will.
 
I need some guidance as to where to suggest to the developers they should
look, presuming this is caused by the code.  I am the system admin of the
environment and so do not develop the code myself, but I am seeing this
symptom and now need to ask the developers to examine their code to find a
root cause.
 
I bet someone, somewhere, has run across this on a thread on this forum and
can point me to it?  I've been searching some but have not found much yet
that is recent.
 
Regards,
 
  
David Bilodeau
Enterprise Marketing  Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038



RE: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%

2005-01-03 Thread Mike Curwen
Every so often in our development environment, we'll have a page that goes
off in an infinite loop.  No problem, we'll just stop the browser, and fix
the page and click refresh.  But meanwhile, that first page is still
spinning away, gobbling up CPU.  
 
I once saw code on tomcat-user that allowed me to see what each thread was
doing. It's at the very bottom of this post:
 
http://marc.theaimsgroup.com/?l=tomcat-user
http://marc.theaimsgroup.com/?l=tomcat-userm=109455426721082w=2
m=109455426721082w=2
 
I must have found the 'second part' from somewhere else, probably
tomcat-user as well! It's a filter that renames the thread to be the JSP
page that the thread is processing:
 
public void doFilter(ServletRequest servletRequest, ServletResponse
servletResponse, FilterChain filterChain) throws IOException,
ServletException {
 
 Thread t= Thread.currentThread();
 String oldName = t.getName();
 HttpServletRequest request = (HttpServletRequest) servletRequest;
 try {
  t.setName(oldName +  -  + request.getRequestURI());
  filterChain.doFilter(servletRequest, servletResponse);
 } finally {
  t.setName(oldName);
 }
 
}
 
combining those two, and you'll get what page is currently processing on
what thread.  If you see the same page for more than  (the time varies,
but let's say 10 seconds)...  then perhaps that page is 'dead' and is
consuming your CPU.
 
 
 

Mike Curwen
www.globallyboundless.com   
204.885.7733 ext 227



-Original Message-
From: David Bilodeau [mailto:[EMAIL PROTECTED] 
Sent: Monday, January 03, 2005 12:13 PM
To: tomcat-user@jakarta.apache.org
Subject: Tomcat 5.0.28 running Windows 2003 Server CPU to 100%


Can anyone point me to a thread discussing the following configuration or
something similar, where the discussion relates to the CPU running up to
100%?
 
Windows 2003 Server Standard Edition running IIS 6.0
Tomcat 5.0.28 installed and running (as a service)
SQL Server 2000 SP3 connected to Tomcat (and IIS), but running from another
server.
 
Our symptom is that after a few days the server CPU usage hits 100%, with
Tomcat consuming most of it.  Stopping and restarting each Tomcat virtual
site, or stopping  restarting the Apache service does not resolve the
issue.  Only a box reboot will.
 
I need some guidance as to where to suggest to the developers they should
look, presuming this is caused by the code.  I am the system admin of the
environment and so do not develop the code myself, but I am seeing this
symptom and now need to ask the developers to examine their code to find a
root cause.
 
I bet someone, somewhere, has run across this on a thread on this forum and
can point me to it?  I've been searching some but have not found much yet
that is recent.
 
Regards,
 
  
David Bilodeau
Enterprise Marketing  Sales Automation
Verizon Data Services, Inc.
919 Hidden Ridge, HQM03C76
Irving, TX 75038



Re: [tomcat] tomcat not running

2004-10-18 Thread Antony Paul
I know nothing about Turbine and it is Tomcat list. You can better ask
it at Turbine list. But on seeing the error message I can give you a
checklist.
What the application contains. 
Does application have an index.jsp.
Does application have a web.xml in WEB-INF directory. 
Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there.

Also go to Tomcat installation directory. There will be one webapps
directory. Check it contains a ROOT folder.

rgds
Antony Paul


On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A
[EMAIL PROTECTED] wrote:
 hello all,
i hope i have posted to the correct lists : ( . i am first time user to 
 tdk. my tomcat is not running. i am using tdk 2.3. my question is:
 
 when all applications from webapps folder are deleted following messages come when i 
 click on startup.bat
 
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27-LE-jdk14
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15  config=E:\software\TDK_2.3\conf\jk2.properties
 
 and in the browser when i type http://localhost:8080 then Http Status 500 error 
 comes.
 
 and when i shut it down and create an application then following error comes on 
 clicking startup :
 WebappClassLoader:
 validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
 loaded.
 See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
 .and a big list of errors and exceptions 
 
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/47  config=E:\software\TDK_2.3\conf\jk2.proper
 
 and in browser again i get : Http Status 500 error .
 
 my directory structure is:
 
 webapps
 -appl1
 -WEB-INF
 -build
 -classes
 -conf
 -db
 -lib
 -src
 ummm, this can be a very primary question to most of you over there. so it might 
 sound silly to you : ) .but i just joined this mailing list with a hope to get some 
 answer. any answers are welcome : ) .
 thanks a lot,
 bye,
 george.
 
 
 -
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [tomcat] tomcat not running

2004-10-18 Thread George A


Antony Paul [EMAIL PROTECTED] wrote:
I know nothing about Turbine and it is Tomcat list. You can better ask
it at Turbine list. 

yes : ) , it is a tomcat list , uhh , and was it that since i am using tomcat i need 
to ask on tomcat ? uhh ok , i thought it's related to tomcat basically so i sent the 
mail to tomcat list also : ( . sorry about that ten i should say .

But on seeing the error message I can give you a
checklist.
What the application contains. 
Does application have an index.jsp.

yes, it does have index.jsp at the location :

E:\software\TDK_2.3\webapps\app1\templates\jsp\screens
Does application have a web.xml in WEB-INF directory. 


yes, it does have.

Does this contains servlet.jar in WEB-INF\lib ? This jar is not needed there.

yes it does contain.

Also go to Tomcat installation directory. There will be one webapps
directory. Check it contains a ROOT folder.


it doesnt contain a folder called ROOT but it does have following folders :

bin,common,conf,logsserver,tdk,temp,webapps,work


rgds
Antony Paul


On Mon, 18 Oct 2004 06:34:13 +0100 (BST), George A
wrote:
 hello all,
 i hope i have posted to the correct lists : ( . i am first time user to tdk. my 
 tomcat is not running. i am using tdk 2.3. my question is:
 
 when all applications from webapps folder are deleted following messages come when i 
 click on startup.bat
 
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
 INFO: Loading registry information
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
 INFO: Creating new Registry instance
 Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
 INFO: Creating MBeanServer
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
 INFO: Initializing Coyote HTTP/1.1 on port 8080
 Starting service Tomcat-Standalone
 Apache Tomcat/4.1.27-LE-jdk14
 Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/15 config=E:\software\TDK_2.3\conf\jk2.properties
 
 and in the browser when i type http://localhost:8080 then Http Status 500 error 
 comes.
 
 and when i shut it down and create an application then following error comes on 
 clicking startup :
 WebappClassLoader:
 validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
 loaded.
 See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
 log4j:ERROR setFile(null,false) call failed.
 java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
 specified)
 .and a big list of errors and exceptions 
 
 [INFO] Turbine - -Turbine: init() Ready to Rumble!
 Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
 INFO: Starting Coyote HTTP/1.1 on port 8080
 Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
 INFO: JK2: ajp13 listening on /0.0.0.0:8009
 Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
 INFO: Jk running ID=0 time=0/47 config=E:\software\TDK_2.3\conf\jk2.proper
 
 and in browser again i get : Http Status 500 error .
 
 my directory structure is:
 
 webapps
 -appl1
 -WEB-INF
 -build
 -classes
 -conf
 -db
 -lib
 -src
 ummm, this can be a very primary question to most of you over there. so it might 
 sound silly to you : ) .but i just joined this mailing list with a hope to get some 
 answer. any answers are welcome : ) .
 thanks a lot,
 bye,
 george.
 
 
 -
 Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
 Messenger Now


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now

[tomcat] tomcat not running

2004-10-17 Thread George A
hello all,
i hope i have posted to the correct lists : ( . i am first time user to 
tdk. my tomcat is not running. i am using tdk 2.3. my question is:
 
when all applications from webapps folder are deleted following messages come when i 
click on startup.bat
 
Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry loadRegistry
INFO: Loading registry information
Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getRegistry
INFO: Creating new Registry instance
Oct 18, 2004 10:33:42 AM org.apache.commons.modeler.Registry getServer
INFO: Creating MBeanServer
Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol init
INFO: Initializing Coyote HTTP/1.1 on port 8080
Starting service Tomcat-Standalone
Apache Tomcat/4.1.27-LE-jdk14
Oct 18, 2004 10:33:43 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 18, 2004 10:33:43 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Oct 18, 2004 10:33:43 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/15  config=E:\software\TDK_2.3\conf\jk2.properties

and in the browser when i type http://localhost:8080 then Http Status 500 error comes.
 
 
and when i shut it down and create an application then following error comes on 
clicking startup :
WebappClassLoader: 
validateJarFile(E:\software\TDK_2.3\webapps\appl1\WEB-INF\lib\servlet.jar) - jar not 
loaded. 
See Servlet Spec 2.3, section 9.7.2. Offending class: javax/servlet/Servlet.class
log4j:ERROR setFile(null,false) call failed.
java.io.FileNotFoundException: \logs\turbine.log (The system cannot find the path 
specified)
.and a big list of errors and exceptions 
 
[INFO] Turbine - -Turbine: init() Ready to Rumble!
Oct 18, 2004 10:45:34 AM org.apache.coyote.http11.Http11Protocol start
INFO: Starting Coyote HTTP/1.1 on port 8080
Oct 18, 2004 10:45:34 AM org.apache.jk.common.ChannelSocket init
INFO: JK2: ajp13 listening on /0.0.0.0:8009
Oct 18, 2004 10:45:34 AM org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/47  config=E:\software\TDK_2.3\conf\jk2.proper
 
and in browser again i get : Http Status 500 error .
 
my directory structure is:
 
webapps
-appl1
-WEB-INF
-build
-classes
-conf
-db
-lib
-src
ummm, this can be a very primary question to most of you over there. so it might sound 
silly to you : ) .but i just joined this mailing list with a hope to get some answer. 
any answers are welcome : ) .
thanks a lot,
bye,
george.
 


-
  Yahoo! Messenger - Communicate instantly...Ping your friends today! Download 
Messenger Now

Re: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc

2004-06-23 Thread Parsons Technical Services
Sorry for the delay. Was off line for a few days. Fat fingers and in a rush
to get out the door. You are correct it is chown. You need to apply it to
the tomcat home directory. I do not recommend the chmod 777. Opens things up
to much. Okay for testing.

Doug


- Original Message - 
From: Fernando Fernandez [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Monday, June 21, 2004 10:52 PM
Subject: RE: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


 Hi Doug,

 Thanks for your suggestion. For some reason, my Linux (7.2) doesn't like
 the chusr command. Is that the same function provided by the chown -R
 tomcat.tomcat /opt/jakarta-tomcat-5.0.25 command? If so, I already had
 that applied. Here is what you see in the directory structure:

 drwxrwxrwx3 tomcat   tomcat   1024 Jun 17 23:27 ./
 drwxrwxrwx   11 tomcat   tomcat   1024 Jun 17 23:27 ../
 drwxrwxrwx2 tomcat   tomcat   1024 Jun 18 00:19 _/
 [EMAIL PROTECTED]
 [/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com]#

 There is nothing under the _ directory except for a tldCache.ser
 file. If I manually create the
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org/apac
 he/jsp directory structure and change the ownership using chown -R
 tomcat.tomcat
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org
 then the page starts working. So, I'm pretty sure Tomcat cannot define
 those directories and therefore the jsp compile fails.

 Any help will be very much appreciated.

 Thanks,

 Fernando.


 -Original Message-
 From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

 Sent: Sunday, June 20, 2004 3:54 PM
 To: Tomcat Users List
 Subject: Re: Setup problem with Tomcat 5.0.25 running as a daemon under
 jsvc

 Do a
 chgrp -R youruser tomcatBaseDir

 and a

 chusr -R youruser tomcatBaseDir

 To have the tomcat directory structure that is owned and belongs to the
 user
 specified in jsvc.

 Doug
 www.parsonstechnical.com


 - Original Message - 
 From: Fernando Fernandez [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Sent: Sunday, June 20, 2004 1:28 PM
 Subject: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


  Hi all,
 
  I found a problem that might be more of a jsvc problem than a tomcat
  issue. But perhaps someone has had the same issue and knows the
  solution. When a user creates a new subdomain (e.g.
  http://subdomain.mydomain.com) and publishes a new Java Server Page,
  they get the following error:
 
  java.io.FileNotFoundException:
 
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
  ache/jsp/test_jsp.java
  java.io.FileOutputStream.open(Native Method)
  java.io.FileOutputStream.init(FileOutputStream.java:179)
  java.io.FileOutputStream.init(FileOutputStream.java:70)
 
  org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
  org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)
 
 
 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
  va:511)
 
 
 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
  va:274)
 
 
 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
 
  org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
  javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
 
  It looks like the problem has something to do with Tomcat trying to
  create the new directory structure under Tomcat's 'work' directory,
  because I don't see part of the directory path mentioned in the
 message.
  And when I start Tomcat using /bin/startup.sh as root, the page runs
  fine and the directory structure is created. After that, any new page
  published works fine in the original setup.
 
  I tried 'chmod -R 777 work' to allow changes to that directory by
  anyone, but it still doesn't work. I tried specifying root as the user
  in the jsvc call, and it doesn't make a difference. Is this behaviour
 by
  design or is it a problem, probably in jsvc? If a solution is not
  possible using jsvc to run Tomcat as a daemon, is there another way to
  run it (I'm a newbie to Tomcat, and I first tried the recommendation
 in
  Apache's web site).
 
  Thanks for your help,
 
  Fernando.
 
 
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
 
 



 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED

RE: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc

2004-06-21 Thread Fernando Fernandez
Hi Doug,

Thanks for your suggestion. For some reason, my Linux (7.2) doesn't like
the chusr command. Is that the same function provided by the chown -R
tomcat.tomcat /opt/jakarta-tomcat-5.0.25 command? If so, I already had
that applied. Here is what you see in the directory structure:

drwxrwxrwx3 tomcat   tomcat   1024 Jun 17 23:27 ./
drwxrwxrwx   11 tomcat   tomcat   1024 Jun 17 23:27 ../
drwxrwxrwx2 tomcat   tomcat   1024 Jun 18 00:19 _/
[EMAIL PROTECTED]
[/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com]#

There is nothing under the _ directory except for a tldCache.ser
file. If I manually create the
/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org/apac
he/jsp directory structure and change the ownership using chown -R
tomcat.tomcat
/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.domain.com/_/org
then the page starts working. So, I'm pretty sure Tomcat cannot define
those directories and therefore the jsp compile fails.

Any help will be very much appreciated.

Thanks,

Fernando.
 

-Original Message-
From: Parsons Technical Services [mailto:[EMAIL PROTECTED]

Sent: Sunday, June 20, 2004 3:54 PM
To: Tomcat Users List
Subject: Re: Setup problem with Tomcat 5.0.25 running as a daemon under
jsvc

Do a
chgrp -R youruser tomcatBaseDir

and a

chusr -R youruser tomcatBaseDir

To have the tomcat directory structure that is owned and belongs to the
user
specified in jsvc.

Doug
www.parsonstechnical.com


- Original Message - 
From: Fernando Fernandez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, June 20, 2004 1:28 PM
Subject: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


 Hi all,

 I found a problem that might be more of a jsvc problem than a tomcat
 issue. But perhaps someone has had the same issue and knows the
 solution. When a user creates a new subdomain (e.g.
 http://subdomain.mydomain.com) and publishes a new Java Server Page,
 they get the following error:

 java.io.FileNotFoundException:

/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
 ache/jsp/test_jsp.java
 java.io.FileOutputStream.open(Native Method)
 java.io.FileOutputStream.init(FileOutputStream.java:179)
 java.io.FileOutputStream.init(FileOutputStream.java:70)

 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)


org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
 va:511)


org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:274)


org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

 It looks like the problem has something to do with Tomcat trying to
 create the new directory structure under Tomcat's 'work' directory,
 because I don't see part of the directory path mentioned in the
message.
 And when I start Tomcat using /bin/startup.sh as root, the page runs
 fine and the directory structure is created. After that, any new page
 published works fine in the original setup.

 I tried 'chmod -R 777 work' to allow changes to that directory by
 anyone, but it still doesn't work. I tried specifying root as the user
 in the jsvc call, and it doesn't make a difference. Is this behaviour
by
 design or is it a problem, probably in jsvc? If a solution is not
 possible using jsvc to run Tomcat as a daemon, is there another way to
 run it (I'm a newbie to Tomcat, and I first tried the recommendation
in
 Apache's web site).

 Thanks for your help,

 Fernando.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Setup problem with Tomcat 5.0.25 running as a daemon under jsvc

2004-06-20 Thread Fernando Fernandez
Hi all,

I found a problem that might be more of a jsvc problem than a tomcat
issue. But perhaps someone has had the same issue and knows the
solution. When a user creates a new subdomain (e.g.
http://subdomain.mydomain.com) and publishes a new Java Server Page,
they get the following error:

java.io.FileNotFoundException:
/opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
ache/jsp/test_jsp.java
java.io.FileOutputStream.open(Native Method)
java.io.FileOutputStream.init(FileOutputStream.java:179)
java.io.FileOutputStream.init(FileOutputStream.java:70)

org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
va:511)

org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
va:274)

org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

It looks like the problem has something to do with Tomcat trying to
create the new directory structure under Tomcat's 'work' directory,
because I don't see part of the directory path mentioned in the message.
And when I start Tomcat using /bin/startup.sh as root, the page runs
fine and the directory structure is created. After that, any new page
published works fine in the original setup. 

I tried 'chmod -R 777 work' to allow changes to that directory by
anyone, but it still doesn't work. I tried specifying root as the user
in the jsvc call, and it doesn't make a difference. Is this behaviour by
design or is it a problem, probably in jsvc? If a solution is not
possible using jsvc to run Tomcat as a daemon, is there another way to
run it (I'm a newbie to Tomcat, and I first tried the recommendation in
Apache's web site). 

Thanks for your help,

Fernando.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc

2004-06-20 Thread Parsons Technical Services
Do a
chgrp -R youruser tomcatBaseDir

and a

chusr -R youruser tomcatBaseDir

To have the tomcat directory structure that is owned and belongs to the user
specified in jsvc.

Doug
www.parsonstechnical.com


- Original Message - 
From: Fernando Fernandez [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Sunday, June 20, 2004 1:28 PM
Subject: Setup problem with Tomcat 5.0.25 running as a daemon under jsvc


 Hi all,

 I found a problem that might be more of a jsvc problem than a tomcat
 issue. But perhaps someone has had the same issue and knows the
 solution. When a user creates a new subdomain (e.g.
 http://subdomain.mydomain.com) and publishes a new Java Server Page,
 they get the following error:

 java.io.FileNotFoundException:
 /opt/jakarta-tomcat-5.0.25/work/Catalina/subdomain.mydomain.com/_/org/ap
 ache/jsp/test_jsp.java
 java.io.FileOutputStream.open(Native Method)
 java.io.FileOutputStream.init(FileOutputStream.java:179)
 java.io.FileOutputStream.init(FileOutputStream.java:70)

 org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:188)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:461)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:442)
 org.apache.jasper.compiler.Compiler.compile(Compiler.java:430)

 org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.ja
 va:511)

 org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.ja
 va:274)

 org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)

 org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
 javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

 It looks like the problem has something to do with Tomcat trying to
 create the new directory structure under Tomcat's 'work' directory,
 because I don't see part of the directory path mentioned in the message.
 And when I start Tomcat using /bin/startup.sh as root, the page runs
 fine and the directory structure is created. After that, any new page
 published works fine in the original setup.

 I tried 'chmod -R 777 work' to allow changes to that directory by
 anyone, but it still doesn't work. I tried specifying root as the user
 in the jsvc call, and it doesn't make a difference. Is this behaviour by
 design or is it a problem, probably in jsvc? If a solution is not
 possible using jsvc to run Tomcat as a daemon, is there another way to
 run it (I'm a newbie to Tomcat, and I first tried the recommendation in
 Apache's web site).

 Thanks for your help,

 Fernando.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat/Jboss running on Lynix

2004-06-04 Thread Kommuru, Bhaskar
Why Jboss3.2.3 (came with built-in tomcat) runs so many child process on
Lynix?
Are those all the processes run on the same JVM or different?
Where can we change this setting (number of processes to run on lynix)?

Please need help

__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Réf. : Tomcat/Jboss running on Lynix

2004-06-04 Thread meissa . Sakho

when you start jboss, which config set are you running (the default,
minimal or all) ?

___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO
01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]




Kommuru, Bhaskar [EMAIL PROTECTED]
04/06/2004 15:23
Veuillez répondre à Tomcat Users List


Pour :  'Tomcat Users List' [EMAIL PROTECTED]
cc :
Objet : Tomcat/Jboss running on Lynix


Why Jboss3.2.3 (came with built-in tomcat) runs so many child process on
Lynix?
Are those all the processes run on the same JVM or different?
Where can we change this setting (number of processes to run on lynix)?

Please need help

__

For information about the Standard Bank group visit our web site
www.standardbank.co.za
__

Disclaimer and confidentiality note
Everything in this e-mail and any attachments relating to the official
business of Standard Bank Group Limited  is proprietary to the group.
It is confidential, legally privileged and protected by law.
Standard Bank does not own and endorse any other content. Views and
opinions are those of the sender unless clearly stated as being that of
the group.
The person addressed in the e-mail is the sole authorised recipient.
Please notify the sender immediately if it has unintentionally reached you
and do not read,
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has
been maintained nor that it is free of errors, virus, interception or
interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is 
prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.

RE: Réf. : Tomcat/Jboss running on Lynix

2004-06-04 Thread Kommuru, Bhaskar
Thanks for trying to help me. I ran with default



when you start jboss, which config set are you running (the default,

minimal or all) ?

___
NATEXIS ASSET MANAGEMENT
Meissa SAKHO

01 58 19 45 71. . . . . . . . . . . . (84571)
[EMAIL PROTECTED]




Kommuru, Bhaskar [EMAIL PROTECTED]
04/06/2004 15:23
Veuillez répondre à Tomcat Users List



Pour :  'Tomcat Users List' [EMAIL PROTECTED]
cc :

Objet : Tomcat/Jboss running on Lynix


Why Jboss3.2.3 (came with built-in tomcat) runs so many child process on
Lynix?
Are those all the processes run on the same JVM or different?
Where can we change this setting (number of processes to run on lynix)?

Please need help


__

For information about the Standard Bank group visit our web site

www.standardbank.co.za

__


Disclaimer and confidentiality note

Everything in this e-mail and any attachments relating to the official

business of Standard Bank Group Limited  is proprietary to the group.

It is confidential, legally privileged and protected by law.

Standard Bank does not own and endorse any other content. Views and

opinions are those of the sender unless clearly stated as being that of

the group.

The person addressed in the e-mail is the sole authorised recipient.

Please notify the sender immediately if it has unintentionally reached you

and do not read,

disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has

been maintained nor that it is free of errors, virus, interception or

interference.

___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or
dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it
and

notify the sender.
__

For information about the Standard Bank group visit our web site 
www.standardbank.co.za
__

Disclaimer and confidentiality note 
Everything in this e-mail and any attachments relating to the official business of 
Standard Bank Group Limited  is proprietary to the group. 
It is confidential, legally privileged and protected by law. 
Standard Bank does not own and endorse any other content. Views and opinions are those 
of the sender unless clearly stated as being that of the group. 
The person addressed in the e-mail is the sole authorised recipient. Please notify the 
sender immediately if it has unintentionally reached you and do not read, 
disclose or use the content in any way.
Standard Bank can not assure that the integrity of this communication has been 
maintained nor that it is free of errors, virus, interception or interference.
___

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat not running on Redhat 9 (SOMRAJ)

2004-05-14 Thread Somraj Bhattacharyya


Hi all

I am quite new in Tomcat. I am facing a startup error while starting up my
Tomcat server. 
My Tomacat server version is: 
tomcat-4.1.30

JDK installed is: 
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_11-b02)Java
HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)

The error is: vi catalina.out

log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.UnsupportedClassVersionEr
ror: javax/transaction/UserTransaction (Unsupported major.minor version
48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:621)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:958)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:857)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)

Please guide
Thanks in advance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat not running on Redhat 9 (SOMRAJ)

2004-05-14 Thread Shapira, Yoav

Hi,
You have more than one error: at least two distinct ones.

What jars are in your WEB-INF/lib directory?  If there's a j2ee.jar
there (or anywhere else in your tomcat server installation), remove it.

Do you have Axis or Slide installed, thereby causing the log4j warning
messages?  If so, you need to configure log4j for them.

Yoav Shapira
Millennium Research Informatics


-Original Message-
From: Somraj Bhattacharyya [mailto:[EMAIL PROTECTED]
Sent: Friday, May 14, 2004 9:32 AM
To: 'Tomcat Users List'
Subject: Tomcat not running on Redhat 9 (SOMRAJ)



Hi all

I am quite new in Tomcat. I am facing a startup error while starting up
my
Tomcat server.
My Tomacat server version is:
tomcat-4.1.30

JDK installed is:
Java(TM) 2 Runtime Environment, Standard Edition (build
1.3.1_11-b02)Java
HotSpot(TM) Client VM (build 1.3.1_11-b02, mixed mode)

The error is: vi catalina.out

log4j:WARN No appenders could be found for logger
(org.apache.commons.digester.D
igester).
log4j:WARN Please initialize the log4j system properly.
Exception during startup processing
java.lang.reflect.InvocationTargetException:
java.lang.UnsupportedClassVersionEr
ror: javax/transaction/UserTransaction (Unsupported major.minor version
48.0)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:10
6)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at
org.apache.catalina.loader.StandardClassLoader.findClass(StandardClas
sLoader.java:621)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:958)
at
org.apache.catalina.loader.StandardClassLoader.loadClass(StandardClas
sLoader.java:857)
at
java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at java.lang.ClassLoader.defineClass0(Native Method)

Please guide
Thanks in advance

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: tomcat 5.0.16 running out of resources

2004-02-09 Thread STOCKHOLM, Raymond
set your JAVA_OPTS accordingly to your needs in your startup.*

If you need 750 Mbytes, try this :
set JAVA_OPTS=-server -Xms750m -Xmx750m -XX:NewRatio=2

-Message d'origine-
De : Jake Alley [mailto:[EMAIL PROTECTED]
Envoyé : dimanche 8 février 2004 15:23
À : [EMAIL PROTECTED]
Objet : tomcat 5.0.16 running out of resources


Hi, I'm running Tomcat 5.0.16 and I'm getting the following error 
peiiodically:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

It happens when certain jsp forms are compiled.  Is there a way to increase 
the amount of system resources?  Sometimes the server just stops working and 
leaves no log traces as well.  Could these be related?  This is with code 
that worked fine in version 4.

Thanks.

_
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat 5.0.16 running out of resources

2004-02-08 Thread Jake Alley
Hi, I'm running Tomcat 5.0.16 and I'm getting the following error 
peiiodically:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

It happens when certain jsp forms are compiled.  Is there a way to increase 
the amount of system resources?  Sometimes the server just stops working and 
leaves no log traces as well.  Could these be related?  This is with code 
that worked fine in version 4.

Thanks.

_
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat 5.0.16 running out of resources

2004-02-08 Thread Josh Rehman
Sun's javac that comes with the 1.3 sdk leaks memory. This is a known 
issue. 1.4+ and jikes can fix it.

To my mind the (much) better way is to precompile your JSPs. Check out:
http://jakarta.apache.org/tomcat/tomcat-5.0-doc/jasper-howto.html
This has the added benefit of avoiding that annoying stuttering when 
your application is first accessed.

HTH

Jake Alley wrote:

Hi, I'm running Tomcat 5.0.16 and I'm getting the following error 
peiiodically:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

It happens when certain jsp forms are compiled.  Is there a way to 
increase the amount of system resources?  Sometimes the server just 
stops working and leaves no log traces as well.  Could these be 
related?  This is with code that worked fine in version 4.

Thanks.

_
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. 
http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: tomcat 5.0.16 running out of resources

2004-02-08 Thread David Strupl
Hi,

also consider upgrading to 5.0.18 - there was a memory leak fixed in 
tomcat. You can search the archive of this conference to find more info.

Best,

David

Jake Alley wrote:
Hi, I'm running Tomcat 5.0.16 and I'm getting the following error 
peiiodically:
The system is out of resources.
Consult the following stack trace for details.
java.lang.OutOfMemoryError

It happens when certain jsp forms are compiled.  Is there a way to 
increase the amount of system resources?  Sometimes the server just 
stops working and leaves no log traces as well.  Could these be 
related?  This is with code that worked fine in version 4.

Thanks.

_
Optimize your Internet experience to the max with the new MSN Premium 
Internet Software. http://click.atdmt.com/AVE/go/onm00200359ave/direct/01/


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Shell script to check if Tomcat is running?

2003-12-03 Thread irubenis
Does anybody has script also for unix systems like REDHAT linux?
This looks likes for windows!

 2 really simple ways
 
 
 -
 # Assume tomcat is the only java process
 COWBELL=`ps -ef | grep java| grep -v grep | wc -l`
 if [ $COWBELL  0 ]; then
echo Woohoo - the process is there;
 fi
 -
 
 OR
 
 -
 # Assume glodenfile should be result from url below
 rm dest_file.html
 wget http://more/cowbell.txt --output-document=dest_file.html
 COWBELL=`diff dest_file.html goldenfile.html  | wc -l`
 if [ $COWBELL == 0 ]; then
echo Woohoo - the site is up (and not hacked);
 else
echo The downloaded page is diff from the golden file
 fi
 -
 
 
 -Tim
 
 Tom Ly wrote:
 
  I plan on using cron to automatically run a script to check if Tomcat is
 running.  How would I write one?
   
  -Tom
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Shell script to check if Tomcat is running?

2003-12-03 Thread Oscar Carrillo
This is for unix/linux.

Oscar

On Tue, 2 Dec 2003 [EMAIL PROTECTED] wrote:

 Does anybody has script also for unix systems like REDHAT linux?
 This looks likes for windows!
 
  2 really simple ways
  
  
  -
  # Assume tomcat is the only java process
  COWBELL=`ps -ef | grep java| grep -v grep | wc -l`
  if [ $COWBELL  0 ]; then
 echo Woohoo - the process is there;
  fi
  -
  
  OR
  
  -
  # Assume glodenfile should be result from url below
  rm dest_file.html
  wget http://more/cowbell.txt --output-document=dest_file.html
  COWBELL=`diff dest_file.html goldenfile.html  | wc -l`
  if [ $COWBELL == 0 ]; then
 echo Woohoo - the site is up (and not hacked);
  else
 echo The downloaded page is diff from the golden file
  fi
  -
  
  
  -Tim
  
  Tom Ly wrote:
  
   I plan on using cron to automatically run a script to check if Tomcat is
  running.  How would I write one?

   -Tom
  
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Shell script to check if Tomcat is running?

2003-12-02 Thread Shapira, Yoav

Howdy,
You can also always add -DthisIsMyTomcat=true (or any other
distinguishing argument) to the java runtime options, so that you can
grep the ps output for this specific parameter if there are multiple
java processes.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Oscar Carrillo [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 6:42 PM
To: Tomcat Users List
Subject: Re: Shell script to check if Tomcat is running?

On Mon, 1 Dec 2003, Tim Funk wrote:

 2 really simple ways


 -
 # Assume tomcat is the only java process
 COWBELL=`ps -ef | grep java| grep -v grep | wc -l`
 if [ $COWBELL  0 ]; then
echo Woohoo - the process is there;
 fi
 -

This might depend on the shell used, but I think  should be -gt.

Here's another option in case you have java programs running that
aren't
Tomcat:

#this is all one line
COWBELL=`ps ax --width=1000 | grep \
[o]rg.apache.catalina.startup.Bootstrap \
start | awk '{printf $1  }' | wc | awk '{print $2}'`
#end of one line
if [ $COWBELL -gt 0 ]; then
echo Woohoo - Tomcat is there;
fi

Cheers,
Oscar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can we know Tomcat is running or not through Standalone Java Prog

2003-12-01 Thread Neal
Look in your Tomcat/conf/server.xml file.  Is there an uncommented
service tag like the following?

Service name=Tomcat-Standalone

This instructs Tomcat to run standalone. 

Also, you can confirm this by looking at Tomcat output when it is
stated.  When tomcat starts it will write to standard out (logs in Unix
or output window on Windows).

-N 


-Original Message-
From: dakavara [mailto:[EMAIL PROTECTED] 
Sent: Sunday, November 30, 2003 10:42 PM
To: Tomcat Users List (E-mail)
Subject: How can we know Tomcat is running or not through Standalone
Java Prog

Hi,


How can we know Tomcat is running or not through Standalone Java
Program.


Thanks in Advance,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: How can we know Tomcat is running or not through Standalone Java Prog

2003-12-01 Thread Shapira, Yoav

Howdy,
You have options that check slightly different things:
- Ping tomcat's port: checks the server is up, accepting request on the
port you check
- Specify a CATALINA_PID file, have your standalone program check for
presence of this file
- Write out your own file from your webapp, have your standalone program
check for presence of this file.
- Use a tool like Nagios

etc. etc.  This is a basic operational question.

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: dakavara [mailto:[EMAIL PROTECTED]
Sent: Monday, December 01, 2003 1:42 AM
To: Tomcat Users List (E-mail)
Subject: How can we know Tomcat is running or not through Standalone
Java
Prog

Hi,


How can we know Tomcat is running or not through Standalone Java
Program.


Thanks in Advance,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Shell script to check if Tomcat is running?

2003-12-01 Thread Tom Ly
I plan on using cron to automatically run a script to check if Tomcat is running.  How 
would I write one?
 
-Tom


-
Do you Yahoo!?
Protect your identity with Yahoo! Mail AddressGuard

Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Tim Funk
2 really simple ways

-
# Assume tomcat is the only java process
COWBELL=`ps -ef | grep java| grep -v grep | wc -l`
if [ $COWBELL  0 ]; then
  echo Woohoo - the process is there;
fi
-
OR

-
# Assume glodenfile should be result from url below
rm dest_file.html
wget http://more/cowbell.txt --output-document=dest_file.html
COWBELL=`diff dest_file.html goldenfile.html  | wc -l`
if [ $COWBELL == 0 ]; then
  echo Woohoo - the site is up (and not hacked);
else
  echo The downloaded page is diff from the golden file
fi
-
-Tim

Tom Ly wrote:

I plan on using cron to automatically run a script to check if Tomcat is running.  How would I write one?
 
-Tom


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Shell script to check if Tomcat is running?

2003-12-01 Thread Oscar Carrillo
On Mon, 1 Dec 2003, Tim Funk wrote:

 2 really simple ways
 
 
 -
 # Assume tomcat is the only java process
 COWBELL=`ps -ef | grep java| grep -v grep | wc -l`
 if [ $COWBELL  0 ]; then
echo Woohoo - the process is there;
 fi
 -

This might depend on the shell used, but I think  should be -gt.

Here's another option in case you have java programs running that aren't 
Tomcat:

#this is all one line
COWBELL=`ps ax --width=1000 | grep \
[o]rg.apache.catalina.startup.Bootstrap \
start | awk '{printf $1  }' | wc | awk '{print $2}'`
#end of one line
if [ $COWBELL -gt 0 ]; then
echo Woohoo - Tomcat is there;
fi

Cheers,
Oscar


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How can we know Tomcat is running or not through Standalone Java Prog

2003-11-30 Thread dakavara
Hi,


How can we know Tomcat is running or not through Standalone Java Program.


Thanks in Advance,
Ashok.D

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: changing user/group tomcat is running as

2003-11-27 Thread Bill Barker
You could check out the commons-daemon jsvc (ships with TC 5.x, but should
work with 4.1.x as well).  It doesn't handle the chroot problem (but, since
Solaris 8, I've almost given up on getting chroot to work).  However, it
does handle the port-binding and then changing uid problem.

Marten Lehmann [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
 Hello,

 after almost comleting Oreilly's Tomcat - The Definitive Guide, the
 only thing mentioned there about changing the user tomcat is running as
 is to put it into a chroot-environment, whereby the chroot is not as
 important as changing the user and group in the same step. Without doing
 chroot-things, I likewise could use su tomcat -c ./startup.sh, right?
 But no matter if I use chroot or su to do this, I have the drawback,
 that I can't use port 80 for http nor 433 for https, because access to
 this is restricted to the root user. Is there any way to change the user
 after tomcat has start up like the User and Group directives in
 apache-httpd? Running tomcat as root seems like a security flaw to me. I
 don't want to set up an additional apache-httpd at port 80 and 443 which
 communicates with tomcat on ports  1023. Any ideas?

 Regards
 Marten




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: changing user/group tomcat is running as

2003-11-27 Thread Marten Lehmann
You could check out the commons-daemon jsvc (ships with TC 5.x, but should
work with 4.1.x as well).  It doesn't handle the chroot problem (but, since
Solaris 8, I've almost given up on getting chroot to work).  However, it
does handle the port-binding and then changing uid problem.
Thanks. I wrote my question after I finished the chapter about security. 
And two pages later, when the book talked about the server.xml, suddenly 
it also talked about jsvc (a bit unpexcted at this point).

Regards
Marten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


changing user/group tomcat is running as

2003-11-26 Thread Marten Lehmann
Hello,

after almost comleting Oreilly's Tomcat - The Definitive Guide, the 
only thing mentioned there about changing the user tomcat is running as 
is to put it into a chroot-environment, whereby the chroot is not as 
important as changing the user and group in the same step. Without doing 
chroot-things, I likewise could use su tomcat -c ./startup.sh, right? 
But no matter if I use chroot or su to do this, I have the drawback, 
that I can't use port 80 for http nor 433 for https, because access to 
this is restricted to the root user. Is there any way to change the user 
after tomcat has start up like the User and Group directives in 
apache-httpd? Running tomcat as root seems like a security flaw to me. I 
don't want to set up an additional apache-httpd at port 80 and 443 which 
communicates with tomcat on ports  1023. Any ideas?

Regards
Marten
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: changing user/group tomcat is running as

2003-11-26 Thread russo
Hi Marten,
 We're struggling with this same issue on AIX 5.2. If you're on linux
Check this out:
http://www.klawitter.de/tomcat80.html

see: Kernel space port forwarding

Since AIX doesn't have iptables we may end up just using port 8080 and
8443 as the service is limited to around 300 internal users

If anyone knows of a comparable solution on AIX please chime in.

Regards,
-Ryan

On Wed, 26 Nov 2003, Marten Lehmann wrote:
 Hello,

 after almost comleting Oreilly's Tomcat - The Definitive Guide, the
 only thing mentioned there about changing the user tomcat is running as
 is to put it into a chroot-environment, whereby the chroot is not as
 important as changing the user and group in the same step. Without doing
 chroot-things, I likewise could use su tomcat -c ./startup.sh, right?
 But no matter if I use chroot or su to do this, I have the drawback,
 that I can't use port 80 for http nor 433 for https, because access to
 this is restricted to the root user. Is there any way to change the user
 after tomcat has start up like the User and Group directives in
 apache-httpd? Running tomcat as root seems like a security flaw to me. I
 don't want to set up an additional apache-httpd at port 80 and 443 which
 communicates with tomcat on ports  1023. Any ideas?

 Regards
 Marten


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1.27 Running as a Service

2003-10-27 Thread Kenneth
Hi,

check whether your Tomcat service is up or not.  It happened something like
that to me once, and when I checked (Control Panel-Tools-Computer
Administration-Services  Applications or something like that) mi service
was always down when I started my computer.  I re-configured it and it all
went well.  Since then, my Tomcat service started every time I started my
computer, as a service.

Hope it helps,

Ken
- Original Message - 
From: Hardee, Brenda G NAVSAFECEN [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 1:32 PM
Subject: Tomcat 4.1.27 Running as a Service


  I have installed Tomcat ver 4.1.27 as a service on my WIN2000 machine,
however, I cannot reach the site through a browser window (I.E.).  I can
reach the site through my browser when I run Tomcat with the startup option.
There must be some setup options that I don't have configured correctly, can
you assist me?  vr, Brenda Hardee



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.1.27 Running as a Service

2003-10-24 Thread Hardee, Brenda G NAVSAFECEN
  I have installed Tomcat ver 4.1.27 as a service on my WIN2000 machine, 
however, I cannot reach the site through a browser window (I.E.).  I can reach the 
site through my browser when I run Tomcat with the startup option.  There must be some 
setup options that I don't have configured correctly, can you assist me?  vr, Brenda 
Hardee



Tomcat NOT running

2003-09-29 Thread Johan Louwers
I have a problem,
we found this morning that the tomcat server is not starting.. when we do
manual ./startup.sh all looks good buth tomcat is not started. When we do
./shutdown.sh I get the following error:

# ./shutdown.sh
Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
Catalina.stop: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
at
java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
at java.net.Socket.connect(Socket.java:434)
at java.net.Socket.connect(Socket.java:384)
at java.net.Socket.init(Socket.java:291)
at java.net.Socket.init(Socket.java:119)
at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
#

Any clue anybody?

Regards,
Johan.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat NOT running

2003-09-29 Thread Johan Louwers
)
at
org.apache.catalina.core.StandardEngine.start(StandardEngine.java:347)
at org.apache.catalina.core.StandardService.start(StandardService.ja
va:497)
at
org.apache.catalina.core.StandardServer.start(StandardServer.java:2190)
at org.apache.catalina.startup.Catalina.start(Catalina.java:512)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
Stopping service Tomcat-Standalone
Catalina.stop: LifecycleException:  Coyote connector has not been started
LifecycleException:  Coyote connector has not been started
at
org.apache.coyote.tomcat4.CoyoteConnector.stop(CoyoteConnector.java:1199)
at
org.apache.catalina.core.StandardService.stop(StandardService.java:546)
at
org.apache.catalina.core.StandardServer.stop(StandardServer.java:2225)
at org.apache.catalina.startup.Catalina.start(Catalina.java:543)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:400)
at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
#








- Original Message -
From: Johan Louwers [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 29, 2003 11:17 AM
Subject: Tomcat NOT running


 I have a problem,
 we found this morning that the tomcat server is not starting.. when we do
 manual ./startup.sh all looks good buth tomcat is not started. When we do
 ./shutdown.sh I get the following error:

 # ./shutdown.sh
 Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
 Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
 Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:434)
 at java.net.Socket.connect(Socket.java:384)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 #

 Any clue anybody?

 Regards,
 Johan.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat NOT running -- solved

2003-09-29 Thread Johan Louwers
Solved the problem,
the problem was I had a typo

In tomcat-users.xml I forgot a 
I had :
 user username= password= roles=admin/

and this should be:
 user username= password= roles=admin/

:-)


- Original Message -
From: Johan Louwers [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Monday, September 29, 2003 11:17 AM
Subject: Tomcat NOT running


 I have a problem,
 we found this morning that the tomcat server is not starting.. when we do
 manual ./startup.sh all looks good buth tomcat is not started. When we do
 ./shutdown.sh I get the following error:

 # ./shutdown.sh
 Using CATALINA_BASE:   /usr/local/jakarta-tomcat-4.1.27
 Using CATALINA_HOME:   /usr/local/jakarta-tomcat-4.1.27
 Using CATALINA_TMPDIR: /usr/local/jakarta-tomcat-4.1.27/temp
 Using JAVA_HOME:   /usr/local/j2sdk1.4.1_05
 Catalina.stop: java.net.ConnectException: Connection refused
 java.net.ConnectException: Connection refused
 at java.net.PlainSocketImpl.socketConnect(Native Method)
 at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
 at
 java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
 at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
 at java.net.Socket.connect(Socket.java:434)
 at java.net.Socket.connect(Socket.java:384)
 at java.net.Socket.init(Socket.java:291)
 at java.net.Socket.init(Socket.java:119)
 at org.apache.catalina.startup.Catalina.stop(Catalina.java:581)
 at org.apache.catalina.startup.Catalina.execute(Catalina.java:402)
 at org.apache.catalina.startup.Catalina.process(Catalina.java:180)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at

sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
 )
 at

sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
 .java:25)
 at java.lang.reflect.Method.invoke(Method.java:324)
 at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203)
 #

 Any clue anybody?

 Regards,
 Johan.


 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1x running as NT Service Issue

2003-08-04 Thread Nathan Ward
I told you wrong about how to set the memory limits when running as a
service. You can set the memory options in the Windows registry using
regedit.

In regedit, open HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Services\Apache
Tomcat 4.1\Parameters
Add a string value named: JVM Option Number 3 and set it's value to -Xms100m
Add a string value named: JVM Option Number 4 and set it's value to -Xmx100m
Change the JVM Option Count to 5 (was 3 at least on my machine. The value of
this field must match the number of JVM Option Number x values).

You can also write log statements to check allocated and available memory.
Following is an example thread that we used. I've cut out a few parts that
are specific to our application and the formatting is screwed up from
cutting and pasting it, but should be close enough to get you going.

public class MemoryMonitor implements Runnable {
private boolean done = false;
   private Runtime rt = Runtime.getRuntime();

public MemoryMonitor() {
Thread theThread = new Thread(this);
theThread.setDaemon(true);
theThread.setPriority(Thread.MIN_PRIORITY);
theThread.start();
}


public void run() {
while (!done) {
try {
long freeMemory = rt.freeMemory()/1024;
long totalMemory = rt.totalMemory()/1024;
long memoryUsed = (totalMemory-freeMemory)/1024;
long allocatedMemory = (totalMemory/1024);
 AppLog.info([Memory Monitor] -- +new
Timestamp(System.currentTimeMillis()).toString()+ --- Memory Allocated:
+(int)allocatedMemory+k);
AppLog.info([Memory Monitor] -- +new
Timestamp(System.currentTimeMillis()).toString()+ --- Memory Used:
+(int)memoryUsed+k);
rt.gc();
if(allocatedMemorytotalMemory){

}
Thread.sleep(

MemoryMonitorProperties.getInstance().getCheckMemoryInterval());
} catch (Exception ie) {
AppLog.error(AppError.getStackTraceAsString(ie));
}
}
  AppLog.info(MemoryMonitor terminated.);
}
}

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: 'Tomcat Users List' [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 11:34 PM
Subject: RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much the
same configuration from what you describe but with drastically different
results.

I am checking on JVM settings, and I will try what you suggest.  The laptops
are Dell and IBM late models with 256 MB of memory and large fast drives so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?

-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 
tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 
that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 
to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior to the crash, available memory 
will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am 
assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about 
with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes 
every
10 minutes.  Any help or suggestions would be appreciated. RP2C Inc
http://www.rp2c.com [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I agree with your view on memory usage on a client, but what I am not clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if so,
what happens when the limit is exceeded, or it attempts to. What we see now
is a gradual increase in memory usage over a 10 - 15 minute period, followed
by an abend of the Tomcat service. If we run the Tomcat session in a window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:26 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 
tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 
that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 
to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior to the crash, available memory 
will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am 
assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about 
with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app

RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
The settings are not controlled in the startup.bat - if you want to 
control them from the command line, you set the environment variable 
JAVA_OPTS with them.  The default settings for a Sun JVM is to allow a 
max heap of 64m - if you try to exceed this, 
java.lang.OutOfMemoryException s will be thrown and by and large the whole 
thing will fall over.  You can probably see these in the log file if you 
look.  Again if you havent specified anything in the service setup, it 
will probably run with 64m of memory as well.

Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 14:27
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I agree with your view on memory usage on a client, but what I am not 
clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if 
so,
what happens when the limit is exceeded, or it attempts to. What we see 
now
is a gradual increase in memory usage over a 10 - 15 minute period, 
followed
by an abend of the Tomcat service. If we run the Tomcat session in a 
window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:26 AM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


I dont think the java versi0on is necessarily a problem however what you 
need to remeber is when you install the service, you fix the settings of 
the JVM.  If you want to control memory settings, you need to do it in the 

tomcat.exe command which you run to install the service.  My server is 
down at the moment so I cant give you an example but if you look in 
tomcat.exe help you can see how to add java options, and one of them will 
need to be somthing like what was suggested below (ie -Xmx128m).  As an 
aside, I personally wouldnt do the -Xms128m as well because this will mean 

that that much memory is used up irrespective of requirements.  Whilst 
this configuration is good in a server environment, in a client where 
memory is more of a premium, you should only default to what you expect it 

to use on a minimal or average basis.
cheers
Pete

Kiss Technologies

http://www.kisstechnologies.co.uk/

4, Percy Street
London
W1T 1DF

Phone numbers:

Phone 020 7692 9922
Fax 020 7692 9923




Robert Porter [EMAIL PROTECTED]
03/08/2003 04:49
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much 
the
same configuration from what you describe but with drastically different
results. 

I am checking on JVM settings, and I will try what you suggest.  The 
laptops
are Dell and IBM late models with 256 MB of memory and large fast drives 
so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and 
max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are 
similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the 
same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash 
after
about 10 minutes of activity. Just prior

Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Tim Funk
If you need to run NT as a service, use this tool to set it up. It makes life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/

-Tim
http://jakarta.apache.org/tomcat/faq/windows.html
Robert Porter wrote:
I agree with your view on memory usage on a client, but what I am not clear
on is do those settings constitute a hard limit for Tomcat/JVM? And if so,
what happens when the limit is exceeded, or it attempts to. What we see now
is a gradual increase in memory usage over a 10 - 15 minute period, followed
by an abend of the Tomcat service. If we run the Tomcat session in a window,
using the stock Startup.bat file included with the binary distribution
memory usage stays flat. This is what led me to wonder if some of these
memory parameters to the JVM (during the install of the service) might be
required. I am guessing that the stock install of the service does not set
any limit on memory usage?  Is this true?  Thanks in advance!
Cheers,

Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
thanks been looking for something like that for ages!





Tim Funk [EMAIL PROTECTED]
03/08/2003 16:52
Please respond to Tomcat Users List
 
To: Tomcat Users List [EMAIL PROTECTED]
cc: 
Subject:Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes 
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
clear
 on is do those settings constitute a hard limit for Tomcat/JVM? And if 
so,
 what happens when the limit is exceeded, or it attempts to. What we see 
now
 is a gradual increase in memory usage over a 10 - 15 minute period, 
followed
 by an abend of the Tomcat service. If we run the Tomcat session in a 
window,
 using the stock Startup.bat file included with the binary distribution
 memory usage stays flat. This is what led me to wonder if some of these
 memory parameters to the JVM (during the install of the service) might 
be
 required. I am guessing that the stock install of the service does not 
set
 any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread pete . storey
well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I reinstalled Tomcat using the ServiceCfg tool mentioned previously and
badda boom badda bing! No more creeping memory loss, at least not over the
past several hours.  I set some limits on memory usage etc.  Am now trying
to determine what exactly, I have to pass as parameters to the tomcat.exe
service installation tool.  

I feel like I am missing something obvious, when you install the Tomcat
service with the provided tomcat.exe what happens to all the JVM parameters?
Are they set in the registry? Environment, where?

But, I can at last see daylight again!  Thanks to all for your help!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
Appears I spoke to soon.  While memory usage is much better during the
application execution, it still eventually begins a steep climb in terms of
memory consumption, even with setting the various memory parameters on the
JVM.  What is most baffling to me is that this behavior does not occur when
Tomcat is not running as a service.  Anyone have any clues??

Bob Porter

-Original Message-
From: Robert Porter [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 5:39 PM
To: 'Tomcat Users List'
Subject: RE: Tomcat 4.1x running as NT Service Issue


I reinstalled Tomcat using the ServiceCfg tool mentioned previously and
badda boom badda bing! No more creeping memory loss, at least not over the
past several hours.  I set some limits on memory usage etc.  Am now trying
to determine what exactly, I have to pass as parameters to the tomcat.exe
service installation tool.  

I feel like I am missing something obvious, when you install the Tomcat
service with the provided tomcat.exe what happens to all the JVM parameters?
Are they set in the registry? Environment, where?

But, I can at last see daylight again!  Thanks to all for your help!

Cheers,

Bob Porter

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 1:04 PM
To: Tomcat Users List
Subject: RE: Tomcat 4.1x running as NT Service Issue


well in that case the tomcat.exe included with the tomcat dist is fine 
once you have fixed your setup.  It is simply run as a batch script, or as 
part of an install (you execute tomcat.exe once with the relevant 
parameters to install it)
Pete





Robert Porter [EMAIL PROTECTED]
03/08/2003 18:01
Please respond to Tomcat Users List
 
To: 'Tomcat Users List' [EMAIL PROTECTED]
cc: 
Subject:RE: Tomcat 4.1x running as NT Service Issue


Found that while googling my issue, it looks very promising, but I need
something we can include in a custom setup that will be run by users.
Although that tool will help in testing! Seen anything like it for 
deploying
webapps?



-Original Message-
From: Tim Funk [mailto:[EMAIL PROTECTED] 
Sent: Sunday, August 03, 2003 11:52 AM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


If you need to run NT as a service, use this tool to set it up. It makes
life 
pretty nice.
http://web.bvu.edu/staff/david/tcservcfg/


-Tim
http://jakarta.apache.org/tomcat/faq/windows.html

Robert Porter wrote:
 I agree with your view on memory usage on a client, but what I am not 
 clear on is do those settings constitute a hard limit for 
 Tomcat/JVM? And if so, what happens when the limit is exceeded, or it 
 attempts to. What we see now is a gradual increase in memory usage 
 over a 10 - 15 minute period, followed by an abend of the Tomcat 
 service. If we run the Tomcat session in a window, using the stock 
 Startup.bat file included with the binary distribution memory usage 
 stays flat. This is what led me to wonder if some of these memory 
 parameters to the JVM (during the install of the service) might be 
 required. I am guessing that the stock install of the service does not 
 set any limit on memory usage?  Is this true?  Thanks in advance!
 
 Cheers,
 
 Bob Porter


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1x running as NT Service Issue

2003-08-03 Thread Robert Porter
I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much the
same configuration from what you describe but with drastically different
results.  

I am checking on JVM settings, and I will try what you suggest.  The laptops
are Dell and IBM late models with 256 MB of memory and large fast drives so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?

-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes every
10 minutes.  Any help or suggestions would be appreciated. RP2C Inc
http://www.rp2c.com [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat 4.1x running as NT Service Issue

2003-08-02 Thread Robert Porter
I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.  

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes every
10 minutes.  Any help or suggestions would be appreciated.
RP2C Inc
http://www.rp2c.com
[EMAIL PROTECTED]
 



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat 4.1x running as NT Service Issue

2003-08-02 Thread Nathan Ward
I'm not sure that this is it, but you might try setting the JVM min and max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes every
10 minutes.  Any help or suggestions would be appreciated.
RP2C Inc
http://www.rp2c.com
[EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat 4.1x running as NT Service Issue

2003-08-02 Thread Robert Porter
I am not sure why we are not running 1.4, but the image from corporate has
1.3.1 and we have been told to live with it. We are running pretty much the
same configuration from what you describe but with drastically different
results.  

I am checking on JVM settings, and I will try what you suggest.  The laptops
are Dell and IBM late models with 256 MB of memory and large fast drives so
I don't think it's the hardware.  All running W2K Pro with SQL Server 2000
Std Ed. We are using an older JDBC driver, what JDBC driver are you using?


-Original Message-
From: Nathan Ward [mailto:[EMAIL PROTECTED] 
Sent: Saturday, August 02, 2003 10:27 PM
To: Tomcat Users List
Subject: Re: Tomcat 4.1x running as NT Service Issue


I'm not sure that this is it, but you might try setting the JVM min and max
memory limits when starting Tomcat by adding the following to
$CATALINA_HOME\bin\catalina.bat:

set JAVA_OPS = -Xms100m -Xmx100m

Default for the JVM I believe should be 64mb, but who knows.

Why are you using jdk 1.3.1? Do you have existing code that is not
compatible with jdk 1.4? We are running Tomcat 4.1.24 as a service under
Windows 2000 Server accessing an SQL Server database on the same machine
with JDK 1.4.1_01 and it is working.

   Nathan

- Original Message -
From: Robert Porter [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, August 02, 2003 6:57 PM
Subject: Tomcat 4.1x running as NT Service Issue


I have scanned all the archives, and have seen some issues that are similar
but not quite the same so I am posting this request.

We are running Tomcat 4.1.24 Binary release, as a Service on Windows 2000
SP3 and SP4 Pro version. No JSP just servlets. The Tomcat instance is
hosting 2 servlets that talk to a local SQL Server 2000 database on the same
machine. A VB 6 client is talking to the servlets via http post etc, and
exchanging XML documents for requests and replies.

Running as a Service, with JDK 1.3.1 as the JVM the service will crash after
about 10 minutes of activity. Just prior to the crash, available memory will
decrease to 0 and the system will slow to a crawl with a lot of disk
activity, paging I imagine.

Running Tomcat in a window alleviates the problem entirely, so I am assuming
there are some parameters that are being passed via the Startup.bat file
that are not happening with the service. Or perhaps to the JVM, I am very
new to Tomcat so I am not sure how to accomplish this.  However we really
want to have Tomcat running as a service since this is a laptop app being
deployed to hundreds of our users, and we don't want them mucking about with
the Window created by running Tomcat as a windowed service.

Plus, having it run as a service means it is one less thing to worry about
in our application code. However we can't deploy the app if it crashes every
10 minutes.  Any help or suggestions would be appreciated. RP2C Inc
http://www.rp2c.com [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



jsp:getProperty Bug in TomCat 4.1.18 (running log attached) - stop using tomcat

2003-06-12 Thread Jose Euclides da Silva Junior - DATAPREVRJ
In TomCat 4.1.18, its impossible to get any bean content as bellow! The
TomCat's running process seems to be WRONG.Why? The code bellow is correct,
and runs fine in OC4J! Unfortunately, I am thinking in stop using TomCat
forever...
Euclides.

-
font class=Style_1a
href=http://wtrjo210/ConsultaDica?pagina=pagina_atualindice=i;Bjsp:get
Property name=dica property=nomeDica //B/a/font
-

But, this  bean property is well defined into my Javabeans!!!

Take a look at the log running process of Tomcat:
 dica = (euc.Dica) pageContext.getAttribute(dica, PageContext.PAGE_SCOPE);
if (dica == null){
  try {
dica = (euc.Dica)
java.beans.Beans.instantiate(this.getClass().getClassLoader(), euc.Dica);
  } catch (ClassNotFoundException exc) {
throw new InstantiationException(exc.getMessage());
  } catch (Exception exc) {
throw new ServletException(Cannot create bean of class  +
euc.Dica, exc);
  }
  pageContext.setAttribute(dica, dica, PageContext.PAGE_SCOPE);
}


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



tomcat service running at 100% cpu ... formerly RE: -Xincgc, -Xms600, -Xmx600

2003-06-06 Thread Strecker, Mark
Here's the situation :
Tomcat 4.x installed as windows service running continuously at 100% cpu for no 
apparent reason.
Apache forwarding requests to tomcat via jk.

I have some thread dumps that look very interesting. It appears that there is a thread 
issue with jk. Open normal.txt and onehundred.txt in a comparison tool like xdiff and 
you will see what I am talking about.

I attached 3 thread dumps :
- normal.txt is the thread dump when tomcat is running as expected
- onehundred.txt is the thread dump when tomcat is at 100% cpu. NOTE that no 
applications are running inside Tomcat.
- moreinfo.txt is the thread dump after I logged into the admin page to check the 
debug options for the jk Connector. Interestingly enough, the Connector page didn't 
load when I clicked on it(exceptions logged) AND there are even more threads in a wait 
state.


I am looking for suggestions on what to do next. Any thoughts/suggestions are welcome.

TIA,
Mark

PS. Thanks to John Smith for the tip on this, 
http://www.mycgiserver.com/~tmitevski/adaptj/ , thread dump tool.

Full thread dump:

Stack Trace Remote Thread prio=5 tid=0x2763f1d0 nid=0x51c runnable [0..0x2adbfc44]

MonitorRunnable daemon prio=5 tid=0x27937c28 nid=0x7d0 waiting on monitor 
[0x2ac5f000..0x2ac5fdc4]
at java.lang.Object.wait(Native Method)
at 
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:420)
at java.lang.Thread.run(Thread.java:479)

Thread-9 daemon prio=5 tid=0x27d4b950 nid=0x7d4 runnable [0x2ab5f000..0x2ab5fdc4]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217)
at org.apache.jk.common.ChannelSocket.accept(ChannelSocket.java:268)
at org.apache.jk.common.ChannelSocket.acceptConnections(ChannelSocket.java:559)
at org.apache.jk.common.SocketAcceptor.runIt(ChannelSocket.java:688)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:479)

Thread-8 daemon prio=5 tid=0x27d4b818 nid=0x7d8 runnable [0x2aa5f000..0x2aa5fdc4]
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:275)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:526)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:464)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:579)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:479)

Thread-7 daemon prio=5 tid=0x27ab9960 nid=0x7dc runnable [0x2a95f000..0x2a95fdc4]
at java.net.SocketInputStream.socketRead(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:85)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:181)
at java.io.BufferedInputStream.read1(BufferedInputStream.java:220)
at java.io.BufferedInputStream.read(BufferedInputStream.java:275)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:526)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:464)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:579)
at org.apache.jk.common.SocketConnection.runIt(ChannelSocket.java:707)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:530)
at java.lang.Thread.run(Thread.java:479)

Thread-6 daemon prio=5 tid=0x27ab9018 nid=0x770 waiting on monitor 
[0x2a85f000..0x2a85fdc4]
at java.lang.Object.wait(Native Method)
at java.lang.Object.wait(Object.java:415)
at 
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:509)
at java.lang.Thread.run(Thread.java:479)

MonitorRunnable daemon prio=5 tid=0x27a4ac70 nid=0x7e4 waiting on monitor 
[0x2a75f000..0x2a75fdc4]
at java.lang.Object.wait(Native Method)
at 
org.apache.tomcat.util.threads.ThreadPool$MonitorRunnable.run(ThreadPool.java:420)
at java.lang.Thread.run(Thread.java:479)

Thread-4 daemon prio=5 tid=0x27a1dc48 nid=0x7ec runnable [0x2a65f000..0x2a65fdc4]
at java.net.PlainSocketImpl.socketAccept(Native Method)
at java.net.PlainSocketImpl.accept(PlainSocketImpl.java:463)
at java.net.ServerSocket.implAccept(ServerSocket.java:238)
at java.net.ServerSocket.accept(ServerSocket.java:217

RE: tomcat service running at 100% cpu ... formerly RE: -Xincgc, -Xms600, -Xmx600

2003-06-06 Thread Shapira, Yoav

Howdy,
Seems like a JK connector issue.  I personally can't help much there ;(

- onehundred.txt is the thread dump when tomcat is at 100% cpu. NOTE
that
no applications are running inside Tomcat.

Umm, it does seem like there are all the standard apps (ROOT, admin,
manager, examples, tomcat-docs, webdav), as well as two of your own:
dependencies, axis.  Does the behavior change if you really remove all
webapps, i.e. have an empty webapps directory?

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tomcat not running

2003-04-02 Thread sharad gulati
Hi,
I have installed Tomcat 4.1 and under the services running I am able to see 
tomcat running but when I enter //localhost:8080/ it does not show me the 
index.jsp page. I had Tomcat running before I installed the Java Web 
Services Development Kit. Even after uninstall of JWSDK and reinstall of 
Tomcat the problem persists. I have even checked the registry for any left 
overs and there are none. I am using XP home. Kindly advise.
Thanks,
Sharad Gulati.





_
MSN 8 with e-mail virus protection service: 2 months FREE*  
http://join.msn.com/?page=features/virus

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Tomcat not running

2003-04-02 Thread Shapira, Yoav

Howdy,
Kindly tell us what errprs are in the tomcat logs... ;)

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: sharad gulati [mailto:[EMAIL PROTECTED]
Sent: Wednesday, April 02, 2003 1:00 PM
To: [EMAIL PROTECTED]
Subject: Tomcat not running

Hi,
I have installed Tomcat 4.1 and under the services running I am able to
see
tomcat running but when I enter //localhost:8080/ it does not show me
the
index.jsp page. I had Tomcat running before I installed the Java Web
Services Development Kit. Even after uninstall of JWSDK and reinstall
of
Tomcat the problem persists. I have even checked the registry for any
left
overs and there are none. I am using XP home. Kindly advise.
Thanks,
Sharad Gulati.





_
MSN 8 with e-mail virus protection service: 2 months FREE*
http://join.msn.com/?page=features/virus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Problem with Tomcat Apache running on Different IPs

2003-02-24 Thread Turner, John

I don't use JK2, so I cant answer #2 and #3.  The answer to #1 is: No, it is
not required to run Tomcat and Apache on the same IP address, as long as the
relevant properties files for your chosen connector point to the IP address
where Tomcat listens.  Looking at your URL, it looks like the problems you
are having in #1 are virtual host related.  If you don't have an Apache
VirtualHost for that IP address, and a corresponding connector config, and a
corresponding Tomcat Host container, you will get an error.  By default,
Tomcat is only configured to listen for requests for http://localhost;.  If
you want anything different, you have to set it up.

John

-Original Message-
From: Santos Jha [mailto:[EMAIL PROTECTED] 
Sent: Sunday, February 23, 2003 12:21 PM
To: Tomcat Users List
Subject: Problem with Tomcat  Apache running on Different IPs


Hello all,

After successfully configuring mod_jk2 to enable communication in 
between Apache and tomcat, I have couple of questions. I will love to 
know the answers.:

1. With Ajp13 is it necessary to run tomcat  apache on same IP? Here is 
the scenario:
For me Apache is running of real IP(192.168.0.200) and tomcat is 
listening on localhost at port 8009.
If I goto
http://192.168.0.200:80, I can see the  output from Apache. but If I type
http://192.168.0.200:80/examples I get HTTP 400 However, If I goto
http://localhost/examples i can see the all outputs. I think if I make
changes in server.xml and workers.properties(make same 
IP), I should be able to get the output even on 192.168.0.200. I have 
not tried though.

2. What is the use of mod_jk2.conf. The default file that comes with 
tomcat has all the lines commented. If I get any line uncomented I get 
following error:
SEVERE: can't create apr. ( Is this apr related to WARP protocol?)  java
could not find some logging class.? I even tried to make changes in
catalina.sh to alter CLASSPATH but no avail

After reading the documentation, it seems mod_jk2.conf can be 
automatically generated. In case of mod_jk there are certain parameter 
that kept in server.xml will generate in file, should be follow same 
direction/

3.It seems to me if I want to use Unix domain socket ( which should be 
faster), all I need to do is to uncommnent releted lines in 
mod_jk2.properties. But for me tomcat never created any socket file ? 
please let me know if anyone knows the trick.

Thanks you.
Santos



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Problem with Tomcat Apache running on Different IPs

2003-02-23 Thread Santos Jha
Hello all,

After successfully configuring mod_jk2 to enable communication in 
between Apache and tomcat, I have couple of questions. I will love to 
know the answers.:

1. With Ajp13 is it necessary to run tomcat  apache on same IP? Here is 
the scenario:
For me Apache is running of real IP(192.168.0.200) and tomcat is 
listening on localhost at port 8009.
If I goto
http://192.168.0.200:80, I can see the  output from Apache. but If I type
http://192.168.0.200:80/examples I get HTTP 400
However,
If I goto
http://localhost/examples i can see the all outputs.
I think if I make changes in server.xml and workers.properties(make same 
IP), I should be able to get the output even on 192.168.0.200. I have 
not tried though.

2. What is the use of mod_jk2.conf. The default file that comes with 
tomcat has all the lines commented. If I get any line uncomented I get 
following error:
SEVERE: can't create apr. ( Is this apr related to WARP protocol?)
 java could not find some logging class.?
I even tried to make changes in catalina.sh to alter CLASSPATH but no avail

After reading the documentation, it seems mod_jk2.conf can be 
automatically generated. In case of mod_jk there are certain parameter 
that kept in server.xml will generate in file, should be follow same 
direction/

3.It seems to me if I want to use Unix domain socket ( which should be 
faster), all I need to do is to uncommnent releted lines in 
mod_jk2.properties. But for me tomcat never created any socket file ? 
please let me know if anyone knows the trick.

Thanks you.
Santos


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: how can i make sure tomcat is running?

2003-02-10 Thread Shapira, Yoav
Howdy,
STFA: search the list archives.  This question comes up every few
months.  

Yoav Shapira
Millennium ChemInformatics


-Original Message-
From: Jianping Zhu [mailto:[EMAIL PROTECTED]]
Sent: Sunday, February 09, 2003 12:38 PM
To: Tomcat Users List
Subject: how can i make sure tomcat is running?

os: redhat 7.3
how can i make sure that tomcat is running in my server?




Jianping Zhu
Department of Computer Science
Univerity of Georgia
Athens, GA 30602
Tel 706 5423900



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




how can i make sure tomcat is running?

2003-02-09 Thread Jianping Zhu
os: redhat 7.3
how can i make sure that tomcat is running in my server?




Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Tim Funk
Use a command line program like wget, cURL, JMeter, ... to get a page back.

You can also look for a java process running.

-Tim

Jianping Zhu wrote:

os: redhat 7.3
how can i make sure that tomcat is running in my server?







-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Jianping Zhu

Thanks,
can you give me more detailed instruction?




On Sun, 9 Feb 2003, Tim Funk wrote:

 Use a command line program like wget, cURL, JMeter, ... to get a page back.
 
 You can also look for a java process running.
 
 -Tim
 
 Jianping Zhu wrote:
  os: redhat 7.3
  how can i make sure that tomcat is running in my server?
  
  
  
 
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 



Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Mark Liu
I am not sure about linux, but why don't you just try
http://localhost:8080 or http://localhost and see?

--- Jianping Zhu [EMAIL PROTECTED] wrote:
 
 Thanks,
 can you give me more detailed instruction?
 
 
 
 
 On Sun, 9 Feb 2003, Tim Funk wrote:
 
  Use a command line program like wget, cURL,
 JMeter, ... to get a page back.
  
  You can also look for a java process running.
  
  -Tim
  
  Jianping Zhu wrote:
   os: redhat 7.3
   how can i make sure that tomcat is running in my
 server?
   
   
   
  
  
  
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
  
 
 
 
 Jianping Zhu
 Department of Computer Science
 Univerity of Georgia 
 Athens, GA 30602
 Tel 706 5423900
 
 
 

-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]
 


__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Brian Baxter
Alternatively on *nix (including Cygwin) you can type the following:

ps -ef | grep java

Of course if you have other java procs running they will show up too.

If you wanted to see if it was bind to a port you can check netstat -a for 
the port # (likely 8080 in default config), but in reality, hitting the 
port with a browser would be the easiest solution.



At 12:57 PM 2/9/2003, you wrote:
I am not sure about linux, but why don't you just try
http://localhost:8080 or http://localhost and see?

--- Jianping Zhu [EMAIL PROTECTED] wrote:

 Thanks,
 can you give me more detailed instruction?




 On Sun, 9 Feb 2003, Tim Funk wrote:

  Use a command line program like wget, cURL,
 JMeter, ... to get a page back.
 
  You can also look for a java process running.
 
  -Tim
 
  Jianping Zhu wrote:
   os: redhat 7.3
   how can i make sure that tomcat is running in my
 server?
  
  
  
 
 
 
 

-
  To unsubscribe, e-mail:
 [EMAIL PROTECTED]
  For additional commands, e-mail:
 [EMAIL PROTECTED]
 


 
 Jianping Zhu
 Department of Computer Science
 Univerity of Georgia
 Athens, GA 30602
 Tel 706 5423900
 



-
 To unsubscribe, e-mail:
 [EMAIL PROTECTED]
 For additional commands, e-mail:
 [EMAIL PROTECTED]



__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Oscar Carrillo
This is conceptually very easy, but a little tricky because the process 
identification typically gets cut off for processes that are lengthy. 
Which is what happens with all the classpath addition, etc.

Try this:

ps auxw --width=1000 | grep org.apache.catalina.startup.Bootstrap start

I tried that briefly and that seems to do it. You could put a line like 
that in your /etc/rc.d/init.d/tomcatd script and add this line for status.

Then you can do this to get the info:
service tomcatd status

Oscar

On Sun, 9 Feb 2003, Mark Liu wrote:

 I am not sure about linux, but why don't you just try
 http://localhost:8080 or http://localhost and see?
 
 --- Jianping Zhu [EMAIL PROTECTED] wrote:
  
  Thanks,
  can you give me more detailed instruction?
  
  
  
  
  On Sun, 9 Feb 2003, Tim Funk wrote:
  
   Use a command line program like wget, cURL,
  JMeter, ... to get a page back.
   
   You can also look for a java process running.
   
   -Tim
   
   Jianping Zhu wrote:
os: redhat 7.3
how can i make sure that tomcat is running in my
  server?



   
   
   
  
 
 -
   To unsubscribe, e-mail:
  [EMAIL PROTECTED]
   For additional commands, e-mail:
  [EMAIL PROTECTED]
   
  
  
  
  Jianping Zhu
  Department of Computer Science
  Univerity of Georgia 
  Athens, GA 30602
  Tel 706 5423900
  
  
  
 
 -
  To unsubscribe, e-mail:
  [EMAIL PROTECTED]
  For additional commands, e-mail:
  [EMAIL PROTECTED]
  
 
 
 __
 Do you Yahoo!?
 Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
 http://mailplus.yahoo.com
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Oscar Carrillo
I played around with this a little bit more and this outputs a complete
list of all tomcat processes on a single line. It also avoids listing the
ps command as a found process.

ps ax --width=1000 | grep [o]rg.apache.catalina.startup.Bootstrap start 
| awk '{print $1  }'

Oscar


On Sat, 8 Feb 2003, Oscar Carrillo wrote:

 This is conceptually very easy, but a little tricky because the process 
 identification typically gets cut off for processes that are lengthy. 
 Which is what happens with all the classpath addition, etc.
 
 Try this:
 
 ps auxw --width=1000 | grep org.apache.catalina.startup.Bootstrap start
 
 I tried that briefly and that seems to do it. You could put a line like 
 that in your /etc/rc.d/init.d/tomcatd script and add this line for status.
 
 Then you can do this to get the info:
 service tomcatd status
 
 Oscar
 
 On Sun, 9 Feb 2003, Mark Liu wrote:
 
  I am not sure about linux, but why don't you just try
  http://localhost:8080 or http://localhost and see?
  
  --- Jianping Zhu [EMAIL PROTECTED] wrote:
   
   Thanks,
   can you give me more detailed instruction?
   
   
   
   
   On Sun, 9 Feb 2003, Tim Funk wrote:
   
Use a command line program like wget, cURL,
   JMeter, ... to get a page back.

You can also look for a java process running.

-Tim

Jianping Zhu wrote:
 os: redhat 7.3
 how can i make sure that tomcat is running in my
   server?
 
 
 



   
  
  -
To unsubscribe, e-mail:
   [EMAIL PROTECTED]
For additional commands, e-mail:
   [EMAIL PROTECTED]

   
   
   
   Jianping Zhu
   Department of Computer Science
   Univerity of Georgia 
   Athens, GA 30602
   Tel 706 5423900
   
   
   
  
  -
   To unsubscribe, e-mail:
   [EMAIL PROTECTED]
   For additional commands, e-mail:
   [EMAIL PROTECTED]
   
  
  
  __
  Do you Yahoo!?
  Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
  http://mailplus.yahoo.com
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: how can i make sure tomcat is running?

2003-02-09 Thread Oscar Carrillo
I made a slight mistake. It's printf instead of print for getting it one 
line.

ps ax --width=1000 | grep [o]rg.apache.catalina.startup.Bootstrap start | awk 
'{printf $1  }'

Oscar

On Sun, 9 Feb 2003, Oscar Carrillo wrote:

 I played around with this a little bit more and this outputs a complete
 list of all tomcat processes on a single line. It also avoids listing the
 ps command as a found process.
 
 ps ax --width=1000 | grep [o]rg.apache.catalina.startup.Bootstrap start 
 | awk '{print $1  }'
 
 Oscar
 
 
 On Sat, 8 Feb 2003, Oscar Carrillo wrote:
 
  This is conceptually very easy, but a little tricky because the process 
  identification typically gets cut off for processes that are lengthy. 
  Which is what happens with all the classpath addition, etc.
  
  Try this:
  
  ps auxw --width=1000 | grep org.apache.catalina.startup.Bootstrap start
  
  I tried that briefly and that seems to do it. You could put a line like 
  that in your /etc/rc.d/init.d/tomcatd script and add this line for status.
  
  Then you can do this to get the info:
  service tomcatd status
  
  Oscar
  
  On Sun, 9 Feb 2003, Mark Liu wrote:
  
   I am not sure about linux, but why don't you just try
   http://localhost:8080 or http://localhost and see?
   
   --- Jianping Zhu [EMAIL PROTECTED] wrote:

Thanks,
can you give me more detailed instruction?




On Sun, 9 Feb 2003, Tim Funk wrote:

 Use a command line program like wget, cURL,
JMeter, ... to get a page back.
 
 You can also look for a java process running.
 
 -Tim
 
 Jianping Zhu wrote:
  os: redhat 7.3
  how can i make sure that tomcat is running in my
server?
  
  
  
 
 
 

   
   -
 To unsubscribe, e-mail:
[EMAIL PROTECTED]
 For additional commands, e-mail:
[EMAIL PROTECTED]
 



Jianping Zhu
Department of Computer Science
Univerity of Georgia 
Athens, GA 30602
Tel 706 5423900



   
   -
To unsubscribe, e-mail:
[EMAIL PROTECTED]
For additional commands, e-mail:
[EMAIL PROTECTED]

   
   
   __
   Do you Yahoo!?
   Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
   http://mailplus.yahoo.com
   
   -
   To unsubscribe, e-mail: [EMAIL PROTECTED]
   For additional commands, e-mail: [EMAIL PROTECTED]
   
  
  
  -
  To unsubscribe, e-mail: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]
  
 
 
 -
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




How to determin what version of Tomcat is running?

2003-02-03 Thread gary_a_woodbridge
How do you determine what version of Tomcat is running on your server?

Thanks,

Gary



This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: How to determin what version of Tomcat is running?

2003-02-03 Thread Filip Hanik
look in mail archives

Filip

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Monday, February 03, 2003 9:28 AM
To: [EMAIL PROTECTED]
Subject: How to determin what version of Tomcat is running?


How do you determine what version of Tomcat is running on your server?

Thanks,

Gary



This transmission may contain information that is privileged, confidential and/or 
exempt from disclosure under applicable law. If you are not the intended recipient, 
you are hereby notified that any disclosure, copying, distribution, or use of the 
information contained herein (including any reliance thereon) is STRICTLY PROHIBITED. 
If you received this transmission in error, please immediately contact the sender and 
destroy the material in its entirety, whether in electronic or hard copy format. Thank 
you.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Tomcat NOT Running (org/xml/sax/HandlerBase)

2002-12-18 Thread Manoj Kithany
Hi:

I Integrated my Tomcat with IDEA IDE and when I run my Tomcat I get 
following error- wonder why?

Exception during startup processing
java.lang.reflect.InvocationTargetException: java.lang.NoClassDefFoundError: 
org/xml/sax/HandlerBase

  at java.lang.ClassLoader.defineClass0(Native Method)
  at java.lang.ClassLoader.defineClass(ClassLoader.java:486)
  at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
  at java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
  at java.net.URLClassLoader.access$100(URLClassLoader.java:56)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:195)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:297)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:253)
  at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
  at 
org.apache.catalina.startup.Catalina.createStartMapper(Catalina.java:280)
  at org.apache.catalina.startup.Catalina.start(Catalina.java:722)
  at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
  at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
  at java.lang.reflect.Method.invoke(Native Method)
  at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Process terminated with exit code 2


I have set Tomcat parameters in IDEA IDE with following Parameters:

..
C:\jdk1.3\bin\javaw.exe 
-Djava.endorsed.dirs=C:\jboss-3.0.0_tomcat-4.0.3\catalina\bin;C:\jboss-3.0.0_tomcat-4.0.3\catalina\common\lib 
-Dcatalina.base=C:\Documents and 
Settings\mkithany\.IntelliJIdea\system\tomcat_kithany_c6c7ed18
-Dcatalina.home=C:\jboss-3.0.0_tomcat-4.0.3\catalina

-Djava.io.tmpdir=C:\jboss-3.0.0_tomcat-4.0.3\catalina\temp

-classpath 
C:\jdk1.3\lib\tools.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\bin\bootstrap.jar;;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\catalina.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\jakarta-regexp-1.2.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-common.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-default.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-invoker.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-manager.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-snoop.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-webdav.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\tomcat-ajp.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\tomcat-util.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\warp.jar;C:\jboss-3.0.0_tomcat-4.0.3\server\default\deploy\kithany.war\WEB-INF\classes;C:\jboss-3.0.0_t
omcat-4.0.3\catalina\bin\bootstrap.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\common\lib\naming-common.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\common\lib\naming-resources.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\common\lib\servlet.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\catalina.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\jakarta-regexp-1.2.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-common.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-default.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-invoker.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-manager.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-snoop.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\servlets-webdav.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\tomcat-ajp.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\ser
ver\lib\tomcat-util.jar;C:\jboss-3.0.0_tomcat-4.0.3\catalina\server\lib\warp.jar;C:\jdk1.3;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\jre\lib\jaws.jar;C:\jdk1.3\jre\lib\rt.jar;C:\jdk1.3\jre\lib\sunrsasign.jar 
org.apache.catalina.startup.Bootstrap start
..

Any related information on above is appreciated.

THANKS!


_
Add photos to your e-mail with MSN 8. Get 2 months FREE*. 
http://join.msn.com/?page=features/featuredemail


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: can't get w2k tomcat service running again

2002-12-17 Thread Gary Gwin
Becky,

We use the Java Wrapper Service at:

   http://wrapper.sourceforge.net/doc/english/index.html

In addition to working cross platform (Windows NT and Unix), you can 
test the service from the command line before and after  installing it. 
They supply sample configurations for Tomcat.

Gary

http://www.cafesoft.com

*
*   *
*   The Cafesoft Access Management System, Cams, is security*
*   software that provides single sign-on authentication and*
*   centralized access control for Apache, Tomcat, and custom   *
*   resources.  *
*   *
*



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]



Re: can't get w2k tomcat service running again

2002-12-17 Thread Becky Phaneuf
Tomcat runs fine when started via startup/shutdown batch files, and
there are no errors in the logs either way.

-B

 [EMAIL PROTECTED] 12/16/02 03:43PM 
That's usually a configuration error.

See what the Tomcat logs tell you.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com 

--
To unsubscribe, e-mail:  
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




can't get w2k tomcat service running again

2002-12-16 Thread Becky Phaneuf
I installed 4.1.16 on a new server (with NT/2K start-as-service option)
and did some tweaking (enabled SSL, uncommented servlet invoker,
etc...).  

While I was tweaking I stopped the service because was easier to
start/stop via the batch files for quick debugging).  

When I finished debugging, and tomcat was running normally, I shut down
the server and attempted to start it again as a service, but it would
not start. The error message was something like cannot start - service
does not return an error.

Anyone seen this before? I'm running 2000 Server. Any ideas?

Thanks,
-B

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: can't get w2k tomcat service running again

2002-12-16 Thread Mark Eggers
That's usually a configuration error.

See what the Tomcat logs tell you.

/mde/

just my two cents . . . .

__
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: JDBC connectivity problems on Tomcat 4.0.6 running on OpenBSD 3.2

2002-11-21 Thread Nicholas Orr
There are three jar that make up the SQL Server 2000 JDBC drivers
 - msbase.jar
 - mssqlserver.jar
 - msutil.jar

Make sure you have all three! Looks to me like you only have one,
mssqlserver.jar.

Nicholas Orr

-Original Message-
From: Adam Getchell [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, 21 November 2002 7:57 AM
To: 'Tomcat Users List'
Subject: JDBC connectivity problems on Tomcat 4.0.6 running on OpenBSD 3.2


Hello all,

I've got a web application on Tomcat which works fine using Sun ONE Studio 4
CE's Tomcat server, but fails on Tomcat 4.0.6 on my OpenBSD server. The
example Tomcat servlets work, but JDBC doesn't (and this application talks
to a back-end MS SQL Server 2000 for most things, including authentication).

It uses the mssqlserver.jar for JDBC, which looks like the standard MS SQL
JDBC driver (unzipping the jar gives a bunch of class files).

How do I proceed to fix this? I unfortunately have a deadline of Friday.

I can provide the class files if needed, but they show thrown exceptions
when JDBC is invoked, and they do work on Forte's Tomcat server.

Other information:

javadevel@/var/tomcat/logs  tail catalina.out
Zero categories error:
SQL Exception caught: [Microsoft][SQLServer 2000 Driver for JDBC]Error
setting up static cursor cache. [Microsoft][SQLServer 2000 Driver for
JDBC]null value of id is null SQL Exception caught: [Microsoft][SQLServer
2000 Driver for JDBC]Error setting up static cursor cache.
[Microsoft][SQLServer 2000 Driver for JDBC]null Zero categories error: SQL
Exception caught: [Microsoft][SQLServer 2000 Driver for JDBC]Error setting
up static cursor cache. [Microsoft][SQLServer 2000 Driver for JDBC]null
value of id is null

javadevel@/var/tomcat/logs  head -30 localhost_log.2002-11-20.txt
2002-11-20 01:08:59 StandardWrapperValve[EOBList]: Servlet.service() for
servlet EOBList threw exception
java.lang.NullPointerException: 
at EOBList.processRequest(EOBList.java:106)
at EOBList.doGet(EOBList.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

Thoughts? Pointers on troubleshooting JDBC?

Thanks!

*** 
* Adam Getchell [EMAIL PROTECTED]
* System Architect/Programmer   (530) 752-1584
* Human Resources Information Systems   http://www.hr.ucdavis.edu/
*** 
Invincibility is in oneself, vulnerability in the opponent. -- Sun Tzu



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


**
The information contained in this e-mail is confidential and is
intended only for the use

JDBC connectivity problems on Tomcat 4.0.6 running on OpenBSD 3.2

2002-11-20 Thread Adam Getchell
Hello all,

I've got a web application on Tomcat which works fine using Sun ONE Studio 4
CE's Tomcat server, but fails on Tomcat 4.0.6 on my OpenBSD server. The
example Tomcat servlets work, but JDBC doesn't (and this application talks
to a back-end MS SQL Server 2000 for most things, including authentication).

It uses the mssqlserver.jar for JDBC, which looks like the standard MS SQL
JDBC driver (unzipping the jar gives a bunch of class files).

How do I proceed to fix this? I unfortunately have a deadline of Friday.

I can provide the class files if needed, but they show thrown exceptions
when JDBC is invoked, and they do work on Forte's Tomcat server.

Other information:

javadevel@/var/tomcat/logs  tail catalina.out
Zero categories error:
SQL Exception caught: [Microsoft][SQLServer 2000 Driver for JDBC]Error
setting up static cursor cache.
[Microsoft][SQLServer 2000 Driver for JDBC]null
value of id is null
SQL Exception caught: [Microsoft][SQLServer 2000 Driver for JDBC]Error
setting up static cursor cache.
[Microsoft][SQLServer 2000 Driver for JDBC]null
Zero categories error:
SQL Exception caught: [Microsoft][SQLServer 2000 Driver for JDBC]Error
setting up static cursor cache.
[Microsoft][SQLServer 2000 Driver for JDBC]null
value of id is null

javadevel@/var/tomcat/logs  head -30 localhost_log.2002-11-20.txt
2002-11-20 01:08:59 StandardWrapperValve[EOBList]: Servlet.service() for
servlet EOBList threw exception
java.lang.NullPointerException: 
at EOBList.processRequest(EOBList.java:106)
at EOBList.doGet(EOBList.java:199)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application
FilterChain.java:247)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh
ain.java:193)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja
va:243)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja
va:190)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.
java:170)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170
)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:468)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
64)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
at
org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java
:174)
at
org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5
66)
at
org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

Thoughts? Pointers on troubleshooting JDBC?

Thanks!

*** 
* Adam Getchell [EMAIL PROTECTED]
* System Architect/Programmer   (530) 752-1584
* Human Resources Information Systems   http://www.hr.ucdavis.edu/
*** 
Invincibility is in oneself, vulnerability in the opponent. -- Sun Tzu



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to see JSP error messages while tomcat is running

2002-11-15 Thread Steven Peterson
I recently upgraded from tomcat 3 to tomcat 4.1.12 and am having trouble
debugging new jsp pages as I add them.  Whereas tomcat 3 would send the
error output of a jsp to the html page (making it easy to identify the
problem, fix it, and test it again), tomcat 4 sends the output to the
context's log file.  This would not be so bad, but the log file is
locked by my operating system (Windows 98 se) until tomcat is shutdown.
The upshot is that for every error, I have to shut down tomcat to see
what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?

Thanks,

- Steve Peterson

--
Steven Peterson, President
Frontier Productions, Inc.
310 Wesley Drive
Chapel Hill, NC 27516
http://www.frontierproductions.net
Tel: 919-942-1386
Fax: 919-933-2677



--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org




Re: How to see JSP error messages while tomcat is running

2002-11-15 Thread Paul Legato
Steven Peterson wrote:

what the error was.  Is there any way to see the error output of a jsp
page without shutting down tomcat either by a) having the output sent to
the html stream; or b) having the log file accessible while tomcat is
running; or c) . . . ?



If you do your development on a Linux or Unix box, you can do b) with 
tail -f logfile while Tomcat's running and writing to the file.

As far as I know, there's no way around the questionable file locking 
semantics implemented in Windows

-Paul




--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Re: How to see JSP error messages while tomcat is running

2002-11-15 Thread John O'Hara


If you do your development on a Linux or Unix box, you can do b) with 
tail -f logfile while Tomcat's running and writing to the file.

As far as I know, there's no way around the questionable file locking 
semantics implemented in Windows

-Paul


If you install Cygwin on a Win32 machine, you can get tail -f to work under 
Windows as well.  In fact, it is part of the default installation I 
believe.  I have done this and it works beautifully.

Regards,
John


--
To unsubscribe, e-mail:   mailto:tomcat-user-unsubscribe;jakarta.apache.org
For additional commands, e-mail: mailto:tomcat-user-help;jakarta.apache.org



Enabling SSL for Tomcat 4.0 running on Linux RH 7.2

2002-10-16 Thread Gabe Sanchez

Hi all,

Does anyone know how to enable SSL on Tomcat 4.0 running on Linux RedHat
7.2. Tomcat is not on Versign's list as a supported Web Server, does anyone
have the instructions. I already created a CSR and sent it to Verisign, they
replied with an email that gave me an order number and a link where they
have the instructions, but Tomcat is not on that list. Any help would be
greatly appreciated. Thanks in advance.

Gabe,



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Enabling SSL for Tomcat 4.0 running on Linux RH 7.2

2002-10-16 Thread Turner, John


Tomcat 4.0 SSL HOWTO:

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

John


 -Original Message-
 From: Gabe Sanchez [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, October 16, 2002 4:07 PM
 To: '[EMAIL PROTECTED]'
 Subject: Enabling SSL for Tomcat 4.0 running on Linux RH 7.2
 
 
 Hi all,
 
 Does anyone know how to enable SSL on Tomcat 4.0 running on 
 Linux RedHat
 7.2. Tomcat is not on Versign's list as a supported Web 
 Server, does anyone
 have the instructions. I already created a CSR and sent it to 
 Verisign, they
 replied with an email that gave me an order number and a link 
 where they
 have the instructions, but Tomcat is not on that list. Any 
 help would be
 greatly appreciated. Thanks in advance.
 
 Gabe,
 
 
 
 --
 To unsubscribe, e-mail:   
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail: 
 mailto:[EMAIL PROTECTED]
 

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Enabling SSL for Tomcat 4.0 running on Linux RH 7.2

2002-10-16 Thread Denny Chambers

http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

Gabe Sanchez wrote:

Hi all,

Does anyone know how to enable SSL on Tomcat 4.0 running on Linux RedHat
7.2. Tomcat is not on Versign's list as a supported Web Server, does anyone
have the instructions. I already created a CSR and sent it to Verisign, they
replied with an email that gave me an order number and a link where they
have the instructions, but Tomcat is not on that list. Any help would be
greatly appreciated. Thanks in advance.

Gabe,



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]

  



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Enabling SSL for Tomcat 4.0 running on Linux RH 7.2

2002-10-16 Thread Gabe Sanchez

Many Thanks,

Gabe

-Original Message-
From: Denny Chambers [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, October 16, 2002 4:08 PM
To: Tomcat Users List
Subject: Re: Enabling SSL for Tomcat 4.0 running on Linux RH 7.2


http://jakarta.apache.org/tomcat/tomcat-4.0-doc/ssl-howto.html

Gabe Sanchez wrote:

Hi all,

Does anyone know how to enable SSL on Tomcat 4.0 running on Linux RedHat
7.2. Tomcat is not on Versign's list as a supported Web Server, does anyone
have the instructions. I already created a CSR and sent it to Verisign,
they
replied with an email that gave me an order number and a link where they
have the instructions, but Tomcat is not on that list. Any help would be
greatly appreciated. Thanks in advance.

Gabe,



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

  



--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Windows Explorer Hangs when Tomcat is running

2002-07-11 Thread David Kavanagh

I haven't seen this. I start tomcat (4.0.4) manually, but I can run IE 
and WE just fine.

David

[EMAIL PROTECTED] wrote:

Hi Folks,

I am running Tomcat 4.0.1 version on my Windows NT box. I am experiencing a
bizzare problem when i run Tomcat and try to open Explorer. I have tomcat
in my startup, and it starts up properly. When Tomcat is running, if i try
to open Explorer, sometimes the explorer window doesn't come up. (The same
goes with IE too). If i kill tomcat, explorer props up immediately.

I was wondering if anyone else has faced the problem like this before. If
so, could someone throw some light on this?

TIA
Sridhar Srinivasan,
EMAIL: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: Windows Explorer Hangs when Tomcat is running

2002-07-11 Thread Andrew Conrad

Hi Sridhar,


Whats your mem usage like?  What sp of NT and what JDK?  These all can
play a role.  You might try using a different JDK and see the effects.  


- Andrew

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Thursday, July 11, 2002 1:52 AM
To: [EMAIL PROTECTED]
Subject: Windows Explorer Hangs when Tomcat is running


Hi Folks,

I am running Tomcat 4.0.1 version on my Windows NT box. I am
experiencing a bizzare problem when i run Tomcat and try to open
Explorer. I have tomcat in my startup, and it starts up properly. When
Tomcat is running, if i try to open Explorer, sometimes the explorer
window doesn't come up. (The same goes with IE too). If i kill tomcat,
explorer props up immediately.

I was wondering if anyone else has faced the problem like this before.
If so, could someone throw some light on this?

TIA
Sridhar Srinivasan,
EMAIL: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]


--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Dynamically add jar file to classpath while tomcat is running

2002-07-11 Thread KAKARONTZAS GEORGE

Hi all,
I'm building a system that must be able to execute any java app that
will be uploaded.
In fact the server (a web app running under tomcat) just dispatches
these applications to other pcs.
The problem is that while the server serializes the application class
files for dispatching I get a HTTP 500 error on the pcs that want to
execute the code.
I'm not getting this if I copy the app files (contained in a jar) in the
WEB-INF/lib before starting tomcat.
So I concluded that the reason for the error is that this jar file is
not in the classpath of the web application class loader.
First I want to ask if you agree with that.
Second, if you do is there a way to add a jar file in the web
application class loader classpath, while the application is running.
Note that I modified the code so that the jar file is copied in
WEB-INF/lib after uploading, but that didn't work.

Thanks
-George



--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Dynamically add jar file to classpath while tomcat is running

2002-07-11 Thread Will Hartung

From: KAKARONTZAS GEORGE [EMAIL PROTECTED]
Sent: Wednesday, July 10, 2002 11:04 PM


 Hi all,
 I'm building a system that must be able to execute any java app that
 will be uploaded.
 In fact the server (a web app running under tomcat) just dispatches
 these applications to other pcs.
 The problem is that while the server serializes the application class
 files for dispatching I get a HTTP 500 error on the pcs that want to
 execute the code.
 I'm not getting this if I copy the app files (contained in a jar) in the
 WEB-INF/lib before starting tomcat.
 So I concluded that the reason for the error is that this jar file is
 not in the classpath of the web application class loader.
 First I want to ask if you agree with that.
 Second, if you do is there a way to add a jar file in the web
 application class loader classpath, while the application is running.
 Note that I modified the code so that the jar file is copied in
 WEB-INF/lib after uploading, but that didn't work.

I can't say about the 500 error, as that can be most anything.

But, let's discuss the Jar file issue.

The problem with the Jar file is that it must physically appear on the
CLASSPATH of the ClassLoader for it to be considered, and I don't know of a
way to dynamically update the CLASSPATH that would actually affect the
ClassLoader. In theory you might be able to simply change the
java.class.path System property, but I'd be very surprised if that worked. I
would think that the ClassLoader would only read that when it's instantiated
and pretty much ignore it afterward.

One solution, though, is to reserve an actual directory that is on the
CLASSPATH and then rather than simply copying the Jar files, actually
explode them into that directory. Java's default ClassLoaders seem to pick
up new classes within directories that already exist on the CLASSPATH.

So, if a Jar was exploded into a directory already on the CLASSPATH (i.e.
being monitored by the Java ClassLoaders), then, in theory, those classes
would be dynamically loadable into a running JVM.

Now, of course, you will have a problem RE loading those applications and
classes without a restart, but that's a different topic.

Finally, this is all designed to work around the existing ClassLoaders. The
real solution is to write your own ClassLoader, and solve it that way.

In the 3.2 Tomcat, there's a file
org.apache.tomcat.loader.AdaptiveClassLoader (I don't have the 4.x source
handy). That can serve as an inspiration.

Best Regards,

Will Hartung
([EMAIL PROTECTED])




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




Re: Dynamically add jar file to classpath while tomcat is running

2002-07-11 Thread Craig R. McClanahan

See intermixed.

On Thu, 11 Jul 2002, Will Hartung wrote:

 Date: Thu, 11 Jul 2002 13:52:50 -0700
 From: Will Hartung [EMAIL PROTECTED]
 Reply-To: Tomcat Users List [EMAIL PROTECTED]
 To: Tomcat Users List [EMAIL PROTECTED]
 Subject: Re: Dynamically add jar file to classpath while tomcat is running

 From: KAKARONTZAS GEORGE [EMAIL PROTECTED]
 Sent: Wednesday, July 10, 2002 11:04 PM


  Hi all,
  I'm building a system that must be able to execute any java app that
  will be uploaded.
  In fact the server (a web app running under tomcat) just dispatches
  these applications to other pcs.
  The problem is that while the server serializes the application class
  files for dispatching I get a HTTP 500 error on the pcs that want to
  execute the code.

Without knowing details of the stack trace that you get along with this,
it is impossible to understand what is going on.

  I'm not getting this if I copy the app files (contained in a jar) in the
  WEB-INF/lib before starting tomcat.

Why are you bothering to put this stuff inside the webapp?  Wouldn't it be
better to run these uploaded applications under a separate JVM, out of a
separate directory, where you can configure its own class path totally
separate than the one your webapp is running under?

  So I concluded that the reason for the error is that this jar file is
  not in the classpath of the web application class loader.
  First I want to ask if you agree with that.
  Second, if you do is there a way to add a jar file in the web
  application class loader classpath, while the application is running.
  Note that I modified the code so that the jar file is copied in
  WEB-INF/lib after uploading, but that didn't work.

 I can't say about the 500 error, as that can be most anything.

 But, let's discuss the Jar file issue.

 The problem with the Jar file is that it must physically appear on the
 CLASSPATH of the ClassLoader for it to be considered, and I don't know of a
 way to dynamically update the CLASSPATH that would actually affect the
 ClassLoader. In theory you might be able to simply change the
 java.class.path System property, but I'd be very surprised if that worked. I
 would think that the ClassLoader would only read that when it's instantiated
 and pretty much ignore it afterward.


Technically, there is one and only one CLASSPATH environment variable, and
one and only one corresponding java.class.path system property, for the
entire container.  That is obviously not useful in setting up
individualized environments for each web application, so Tomcat basically
ignores it.

Instead, Tomcat builds a hierarchy of class loaders, and offers you places
to put JAR files that you want to share across webapps.  Online docs are
at:

  http://jakarta.apache.org/tomcat/tomcat-4.0-doc/class-loader-howto.html

or

  http://jakarta.apache.org/tomcat/tomcat-4.1-doc/class-loader-howto.html

depending on your version.  For example, any JAR file that you put in
$CATALINA_HOME/common/lib will be visible to all web applications.

 One solution, though, is to reserve an actual directory that is on the
 CLASSPATH and then rather than simply copying the Jar files, actually
 explode them into that directory. Java's default ClassLoaders seem to pick
 up new classes within directories that already exist on the CLASSPATH.

 So, if a Jar was exploded into a directory already on the CLASSPATH (i.e.
 being monitored by the Java ClassLoaders), then, in theory, those classes
 would be dynamically loadable into a running JVM.


As described above, you cannot use CLASSPATH in a container because it is
global to the JVM.  Of course, that is one of the reasons I suggested
above that perhaps the uploaded apps should be run in their own JVMs.

 Now, of course, you will have a problem RE loading those applications and
 classes without a restart, but that's a different topic.


That's why it is generally recommended to put JAR files inside your webapp
-- then they can be reloaded with just that webapp instead of requiring a
complete restart of the container.

 Finally, this is all designed to work around the existing ClassLoaders. The
 real solution is to write your own ClassLoader, and solve it that way.

 In the 3.2 Tomcat, there's a file
 org.apache.tomcat.loader.AdaptiveClassLoader (I don't have the 4.x source
 handy). That can serve as an inspiration.


There is such a class loader, of course
(org.apache.catalina.loader.WebappClassLoader), but let me give you a few
words of caution based on my own experience implementing Tomcat 4 -- class
loaders are black magic.  Anyone who thinks this is going to be a minimal
effort approach is going to be very rudely surprised by the complexity.

And, even if you go to all of that work, you are most likely going to find
something like this happenening to you:

* You run your container under a security manager, and trying
  to create the new classloader throws a security exception

* You do something that totally screws up class loading

Windows Explorer Hangs when Tomcat is running

2002-07-10 Thread ssrinivasan

Hi Folks,

I am running Tomcat 4.0.1 version on my Windows NT box. I am experiencing a
bizzare problem when i run Tomcat and try to open Explorer. I have tomcat
in my startup, and it starts up properly. When Tomcat is running, if i try
to open Explorer, sometimes the explorer window doesn't come up. (The same
goes with IE too). If i kill tomcat, explorer props up immediately.

I was wondering if anyone else has faced the problem like this before. If
so, could someone throw some light on this?

TIA
Sridhar Srinivasan,
EMAIL: [EMAIL PROTECTED]




--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




How to detect whether Tomcat is running?

2002-07-08 Thread Jack Li

Hi all,
 
I need to detect the Tomcat status on a production server. I was trying to
run a detecting program on the development server. If Tomcat is down on the
production sever, I would get an email. I wrote the following codes in my
detecting program. I tried to connect the main.jsp page on the production
server. But I always got the content length -1. Any good ideals to solve
this program?
 
URL url=new URL(  http://production_server/prog/
http://production_server/prog/main.jsp);
URLConnection con = url.openConnection();
con.connect();
int iLength = con.getContentLength();

 
Thanks,
Jack Li



AW: How to detect whether Tomcat is running?

2002-07-08 Thread Ralph Einfeldt

If you don't change it, the jsp engine always sends content 
length = -1, as it don't knows how long the output will 
get at the time it creates the header. So it is better to 
read the stream and parse the result for the status code.

Note taht the content length may be  -1 if an error happens 
because tomcat or the web server might reply with an error 
page.

 -Ursprüngliche Nachricht-
 Von: Jack Li [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 8. Juli 2002 15:01
 An: '[EMAIL PROTECTED]'
 Betreff: How to detect whether Tomcat is running?
 
 
 I need to detect the Tomcat status on a production server. I 
 was trying to run a detecting program on the development 
 server. If Tomcat is down on the production sever, I would 
 get an email.

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




RE: How to detect whether Tomcat is running?

2002-07-08 Thread Turner, John


Right...a better method than checking the content length would be to create
a JSP page that simply outputs a status string such as Application OK or
whatever.  Then look for that string in the content that comes back.  Just
checking for content to come back doesn't tell you that everything is OK, as
Ralph pointed out.  An error page will have a content lenght greater then -1
or greater than zero.

John Turner
[EMAIL PROTECTED]


-Original Message-
From: Ralph Einfeldt [mailto:[EMAIL PROTECTED]]
Sent: Monday, July 08, 2002 9:25 AM
To: Tomcat Users List
Subject: AW: How to detect whether Tomcat is running?


If you don't change it, the jsp engine always sends content 
length = -1, as it don't knows how long the output will 
get at the time it creates the header. So it is better to 
read the stream and parse the result for the status code.

Note taht the content length may be  -1 if an error happens 
because tomcat or the web server might reply with an error 
page.

 -Ursprüngliche Nachricht-
 Von: Jack Li [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 8. Juli 2002 15:01
 An: '[EMAIL PROTECTED]'
 Betreff: How to detect whether Tomcat is running?
 
 
 I need to detect the Tomcat status on a production server. I 
 was trying to run a detecting program on the development 
 server. If Tomcat is down on the production sever, I would 
 get an email.

--
To unsubscribe, e-mail:
mailto:[EMAIL PROTECTED]
For additional commands, e-mail:
mailto:[EMAIL PROTECTED]

--
To unsubscribe, e-mail:   mailto:[EMAIL PROTECTED]
For additional commands, e-mail: mailto:[EMAIL PROTECTED]




  1   2   >