[undertow-dev] Does ClassPathResourceManager work to serve a html file which is inside a packaged jar

Bill O'Neil bill at dartalley.com
Fri Sep 5 00:56:46 EDT 2014


Could you provide a little more info.

1. Are the html pages in a non standard location that may not be added to
the class path in the jar?
2. Are you setting a resource base path?

I just tested serving files from an executable jar and it works as expected
for me.


On Fri, Sep 5, 2014 at 12:30 AM, Venkatesha T R <vworld4u at gmail.com> wrote:

> Hi,
>
> I am seeing this behavior in undertow - I have written a simple web
> application using undertow which processes 3 requests and provides a single
> (may be two in future) page (s) to see. These pages are just html pages and
> 3 requests are GET/POST requests. I am using ClassPathResourceManager class
> to serve the index.html file which is present inside classpath in one of my
> package (I am using a maven project). It works fine when I run this
> application in the Eclipse environment (where there is no jar used for
> running). But when I package this application as a jar file and run it in
> standalone mode, ClassPathResourceManager fails to pick the resource and
> serve it.
>
> ClassPathResourceManager reports Resource instance, but I see a blank page
> (404) error when I see it in browser. If somebody has any clue about what
> is going on, or knows about this possible bug, please let me know. It will
> help me a lot.
>
> Thanks in advance..
>
> --
>
> *Thanks and Regards*
>
> *--------------------------------------------------------------------------------------------------------------------*
> *Venkatesh T R*
> *9945040858*
> A Man with Many Dimensions...
>
>
> _______________________________________________
> undertow-dev mailing list
> undertow-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/undertow-dev
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20140905/96f3cb18/attachment.html 


More information about the undertow-dev mailing list