JIRA issue & mvn clean, I'd say... /Gwyn On Thu, Jun 12, 2008 at 5:28 PM, Frank Silbermann < [EMAIL PROTECTED]> wrote:
> Well, I guess the only thing to do is try and minimally modify the > QuickStart project with code that exhibits the problem and let others > try it. Should I submit it as a JIRA issue (to be closed when it is > determined what I'm doing wrong), or should I attach the .zip to a > mailing list message? Should I "mvn clean" it before zipping it to save > space? > > -----Original Message----- > From: Martijn Dashorst [mailto:[EMAIL PROTECTED] > Sent: Thursday, June 12, 2008 9:11 AM > To: users@wicket.apache.org > Subject: Re: Modifying QuickStart to serve static content in embedded > Jetty (was: RE: Tomcat 5.5.9 isn't running Quickstart) > > No, because the JSP servlet is needed to compile JSPs into servlet code. > An unmodified configuration generated by the Wicket quickstart on our > website serves static images perfectly well. You really are doing > something funky. > > Martijn > > On Thu, Jun 12, 2008 at 4:07 PM, Frank Silbermann > <[EMAIL PROTECTED]> wrote: > > Yes, the QuickStart itself works. As for your ability to serve > > images, it might depend whether these are images stored with the .html > > > and .java files for Wicket to pick up, versus images that are stored > > as static objects. I googled the INFO - log warning " - NO JSP > > Support for /, did not find org.apache.jasper.servlet.JspServlet" > > > > and found http://code.google.com/p/run-jetty-run/wiki/GettingStarted > > about running Wicket projects with Jetty in Eclipse. It contains the > > following comments: > > > > Comment by angelo.mariano, Jan 02, 2008 > > When I try to launch it, I get the following error: 2008-01-02 > > 10:11:55.191::INFO: Logging to STDERR > > via org.mortbay.log.StdErrLog? 2008-01-02 10:11:55.300::INFO: > > jetty-6.1.6 2008-01-02 > > 10:11:55.441::INFO: NO JSP Support for /, did not find > > org.apache.jasper.servlet.JspServlet? > > 2008-01-02 10:11:55.659:/:INFO: default: init 2008-01-02 > > 10:11:55.659:/:INFO: jsp: init 2008-01-02 > > 10:11:55.691::INFO: Started [EMAIL PROTECTED]:8080 > > > > and then I am not able to compile jsp. Do you know how to solve this > > > problem? Thank you > > > > Comment by eelco.hillenius, Jan 02, 2008 > > Ah, I probably have to include the appropriate libs to turn JSP > > support on. Could you please file a > > ticket? I'll get to it shortly. > > > > > > > > Eelco, could that discussion have anything to do with my problem? > > > > -----Original Message----- > > From: Martijn Dashorst [mailto:[EMAIL PROTECTED] > > Sent: Thursday, June 12, 2008 1:23 AM > > To: users@wicket.apache.org > > Subject: Re: Tomcat 5.5.9 isn't running Quickstart > > > > 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.onFormSubmitte > >> d > >> () > >> ] > >> INFO - RequestListenerInterface - registered listener interface > >> [RequestListenerInterface name=IFormSubmitListener, method=public > >> abstract void > >> org.apache.wicket.markup.html.form.IFormSubmitListener.onFormSubmitte > >> d > >> () > >> ] > >> 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.onSelectionChang > >> e > >> d( > >> )] > >> INFO - RequestListenerInterface - registered listener interface > >> [RequestListenerInterface name=IOnChangeListener, method=public > >> abstract void > >> org.apache.wicket.markup.html.form.IOnChangeListener.onSelectionChang > >> e > >> d( > >> )] > >> 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# > >> a > >> 17 > >> 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] > > > > > > --------------------------------------------------------------------- > > 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] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >