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.