Re: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Jeremy Thomerson
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 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: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
> 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:
> >
> >
> > 
> >/QuickStart
> >src/webapp
> > 
> >
> > -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
> > 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();
> > >

RE: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Chenini, Mohamed
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: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
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:
>
>
> 
>/QuickStart
>src/webapp
> 
>
> -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
> 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();
> >   

RE: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Chenini, Mohamed
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.dasho...@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  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
> 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:
>>
>>
>> 
>>    /QuickStart
>>    src/webapp
>> 
>>
>> -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
>> 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);
>> >    

Re: newbie question: HTTP 404 on the quickstart project

2009-03-25 Thread Martijn Dashorst
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  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
> 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:
>>
>>
>> 
>>    /QuickStart
>>    src/webapp
>> 
>>
>> -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
>> 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");
>> >
>> >      

RE: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Chenini, Mohamed
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
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:
>
>
> 
>/QuickStart
>src/webapp
> 
>
> -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
> 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.

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
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 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:
>
>
> 
>/QuickStart
>src/webapp
> 
>
> -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
> 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

RE: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Chenini, Mohamed
Why URL http://localhost:8081/quickstart

Results on this error:

HTTP ERROR: 404
NOT_FOUND
RequestURI=/QuickStart


While jetty-config.xml has this entry:



/QuickStart
src/webapp


-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
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
> wrote:
>
> > I tried http://localhost:8081/quickstart
> >
> > And the content of web.xml is:
> >
> >
> > 
> >wicket.QuickStart
> >
> >
>
org.apache.wicket.protocol.http.WicketFilter > >
> >
> >applicationClassName
> >
> > com.mycompany.app.WicketApplication
> >
> > 
> >
> > 
> >  wicket.QuickStart
> >/*
> > 
> >
> >
> > -Original Message-
> > From: Jeremy Thomerson [mailto:jer...@wickettraining.com]
> > Sent: Tuesday, March 24, 2009 4:17 PM
> > To: users@wicket.apache.or

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
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 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
> wrote:
>
> > I tried http://localhost:8081/quickstart
> >
> > And the content of web.xml is:
> >
> >
> > 
> >wicket.QuickStart
> >
> >
> org.apache.wicket.protocol.http.WicketFilter > >
> >
> >applicationClassName
> >
> > com.mycompany.app.WicketApplication
> >
> > 
> >
> > 
> >  wicket.QuickStart
> >/*
> > 
> >
> >
> > -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
> > wrote:
> >
> > &g

RE: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Chenini, Mohamed

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
wrote:

> I tried http://localhost:8081/quickstart
>
> And the content of web.xml is:
>
>
> 
>wicket.QuickStart
>
>
org.apache.wicket.protocol.http.WicketFilter >
>
>applicationClassName
>
> com.mycompany.app.WicketApplication
>
> 
>
> 
>  wicket.QuickStart
>/*
> 
>
>
> -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
> 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 mess

Re: newbie question: HTTP 404 on the quickstart project

2009-03-24 Thread Jeremy Thomerson
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 wrote:

> I tried http://localhost:8081/quickstart
>
> And the content of web.xml is:
>
>
> 
>wicket.QuickStart
>
> org.apache.wicket.protocol.http.WicketFilter >
>
>applicationClassName
>
> com.mycompany.app.WicketApplication
>
> 
>
> 
>  wicket.QuickStart
>/*
> 
>
>
> -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
> 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

2009-03-24 Thread Chenini, Mohamed
I tried http://localhost:8081/quickstart

And the content of web.xml is:



wicket.QuickStart

org.apache.wicket.protocol.http.WicketFilter

applicationClassName

com.mycompany.app.WicketApplication




  wicket.QuickStart
/*
   


-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
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

2009-03-24 Thread Jeremy Thomerson
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 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.
>