• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Trouble starting Apache

 
Ranch Hand
Posts: 31
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I installed Tomcat on my computer and followed the instructions in the "CoreServlets" online book to set up the server. I set the JAVA_HOME variable, set the port to 80 and enabled the root context . I tried running the server both ways: by double-clicking startup.bat and by typing "catalina run" on my command prompt. But both failed. Yesterday, the first approach (double-clicking startup.bat) failed but the second approach (typiing "catalina run") worked. I restarted my computer today and neither works.
The error says "'Dsun.io.useCanonCaches' is not recognized as an internal or external command,operable program or batch file."

Can some one please help me on this?

Thanks.
 
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
This question belongs in the Tomcat forum, the advice you would get there is to look for error messages in the Tomcat log files.

I also suggest executing the startup.bat from a command prompt so you can retain error messages.

Bill
 
Ranch Hand
Posts: 263
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is your JAVA_HOME environment variable set properly? This is a very likely cause of the problem.
What do you see if you simply type java -version at command prompt.

Same problem discussed here:
http://forums.sun.com/thread.jspa?threadID=587627

 
Lasagna is spaghetti flvored cake. Just like this tiny ad:
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic