Friends,

I have a Wicket page using the upload progress bar:

  <span wicket:id="progress">[[upload progress bar]]</span>

  form.add(new UploadProgressBar("progress", form, fileUpload));

Dependencies are declared normally in Maven:

    <dependency>
      <groupId>org.apache.wicket</groupId>
      <artifactId>wicket-core</artifactId>
      <version>7.0.0-M3</version>
    </dependency>
    <dependency>
      <groupId>org.apache.wicket</groupId>
      <artifactId>wicket-auth-roles</artifactId>
      <version>7.0.0-M3</version>
    </dependency>
    <dependency>
      <groupId>org.apache.wicket</groupId>
      <artifactId>wicket-extensions</artifactId>
      <version>7.0.0-M3</version>
    </dependency>

We're using embedded Jetty 9.1.0.v20131115. Running from my IDE (Eclipse) this works just fine. But when our team creates a jar file and distributes the application with an installer, just tried to browser to the page in question gives us a MissingResourceException: Unable to find property: 'UploadProgressBar.starting' (see below).

No doubt there's something simple I'm forgetting. Any suggestions? Here's the stack trace:

2014-09-22 07:40:49 ERROR (DefaultExceptionMapper) [2014-09-22 07:40:49,433] - org.apache.wicket.DefaultExceptionMapper.
internalMap(DefaultExceptionMapper.java:128): Unexpected error occurred
org.apache.wicket.WicketRuntimeException: Exception in rendering component: [HtmlHeaderContainer [Component id = _header
_0]]
at org.apache.wicket.Component.internalRenderComponent(Component.java:2566) at org.apache.wicket.MarkupContainer.onRender(MarkupContainer.java:1550)
        at org.apache.wicket.Component.internalRender(Component.java:2357)
        at org.apache.wicket.Component.render(Component.java:2285)
at org.apache.wicket.MarkupContainer.renderNext(MarkupContainer.java:1418) at org.apache.wicket.MarkupContainer.renderAll(MarkupContainer.java:1611)
        at org.apache.wicket.Page.onRender(Page.java:879)
        at org.apache.wicket.markup.html.WebPage.onRender(WebPage.java:142)
        at org.apache.wicket.Component.internalRender(Component.java:2357)
        at org.apache.wicket.Component.render(Component.java:2285)
        at org.apache.wicket.Page.renderPage(Page.java:1018)
at org.apache.wicket.request.handler.render.WebPageRenderer.renderPage(WebPageRenderer.java:122) at org.apache.wicket.request.handler.render.WebPageRenderer.respond(WebPageRenderer.java:247) at org.apache.wicket.core.request.handler.RenderPageRequestHandler.respond(RenderPageRequestHandler.java:175) at org.apache.wicket.request.cycle.RequestCycle$HandlerExecutor.respond(RequestCycle.java:837) at org.apache.wicket.request.RequestHandlerStack.execute(RequestHandlerStack.java:64) at org.apache.wicket.request.cycle.RequestCycle.execute(RequestCycle.java:265) at org.apache.wicket.request.cycle.RequestCycle.processRequest(RequestCycle.java:222) at org.apache.wicket.request.cycle.RequestCycle.processRequestAndDetach(RequestCycle.java:293) at org.apache.wicket.protocol.http.WicketFilter.processRequestCycle(WicketFilter.java:261) at org.apache.wicket.protocol.http.WicketFilter.processRequest(WicketFilter.java:203) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:284) at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1539) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:524) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:544) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:221) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1110) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:453) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1044) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:459)
at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:280) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:229) at org.eclipse.jetty.io.AbstractConnection$1.run(AbstractConnection.java:505) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:607) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:536)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.MissingResourceException: Unable to find property: 'UploadProgressBar.starting' for component: form :progress [class=org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar]. Locale: null, style: null

        at org.apache.wicket.Localizer.getString(Localizer.java:237)
        at org.apache.wicket.Localizer.getString(Localizer.java:170)
at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:427) at org.apache.wicket.model.StringResourceModel.getString(StringResourceModel.java:401) at org.apache.wicket.extensions.ajax.markup.html.form.upload.UploadProgressBar.renderHead(UploadProgressBar.java
:236)
        at org.apache.wicket.Component.renderHead(Component.java:4459)
at org.apache.wicket.Component.internalRenderHead(Component.java:2692) at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy$1.component(ChildFirstHeaderRenderStra
tegy.java:85)
at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:96) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:87) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:87) at org.apache.wicket.markup.renderStrategy.DeepChildFirstVisitor.visit(DeepChildFirstVisitor.java:51) at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderChildHeaders(ChildFirstHeaderRen
derStrategy.java:78)
at org.apache.wicket.markup.renderStrategy.ChildFirstHeaderRenderStrategy.renderHeader(ChildFirstHeaderRenderStr
ategy.java:57)
at org.apache.wicket.markup.html.internal.HtmlHeaderContainer.onComponentTagBody(HtmlHeaderContainer.java:170) at org.apache.wicket.markup.html.panel.DefaultMarkupSourcingStrategy.onComponentTagBody(DefaultMarkupSourcingStr
ategy.java:71)
at org.apache.wicket.Component.internalRenderComponent(Component.java:2542)
        ... 39 more

Thanks,

Garret

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to