You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by "Chenini, Mohamed " <MC...@geico.com> on 2009/03/24 21:09:08 UTC

newbie question: HTTP 404 on the quickstart project

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.

RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
Thanks for this advice. I agree I should perhaps switch to "Wicket in Action" since I do have the entire book in addition to the chapter 15 bonus.

Regards,
Mohamed

-----Original Message-----
From: Martijn Dashorst [mailto:martijn.dashorst@gmail.com] 
Sent: Wednesday, March 25, 2009 9:29 AM
To: users@wicket.apache.org
Subject: Re: newbie question: HTTP 404 on the quickstart project

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 <MC...@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:jeremy@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
> <MC...@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:jeremy@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
>> <MC...@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
>> > SocketConnector@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:jeremy@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
>> > <MC...@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:jeremy@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
>> > > <MC...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

====================
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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: newbie question: HTTP 404 on the quickstart project

Posted by Martijn Dashorst <ma...@gmail.com>.
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 <MC...@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:jeremy@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
> <MC...@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:jeremy@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
>> <MC...@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
>> > SocketConnector@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:jeremy@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
>> > <MC...@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:jeremy@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
>> > > <MC...@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-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
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:jeremy@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
<MC...@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:jeremy@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
> <MC...@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
> > SocketConnector@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:jeremy@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
> > <MC...@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:jeremy@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
> > > <MC...@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-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: newbie question: HTTP 404 on the quickstart project

Posted by Jeremy Thomerson <je...@wickettraining.com>.
Why do you so badly want it to be on "/QuickStart"?  It was working for you
on "/" - now start learning Wicket with it - that was the intention of the
quickstart.

--
Jeremy Thomerson
http://www.wickettraining.com



On Wed, Mar 25, 2009 at 4:01 PM, Chenini, Mohamed <MC...@geico.com>wrote:

> Hi,
>
> Can you, please, be more explicit when you said " Because you're not
> using jetty-config.xml "
>
> I changed   bb.setContextPath("/"); to bb.setContextPath("/QuickStart");
>
> And the result is the same.
>
> But I do not see how can I refer to the "jetty-config.xml" in the
> Start.java file.
>
> Regards.
> Mohamed
>
>
> -----Original Message-----
> From: Jeremy Thomerson [mailto:jeremy@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
> <MC...@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:jeremy@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
> > <MC...@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
> > > SocketConnector@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:jeremy@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
> > > <MC...@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:jeremy@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
> > > > <MC...@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.
>

RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
Hi,

Can you, please, be more explicit when you said " Because you're not
using jetty-config.xml "

I changed   bb.setContextPath("/"); to bb.setContextPath("/QuickStart");

And the result is the same.

But I do not see how can I refer to the "jetty-config.xml" in the
Start.java file.

Regards.
Mohamed


-----Original Message-----
From: Jeremy Thomerson [mailto:jeremy@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
<MC...@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:jeremy@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
> <MC...@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
> > SocketConnector@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:jeremy@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
> > <MC...@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:jeremy@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
> > > <MC...@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.

Re: newbie question: HTTP 404 on the quickstart project

Posted by Jeremy Thomerson <je...@wickettraining.com>.
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 <MC...@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:jeremy@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
> <MC...@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
> > SocketConnector@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:jeremy@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
> > <MC...@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:jeremy@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
> > > <MC...@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.
>

RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
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:jeremy@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
<MC...@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
> SocketConnector@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:jeremy@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
> <MC...@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:jeremy@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
> > <MC...@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.

Re: newbie question: HTTP 404 on the quickstart project

Posted by Jeremy Thomerson <je...@wickettraining.com>.
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 <MC...@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
> SocketConnector@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:jeremy@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
> <MC...@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:jeremy@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
> > <MC...@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.
>

RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
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
SocketConnector@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:jeremy@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
<MC...@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:jeremy@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
> <MC...@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.

Re: newbie question: HTTP 404 on the quickstart project

Posted by Jeremy Thomerson <je...@wickettraining.com>.
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 <MC...@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:jeremy@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
> <MC...@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.
>

RE: newbie question: HTTP 404 on the quickstart project

Posted by "Chenini, Mohamed " <MC...@geico.com>.
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:jeremy@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
<MC...@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.

Re: newbie question: HTTP 404 on the quickstart project

Posted by Jeremy Thomerson <je...@wickettraining.com>.
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 <MC...@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.
>