The quickstart works for me without modifications. It serves images,
etc. out of the box, every time.

Martijn

On Thu, Jun 12, 2008 at 12:54 AM, Frank Silbermann
<[EMAIL PROTECTED]> wrote:
> Searching for some clue as to why my modification of the QuickStart
> application is serving images when run in Tomcat but not when running in
> embedded Jetty via Eclipse, I found:
>
> http://osdir.com/ml/java.jetty.support/2003-03/msg00045.html -- titled
> "Re: Re: jetty can't find images: msg#00045"
>
> It says, "You need the webdefaults file because it sets up the Default
> servlet which is what serves static resources like images.  You can also
> manually add the Default servlet if you want to avoid
> a webdefaults.xml file."
>
> I think this is a clue.  Looking at the console log when running Jetty
> in Eclipse I see:
>
> INFO  - log                        - NO JSP Support for /, did not find
> org.apache.jasper.servlet.JspServlet
>
> So what do I need to do to make it set up the Default servlet?  Is there
> a line I need to insert into Start.java to make it read the
> webdefaults.xml file?  I don't even have a webdefaults.xml file --
> unless it's buried somewhere inside one of the Jetty jars.
>
> Here's the complete console log when debugging Start.java to bring up
> Jetty (as demonstrated in
> http://herebebeasties.com/2007-10-07/wicket-quickstart/).
>
> INFO  - log                        - Logging to
> org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via
> org.mortbay.log.Slf4jLog
>>>> STARTING EMBEDDED JETTY SERVER, PRESS ANY KEY TO STOP
> INFO  - log                        - jetty-6.1.4
> INFO  - log                        - NO JSP Support for /, did not find
> org.apache.jasper.servlet.JspServlet
> INFO  - log                        - No Transaction manager found - if
> your webapp requires one, please configure one.
> INFO  - Application                - [TestApplication] init: Wicket core
> library initializer
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IBehaviorListener, method=public abstract
> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IBehaviorListener, method=public abstract
> void org.apache.wicket.behavior.IBehaviorListener.onRequest()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IFormSubmitListener, method=public
> abstract void
> org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()
> ]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IFormSubmitListener, method=public
> abstract void
> org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitted()
> ]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=ILinkListener, method=public abstract
> void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=ILinkListener, method=public abstract
> void org.apache.wicket.markup.html.link.ILinkListener.onLinkClicked()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IOnChangeListener, method=public abstract
> void
> org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged(
> )]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IOnChangeListener, method=public abstract
> void
> org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChanged(
> )]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IRedirectListener, method=public abstract
> void org.apache.wicket.IRedirectListener.onRedirect()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IRedirectListener, method=public abstract
> void org.apache.wicket.IRedirectListener.onRedirect()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IResourceListener, method=public abstract
> void org.apache.wicket.IResourceListener.onResourceRequested()]
> INFO  - RequestListenerInterface   - registered listener interface
> [RequestListenerInterface name=IResourceListener, method=public abstract
> void org.apache.wicket.IResourceListener.onResourceRequested()]
> INFO  - Application                - [TestApplication] init: Wicket
> extensions initializer
> INFO  - WebApplication             - [TestApplication] Started Wicket
> version 1.3.3 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
> [EMAIL PROTECTED]:8080
>
>
>
>
>
> -----Original Message-----
> From: Frank Silbermann [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2008 4:41 PM
> To: users@wicket.apache.org
> Subject: RE: Tomcat 5.5.9 isn't running Quickstart
>
> It's the identical .war file which shows the images when run in Tomcat 6
> but not when run in Jetty configured as per the QuickStart application.
> The actual HTML in the rendered pages is exactly what I showed you --
> Wicket generated it using AttributeModifier, and I copied the generated
> HTML by doing "show source" in my browser.
>
> I'm guessing the Jetty has some default security not done in Tomcat that
> is "protecting" my image files, which I need to override somehow.  Or
> maybe it is not automatically recognizing .png files as a MIME-type.  Or
> maybe there's something else that must be configured in Jetty to tell it
> to look in the webapp folder for static content.  I posted about this on
> the jetty-support mailing list last week
> (http://www.nabble.com/-Jetty-support--Embedded-jetty-td8400457.html#a17
> 679320), but no one answered it.
>
> -----Original Message-----
> From: Gwyn Evans [mailto:[EMAIL PROTECTED]
> Sent: Wednesday, June 11, 2008 3:51 PM
> To: users@wicket.apache.org
> Subject: Re: Tomcat 5.5.9 isn't running Quickstart
>
> On Wed, Jun 11, 2008 at 9:00 PM, Frank Silbermann <
> [EMAIL PROTECTED]> wrote:
>
>
>> My application uses images much as does in Wicket's "images" example.
>
>> I have some image files (e.g. "image1.png") stored directly inside the
>
>> "webapp" folder, and my application references the images by
>> generating HTML like so:
>>
> ...
>
>>          < img wicket:id="picture" src="image1.png" alt="Picture"/ >
>>
>> The image appears when I run the application in Tomcat, but not when I
>
>> run it in Eclipse with Jetty
>
> ...
>
> That seems odd to me - the same web-app?  I'm probably way off base, but
> I'd be double-checking where it's actually serving it from & the HTML in
> the rendered pages...
>
> /Gwyn
>
>
>> ...
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>



-- 
Become a Wicket expert, learn from the best: http://wicketinaction.com
Apache Wicket 1.3.3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.3

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to