This week's book giveaway is in the Testing forum. We're giving away four copies of Practical Unit Testing with TestNG and Mockito and have Tomek Kaczanowski on-line! See this thread for details.
i downloaded tomcat from: Binary Distributions > Core >windows service installer"
I have installed apache tomcat 6.0.7
i have set JAVE_HOME to the java sdk installation place and CATALINA_HOME to the tomcat installation place
now , when i am trying to run Tomcat from services window i get this message : "windows could not start the apache tomcat" and code number is 0
i have tried lot of alternatives but nothing works the same error i tried to install new windows and try all of that again , but the same error
i tried to install the "zip" version but i got the same error !
any one can help me
thank you in advance
Hesham Katon<br />SCJP 1.2<br />SCWCD 1.4<br />Better to light a candle than to curse the darkness
Keith Lynn
Ranch Hand
Joined: Feb 07, 2005
Posts: 2306
posted
0
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.
salutes
Dilipkumar Jadhav
Greenhorn
Joined: Apr 18, 2009
Posts: 5
posted
0
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...
Ranjeetitm Singh
Greenhorn
Joined: Oct 01, 2008
Posts: 17
posted
0
Yes it worked for me too.
SCJA SCJP SCWCD
Dilipkumar Jadhav
Greenhorn
Joined: Apr 18, 2009
Posts: 5
posted
0
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: 3
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
Howard Watson
Ranch Hand
Joined: Jan 07, 2004
Posts: 40
posted
0
I see that camilo cerchiari had already posted this. (msvcr71.dll)
These two links got me out of trouble with Tomcat6.0.20/jdk6 on server 2008/64-bit:
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.
Thank you again for the suggestion.
chaitanya palli
Greenhorn
Joined: Feb 19, 2010
Posts: 13
posted
0
Hi Dilipkumar Jadhav,
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.
Bhaskar Anand
Greenhorn
Joined: Jun 20, 2010
Posts: 3
posted
0
Thanks to the post .... It also worked for my situation
archit thakur
Greenhorn
Joined: Jul 10, 2010
Posts: 19
posted
0
hey friends,
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?
naveen shrimal
Greenhorn
Joined: Dec 18, 2010
Posts: 12
posted
0
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?
Sanchit Kapur
Greenhorn
Joined: May 05, 2011
Posts: 20
posted
0
Worked for me as well.. after copying the msvcr71.dll fro jre bin to tomcat bin
Richard Kachelriess
Greenhorn
Joined: Jan 12, 2012
Posts: 1
posted
0
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!
Peter Sinclair
Greenhorn
Joined: Feb 04, 2012
Posts: 1
posted
0
LOW TECH SOLUTION
Send Monitor Tomcat to the Desktop as a Shortcut. Click. WHAT WAS ALL THE FUSS ABOUT?