running tomcat on windows as webserver and using it as webcontainer for IIS
Hi , Anyone can tell me whether it is better to run tomcat as stanalone webserver on windows (win 2003 to be specefic) or run it as web container along with IIS I want to know which set up would be preferrable in terms of performance and scalability of application. regards Srikanth.P - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem running Tomcat on Windows 64-Bit Edition
Bill, thanks for the response. I could not find a binary for srvbatch so I started looking at compiling a 64bit version myself; however, I don't have any knowledge of makefiles and can't seem to get my attempted makefiles to run. Is it possible I could get the makefiles you used (or the 64bit binary for that matter)? Also, a README for commons-daemon talks about needing Cygwin. Is this something I'll need to get? Thanks for the help. Jeff Spors Winona State University -Original Message- From: news [mailto:[EMAIL PROTECTED] On Behalf Of Bill Barker Sent: Thursday, July 21, 2005 9:00 PM To: tomcat-user@jakarta.apache.org Subject: Re: Problem running Tomcat on Windows 64-Bit Edition There is a srvbatch in commons-daemon (I'm too lazy to look if there is a binary released for it :) that will allow you run the batch files as a service. You can also grab the source from commons-daemon and compile a 64bit version yourself (only the MSDK is needed, but you need to create your own makefiles). I've done both, and they both work well (but only the second one lets you have the nice configuration GUI :). Spors, Jeffrey R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to run Tomcat 5.5.9 as a service on Windows Server 2003 64-Bit Edition. The following scenarios work fine: - 32-bit JDK and Tomcat 5.5 running as a service and using startup.bat - 64-bit JDK and Tomcat 5.5 using startup.bat However, I can't run 64-bit JDK and Tomcat 5.5 as a service because it runs tomcat5.exe, which is 32-bit app (32-bit apps cannot reference 64-bit apps and vice versa on Windows 64). Is there a 64-bit binary for tomcat5.exe, is it possible for me to build tomcat5.exe as a 64-bit app from source, or is there a way of getting Tomcat to run as a service using only the .bat files? Thanks for any help. Jeff Spors Winona State University - 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 running Tomcat on Windows 64-Bit Edition
I am trying to run Tomcat 5.5.9 as a service on Windows Server 2003 64-Bit Edition. The following scenarios work fine: - 32-bit JDK and Tomcat 5.5 running as a service and using startup.bat - 64-bit JDK and Tomcat 5.5 using startup.bat However, I can't run 64-bit JDK and Tomcat 5.5 as a service because it runs tomcat5.exe, which is 32-bit app (32-bit apps cannot reference 64-bit apps and vice versa on Windows 64). Is there a 64-bit binary for tomcat5.exe, is it possible for me to build tomcat5.exe as a 64-bit app from source, or is there a way of getting Tomcat to run as a service using only the .bat files? Thanks for any help. Jeff Spors Winona State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem running Tomcat on Windows 64-Bit Edition
There is a srvbatch in commons-daemon (I'm too lazy to look if there is a binary released for it :) that will allow you run the batch files as a service. You can also grab the source from commons-daemon and compile a 64bit version yourself (only the MSDK is needed, but you need to create your own makefiles). I've done both, and they both work well (but only the second one lets you have the nice configuration GUI :). Spors, Jeffrey R [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] I am trying to run Tomcat 5.5.9 as a service on Windows Server 2003 64-Bit Edition. The following scenarios work fine: - 32-bit JDK and Tomcat 5.5 running as a service and using startup.bat - 64-bit JDK and Tomcat 5.5 using startup.bat However, I can't run 64-bit JDK and Tomcat 5.5 as a service because it runs tomcat5.exe, which is 32-bit app (32-bit apps cannot reference 64-bit apps and vice versa on Windows 64). Is there a 64-bit binary for tomcat5.exe, is it possible for me to build tomcat5.exe as a 64-bit app from source, or is there a way of getting Tomcat to run as a service using only the .bat files? Thanks for any help. Jeff Spors Winona State University - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
How to setup VM opt when running Tomcat as windows service?
Hi All, I got a problem on setup Tomcat 5.0.19 on my windows 2000 enterprise server. I have installed java 1.4.x on it. I want change the java vm option to instead the default setting. for example with opt. -server -Xms64m -Xmx128m.. i already try few methods as following : - stop service, run Configure Tomcat gui prog., and add above extra opt. to Java VM's Java Option and then apply/ok. Then start the service. - stop service. run regedit modify the tomcat's entries... HKEY_LOCAL_MACHINE - SYSTEM - Services - Tomcat5 - ImagePath .. ..tomcat.exe.. modify the value... then start the service. Above also cann't change the default 64M max. mem when i check it from /mananger/status page... - stop service. modify tomcat/bin/service.bat ... and then service.bat remove then install, start the service., it cann't start the service.. Any one could help me. THX. Gordon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to setup VM opt when running Tomcat as windows service?
Finally, i got the solution by google, answer also come from tomcat-user. Take a look here when you got same problem. http://mdsh.com/notes/tomcat5OnWindowsNT.jsp On Wed, 2004-03-17 at 16:41, Gordon Luk wrote: Hi All, I got a problem on setup Tomcat 5.0.19 on my windows 2000 enterprise server. I have installed java 1.4.x on it. I want change the java vm option to instead the default setting. for example with opt. -server -Xms64m -Xmx128m.. i already try few methods as following : - stop service, run Configure Tomcat gui prog., and add above extra opt. to Java VM's Java Option and then apply/ok. Then start the service. - stop service. run regedit modify the tomcat's entries... HKEY_LOCAL_MACHINE - SYSTEM - Services - Tomcat5 - ImagePath .. ..tomcat.exe.. modify the value... then start the service. Above also cann't change the default 64M max. mem when i check it from /mananger/status page... - stop service. modify tomcat/bin/service.bat ... and then service.bat remove then install, start the service., it cann't start the service.. Any one could help me. THX. Gordon - 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]
AW: Running Tomcat as Windows Service
Hi, Thanks. I used the same method to install my service, but when I call my servlet, tomcat hangs down. I have to stop it and restart it. Do you know why? -Ursprüngliche Nachricht- Von: Pitre, Russell [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 9. Juli 2003 16:39 An: Tomcat Users List Betreff: RE: Running Tomcat as Windows Service I used this to create my nt service. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOM E%\lib\too ls.jar -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log Russ -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Running Tomcat as Windows Service Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis - 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]
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
RE: Running Tomcat as Windows Service
I used this to create my nt service. %CATALINA_HOME%\bin\tomcat.exe -install Tomcat %JAVA_HOME%\jre\bin\server\jvm.dll -Djava.class.path=%CATALINA_HOME%\bin\bootstrap.jar;%JAVA_HOME%\lib\too ls.jar -Dcatalina.home=%CATALINA_HOME% -start org.apache.catalina.startup.BootstrapService -params start -stop org.apache.catalina.startup.BootstrapService -params stop -out %CATALINA_HOME%\logs\stdout.log -err %CATALINA_HOME%\logs\stderr.log Russ -Original Message- From: Hamidene, Anis Ben [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 09, 2003 10:32 AM To: [EMAIL PROTECTED] Subject: Running Tomcat as Windows Service Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Running Tomcat as Windows Service
Get a thread dump of the tomcat process. Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I did install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , everything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis _ Protect your PC - get McAfee.com VirusScan Online http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Running Tomcat as Windows Service
Hi, I want to install Tomcat 4.1.2 as windows service. My servlets should connect to another server over SSl-Connection. I could install tomcat as a service, but when my client connects to the servlet, tomcat hangs down,and I have to restart the service manually. If I start Tomcat using the batch file , evrything works fine. Is it better to use JavaService? The problem happens especially when running the whole thing in a Citrix environment. Please help a.s.a.p. Yours anis
Running Tomcat on Windows...
When I try to start and run Tomcat, I receive a "FATAL:java.net.BindException" error. I am using Tomcat 3.2.1, JDK 1.2.2 and JRE 1.1.7 on Windows 2000 Professional. The actual steps and output are: TOMCAT_HOME\bin tomcat start This opens another command prompt window with the output of: 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /examples ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /test ) 2001-03-20 08:45:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-03-20 08:45:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then enter: TOMCAT_HOME\bin tomcat run I receive the following output: Including all jars in E:\tomcat\lib in your CLASSPATH. Using CLASSPATH: E:\tomcat\classes;E:\tomcat\lib\ant.jar;E:\tomcat\lib\jasper.jar; E:\tomcat\lib\jaxp.jar;E:\tomcat\lib\parser.jar;E:\tomcat\lib\servlet.jar; E:\tomcat\lib\webserver.jar;F:\Oracle\Ora81\orb\classes\yoj.jar; F:\Oracle\Ora81\orb\classes\share.zip;;C:\Program Files\JDK\jdk1.2.2\lib\tools.jar 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /example 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( ) 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.create(DefaultServerSocketF actory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:20 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Has anyoneever experienced this and if so, how do I get by this? Any and all help is much appreciated. Jason Sardano Northern Geomantics 146 Second Street Hallowell, Maine 04347 Ph:(207)623-9226 Fax:(207)623-9229 http://www.northgeo.com
RE: Running Tomcat on Windows...
Your problem is that you are starting Tomcat twice. The second time Tomcat starts something is already using the ports that it wants to use (namely the first instance of Tomcat). In short, you don't need to start it twice. Randy -Original Message- From: Jason Sardano [mailto:[EMAIL PROTECTED]] Sent: Tuesday, March 20, 2001 12:37 PM To: [EMAIL PROTECTED] Subject: Running Tomcat on Windows... When I try to start and run Tomcat, I receive a "FATAL:java.net.BindException" error. I am using Tomcat 3.2.1, JDK 1.2.2 and JRE 1.1.7 on Windows 2000 Professional. The actual steps and output are: TOMCAT_HOME\bin tomcat start This opens another command prompt window with the output of: 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /examples ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /test ) 2001-03-20 08:45:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-03-20 08:45:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then enter: TOMCAT_HOME\bin tomcat run I receive the following output: Including all jars in E:\tomcat\lib in your CLASSPATH. Using CLASSPATH: E:\tomcat\classes;E:\tomcat\lib\ant.jar;E:\tomcat\lib\jasper.jar; E:\tomcat\lib\jaxp.jar;E:\tomcat\lib\parser.jar;E:\tomcat\lib\ servlet.jar; E:\tomcat\lib\webserver.jar;F:\Oracle\Ora81\orb\classes\yoj.jar; F:\Oracle\Ora81\orb\classes\share.zip;;C:\Program Files\JDK\jdk1.2.2\lib\tools.jar 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /example 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( ) 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.create(Defaul tServerSocketF actory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTc pEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnec tor.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:20 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Has anyoneever experienced this and if so, how do I get by this? Any and all help is much appreciated. Jason Sardano Northern Geomantics 146 Second Street Hallowell, Maine 04347 Ph:(207)623-9226 Fax:(207)623-9229 http://www.northgeo.com
Re: Running Tomcat on Windows...
Hi Jason, you get the Exception because tomcat is already running and you try to start it once again and the ports are already in use. Peter Jason Sardano wrote: When I try to start and run Tomcat, I receive a "FATAL:java.net.BindException" error. I am using Tomcat 3.2.1, JDK 1.2.2 and JRE 1.1.7 on Windows 2000 Professional. The actual steps and output are: TOMCAT_HOME\bin tomcat start This opens another command prompt window with the output of: 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /examples ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( ) 2001-03-20 08:45:54 - ContextManager: Adding context Ctx( /test ) 2001-03-20 08:45:54 - PoolTcpConnector: Starting HttpConnectionHandler on 8080 2001-03-20 08:45:54 - PoolTcpConnector: Starting Ajp12ConnectionHandler on 8007 I then enter: TOMCAT_HOME\bin tomcat run I receive the following output: Including all jars in E:\tomcat\lib in your CLASSPATH. Using CLASSPATH: E:\tomcat\classes;E:\tomcat\lib\ant.jar;E:\tomcat\lib\jasper.jar; E:\tomcat\lib\jaxp.jar;E:\tomcat\lib\parser.jar;E:\tomcat\lib\servlet.jar; E:\tomcat\lib\webserver.jar;F:\Oracle\Ora81\orb\classes\yoj.jar; F:\Oracle\Ora81\orb\classes\share.zip;;C:\Program Files\JDK\jdk1.2.2\lib\tools.jar 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /example 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /admin ) Starting tomcat. Check logs/tomcat.log for error messages 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( ) 2001-03-20 08:46:00 - ContextManager: Adding context Ctx( /test ) FATAL:java.net.BindException: Address in use: bind java.net.BindException: Address in use: bind at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:398) at java.net.ServerSocket.init(ServerSocket.java:173) at java.net.ServerSocket.init(ServerSocket.java:124) at org.apache.tomcat.net.DefaultServerSocketFactory.create(DefaultServerSocketF actory.java:97) at org.apache.tomcat.service.PoolTcpEndpoint.startEndpoint(PoolTcpEndpoint.java :239) at org.apache.tomcat.service.PoolTcpConnector.start(PoolTcpConnector.java, Compiled Code) at org.apache.tomcat.core.ContextManager.start(ContextManager.java, Compiled Code) at org.apache.tomcat.startup.Tomcat.execute(Tomcat.java:20 at org.apache.tomcat.startup.Tomcat.main(Tomcat.java:235) Has anyoneever experienced this and if so, how do I get by this? Any and all help is much appreciated. Jason Sardano Northern Geomantics 146 Second Street Hallowell, Maine 04347 Ph:(207)623-9226 Fax:(207)623-9229 http://www.northgeo.com