Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 33724 invoked from network); 25 Sep 2009 12:09:40 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Sep 2009 12:09:40 -0000 Received: (qmail 47770 invoked by uid 500); 25 Sep 2009 12:09:37 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 47725 invoked by uid 500); 25 Sep 2009 12:09:37 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 47714 invoked by uid 99); 25 Sep 2009 12:09:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:09:37 +0000 X-ASF-Spam-Status: No, hits=-4.0 required=10.0 tests=RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [195.138.194.58] (HELO hermes-ldn.macmillan.co.uk) (195.138.194.58) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 Sep 2009 12:09:26 +0000 X-SBRS: None X-IronPort-AV: E=Sophos;i="4.44,451,1249254000"; d="scan'208";a="48051115" Received: from mpl-ldn-exc4.mpl.root-domain.org ([172.25.0.82]) by hermes-ldn-exc.macmillan.co.uk with ESMTP; 25 Sep 2009 13:08:57 +0100 Received: from 172.25.2.156 ([172.25.2.156]) by mpl-ldn-exc4.mpl.root-domain.org ([172.25.0.82]) with Microsoft Exchange Server HTTP-DAV ; Fri, 25 Sep 2009 12:08:57 +0000 User-Agent: Microsoft-Entourage/11.4.0.080122 Date: Fri, 25 Sep 2009 13:10:15 +0100 Subject: Re: Convention plugins problems From: "j.ollier" To: Struts Users Mailing List Message-ID: Thread-Topic: Convention plugins problems Thread-Index: Aco92SO4Yi1DDqnMEd6oEgAf81HIew== In-Reply-To: Mime-version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii" X-Virus-Checked: Checked by ClamAV on apache.org I have also been trying to get started with the Convention plugin and was struggling to understand why a webapp which works fine in Tomcat would not work in Jetty. I found that if Jetty does not expand the WAR file then I get this on startup: java.lang.Exception: Could not load WEB-INF/classes/com/nature/xb3/action/news/Home.class at com.opensymphony.xwork2.util.finder.ClassFinder.readClassDef(ClassFinder.jav a:745) But if in my context file I set : true Then the error goes away. I seems as though Struts makes some use of the META-INF directory. John On 24/09/2009 21:34, "Ingo Hoffmann" wrote: > I'm using the jetty-starter > > On 24/09/2009, at 17:33, Musachy Barroso wrote: > >> hard to say. A good point to start debugging is in >> PackageBasedActionConfigBuilder.buildUrlSet, for some reason it is not >> finding the actions. I used jetty all the time, but I use it with the >> maven jetty plugin. >> >> musachy >> >> On Thu, Sep 24, 2009 at 12:53 PM, Ingo Hoffmann >> wrote: >>> In contrast to Tomcat: >>> >>> 2009-09-24 16:51:08,115 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Setting >>> action default parent package to [convention-default] >>> 2009-09-24 16:51:08,117 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Loading >>> action configurations >>> 2009-09-24 16:51:08,117 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Actions >>> being loaded using package locators [action, actions, struts, >>> struts2] >>> 2009-09-24 16:51:08,118 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Excluding >>> actions from packages [org.apache.struts.*, org.apache.struts2.*, >>> org.springframework.web.struts.*, org.springframework.web.struts2.*, >>> org.hibernate.*] >>> 2009-09-24 16:51:08,207 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Changed >>> action name from [HelloWorld] to [hello-world] >>> 2009-09-24 16:51:08,208 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Got >>> actionName for class [class cx.hoffmann.bab.web.actions.HelloWorld] >>> of >>> [hello-world] >>> 2009-09-24 16:51:08,209 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [cx.hoffmann.bab.web.actions#convention- >>> default#] with >>> a namespace [] >>> 2009-09-24 16:51:08,214 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Using >>> non-default action namespace from the Action annotation of [/asd] >>> 2009-09-24 16:51:08,214 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [cx.hoffmann.bab.web.actions#convention- >>> default#] with >>> a namespace [] >>> 2009-09-24 16:51:08,217 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Using final >>> calculated namespace [] >>> 2009-09-24 16:51:08,217 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the Servlet container at [/WEB-INF/content/] with >>> result >>> prefix of [/WEB-INF/content/asd] >>> 2009-09-24 16:51:08,218 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.jsp] >>> 2009-09-24 16:51:08,218 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.freemarker] >>> 2009-09-24 16:51:08,219 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index-success.ftl] >>> 2009-09-24 16:51:08,219 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index.ftl] >>> 2009-09-24 16:51:08,220 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the class path at [WEB-INF/content/] with a result >>> prefix of >>> [/WEB-INF/content/asd] and action name [asd] >>> 2009-09-24 16:51:08,227 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Changed >>> action name from [HelloWorld] to [hello-world] >>> 2009-09-24 16:51:08,227 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Got >>> actionName for class [class exemplo.actions.HelloWorld] of [hello- >>> world] >>> 2009-09-24 16:51:08,228 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [exemplo.actions#convention-default#] with a >>> namespace >>> [] >>> 2009-09-24 16:51:08,229 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Using final >>> calculated namespace [] >>> 2009-09-24 16:51:08,230 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the Servlet container at [/WEB-INF/content/] with >>> result >>> prefix of [/WEB-INF/content/hello-world] >>> 2009-09-24 16:51:08,230 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.jsp] >>> 2009-09-24 16:51:08,231 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) The >>> result >>> file [/WEB-INF/content/hello-world.jsp] has no result code and >>> therefore >>> will be associated with success, input and error by default. This >>> might be >>> overridden by another result file or an annotation. >>> 2009-09-24 16:51:08,232 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.freemarker] >>> 2009-09-24 16:51:08,233 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) The >>> result >>> file [/WEB-INF/content/hello-world.freemarker] has no result code and >>> therefore will be associated with success, input and error by >>> default. This >>> might be overridden by another result file or an annotation. >>> 2009-09-24 16:51:08,234 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index-success.ftl] >>> 2009-09-24 16:51:08,234 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index.ftl] >>> 2009-09-24 16:51:08,235 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the class path at [WEB-INF/content/] with a result >>> prefix of >>> [/WEB-INF/content/hello-world] and action name [hello-world] >>> 2009-09-24 16:51:08,237 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Changed >>> action name from [xpto] to [xpto] >>> 2009-09-24 16:51:08,237 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Changed >>> action name from [HelloWorld] to [hello-world] >>> 2009-09-24 16:51:08,247 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Got >>> actionName for class [class exemplo.actions.xpto.HelloWorld] of >>> [hello-world] >>> 2009-09-24 16:51:08,247 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [exemplo.actions.xpto#convention-default#/ >>> xpto] with a >>> namespace [/xpto] >>> 2009-09-24 16:51:08,249 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Using final >>> calculated namespace [/xpto] >>> 2009-09-24 16:51:08,250 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the Servlet container at [/WEB-INF/content/xpto/] >>> with result >>> prefix of [/WEB-INF/content/xpto/hello-world] >>> 2009-09-24 16:51:08,250 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the class path at [WEB-INF/content/xpto/] with a >>> result >>> prefix of [/WEB-INF/content/xpto/hello-world] and action name >>> [hello-world] >>> 2009-09-24 16:51:08,251 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Changed >>> action name from [HelloWorldAction] to [hello-world] >>> 2009-09-24 16:51:08,252 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Got >>> actionName for class [class >>> cx.hoffmann.bab.web.actions.HelloWorldAction] of >>> [hello-world] >>> 2009-09-24 16:51:08,252 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [cx.hoffmann.bab.web.actions#convention- >>> default#] with >>> a namespace [] >>> 2009-09-24 16:51:08,253 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) Using >>> non-default action namespace from the Action annotation of [/asd] >>> 2009-09-24 16:51:08,256 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Created >>> package config named [cx.hoffmann.bab.web.actions#convention- >>> default#] with >>> a namespace [] >>> 2009-09-24 16:51:08,257 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Using final >>> calculated namespace [] >>> 2009-09-24 16:51:08,260 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the Servlet container at [/WEB-INF/content/] with >>> result >>> prefix of [/WEB-INF/content/asd] >>> 2009-09-24 16:51:08,261 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.jsp] >>> 2009-09-24 16:51:08,264 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/hello-world.freemarker] >>> 2009-09-24 16:51:08,265 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index-success.ftl] >>> 2009-09-24 16:51:08,265 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Processing >>> resource path [/WEB-INF/content/index.ftl] >>> 2009-09-24 16:51:08,266 [TRACE] >>> (com.opensymphony.xwork2.util.logging.commons.CommonsLogger:69) >>> Searching >>> for results in the class path at [WEB-INF/content/] with a result >>> prefix of >>> [/WEB-INF/content/asd] and action name [asd] >>> >>> >>> >>> On 24/09/2009, at 16:22, Musachy Barroso wrote: >>> >>>> Any traces or errors? Set the log level to TRACE >>>> >>>> musachy >>>> >>>> On Thu, Sep 24, 2009 at 12:20 PM, Ingo Hoffmann >>>> wrote: >>>>> >>>>> Hi, >>>>> >>>>> I have been trying to get the Convention plugin to work on >>>>> Winstone and >>>>> Jetty without any luck. It seems it doesn't even start. >>>>> >>>>> The same .war works without issues on Tomcat. >>>>> >>>>> I set org.apache.struts2.convention to DEBUG and I see on the >>>>> Tomcat logs >>>>> the convention plugins mapping my URLs to actions, but it doesn't >>>>> show up >>>>> on >>>>> Winstone or Jetty at all. The config-browser plugin doesn't show >>>>> any >>>>> actions >>>>> on the default namespace or any other namespace besides its own. >>>>> >>>>> I'm using Maven 2.2.1 to build the .war. Tried Struts 2.1.6, >>>>> 2.1.7 and >>>>> 2.1.8 >>>>> without any luck. >>>>> >>>>> Anyone with a similar experience? >>>>> >>>>> Thanks, >>>>> Ingo Hoffmann >>>>> >>>>> --------------------------------------------------------------------- >>>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>>> For additional commands, e-mail: user-help@struts.apache.org >>>>> >>>>> >>>> >>>> >>>> >>>> -- >>>> "Hey you! Would you help me to carry the stone?" Pink Floyd >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>>> For additional commands, e-mail: user-help@struts.apache.org >>>> >>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >>> For additional commands, e-mail: user-help@struts.apache.org >>> >>> >> >> >> >> -- >> "Hey you! Would you help me to carry the stone?" Pink Floyd >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org >> For additional commands, e-mail: user-help@struts.apache.org >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > ******************************************************************************** DISCLAIMER: This e-mail is confidential and should not be used by anyone who is not the original intended recipient. If you have received this e-mail in error please inform the sender and delete it from your mailbox or any other storage mechanism. Neither Macmillan Publishers Limited nor any of its agents accept liability for any statements made which are clearly the sender's own and not expressly made on behalf of Macmillan Publishers Limited or one of its agents. Please note that neither Macmillan Publishers Limited nor any of its agents accept any responsibility for viruses that may be contained in this e-mail or its attachments and it is your responsibility to scan the e-mail and attachments (if any). No contracts may be concluded on behalf of Macmillan Publishers Limited or its agents by means of e-mail communication. Macmillan Publishers Limited Registered in England and Wales with registered number 785998 Registered Office Brunel Road, Houndmills, Basingstoke RG21 6XS ******************************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org