Pro Wicket has been written during Wicket 1.2 availability. Therefore you should not expect everything to work directly. If you use the wicket-quickstart download from Wicket 1.2 the example should match.
Instead of using this part from Pro Wicket, why don't you download the free bonus chapter from Wicket in Action, and use that as your starting point: it is up to date regarding Wicket 1.3, and has an explanation for both ant and maven users. You can download the bonus chapter (and 2 other free chapters) from the official companion site to Wicket in Action: http://wicketinaction.com/downloads/ Martijn On Tue, Mar 24, 2009 at 9:57 PM, Chenini, Mohamed <mchen...@geico.com> wrote: > OK! I guess I was mixing two examples scenarios: > - One from the Wicket website (quickstart) > - And the second from the "Pro Wicket" book, also (quickstart). > > I will work on it to make the example from the book works. > > Thanks for your feedback. > > Regards, > Mohamed > > -----Original Message----- > From: Jeremy Thomerson [mailto:jer...@wickettraining.com] > Sent: Tuesday, March 24, 2009 4:44 PM > To: users@wicket.apache.org > Subject: Re: newbie question: HTTP 404 on the quickstart project > > Because you're not using jetty-config.xml - look at Start.java - you are > mounting the app on / > > WebAppContext bb = new WebAppContext(); > bb.setServer(server); > bb.setContextPath("/"); > bb.setWar("src/main/webapp"); > > -- > Jeremy Thomerson > http://www.wickettraining.com > > > > On Tue, Mar 24, 2009 at 3:41 PM, Chenini, Mohamed > <mchen...@geico.com>wrote: > >> Why URL http://localhost:8081/quickstart >> >> Results on this error: >> >> HTTP ERROR: 404 >> NOT_FOUND >> RequestURI=/QuickStart >> >> >> While jetty-config.xml has this entry: >> >> >> <Call name="addWebApplication"> >> <Arg>/QuickStart</Arg> >> <Arg>src/webapp</Arg> >> </Call> >> >> -----Original Message----- >> From: Jeremy Thomerson [mailto:jer...@wickettraining.com] >> Sent: Tuesday, March 24, 2009 4:30 PM >> To: users@wicket.apache.org >> Subject: Re: newbie question: HTTP 404 on the quickstart project >> >> Okay - you found it. What's the question? >> >> -- >> Jeremy Thomerson >> http://www.wickettraining.com >> >> >> >> On Tue, Mar 24, 2009 at 3:28 PM, Chenini, Mohamed >> <mchen...@geico.com>wrote: >> >> > >> > Launching http://localhost:8081 produces this output: >> > >> > Wicket Quickstart Archetype Homepage >> > >> > If you see this message wicket is properly configured and running >> > >> > >> > >> > The jetty server is started and the console log shows this: >> > >> > >> > INFO - WebApplication - [WicketApplication] Started >> Wicket >> > version 1.4-rc2 in development mode >> > ******************************************************************** >> > *** WARNING: Wicket is running in DEVELOPMENT mode. *** >> > *** ^^^^^^^^^^^ *** >> > *** Do NOT deploy to your live server(s) without changing this. *** >> > *** See Application#getConfigurationType() for more information. *** >> > ******************************************************************** >> > INFO - log - Started >> > socketconnec...@0.0.0.0:8081 >> > >> > >> > >> > The Start.java code is as follows: >> > >> > >> > mport org.mortbay.jetty.Connector; >> > import org.mortbay.jetty.Server; >> > import org.mortbay.jetty.bio.SocketConnector; >> > import org.mortbay.jetty.webapp.WebAppContext; >> > >> > public class Start { >> > >> > public static void main(String[] args) throws Exception { >> > Server server = new Server(); >> > SocketConnector connector = new SocketConnector(); >> > >> > // Set some timeout options to make debugging easier. >> > connector.setMaxIdleTime(1000 * 60 * 60); >> > connector.setSoLingerTime(-1); >> > connector.setPort(8081); >> > server.setConnectors(new Connector[] { connector }); >> > >> > WebAppContext bb = new WebAppContext(); >> > bb.setServer(server); >> > bb.setContextPath("/"); >> > bb.setWar("src/main/webapp"); >> > >> > // START JMX SERVER >> > // MBeanServer mBeanServer = >> > ManagementFactory.getPlatformMBeanServer(); >> > // MBeanContainer mBeanContainer = new >> > MBeanContainer(mBeanServer); >> > // >> > server.getContainer().addEventListener(mBeanContainer); >> > // mBeanContainer.start(); >> > >> > server.addHandler(bb); >> > >> > try { >> > System.out.println(">>> STARTING EMBEDDED > JETTY >> > SERVER, PRESS ANY KEY TO STOP"); >> > server.start(); >> > System.in.read(); >> > System.out.println(">>> STOPPING EMBEDDED > JETTY >> > SERVER"); >> > // while (System.in.available() == 0) { >> > // Thread.sleep(5000); >> > // } >> > server.stop(); >> > server.join(); >> > } catch (Exception e) { >> > e.printStackTrace(); >> > System.exit(100); >> > } >> > } >> > } >> > >> > >> > -----Original Message----- >> > From: Jeremy Thomerson [mailto:jer...@wickettraining.com] >> > Sent: Tuesday, March 24, 2009 4:23 PM >> > To: users@wicket.apache.org >> > Subject: Re: newbie question: HTTP 404 on the quickstart project >> > >> > Try http://localhost:8080 and http://localhost:8081 >> > >> > The answer really will be in Start.java - see what port it is on and >> > where >> > the app is mounted. Then make that into a URL. >> > >> > -- >> > Jeremy Thomerson >> > http://www.wickettraining.com >> > >> > >> > >> > On Tue, Mar 24, 2009 at 3:19 PM, Chenini, Mohamed >> > <mchen...@geico.com>wrote: >> > >> > > I tried http://localhost:8081/quickstart >> > > >> > > And the content of web.xml is: >> > > >> > > >> > > <filter> >> > > <filter-name>wicket.QuickStart</filter-name> >> > > >> > > >> > >> > <filter-class>org.apache.wicket.protocol.http.WicketFilter</filter-class >> > > > >> > > <init-param> >> > > <param-name>applicationClassName</param-name> >> > > >> > > <param-value>com.mycompany.app.WicketApplication</param-value> >> > > </init-param> >> > > </filter> >> > > >> > > <filter-mapping> >> > > <filter-name>wicket.QuickStart</filter-name> >> > > <url-pattern>/*</url-pattern> >> > > </filter-mapping> >> > > >> > > >> > > -----Original Message----- >> > > From: Jeremy Thomerson [mailto:jer...@wickettraining.com] >> > > Sent: Tuesday, March 24, 2009 4:17 PM >> > > To: users@wicket.apache.org >> > > Subject: Re: newbie question: HTTP 404 on the quickstart project >> > > >> > > Have you tried going to http://localhost:8081/quickstart ? or > simply >> > > http://localhost:8081 ? >> > > >> > > -- >> > > Jeremy Thomerson >> > > http://www.wickettraining.com >> > > >> > > >> > > >> > > On Tue, Mar 24, 2009 at 3:09 PM, Chenini, Mohamed >> > > <mchen...@geico.com>wrote: >> > > >> > > > Hi, >> > > > >> > > > I setup the "quickstart" project using the imbedded jetty server >> and >> > > > started the jetty server from inside Eclipse (Right-click on >> > > > src/main/java and then click on "Run as" "Java Application" >> > > > >> > > > But when I enter on the browser (IE) this URL: >> > > > http://localhost:8081/QuickStart >> > > > >> > > > I got this error: >> > > > >> > > > >> > > > HTTP ERROR: 404 >> > > > NOT_FOUND >> > > > RequestURI=/QuickStart >> > > > I can send pieces of the code I am using if necessary to help >> > > determine >> > > > what is wrong. >> > > > >> > > > >> > > > >> > > > >> > > > >> > > > Thanks, >> > > > Mohamed >> > > > ==================== >> > > > This email/fax message is for the sole use of the intended >> > > > recipient(s) and may contain confidential and privileged >> > information. >> > > > Any unauthorized review, use, disclosure or distribution of this >> > > > email/fax is prohibited. If you are not the intended recipient, >> > please >> > > > destroy all paper and electronic copies of the original message. >> > > > >> > > ==================== >> > > This email/fax message is for the sole use of the intended >> > > recipient(s) and may contain confidential and privileged >> information. >> > > Any unauthorized review, use, disclosure or distribution of this >> > > email/fax is prohibited. If you are not the intended recipient, >> please >> > > destroy all paper and electronic copies of the original message. >> > > >> > ==================== >> > This email/fax message is for the sole use of the intended >> > recipient(s) and may contain confidential and privileged > information. >> > Any unauthorized review, use, disclosure or distribution of this >> > email/fax is prohibited. If you are not the intended recipient, > please >> > destroy all paper and electronic copies of the original message. >> > >> ==================== >> This email/fax message is for the sole use of the intended >> recipient(s) and may contain confidential and privileged information. >> Any unauthorized review, use, disclosure or distribution of this >> email/fax is prohibited. If you are not the intended recipient, please >> destroy all paper and electronic copies of the original message. >> > ==================== > This email/fax message is for the sole use of the intended > recipient(s) and may contain confidential and privileged information. > Any unauthorized review, use, disclosure or distribution of this > email/fax is prohibited. If you are not the intended recipient, please > destroy all paper and electronic copies of the original message. > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org