• 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

service terminated with service-specific error The system cannot open the file

 
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All,

Unable to start the tomcat service in windows :

service terminated with service-specific error The system cannot open the file.

Java version :

java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Tomcat version : Apache Tomcat/6.0.37




 
Greenhorn
Posts: 3
1
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Santhosh Kumar P wrote:Hi All,

Unable to start the tomcat service in windows :

service terminated with service-specific error The system cannot open the file.

Java version :

java version "1.6.0_38"
Java(TM) SE Runtime Environment (build 1.6.0_38-b05)
Java HotSpot(TM) 64-Bit Server VM (build 20.13-b02, mixed mode)

Tomcat version : Apache Tomcat/6.0.37



I am getting exactly the same error with Tomcat 7.0.42 and java (jdk) 1.7.0_45 64 bits on Windows 7.
I can also see this message "The system cannot open the file" in the Event Viewer of Windows.

Did you find the cause ? At the moment I have no clue.
 
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch.
I could possibly be the dll issue as discussed here https://coderanch.com/t/86968/Tomcat/start-tomcat-service
 
Jean-Pol Landrain
Greenhorn
Posts: 3
1
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the welcome.

No, I have tried the solutions described there but it doesn't really help.

However, it helped a bit in order to investigate: I have noticed that I also get an error message when running tomcat7.exe from the command line. However I can't read the error because the window pops up and closes directly.
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jean-Pol Landrain wrote:
However, it helped a bit in order to investigate: I have noticed that I also get an error message when running tomcat7.exe from the command line. However I can't read the error because the window pops up and closes directly.


Then you might want to try running it from the command line. There should be a bat/exe file under your TOMCAT_HOME/bin
 
Jean-Pol Landrain
Greenhorn
Posts: 3
1
Eclipse IDE Tomcat Server Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I found the reason: the service.bat used to install Tomcat as a service didn't set the classpath. When I set bootstrap.jar and tomcat-juli.jar in the classpath (by using the tomcat7w utility), it works.
 
Maneesh Godbole
Bartender
Posts: 11445
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for sharing the solution! You earned a cow for that!
 
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