Win a copy of Learn Spring Security (video course) this week in the Spring forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

FileNotFoundException during deploy

 
William Stafford
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am trying to deploy an web app to a new server we just set up. I generate a war file from Eclipse and place it in the web apps dir. A directory for the war appears when I restart Tomcat but the following message is logged and the war is not deployed.

HostConfig[localhost]: Expanding web application archive OBISWEB2.war
HostConfig[localhost] Exception while expanding web application archive OBISWEB2.war
java.io.FileNotFoundException: C:\Program Files\Apache Software Foundation\Tomcat 4.1\webapps\OBISWEB2.war (The process cannot access the file because it is being used by another process)
at java.util.zip.ZipFile.open(Native Method)

The message seems clear, ".. being used by another process", but I can not believe this is the case. I use the same procedure on four other machines with no problem.

I seem to remember seeing the same message when a java command has a type in a jar file name, ex. java -jar typo.jar shoud have been java -jar Typo.jar but I don't see how it fits in this case.

Any help or pointers or even wild guesses would be appreciated.

-=beeky
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Are you sure that no other apps have a lock on the war file (are you viewing it's contents with Winzip or Explorer)?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic