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.
SCJP 1.4, SCWCD 1.4, SCBCD 1.3, SCBCD 5
Visit my blog
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:?
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
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.
"This is not to say that design is unnecessary. But after a certain point, design is just speculation." --Philip Chu
Climb the rope! CLIMB THE ROPE! You too tiny ad:
a bit of art, as a gift, the permaculture playing cards