If you go into the bin directory of the installation and run tomcat5.exe, you should more information about why it won't start.
Also you might check the event viewer to see if there is any information.
hesham katon
Ranch Hand
Joined: Dec 18, 2002
Posts: 82
posted
0
thanks Keith for your reply
tomcat6.exe just open a black dos screen and fast disappear
The event Viewer shows an error Description : The Apache Tomcat service terminated with service-specific error 0(0x0) For more information see Help and Support Center at http://go.microsoft.com/fwlink/events.asp
Try this: Open a command prompt window (click Start, Run, enter "cmd" and click OK). Go to the Tomcat bin folder: cd c:\...\<tomcat installation dir>\bin. Now start it manually from there: type tomcat6.exe <enter>. Does it print any error messages in the command prompt window?
A common reason why Tomcat won't start is that a different process has already allocated the TCP/IP port (8080 by default) that Tomcat wants to use to accept connections. To test this, open a browser and go to http://localhost:8080 What do you see - an error message, or do you get a response from a program that has already allocated port 8080? [ July 30, 2007: Message edited by: Jesper Young ]
it soooo long, but well..... i had that problem and fixed it. copy the file msvcr71.dll from the bin dir of your java installation, to the bin dir of the tomcat installation. that worked for me in windows xp.
I had a similar problem on a new Windows XP machine. The issue got fixed after the copy-paste of msvcr71.dll in the tomcat installation's bin folder.
I never expected that a post from 2007-2008 would help me resolve this issue. But well, as long as it works...
Maybe it is just me, but could it be an issue exclusively with tomcat 6.0.18. I deployed tomcat 6.0.18 on my laptop & I had to resolve this little issue with the startup using the dll file. However, on my office installation of tomcat 6.0.14 it was smooth flowing. No issues there.
Anyone else who faced this on a particular instance of tomcat?...
camilo cerchiari
Greenhorn
Joined: Oct 31, 2007
Posts: 4
posted
0
Dilipkumar Jadhav wrote:Maybe it is just me, but could it be an issue exclusively with tomcat 6.0.18. I deployed tomcat 6.0.18 on my laptop & I had to resolve this little issue with the startup using the dll file. However, on my office installation of tomcat 6.0.14 it was smooth flowing. No issues there.
Anyone else who faced this on a particular instance of tomcat?...
i guess you'll have to wait a couple of years for your question to be answered...
:P
The sysinternals procmon app said NAME NOT FOUND for a FEW dll's missing from the bin under the dir Tomcat installed to, & I'm assuming that's expected since the installer didn't put them there.
[2010-01-10 00:50:05] [1269 prunsrv.c] [error] ServiceStart returned 2
[2010-01-10 00:50:05] [info] Run service finished.
[2010-01-10 00:50:05] [info] Procrun finished.
I can't make sense of this- Please advise.
Dilipkumar Jadhav
Greenhorn
Joined: Apr 18, 2009
Posts: 5
posted
0
Hi Justa Guy,
You mentioned that you downloaded the "windows service installer" from Tomcat download website. Based on the URL you provided I am assuming you downloaded the 6.0.20 or some 6.0.XX version of Tomcat which is available at this point of time. Looks like Tomcat 6.0.20 bin folder (in the windows service installer method) ships only with 4 files viz. bootstrap.jar, tomcat6.exe (this I believe is the procrun), tomcat6w.exe, tomcat-juli.jar. So, the error about dll files might be misleading (especially since there aren't supposed to be any dll files in the bin folder).
I would suggest that you download the zip version rather than the windows service installer of Tomcat 6.0.20 version (this would be just a test). Extract the folder and you will find that this version of tomcat has many more files in it's bin folder. Of interest to us would be the startup.bat. Run this file since it launches tomcat in the command prompt. If you are able to launch Tomcat this way successfully, it would imply that it could be an issue with how the tomcat launch service accesses your windows resources, to be more precise, how much of an access does your login have on that machine.
If Tomcat still fails to launch, we would have to wait for some more replies Hope this helps.
Justa Guy
Greenhorn
Joined: Jan 10, 2010
Posts: 2
posted
0
Thank you for the reply.
I found a way to resolve it but forgot to post here after.
First I installed an old offline 64-bit J2RE & let it update itself.
Next I installed the J2JDK with the J2EE SDK bundle, which told me port 8080 wasn't available so I changed it to 8081, and set the User/Pass.
Then after uninstalling & reinstalling Tomcat, setting the port, user & pass (sure it matched this time), all was well.
i too got the same problem and tried with tomcat6.0.20 zip,followed as suggested,gave cd [dir]/[tomcat path]/bin/startup.bat ,but then it is prompting catalina home is not recognized,the environment variables nee dto be set to run this. but i gave CATALINA_HOME =[dir]/[tomcat path].whats wrong done?
and my major dought is just by unzipping tomcat,how can the system takes the port number and runs on localhost without using manual installation which contains few Next button pressing steps.may be question is silly but i want to know the difference and steps to go with installation of tomcat 6.0.20 (zip).mine is windows vista 64bit O.S,using jdk1.6.0_18(win 64 bit).which TOMCAT 6.0.20 bin/src/windows installer(zip/tar etc.,) i should download for my Win 64 bit. i want to set up a UDDI registry,so i downloaded mysql-5.1.44-winx64,tomcat 0.9rc4 and eclipse-SDK-3.5.1-win32-x86_64
Did you notice that you actually downloaded the files from on of the mirrors web sites? Do not forget that you must verify the integrity of the downloaded files.
We provide PGP signatures for every release file. This signature should be matched against the KEYS file which contains the PGP keys of Tomcat's Release Managers. We also provide an MD5 checksum for every release file. After you download the file, you should calculate a checksum for your download, and make sure it is the same as ours.
Dilipkumar Jadhav
Greenhorn
Joined: Apr 18, 2009
Posts: 5
posted
0
Hi Chaitanya,
but then it is prompting catalina home is not recognized,the environment variables nee dto be set to run this
Just to test the setup, please try setting up the catalina_home variable under System Variables in the environment variables of your windows operating system. The value of this Variable would be the directory where you installed tomcat. In my case, I've installed tomcat under G:\server\Tomcat6020. So my CATALINA_HOME=G:\server\Tomcat6020
how can the system takes the port number and runs on localhost without using manual installation
It is possible to run a program on an operating system without actual installation. Tomcat does just that. The port numbers are picked up from the configuration files and if you were to modify these files, you can pretty much tweak how your instance of Tomcat would work including the port number on which it would be listening.
My suggestion to you is that you go ahead with the zip file for Tomcat rather than the exe installation. There was an issue with the exe installation some time back and don't know if this got corrected. You can read the details here.
With the zip method of installation, I think you are on the right track. Just need to make sure your CATALINA_HOME is pointing to the right folder.
Hope this helps...
chaitanya palli
Greenhorn
Joined: Feb 19, 2010
Posts: 13
posted
0
Hi Dilipkumar,
For my UDDI registry I am using 1)JAVA jdk1.6.0_18 2)Tomcat 6.0.24 3)juddi0.9rc4 4)mysql-5.1.44-winx64 5)mysql-connector-java-5.1.12 6)eclipse-SDK-3.2.1-win32-x86_64 (all 6 are 64bit versions only)as my windows vista is 64 bit.
I followed the steps xactly in the following link
juudi0.9rc4 installation I done upto the step Install JUDDI (Last step 9th)and my Juddi is happy now.(( juddi is happy now “Juddi is happy†is how writers express that jUDDI is correctly configured. If you see any errors in your JUDDI validation,rework these instructions.))
but in my browser while checking " http://localhost:90/juddi/console/ " none of the API s are working ,I mean when I tried vd get_registryinfo
and pressed the "Submit" button it is displaying "Connection refused: connect"
similarly for validation response was "Validation is not implemented yet." where have I done the mistaken,help me please, could not trace out.
I am using netbeans ide tomcat gets started through it.
the problem i am facing is whenver i try to run the web-project from netbeans tomcat asks me to aunthenticate.
since i had downloaded the zipped version i dont have set any username-password which is set at the time of installation.
what should i do?
getting error while starting Apache Tomcat 6 help me
the log file is as foollows
INFO: Server startup in 228 ms
19 Dec, 2010 8:40:01 AM org.apache.jk.common.MsgAjp processHeader
SEVERE: BAD packet signature 18245
19 Dec, 2010 8:40:01 AM org.apache.jk.common.ChannelSocket processConnection
SEVERE: Error, processing connection
java.lang.IndexOutOfBoundsException at java.io.BufferedInputStream.read(BufferedInputStream.java:310)
at org.apache.jk.common.ChannelSocket.read(ChannelSocket.java:620)
at org.apache.jk.common.ChannelSocket.receive(ChannelSocket.java:577)
at org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:685)
at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:889)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:686)
at java.lang.Thread.run(Thread.java:619)
For me, an my apologies if this has already been posted, the problem was when I rebooted my server, it change the jvm.dll from the jdk\server directory to the jre directory. My app won't run on jre, has to have jdk. The question becomes why would tomcat (or java or windows or whatever else I can blame) change the parameter?
Wow, 4 and a half year old thread helped me solve this problem. I love the web.
I ran into this problem today and was able to fix it by changing which jvm.dll that Tomcat was pointing to. I'm using Tomcat 6.0.35 and it was pointing to ...\Java\jre7\bin\server\jvm.dll. When I switched to the Java 6 version (...\Java\jre6\bin\server\jvm.dll) it worked. Also, make sure it's the "server" version and not "client" version. When I used ...\Java\jre6\bin\client\jvm.dll, I still wasn't able to start Tomcat.
Thanks for all the help I got from this thread. I hope this helps!
In command prompt I typed 'tomcat6' and the output was as following:
C:\Users\Zafar.Anwar\Documents\Newfolder\apache-tomcat-6.0.35-windows-x64\apache -tomcat-6.0.35\bin> tomcat6
[2012-06-07 06:38:11] [warn] The system cannot find the Registry key for service 'tomcat6'
[2012-06-07 06:38:11] [error] Load configuration failed
[2012-06-07 06:38:11] [error] The system cannot find the file specified.
[2012-06-07 06:38:11] [error] Commons Daemon procrun failed with exit value: 2 (Failed to load configuration)
[2012-06-07 06:38:11] [error] The system cannot find the file specified.
The bootstrap error alo occurs if Tomcat sets Java parameters (-Dparameter) but with a faulty 'minus' sign. For example an underscore or a long-stroke character. Word is known to replace minus signs when it is helping to improve the layout by starting a list etc. Compare below:
I had the same problem with Tomcat 5.5 (I no its nearly out of date but probably happens for all servers my fix.)
after several hours of trying everything. on the Apache Tomcat 5.5 Tomcat5 Properties, Select the Java Tab, unselected Default and changed the Java Virtual Machine path
From
C:\Program Files (x86)\Java\jre6\bin\client\jvm.dll
To
C:\Program Files\Java\jre6\bin\server\jvm.dll
Clicked Start on the General Tab and it worked straight away
and i deleted classpath (because someone suggested trying it to fix the issue. I have a backup of it but it still works without it)
I'm not sure how it worked it may work by putting in the path to a different version of jvm.dll. but I know the steps above fixed my issue with tomcat
I had the same problem with PaloSuiteTomcatService (Palo ETL Server Version: 3.2.0.1783) under Windows Server 2003 32bit.
After installation of Palo Suite 3.2 CE (Release: 3.2.0.5160) PaloSuiteTomcatService and PaloSuiteHttpdService (Apache/2.2.17 (Win32)) didn't start.
After installation of JRE appache began to start normally, but tomcat didn't.
I installed jdk-6u21-windows-i586 and added path to the bin directory of JDK to the system enviroment variable Path (C:\Program Files\Java\jdk1.6.0_21\bin\) and it started normally.
Then I removed JRE and everything is still fine.