The stack trace contains org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:279)
From http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.jetty/jetty-webapp/7.1.2.v20100523/org/eclipse/jetty/webapp/WebInfConfiguration.java#WebInfConfiguration.resolveTempDirectory%28org.eclipse.jetty.webapp.WebAppContext%29 it seems to resolve your temporary directory and is failing on that. See the JavaDoc for that API on the link above. Its failing on this method: makeTempDirectory(new File(System.getProperty("java.io.tmpdir")), context, true); //make a tmpdir, delete if it already exists Is you java.io.tmpdir set? Is it set to a correct directory? Perhaps try setting it explicitly as a JVM argument. By default java.io.tmpdir should simply take the value of your %TEMP% variable on windows. Hope this helps, Torsten Mielke tors...@fusesource.com tmie...@blogspot.com On Sep 22, 2011, at 6:29 PM, stratio wrote: > Hello, i'm using activeMQ 5.6 SNAPSHOT on Windows 7 and java SE 7. > > I successfully installed it as a service but when i try to start it i get an > error and it doesn't start. > > Watching at the wrapper.log file here is what i get: > > > INFO | Listening for connections at: tcp://0.0.0.0:61611 > INFO | jvm 1 | 2011/09/22 18:17:44 | INFO | Connector openwire Started > INFO | jvm 1 | 2011/09/22 18:17:44 | INFO | Listening for connections > at: stomp://0.0.0.0:61613 > INFO | jvm 1 | 2011/09/22 18:17:44 | INFO | Connector stomp Started > INFO | jvm 1 | 2011/09/22 18:17:44 | INFO | ActiveMQ JMS Message > Broker (localhost, ID:ICAM_SRV_7-49646-1316708264568-0:1) started > INFO | jvm 1 | 2011/09/22 18:17:45 | INFO | jetty-7.1.6.v20100715 > INFO | jvm 1 | 2011/09/22 18:17:45 | WARN | tmpdir > INFO | jvm 1 | 2011/09/22 18:17:45 | java.io.IOException: Impossibile > trovare il percorso specificato > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.io.WinNTFileSystem.createFileExclusively(Native Method) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.io.File.createTempFile(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.io.File.createTempFile(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.webapp.WebInfConfiguration.resolveTempDirectory(WebInfConfiguration.java:279) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.webapp.WebInfConfiguration.preConfigure(WebInfConfiguration.java:43) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:378) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:338) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:229) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.server.handler.HandlerCollection.doStart(HandlerCollection.java:165) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:92) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.server.Server.doStart(Server.java:242) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:55) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.lang.reflect.Method.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeCustomInitMethod(AbstractAutowireCapableBeanFactory.java:1544) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1485) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1417) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:64) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.xbean.spring.context.ResourceXmlApplicationContext.<init>(ResourceXmlApplicationContext.java:52) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.xbean.XBeanBrokerFactory$1.<init>(XBeanBrokerFactory.java:106) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.xbean.XBeanBrokerFactory.createApplicationContext(XBeanBrokerFactory.java:106) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.xbean.XBeanBrokerFactory.createBroker(XBeanBrokerFactory.java:71) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:71) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.broker.BrokerFactory.createBroker(BrokerFactory.java:54) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.StartCommand.startBroker(StartCommand.java:115) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.StartCommand.runTask(StartCommand.java:74) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.ShellCommand.runTask(ShellCommand.java:148) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.AbstractCommand.execute(AbstractCommand.java:57) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.command.ShellCommand.main(ShellCommand.java:90) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.lang.reflect.Method.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.Main.runTaskClass(Main.java:251) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.apache.activemq.console.Main.main(Main.java:107) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > java.lang.reflect.Method.invoke(Unknown Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | at > org.tanukisoftware.wrapper.WrapperSimpleApp.run(WrapperSimpleApp.java:240) > INFO | jvm 1 | 2011/09/22 18:17:45 | at java.lang.Thread.run(Unknown > Source) > INFO | jvm 1 | 2011/09/22 18:17:45 | INFO | ActiveMQ Message Broker > (localhost, ID:ICAM_SRV_7-49646-1316708264568-0:1) is shutting down > INFO | jvm 1 | 2011/09/22 18:17:45 | Wrapper Manager: ShutdownHook > started > INFO | jvm 1 | 2011/09/22 18:17:45 | WrapperManager.stop(0) called by > thread: Wrapper-Shutdown-Hook > INFO | jvm 1 | 2011/09/22 18:17:45 | Send a packet STOP : 0 > DEBUG | wrapperp | 2011/09/22 18:17:45 | read a packet STOP : 0 > DEBUG | wrapper | 2011/09/22 18:17:45 | JVM requested a shutdown. (0) > DEBUG | wrapper | 2011/09/22 18:17:45 | wrapperStopProcess(0) called. > DEBUG | wrapper | 2011/09/22 18:17:45 | Sending stop signal to JVM > DEBUG | wrapperp | 2011/09/22 18:17:45 | send a packet STOP : NULL > INFO | jvm 1 | 2011/09/22 18:17:45 | Received a packet STOP : > INFO | jvm 1 | 2011/09/22 18:17:46 | Thread, Wrapper-Shutdown-Hook, > handling the shutdown process. > INFO | jvm 1 | 2011/09/22 18:17:46 | calling listener.stop() > INFO | jvm 1 | 2011/09/22 18:17:46 | WrapperSimpleApp: stop(0) > INFO | jvm 1 | 2011/09/22 18:17:46 | returned from listener.stop() -> 0 > INFO | jvm 1 | 2011/09/22 18:17:46 | shutdownJVM(0) > Thread:Wrapper-Shutdown-Hook > INFO | jvm 1 | 2011/09/22 18:17:46 | Send a packet STOPPED : 0 > DEBUG | wrapperp | 2011/09/22 18:17:46 | read a packet STOPPED : 0 > DEBUG | wrapper | 2011/09/22 18:17:46 | JVM signalled that it was stopped. > INFO | jvm 1 | 2011/09/22 18:17:46 | Closing socket. > > > > It seems it doesn't find some folder path but i can't understand which one > it is. I even tried a stable version of ActiveMQ but i get the same error. > > How can i solve this problem? > > Thanks in advance for the help.