Meaningless Drivel is fun!*
The moose likes Tomcat and the fly likes Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost] Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]" Watch "Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]" New topic
Author

Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]

Marty Batista
Greenhorn

Joined: Oct 06, 2012
Posts: 3
Hello there,

I am a total newbie.

I get the following compile error output in NetBeans when I try to run my servlet.
It's from the Murach Servlets and JSP book exercise: 3-1 page 99.

It must be a Tomcat configuration problem, I suppose.

Here is the entire Netbeans output: (its humongous)

init:
deps-module-jar:
deps-ear-jar:
deps-jar:
Created dir: C:\murach\servlet_jsp\netbeans\testApp\build\web\WEB-INF\classes
Created dir: C:\murach\servlet_jsp\netbeans\testApp\build\web\META-INF
Copying 1 file to C:\murach\servlet_jsp\netbeans\testApp\build\web\META-INF
Copying 2 files to C:\murach\servlet_jsp\netbeans\testApp\build\web
library-inclusion-in-archive:
library-inclusion-in-manifest:
Created dir: C:\murach\servlet_jsp\netbeans\testApp\build\empty
Created dir: C:\murach\servlet_jsp\netbeans\testApp\build\generated-sources\ap-source-output
compile:
compile-jsps:
Starting Tomcat process...
Waiting for Tomcat...
Tomcat server started.
In-place deployment at C:\murach\servlet_jsp\netbeans\testApp\build\web
deploy?config=file%3A%2FC%3A%2FUsers%2FMARTY_%7E1%2FAppData%2FLocal%2FTemp%2Fcontext7364498173334473272.xml&path=/testApp
FAIL - Unable to create directory [C:\Program Files
(x86)\tomcat\conf\Catalina\localhost]
C:\murach\servlet_jsp\netbeans\testApp\nbproject\build-impl.xml:721:
The module has not been deployed.
See the server log for details.
BUILD FAILED (total time: 14 seconds)


Using CATALINA_BASE: "C:\Program Files (x86)\tomcat"
Using CATALINA_HOME: "C:\Program Files (x86)\tomcat"
Using CATALINA_TMPDIR: "C:\Program Files (x86)\tomcat\temp"
Using JRE_HOME: "C:\Program Files (x86)\Java\jdk1.7.0_04"
Using CLASSPATH: "C:\Program Files
(x86)\tomcat\bin\bootstrap.jar;C:\Program Files
(x86)\tomcat\bin\tomcat-juli.jar"
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files
(x86)\tomcat\logs\catalina.2012-10-06.log (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:521)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:327)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files
(x86)\tomcat\logs\localhost.2012-10-06.log (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:521)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:327)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files
(x86)\tomcat\logs\manager.2012-10-06.log (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:521)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:327)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
java.util.logging.ErrorManager: 4
java.io.FileNotFoundException: C:\Program Files
(x86)\tomcat\logs\host-manager.2012-10-06.log (Access is denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.juli.FileHandler.openWriter(FileHandler.java:386)
at org.apache.juli.FileHandler.<init>(FileHandler.java:99)
at org.apache.juli.FileHandler.<init>(FileHandler.java:90)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:525)
at java.lang.Class.newInstance0(Class.java:372)
at java.lang.Class.newInstance(Class.java:325)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:521)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
at java.util.logging.LogManager$2.run(LogManager.java:285)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:283)
at java.util.logging.LogManager.getLogManager(LogManager.java:266)
at java.util.logging.Logger.<init>(Logger.java:252)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1136)
at java.util.logging.LogManager$RootLogger.<init>(LogManager.java:1133)
at java.util.logging.LogManager$1.run(LogManager.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.util.logging.LogManager.<clinit>(LogManager.java:175)
at java.util.logging.Logger.getLogger(Logger.java:327)
at org.apache.juli.logging.DirectJDKLog.<init>(DirectJDKLog.java:71)
at org.apache.juli.logging.DirectJDKLog.getInstance(DirectJDKLog.java:196)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:170)
at org.apache.juli.logging.LogFactory.getInstance(LogFactory.java:242)
at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:293)
at org.apache.catalina.startup.Bootstrap.<clinit>(Bootstrap.java:60)
Oct 06, 2012 8:59:59 PM org.apache.catalina.core.AprLifecycleListener init
INFO: The APR based Apache Tomcat Native library which allows optimal
performance in production environments was not found on the
java.library.path: C:\Program Files
(x86)\Java\jdk1.7.0_04\bin;C:\windows\Sun\Java\bin;C:\windows\system32;C:\windows;C:\Program
Files\Common Files\Microsoft Shared\Windows Live;C:\Program Files
(x86)\Common Files\Microsoft Shared\Windows
Live;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0\;C:\Program
Files (x86)\Windows Live\Shared;C:\Program Files
(x86)\QuickTime\QTSystem\;C:\Program Files
(x86)\Java\jdk1.7.0_04\bin;;C:\Users\Marty_Gra\AppData\Local\Smartbar\Application\;.
Oct 06, 2012 8:59:59 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["http-bio-8080"]
Oct 06, 2012 8:59:59 PM org.apache.coyote.AbstractProtocol init
INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
Oct 06, 2012 8:59:59 PM org.apache.catalina.startup.Catalina load
INFO: Initialization processed in 1133 ms
Oct 06, 2012 8:59:59 PM org.apache.catalina.core.StandardService startInternal
INFO: Starting service Catalina
Oct 06, 2012 8:59:59 PM org.apache.catalina.core.StandardEngine startInternal
INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
Oct 06, 2012 8:59:59 PM org.apache.catalina.valves.AccessLogValve open
SEVERE: Failed to open access log file [C:\Program Files
(x86)\tomcat\logs\localhost_access_log.2012-10-06.txt]
java.io.FileNotFoundException: C:\Program Files
(x86)\tomcat\logs\localhost_access_log.2012-10-06.txt (Access is
denied)
at java.io.FileOutputStream.open(Native Method)
at java.io.FileOutputStream.<init>(FileOutputStream.java:212)
at org.apache.catalina.valves.AccessLogValve.open(AccessLogValve.java:1115)
at org.apache.catalina.valves.AccessLogValve.startInternal(AccessLogValve.java:1222)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardPipeline.startInternal(StandardPipeline.java:185)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.startInternal(ContainerBase.java:1156)
at org.apache.catalina.core.StandardHost.startInternal(StandardHost.java:785)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1595)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1585)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 8:59:59 PM org.apache.catalina.startup.HostConfig start
SEVERE: Unable to create directory for deployment: C:\Program Files
(x86)\tomcat\conf\Catalina\localhost
Oct 06, 2012 8:59:59 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Program Files
(x86)\tomcat\webapps\ch02cart.war
Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/ch02cart]
java.io.IOException: Unable to create the directory [C:\Program Files
(x86)\tomcat\webapps\ch02cart\META-INF]
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:132)
at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:697)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:820)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:364)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\ch02cart] for context [/ch02cart]
Oct 06, 2012 9:00:00 PM org.apache.catalina.loader.WebappLoader startInternal
SEVERE: LifecycleException
java.io.IOException: Failed to create destination directory to copy resources
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:891)
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5149)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ch02cart]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component [WebappLoader[/ch02cart]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5149)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Caused by: org.apache.catalina.LifecycleException: start:
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:631)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more
Caused by: java.io.IOException: Failed to create destination directory
to copy resources
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:891)
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
... 14 more

Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive C:\Program Files
(x86)\tomcat\webapps\ch02cart.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/ch02cart]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:902)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.HostConfig deployWAR
INFO: Deploying web application archive C:\Program Files
(x86)\tomcat\webapps\musicStore.war
Oct 06, 2012 9:00:00 PM org.apache.tomcat.util.digester.SetPropertiesRule begin
WARNING: [SetPropertiesRule]{Context/Realm} Setting property 'debug'
to '99' did not find a matching property.
Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.ContextConfig init
SEVERE: Exception fixing docBase for context [/musicStore]
java.io.IOException: Unable to create the directory [C:\Program Files
(x86)\tomcat\webapps\musicStore\META-INF]
at org.apache.catalina.startup.ExpandWar.expand(ExpandWar.java:132)
at org.apache.catalina.startup.ContextConfig.fixDocBase(ContextConfig.java:697)
at org.apache.catalina.startup.ContextConfig.init(ContextConfig.java:820)
at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:364)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
at org.apache.catalina.util.LifecycleBase.setStateInternal(LifecycleBase.java:401)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:110)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:139)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\musicStore] for context
[/musicStore]
Oct 06, 2012 9:00:00 PM org.apache.catalina.loader.WebappLoader startInternal
SEVERE: LifecycleException
java.io.IOException: Failed to create destination directory to copy resources
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:891)
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5149)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.core.ContainerBase addChildInternal
SEVERE: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/musicStore]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.catalina.LifecycleException: Failed to start
component [WebappLoader[/musicStore]]
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:154)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5149)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 11 more
Caused by: org.apache.catalina.LifecycleException: start:
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:631)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
... 13 more
Caused by: java.io.IOException: Failed to create destination directory
to copy resources
at org.apache.catalina.loader.WebappLoader.setRepositories(WebappLoader.java:891)
at org.apache.catalina.loader.WebappLoader.startInternal(WebappLoader.java:605)
... 14 more

Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.HostConfig deployWAR
SEVERE: Error deploying web application archive C:\Program Files
(x86)\tomcat\webapps\musicStore.war
java.lang.IllegalStateException: ContainerBase.addChild: start:
org.apache.catalina.LifecycleException: Failed to start component
[StandardEngine[Catalina].StandardHost[localhost].StandardContext[/musicStore]]
at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:902)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:963)
at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1600)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)

Oct 06, 2012 9:00:00 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\tomcat\webapps\docs
Oct 06, 2012 9:00:00 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\docs] for context [/docs]
Oct 06, 2012 9:00:01 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files
(x86)\tomcat\work\Catalina\localhost\docs is unusable.
Oct 06, 2012 9:00:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\tomcat\webapps\examples
Oct 06, 2012 9:00:01 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\examples] for context [/examples]
Oct 06, 2012 9:00:01 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files
(x86)\tomcat\work\Catalina\localhost\examples is unusable.
Oct 06, 2012 9:00:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\tomcat\webapps\host-manager
Oct 06, 2012 9:00:01 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\host-manager] for context
[/host-manager]
Oct 06, 2012 9:00:01 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files
(x86)\tomcat\work\Catalina\localhost\host-manager is unusable.
Oct 06, 2012 9:00:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\tomcat\webapps\manager
Oct 06, 2012 9:00:01 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\manager] for context [/manager]
Oct 06, 2012 9:00:01 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files
(x86)\tomcat\work\Catalina\localhost\manager is unusable.
Oct 06, 2012 9:00:01 PM org.apache.catalina.startup.HostConfig deployDirectory
INFO: Deploying web application directory C:\Program Files
(x86)\tomcat\webapps\ROOT
Oct 06, 2012 9:00:01 PM org.apache.catalina.core.StandardContext
postWorkDirectory
WARNING: Failed to create work directory [C:\Program Files
(x86)\tomcat\work\Catalina\localhost\_] for context []
Oct 06, 2012 9:00:01 PM org.apache.jasper.EmbeddedServletOptions <init>
SEVERE: The scratchDir you specified: C:\Program Files
(x86)\tomcat\work\Catalina\localhost\_ is unusable.
Oct 06, 2012 9:00:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8080"]
Oct 06, 2012 9:00:01 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8009"]
Oct 06, 2012 9:00:01 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 2062 ms

Any advice would be greatly appreciated!
Thanks in advance.

martmanjsp



Marty Batista
Greenhorn

Joined: Oct 06, 2012
Posts: 3
Solved the problem by re-installing Tomcat outside of Program Files (x86) directory.
Works fine now.
No more denying access.

C:\Apache software Foundation\Tomcat 7.0

 
Don't get me started about those stupid light bulbs.
 
subject: Tomcat server - Unable to create directory [C:\Program Files (x86)\tomcat\conf\Catalina\localhost]
 
Similar Threads
Spring Tomcat Instrument loader
Why jdk6x is not compatiable with Tomcat7? why jdk7x compiled classes are not working in jdk6x
tomcat Server is not starting.
Start of Liferay Tomcat Server
Errors in Tomcat startup