• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

running Tomcat server from an USB key

 
Celinio Fernandes
Ranch Hand
Posts: 549
Eclipse IDE Google Web Toolkit Java
  • Mark post as helpful
  • send pies
  • 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.
 
Sivaraman Lakshmanan
Ranch Hand
Posts: 231
  • Mark post as helpful
  • send pies
  • 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:?
 
Joe Ess
Bartender
Pie
Posts: 9266
10
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13058
6
  • Mark post as helpful
  • send pies
  • 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
 
Stu Thompson
Hooplehead
Ranch Hand
Posts: 136
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic