• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Rob Spoor
  • Tim Cooke
  • Junilu Lacar
Sheriffs:
  • Henry Wong
  • Liutauras Vilda
  • Jeanne Boyarsky
Saloon Keepers:
  • Jesse Silverman
  • Tim Holloway
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Mikalai Zaikin
  • Piet Souris

tomcat is not starting

 
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
i have installed jdk 6 and tomcat 6.
after windows is started, tomcat's is available in system tray.
but the service is not started.i tried to start that service manually.but it is not started... how to solve this problem... please help... thank you.
 
Bartender
Posts: 6663
5
MyEclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Please check the log file. What stack trace do you see ?
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are just getting started with servlets, it is a mistake to install Tomcat as a service because that make debugging difficult.

If this was my problem I would remove the service and install as a normal application. Start Tomcat from a command prompt window using startup.bat, NOT by clicking on startup.bat.

Bill
 
Sanjeev Charla
Ranch Hand
Posts: 90
Firefox Browser Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
few lines from log file:

[2009-06-27 10:33:49] [info] Procrun (2.0.4.0) started
[2009-06-27 10:19:14] [info] Running Service...
[2009-06-27 10:19:15] [info] Starting service...
[2009-06-27 10:19:15] [174 javajni.c] [error] The specified module could not be found.
[2009-06-27 10:19:15] [994 prunsrv.c] [error] Failed creating java C:\Program Files\Java\jre1.6.0\bin\client\jvm.dll
[2009-06-27 10:19:15] [1269 prunsrv.c] [error] ServiceStart returned 1
[2009-06-27 10:19:16] [info] Run service finished.
 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Make sure you have permission to write throughout the Tomcat directory. I had the same problem once.

Dan
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you are going to insist on running Tomcat as a service, you might want to read the procrun documentation.

Bill
 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you use Vista, try turning UAC(User Account Control) off. I found out UAC was restricting access to some subdirectories without me knowing.
 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Go to your jdk folder then /bin:
like this for example:

C:\Java\jdk1.6.0_13\bin
there is a dll file named msvcr71.dll

copy it and paste it under tomcatfolder/bin

and then your server should start normally.

Basically this problem occurs during the installation of Tomcat on vista because there is that stupid security that does not allow tomcat installer to access that file.
So the solution is to do it manually after you finish the installation.
 
Ranch Hand
Posts: 38
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I agree that installing Tomcat as a service may cause trouble, but blaming Vista for a "stupid" security feature that has helped massively cut down malware infections, is immature at best.

IF you want to know the no nonsense guide to setup tomcat on your Vista/XP/7 system, then you can take a look at http://gupta-ravi.spaces.live.com for this post.
 
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
sanjeev charla,

Is Your problem solved or yet to be solved?

-Rohit
 
Charbel Keyrouz
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It is not the vista security that is stupid, it is the implementation.
If you are on a Linux operating system which is ,I suppose, way more secure than any of Microsoft's , you cannot face such issues.

Being able to do a process and only one part of it it is not allowed which will lead to malfunctioning of the whole scenario.

Anyway I apologize.
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

just check the java_home path..........u need to set java_home path it may solve the problem.
chek it out
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic