Set the log level to DEBUG for the convention plugin and see what it is doing, it will print on what directory it is searching for the results.
On 8/27/09, Rusty Wright <rusty.wri...@gmail.com> wrote: > I can't get struts.convention.result.path to work. > > I'm using maven and as far as I can tell the Convention Plugin is being > used; when I make a war it's in the lib directory. And "mvn > dependency:tree" shows the following. My struts.xml is as follows: > > <struts> > <include > file="struts-constants.xml" > /> > <package name="default" extends="struts-default"> > <action name="catchall" > > <result>/catchall.jsp</result> > </action> > </package> > </struts> > > And struts-constants.xml is as follows: > > <struts> > <constant > name="struts.devMode" > value="true" > /> > <constant > name="struts.convention.result.path" > value="/WEB-INF/views/jsp/" > /> > </struts> > > But it's always looking for the catchall.jsp file in the top level directory > of my web app, ~tomcat/webapps/sample002. > > (Side question; in the listing below why does the artifact > com.opensymphony:xwork have a compile dependency on spring-test; shouldn't > that be a test dependency?) > > > [INFO] +- org.apache.struts:struts2-core:jar:2.1.6:compile > [INFO] | +- com.opensymphony:xwork:jar:2.1.2:compile > [INFO] | | \- org.springframework:spring-test:jar:2.5.6:compile > [INFO] | | \- commons-logging:commons-logging:jar:1.1.1:compile > [INFO] | +- org.freemarker:freemarker:jar:2.3.13:compile > [INFO] | +- opensymphony:ognl:jar:2.6.11:compile > [INFO] | +- commons-fileupload:commons-fileupload:jar:1.2.1:compile > [INFO] | +- commons-io:commons-io:jar:1.3.2:compile > [INFO] | \- com.sun:tools:jar:1.5.0:system > [INFO] +- org.apache.struts:struts2-convention-plugin:jar:2.1.6:compile > [INFO] +- org.apache.struts:struts2-config-browser-plugin:jar:2.1.6:compile > [INFO] +- javax.servlet:jstl:jar:1.1.2:compile > [INFO] +- javax.servlet:servlet-api:jar:2.4:provided > [INFO] +- javax.servlet:jsp-api:jar:2.0:provided > [INFO] +- log4j:log4j:jar:1.2.15:compile > [INFO] | \- javax.mail:mail:jar:1.4:compile > [INFO] | \- javax.activation:activation:jar:1.1:compile > [INFO] +- junit:junit:jar:4.7:test (scope not updated to compile) > [INFO] +- org.eclipse.jetty:jetty-webapp:jar:7.0.0.RC4:test > [INFO] | +- org.eclipse.jetty:jetty-xml:jar:7.0.0.RC4:test > [INFO] | | \- org.eclipse.jetty:jetty-util:jar:7.0.0.RC4:test > [INFO] | \- org.eclipse.jetty:jetty-servlet:jar:7.0.0.RC4:test > [INFO] | \- org.eclipse.jetty:jetty-security:jar:7.0.0.RC4:test > [INFO] | \- org.eclipse.jetty:jetty-server:jar:7.0.0.RC4:test > [INFO] | +- > org.eclipse.jetty:jetty-continuation:jar:7.0.0.RC4:test > [INFO] | \- org.eclipse.jetty:jetty-http:jar:7.0.0.RC4:test > [INFO] | \- org.eclipse.jetty:jetty-io:jar:7.0.0.RC4:test > [INFO] +- net.sourceforge.htmlunit:htmlunit:jar:2.5:test > [INFO] | +- xalan:xalan:jar:2.7.1:test > [INFO] | | \- xalan:serializer:jar:2.7.1:test > [INFO] | | \- xml-apis:xml-apis:jar:1.3.04:test > [INFO] | +- commons-collections:commons-collections:jar:3.2.1:test > [INFO] | +- commons-lang:commons-lang:jar:2.4:test > [INFO] | +- commons-httpclient:commons-httpclient:jar:3.1:test > [INFO] | +- commons-codec:commons-codec:jar:1.3:test > [INFO] | +- net.sourceforge.htmlunit:htmlunit-core-js:jar:2.5:test > [INFO] | +- net.sourceforge.nekohtml:nekohtml:jar:1.9.12:test > [INFO] | | \- xerces:xercesImpl:jar:2.8.1:test > [INFO] | \- net.sourceforge.cssparser:cssparser:jar:0.9.5:test > [INFO] | \- org.w3c.css:sac:jar:1.3:test > [INFO] +- net.sourceforge.jwebunit:jwebunit-core:jar:2.2:test > [INFO] | \- regexp:regexp:jar:1.3:test > [INFO] \- net.sourceforge.jwebunit:jwebunit-htmlunit-plugin:jar:2.2:test > [INFO] +- org.slf4j:slf4j-api:jar:1.5.0:test > [INFO] \- org.slf4j:slf4j-log4j12:jar:1.5.0:test > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > > -- "Hey you! Would you help me to carry the stone?" Pink Floyd --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org