Hi, So far I have been using the run jetty eclipse plugin to run my project and it is working fine. I have now got the task of setting this up to run on the production server rather than my localhost.
The server is on opensuse rather than my local windows installation, but that shouldn't make a difference. I installed a new version of jetty, set it up, created my .war file using mvn clean war:war and put it in the webapps folder. Everything seemed to be going ok, until I then went to the address on the server and instead of showing me my application, it showed me a directory listing showing me: META-INF/ 4096 bytes 30-Oct-2013 15:12:36 WEB-INF/ 4096 bytes 30-Oct-2013 15:12:36 exercises/ 4096 bytes 30-Oct-2013 15:12:36 favicon.ico 894 bytes 03-Sep-2013 15:41:02 layout/ That isn't good. Although they are the correct directories, why is it showing me a listing? I then went back to my eclipse version and ran it to see if anything has gone wrong there and I get an exception thrown (since using mvn clean war:war). I then reverted back to my latest subversion commit and it is working fine again, until I use "mvn clean war:war". So, I assume that something is going wrong when packaging it into a .war file, and as a result I am being shown a listing. I have a stack trace from after using mvn clean war:war, and the printouts from running that command. The printout is: C:\tapestry5\work\ama>mvn clean war:war [INFO] Scanning for projects... [INFO] [INFO] ------------------------------------------------------------------------ [INFO] Building ama Tapestry 5 Application 1.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.4.1:clean (default-clean) @ ama --- [INFO] Deleting C:\tapestry5\work\ama\target [INFO] [INFO] --- maven-war-plugin:2.1.1:war (default-cli) @ ama --- [INFO] Packaging webapp [INFO] Assembling webapp [ama] in [C:\tapestry5\work\ama\target\ama] [INFO] Processing war project [INFO] Copying webapp resources [C:\tapestry5\work\ama\src\main\webapp] [INFO] Webapp assembled in [368 msecs] [INFO] Building war: C:\tapestry5\work\ama\target\ama.war [WARNING] Warning: selected war files include a WEB-INF/web.xml which will be ignored (webxml attribute is missing from war task, or ignoreWebxml attribute is specified as 'true') [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESS [INFO] ------------------------------------------------------------------------ [INFO] Total time: 3.282s [INFO] Finished at: Wed Oct 30 15:13:53 GMT 2013 [INFO] Final Memory: 9M/160M [INFO] ------------------------------------------------------------------------ C:\tapestry5\work\ama> I wonder what this warning is? Then the exception if I try to run it exactly as I always have before using runjetty from eclipse: log4j:WARN No appenders could be found for logger (org.apache.tapestry5.ioc.RegistryBuilder). log4j:WARN Please initialize the log4j system properly. 2013-10-30 15:14:03.338:WARN:oejuc.AbstractLifeCycle:FAILED app: java.lang.RuntimeException: Failure loading Tapestry IoC module class com.syn.ama.services.DevelopmentModule: com.syn.ama.services.DevelopmentModule java.lang.RuntimeException: Failure loading Tapestry IoC module class com.syn.ama.services.DevelopmentModule: com.syn.ama.services.DevelopmentModule at org.apache.tapestry5.ioc.RegistryBuilder.add(RegistryBuilder.java:162) at org.apache.tapestry5.internal.TapestryAppInitializer.<init>(TapestryAppInitializer.java:161) at org.apache.tapestry5.TapestryFilter.init(TapestryFilter.java:103) at org.eclipse.jetty.servlet.FilterHolder.doStart(FilterHolder.java:102) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:747) at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:249) at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1222) at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:676) at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:455) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at org.eclipse.jetty.server.handler.HandlerWrapper.doStart(HandlerWrapper.java:90) at org.eclipse.jetty.server.Server.doStart(Server.java:261) at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:59) at runjettyrun.Bootstrap.main(Bootstrap.java:82) Any ideas? I thought maybe my web.xml isn't getting in so I went to take a look insider the .war which was created and it was there. Luckily I can revert to earlier today and my application runs again, but as soon as I run mvn clean war:war it all breaks. I'm a little lost on what to check or steps to take, any help is really appreciated. Thanks, --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org