I fail to understand the logic about posting to Tapestry user list about a problem in Maven plugin. Googling the error message gives you this as the first result: http://stackoverflow.com/questions/4342245/disable-maven-warning-message-selected-war-files-include-a-web-inf-web-xml-wh
Kalle On Wed, Oct 30, 2013 at 8:52 AM, Steve <steves...@gmail.com> wrote: > Hi again - sorry to bother everyone with emails, > > I was stuck for hours trying to fix this, but it seems as soon as I've > posted i've managed to get it sorted myself. > > It is a strange world we live in. It worked, however I still don't > know why I get this warning: > [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') > > It's running on the server nicely it seems. How exciting! I have to > take it down and make some updates to it, but now I know when the > deadline hits for me in 2 weeks that I am able to put it where it > needs to be. > > Thanks, > Steve > > On 30 October 2013 15:40, Steve <steves...@gmail.com> wrote: > > Hi, > > > > Sorry to bother you - the plot thickens. > > So I have just found if I do: > > mvn clean war:war > > It will delete the target folder, and then when I run using the > > jettyrun plugin, it gives the exception above. > > However, if after running mvn clean war:war I then go in eclipse and > > press project>clean, and then run, it works. I am unsure why. > > > > I think this may be related to some issues I had whenever I updated > > from svn. At some point I renamed a package named "Tools" to "tools", > > and ever since whenever I update from SVN there are some problems that > > it cannot find "Tools" when running the project, so I re-name it to > > "jools" then back to "tools" and it works... until the next time I > > update and it goes back to a capital T (I think svn isn't registering > > the name change). > > I wonder if it is related, I don't know. > > > > I'll now try building a war again and see if it works after cleaning > > the eclipse project. > > > > On 30 October 2013 15:23, Steve <steves...@gmail.com> wrote: > >> 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 > >