I encountered Error #1, but it was because I created the PersonAction.java file in src/main/webapp instead of src/main/java. Moving the file over fixed the problem, of course reading the documentation correctly in the first place would have been helpful.
-- david Matt Raible-3 wrote: > > On 11/6/06, John Haigh <[EMAIL PROTECTED]> wrote: >> Hi, >> >> I get the following build errors in the tutorial "Build errors in Part >> III: Creating Actions and JSPs - A HowTo for creating WebWork Actions >> and JSPs in an AppFuse project." I have found the fixes, but can you >> confirm if these fixes are the best workaround? >> >> Error #1 >> >> The following imports are missing in PersonActionTest.java >> >> Fix: >> import org.appfuse.model.Person; >> import org.appfuse.service.PersonManager; >> >> ......where you get 2 build errors: cannot resolve symbol Person >> person = new Person(); >> >> >> Error #2 >> >> I get the build error "Attribute 'singleton' is not allowed to appear >> in element 'bean'. >> >> <bean id="personAction" class="org.appfuse.webapp.action.PersonAction" >> singleton="false"> >> <property name="personManager" ref="personManager"/> >> </bean> >> >> ....and when changing from singleton to scope="prototype" build >> >> Fix: >> <bean id="personAction" >> class="org.appfuse.webapp.action.PersonAction" scope="prototype"> >> <property name="personManager" ref="personManager"/> >> </bean> >> >> Thank You, >> >> John Haigh >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > #2 should be fixed in the documentation. As for #1, that should work > if you created the Person class in the correct package. > > Matt > > -- > http://raibledesigns.com > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/Build-errors-in-Part-III%3A-Creating-Actions-and-JSPs---A-HowTo-for-creating-WebWork-Actions-and-JSPs-in-an-AppFuse-project.-tf2583249s2369.html#a9599282 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]