Andre, I am sorry if I got your remark from the wrong end and apologies if it did heart you.I posted things on to the list as they unfolded.This anti virus issue did not happen until a moment ago I made the post.From the beginning of this issue I have not kept back any information that was relevant to the issue and I thought relevant.
Well I did as you have instructed me 1. *Stopped the Anti virus * 2. *Downloaded apache-tomcat-6.0.20.zip (core)* 3. *Unzipped it to the directory apache-tomcat-6.0.20* 4. *Opened a console window* 5. *Went to the directory c:\apache-tomcat-6.0.20\bin* 6. *typed the command startup.bat, it started tomcat below is what appeared on the console window* C:\apache-tomcat-6.0.20\bin>startup.bat Using CATALINA_BASE: C:\apache-tomcat-6.0.20 Using CATALINA_HOME: C:\apache-tomcat-6.0.20 Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.20\temp Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_14 7* Then typed shutdown.bat, it did stop tomcat* C:\apache-tomcat-6.0.20\bin>shutdown.bat Using CATALINA_BASE: C:\apache-tomcat-6.0.20 Using CATALINA_HOME: C:\apache-tomcat-6.0.20 Using CATALINA_TMPDIR: C:\apache-tomcat-6.0.20\temp Using JRE_HOME: C:\Program Files\Java\jdk1.6.0_14 *8 Issued the command service.bat install, the display in the console window was* C:\apache-tomcat-6.0.20\bin>service.bat install Installing the service 'Tomcat6' ... Using CATALINA_HOME: C:\apache-tomcat-6.0.20 Using CATALINA_BASE: C:\apache-tomcat-6.0.20 Using JAVA_HOME: C:\Program Files\Java\jdk1.6.0_14 Using JVM: C:\Program Files\Java\jdk1.6.0_14\jre\bin\server\jvm.dll Failed installing 'Tomcat6' service *As always the service installation stops when using the JVM *Varuna* *2009/7/22 André Warnier <a...@ice-sa.com> > Varuna, > > I am not trying to "bully" you or anything of the kind. > I have been watching this thread as a spectator, and I was just trying to > convey to you the following : > There are people here trying to help you, for free. > To be able to do that, they need, at least : > - that you provide all relevant information > - that when they ask a question, you answer the question > This anti-virus thing was valuable information, and it may be at the bottom > of your problems. But it took about 10 posts before you mentioned these > messages, thus leading several would-be helpers into probably bad > directions. > Similarly, it looks a bit like every item of information has to be pulled > out of you bit by bit. > In other words, much of your pain looks self-inflicted. > > That was the sense of my comment. Which, I admit, was made in a rather > sarcastic way, for which I apologise if it shocked you. > > Now, to redeem myself, here are my suggestions : > > - turn off any anti-virus or similar software that might be running > - de-install whatever Tomcat software you have installed, using the > installer/deinstaller package > - verify that you do not have any "remainders" anywhere of these > installations (in the Windows "Services" display, in the disk directory > where you installed Tomcat, and in the "Start.. Settings.. System > ..Software" dialog). > > When everything is clean : > > - download the "zip" version of Tomcat for Windows, from the Tomcat > website. > - unzip it in a directory. I suggest a sensible directory name, without > spaces in the name, like c:\tomcat6. > This is now your "CATALINA_HOME" directory (and also, by default, your > "CATALINA_BASE" directory). Remember this, it is important. > - in the directory CATALINA_HOME/bin, you will then find a script called > "startup.bat". Open a command window, navigate to that directory, and run > that script. > This should start Tomcat, interactively, in that command window. > This is only to verify that nothing else is wrong on your system to run > Tomcat (like available ports, etc..). > - you should now be able to access Tomcat with a browser, at " > http://localhost:8080" > - to stop Tomcat, type "CTRL-C" in the command window. > > Once you have done the above, then you can try to install Tomcat as a > service. > For that, run the script "CATALINA_HOME/bin/service.bat install" > (you can also edit this script, to see what it is doing) > > When you have run this script, you will have essentially done the same as > what the "exe" installer package for Tomcat is doing. But you will have > much more control and understanding of what is going on, and where things > may get stuck. > > You should now be able to start and stop Tomcat using the commands > net start tomcat6 > net stop tomcat6 > (the name "tomcat6" above to be replaced by the correct Windows Service > name for Tomcat) > or by using "My Computer..Manage..Services and Applications) > > If you want, you can then remove the Tomcat service again, by running > "service.bat remove", and try again to install the whole thing from the > "exe" installer version. > > Additional information, harder to find in the on-line documentation : > > - the "tomcat6.exe" program that comes with the Windows version of Tomcat, > is a "Windows Service wrapper" for Tomcat. It is there because the JVM, on > its own, does not handle very well the requirements of Windows Services. > So, when later you run Tomcat, you are really running "tomcat6.exe", which > in turn starts the JVM, which in turn runs Tomcat. > This "tomcat6.exe" wrapper, in order to know which JVM to use with which > parameters, takes these parameters from the Windows Registry. > How do they get there ? that is the next section. > > - There is another program in the CATALINA_HOME/bin directory, named > "tomcat6w.exe" (the same name as before, with a "w" at the end). > The "tomcat6w.exe" is a GUI setup program, whose role is to set up the > appropriate parameters in the Windows Registry, so that "tomcat6.exe" can > later find them. You can run "tomcat6w.exe" by clicking on it, and you will > get a window that shows you how to proceed. > > Basically, the "service.bat" script, invokes this "tomcat6w.exe" in > command-line mode, and tells it what to do. > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Kind Regards Varuna Varuna Seneviratna No 514 Udumulla Road Battaramulla Sri Lanka Tel : 011-2888620 Mobile:0715617141