<div dir="ltr">Hi Tomaz,<div><br></div><div>I have seen and confirmed that resources are present in right packages inside the packaged jar. But I am not able to get the resource served! :(</div><div><br></div><div>Thanks,</div><div>Venkatesha T R</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 3:20 PM, Tomaž Cerar <span dir="ltr">&lt;<a href="mailto:tomaz.cerar@gmail.com" target="_blank">tomaz.cerar@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Maybe problem is that you are not properly packaging resources in your jar.<br>For maven project that should be in main/java/resources (standard jar module type)<br></div>otherwise you can easily add any custom path as resource that will be packed into your war.<br><br>In short, open the resulting jar and see if resources are there.<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Sep 5, 2014 at 6:56 AM, Bill O&#39;Neil <span dir="ltr">&lt;<a href="mailto:bill@dartalley.com" target="_blank">bill@dartalley.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Could you provide a little more info.<div><br></div><div>1. Are the html pages in a non standard location that may not be added to the class path in the jar?</div><div>2. Are you setting a resource base path?</div><div><br></div><div>I just tested serving files from an executable jar and it works as expected for me.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div>On Fri, Sep 5, 2014 at 12:30 AM, Venkatesha T R <span dir="ltr">&lt;<a href="mailto:vworld4u@gmail.com" target="_blank">vworld4u@gmail.com</a>&gt;</span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div><div dir="ltr">Hi,<div><br></div><div>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.</div><div><br></div><div>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.</div><div><br></div><div>Thanks in advance..</div><span><font color="#888888"><div><div><br></div>-- <br><div><br></div><div><b><font color="#336666" size="4">Thanks and Regards</font></b></div><font color="#000099"><b>--------------------------------------------------------------------------------------------------------------------</b></font><div><b><font color="#333399">Venkatesh T R</font></b></div><div><b>9945040858</b></div><div><font color="#330099" face="&#39;comic sans ms&#39;, sans-serif">A Man with Many Dimensions...</font></div><div><br></div>
</div></font></span></div>
<br></div></div>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>
<br>_______________________________________________<br>
undertow-dev mailing list<br>
<a href="mailto:undertow-dev@lists.jboss.org" target="_blank">undertow-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/undertow-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/undertow-dev</a><br></blockquote></div><br></div>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div><br></div><div><b><font size="4" color="#336666">Thanks and Regards</font></b></div><font color="#000099"><b>--------------------------------------------------------------------------------------------------------------------</b></font><div><b><font color="#333399">Venkatesh T R</font></b></div><div><b>9945040858</b></div><div><font color="#330099" face="&#39;comic sans ms&#39;, sans-serif">A Man with Many Dimensions...</font></div><div><br></div>
</div>