• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

running Tomcat server from an USB key

 
Ranch Hand
Posts: 563
Google Web Toolkit Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I am trying to run Tomcat5.5.17 from my USB key.
I first have it running from my hard drive d:\Tomcat5.5.17\

I copied the files to my USB key, launched F:\Tomcat5.5.17\bin\tomcat5.exe
and I can see in the DOS console that it cannot find certain files
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 5.5\conf\tomcat-users.xml.new (Acces denied)
at java.io.FileOutputStream.open(Native Method)
The denied permission is because I do not have the rights to write on this hard drive. That is why I want to run it from my USB key.

Can anyone tell me which files and settings I need to modify to make it work ?
Or point me to any good link on the subject.
Thanks in advance.
 
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Max,
Since you are running the Tomcat from USB key(F:), all the files it should take from F: only. I am just wondering why is it looking at C:. Did you set the CATALINA_HOME variable to C:?
 
Bartender
Posts: 9626
16
Mac OS X Linux Windows
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You should be aware that flash drives can wear out, so running an application from one, as opposed to storing data, is a bad idea
 
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
What happens if you try launching with startup.bat from a command prompt with the ..\bin current dirctory? That does some tricks to set environment variables according to where it starts.
Bill
 
Hooplehead
Posts: 136
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Joe Ess:
You should be aware that flash drives can wear out, so running an application from one, as opposed to storing data, is a bad idea



Great idea for demo or school settings, but yea...seems like a bad idea outside of that. Note that USB is significantly slower than HDDs also...something to be aware of.
 
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic