I would try adding the block to your web.xml and see if that fixes the problem.
Matt On Tue, May 5, 2009 at 2:32 PM, Marc StPierre <marc.stpie...@doj.ca.gov>wrote: > 1. Yes I have my action class in that package > > 2. That block is not in the web.xml file I am looking at, but there are > lots of web.xml files in the directory so maybe I am looking at the wrong > one. I am looking at \src\main\webapp\WEB-INF\web.xml > > contents of file below - To my knowledge I never modified this file. > Thanks! > > > <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" > xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> > > <display-name>appfuse</display-name> > <distributable/> > > <!-- precompiled jsp mappings --> > > <!-- Define the default CSS Theme --> > <context-param> > <param-name>csstheme</param-name> > <param-value>simplicity</param-value> > </context-param> > <!-- Define the basename for a resource bundle for I18N --> > <context-param> > > <param-name>javax.servlet.jsp.jstl.fmt.localizationContext</param-name> > <param-value>ApplicationResources</param-value> > </context-param> > <!-- Fallback locale if no bundles found for browser's preferred locale > --> > <!-- Force a single locale using param-name > 'javax.servlet.jsp.jstl.fmt.locale' --> > <context-param> > <param-name>javax.servlet.jsp.jstl.fmt.fallbackLocale</param-name> > <param-value>en</param-value> > </context-param> > <!-- Context Configuration locations for Spring XML files --> > <context-param> > <param-name>contextConfigLocation</param-name> > <param-value> > classpath:/applicationContext-resources.xml > classpath:/applicationContext-dao.xml > classpath:/applicationContext-service.xml > classpath*:/applicationContext.xml > /WEB-INF/applicationContext*.xml > /WEB-INF/xfire-servlet.xml > /WEB-INF/security.xml > </param-value> > </context-param> > > <filter> > <filter-name>cacheFilter</filter-name> > > <filter-class>com.opensymphony.oscache.web.filter.CacheFilter</filter-class> > </filter> > <filter> > <filter-name>clickstreamFilter</filter-name> > > <filter-class>com.opensymphony.clickstream.ClickstreamFilter</filter-class> > </filter> > <filter> > <filter-name>encodingFilter</filter-name> > > > <filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class> > <init-param> > <param-name>encoding</param-name> > <param-value>UTF-8</param-value> > </init-param> > <init-param> > <param-name>forceEncoding</param-name> > <param-value>true</param-value> > </init-param> > </filter> > <filter> > <filter-name>exportFilter</filter-name> > > <filter-class>org.displaytag.filter.ResponseOverrideFilter</filter-class> > </filter> > <filter> > <filter-name>gzipFilter</filter-name> > > <filter-class>net.sf.ehcache.constructs.web.filter.GzipFilter</filter-class> > </filter> > <!--<filter> > <filter-name>lazyLoadingFilter</filter-name> > > > <filter-class>org.springframework.orm.hibernate3.support.OpenSessionInViewFilter</filter-class> > </filter>--> > <!-- Use > "org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter" if > you're using JPA --> > <filter> > <filter-name>localeFilter</filter-name> > > <filter-class>com.mycompany.app.webapp.filter.LocaleFilter</filter-class> > </filter> > <filter> > <filter-name>rewriteFilter</filter-name> > > > <filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> > <init-param> > <param-name>logLevel</param-name> > <param-value>log4j</param-value> > </init-param> > </filter> > <filter> > <filter-name>securityFilter</filter-name> > > > <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class> > <init-param> > <param-name>targetBeanName</param-name> > <param-value>springSecurityFilterChain</param-value> > </init-param> > </filter> > <filter> > <filter-name>sitemesh</filter-name> > > > <filter-class>com.opensymphony.module.sitemesh.filter.PageFilter</filter-class> > </filter> > <filter> > <filter-name>staticFilter</filter-name> > > <filter-class>com.mycompany.app.webapp.filter.StaticFilter</filter-class> > <init-param> > <param-name>includes</param-name> > <param-value>/scripts/dojo/*,/dwr/*</param-value> > </init-param> > </filter> > <filter> > <filter-name>struts-cleanup</filter-name> > > > <filter-class>org.apache.struts2.dispatcher.ActionContextCleanUp</filter-class> > </filter> > <filter> > <filter-name>struts</filter-name> > > <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> > </filter> > > <filter-mapping> > <filter-name>encodingFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>securityFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <!-- Commented out for 2 reasons: 1) it's a pain when developing JSPs, > and > 2) it causes the Signup webtest to > fail --> > <!--filter-mapping> > <filter-name>cacheFilter</filter-name> > <url-pattern>*.jsp</url-pattern> > </filter-mapping--> > <!--<filter-mapping> > <filter-name>lazyLoadingFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping>--> > <filter-mapping> > <filter-name>clickstreamFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>localeFilter</filter-name> > <url-pattern>/*</url-pattern> > </filter-mapping> > <!-- GZipFilter has issues with XFire's service-listing servlet. --> > <!-- http://issues.appfuse.org/browse/APF-863 --> > <filter-mapping> > <filter-name>gzipFilter</filter-name> > <url-pattern>*.css</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>gzipFilter</filter-name> > <url-pattern>*.html</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>gzipFilter</filter-name> > <url-pattern>*.js</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>gzipFilter</filter-name> > <url-pattern>*.jsp</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>exportFilter</filter-name> > <url-pattern>*.html</url-pattern> > </filter-mapping> > <filter-mapping> > <filter-name>rewriteFilter</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > <filter-mapping> > <filter-name>struts-cleanup</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > <filter-mapping> > <filter-name>sitemesh</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > <dispatcher>INCLUDE</dispatcher> > </filter-mapping> > <filter-mapping> > <filter-name>staticFilter</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > <filter-mapping> > <filter-name>struts</filter-name> > <url-pattern>/*</url-pattern> > <dispatcher>REQUEST</dispatcher> > <dispatcher>FORWARD</dispatcher> > </filter-mapping> > > <listener> > > > <listener-class>com.opensymphony.clickstream.ClickstreamListener</listener-class> > </listener> > <listener> > > > <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class> > </listener> > <listener> > > > <listener-class>org.springframework.web.util.IntrospectorCleanupListener</listener-class> > </listener> > <listener> > > > <listener-class>org.springframework.web.context.request.RequestContextListener</listener-class> > </listener> > <listener> > > > <listener-class>com.mycompany.app.webapp.listener.StartupListener</listener-class> > </listener> > <listener> > > > <listener-class>com.mycompany.app.webapp.listener.UserCounterListener</listener-class> > </listener> > <listener> > > <listener-class>net.sf.navigator.menu.MenuContextListener</listener-class> > </listener> > > <servlet> > <servlet-name>dwr-invoker</servlet-name> > > <servlet-class>org.directwebremoting.servlet.DwrServlet</servlet-class> > <init-param> > <param-name>debug</param-name> > <param-value>true</param-value> > </init-param> > </servlet> > > <servlet> > <servlet-name>xfire</servlet-name> > > <servlet-class>org.codehaus.xfire.spring.XFireSpringServlet</servlet-class> > </servlet> > > <servlet-mapping> > <servlet-name>dwr-invoker</servlet-name> > <url-pattern>/dwr/*</url-pattern> > </servlet-mapping> > > <servlet-mapping> > <servlet-name>xfire</servlet-name> > <url-pattern>/services/*</url-pattern> > </servlet-mapping> > > <session-config> > <session-timeout>10</session-timeout> > </session-config> > > <welcome-file-list> > <welcome-file>index.jsp</welcome-file> > </welcome-file-list> > > <error-page> > <error-code>500</error-code> > <location>/error.jsp</location> > </error-page> > <error-page> > <error-code>400</error-code> > <location>/index.jsp</location> > </error-page> > <error-page> > <error-code>403</error-code> > <location>/403.jsp</location> > </error-page> > <error-page> > <error-code>404</error-code> > <location>/404.jsp</location> > </error-page> > </web-app> > > > >>> Matt Raible <m...@raibledesigns.com> 5/5/2009 1:21 PM >>> > It looks like the value is present in web.xml: > > <filter> > <filter-name>struts</filter-name> > > <filter-class>org.apache.struts2.dispatcher.FilterDispatcher</filter-class> > <init-param> > <param-name>actionPackages</param-name> > <param-value>com.mycompany.app.webapp.action</param-value> > </init-param> > </filter> > > Are you creating your HelloWorldAction in this package? > > On Tue, May 5, 2009 at 2:15 PM, Marc StPierre <marc.stpie...@doj.ca.gov > >wrote: > > > This is what I ran today to get started. > > > > mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > > -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories= > > http://static.appfuse.org/releases -DarchetypeVersion=2.0.2 > > -DgroupId=com.mycompany.app -DartifactId=myproject > > > > >>> Matt Raible <m...@raibledesigns.com> 5/5/2009 1:10 PM >>> > > What version of AppFuse are you using? The codebehind plugin should be > > configured in any 2.0.x archetype. > > > > http://struts.apache.org/2.0.11/docs/codebehind-plugin.html > > > > Matt > > > > On Tue, May 5, 2009 at 2:08 PM, Marc StPierre <marc.stpie...@doj.ca.gov > > >wrote: > > > > > No it doesn't appear so. > > > > > > >>> Matt Raible <m...@raibledesigns.com> 5/5/2009 12:58 PM >>> > > > Do you have actionPackages defined in your web.xml? > > > > > > On Tue, May 5, 2009 at 1:42 PM, Marc StPierre < > marc.stpie...@doj.ca.gov > > > >wrote: > > > > > > > Matt, I was just wondering if I missed a step or something on the > > > > HelloWorld Tutorial. I followed all the steps only I used eclipse, > > which > > > > that was no problem. But when I went to run it I kept getting the > > > following > > > > error: > > > > > > > > ERROR [btpool0-1] ActionComponent.executeAction(259) | Could not > > execute > > > > action: default/hello > > > > There is no Action mapped for namespace default and action name > hello. > > - > > > > [unknown location] > > > > > > > > I resolved this by adding the following to struts.xml > > > > > > > > <action name="hello" > > > > class="com.mycompany.app.webapp.action.HelloAction"> > > > > <result name="input">/</result> > > > > <result name="success">/</result> > > > > </action> > > > > > > > > But I noticed you hadn't done that and the source code doesn't seem > to > > > have > > > > that in it. Any idea why I am having this problem, is there something > I > > > > might have missed in the tutorial. When I created the Action in > Eclipse > > > is > > > > there something that idea does behind the scenes that eclipse > > doesn't??? > > > > > > > > While I got it to work I am curious about the discrepancy, just from > a > > > > learning perspective. > > > > > > > > Thanks, Marc > > > > > > > > > > > > CONFIDENTIALITY NOTICE: This communication with its contents may > > contain > > > > confidential and/or legally privileged information. It is solely for > > the > > > use > > > > of the intended recipient(s). Unauthorized interception, review, use > or > > > > disclosure is prohibited and may violate applicable laws including > the > > > > Electronic Communications Privacy Act. If you are not the intended > > > > recipient, please contact the sender and destroy all copies of the > > > > communication. > > > > > > > > --------------------------------------------------------------------- > > > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > > > > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > > > > > > > > > > > > > > > CONFIDENTIALITY NOTICE: This communication with its contents may > contain > > > confidential and/or legally privileged information. It is solely for > the > > use > > > of the intended recipient(s). Unauthorized interception, review, use or > > > disclosure is prohibited and may violate applicable laws including the > > > Electronic Communications Privacy Act. If you are not the intended > > > recipient, please contact the sender and destroy all copies of the > > > communication. > > > > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > > > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > > > > > > > > > > CONFIDENTIALITY NOTICE: This communication with its contents may contain > > confidential and/or legally privileged information. It is solely for the > use > > of the intended recipient(s). Unauthorized interception, review, use or > > disclosure is prohibited and may violate applicable laws including the > > Electronic Communications Privacy Act. If you are not the intended > > recipient, please contact the sender and destroy all copies of the > > communication. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > > For additional commands, e-mail: users-h...@appfuse.dev.java.net > > > > > > > CONFIDENTIALITY NOTICE: This communication with its contents may contain > confidential and/or legally privileged information. It is solely for the use > of the intended recipient(s). Unauthorized interception, review, use or > disclosure is prohibited and may violate applicable laws including the > Electronic Communications Privacy Act. If you are not the intended > recipient, please contact the sender and destroy all copies of the > communication. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >