From ooo_saturn7 at mail.ru Thu May 3 07:24:55 2018 From: ooo_saturn7 at mail.ru (=?UTF-8?B?QWxleCBTdmlyaWRvdg==?=) Date: Thu, 03 May 2018 14:24:55 +0300 Subject: [undertow-dev] =?utf-8?q?Undertow_and_JPMS?= Message-ID: <1525346695.485304920@f375.i.mail.ru> Hi all, Could anyone say if there are any plans to migrate?Undertow to JPMS. I mean to make?Undertow modular according to JPMS. -- Best regards. Alex Sviridov -- Alex Sviridov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180503/29874f47/attachment.html From aditya.sanas at gmail.com Fri May 4 08:41:52 2018 From: aditya.sanas at gmail.com (aditya sanas) Date: Fri, 4 May 2018 18:11:52 +0530 Subject: [undertow-dev] Configure Undertow to use ViewResolver similar to Spring MVC and serve static content Message-ID: Currently I?m doing a sample project where I?m trying to configure Undertow server to use Spring MVC model. I?m able to register dispatcher servlet, context listeners, and able to configure application so that I can use spring controllers instead of servlets to process requests from browsers. So I can return JSON/XML or Plain text if I use RestController. The thing where I?m currently stuck is I?m not able to serve a static content and cannot configure a Spring?s view resolver to return a view instead of plain text. PS - I?m using Undertow as embedded server into my application and producing a standalone executable jar as a build output. Thanks, Aditya Sanas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180504/f0f7d07a/attachment.html From sdouglas at redhat.com Mon May 7 17:38:44 2018 From: sdouglas at redhat.com (Stuart Douglas) Date: Tue, 8 May 2018 07:38:44 +1000 Subject: [undertow-dev] Configure Undertow to use ViewResolver similar to Spring MVC and serve static content In-Reply-To: References: Message-ID: It sounds like you need to configure a resource manager to serve static content. You need to call DeploymentInfo.setResourceManager() with a resource manager than can resolve the static content you want to serve, if it is just plain files on the file system you should just use PathResourceManager. I am not sure about the view resolver, it sounds like you might be missing a servlet or filter than spring expects to be configured. Stuart On Fri, May 4, 2018 at 7:30 PM, aditya sanas wrote: > Hello Undertow Dev Team, > > > > Currently I?m doing a sample project where I?m trying to configure > Undertow server to use Spring MVC model. > > I?m able to register dispatcher servlet, context listeners, and able to > configure application so that I can use spring controllers instead of > servlets to process requests from browsers. So I can return JSON/XML or > Plain text if I use RestController. > > > > The thing where I?m currently stuck is I?m not able to serve a static > content and cannot configure a Spring?s view resolver to return a view > instead of plain text. > > > > PS - I?m using Undertow as embedded server into my application and > producing a standalone executable jar as a build output. > > > > Thanks, > > Aditya Sanas > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180508/8e2a3871/attachment.html From sdouglas at redhat.com Mon May 7 17:42:42 2018 From: sdouglas at redhat.com (Stuart Douglas) Date: Tue, 8 May 2018 07:42:42 +1000 Subject: [undertow-dev] Undertow and JPMS In-Reply-To: <1525346695.485304920@f375.i.mail.ru> References: <1525346695.485304920@f375.i.mail.ru> Message-ID: Eventually yes, but we don't have anyone looking into it at the moment, and it is not a priority at the moment. Stuart On Thu, May 3, 2018 at 9:24 PM, Alex Sviridov wrote: > Hi all, > > Could anyone say if there are any plans to migrate Undertow to JPMS. I mean > to make Undertow modular according to JPMS. > > -- > Best regards. Alex Sviridov > > > -- > Alex Sviridov > > _______________________________________________ > 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/20180508/4cf3fb4b/attachment.html From aditya.sanas at gmail.com Tue May 8 01:59:15 2018 From: aditya.sanas at gmail.com (aditya sanas) Date: Tue, 8 May 2018 11:29:15 +0530 Subject: [undertow-dev] Need recommendation on using embedded undertow or migrate application to use springboot's undertow Message-ID: Hello Team Undertow and Stuart , Currently I m trying to create a executable jar file which would have embedded undertow configured. I was able to register controllers and dispatcher servlet to the server, but could not configure the view resolvers to return a view, such as jsp or thymeleaf. I did not found much help on configuring thymeleaf with undertow, so currently stuck. I would like to know, what you would recommend, should I continue trying to use embedded undertow server or should I migrate my current spring mvc application to spring boot. Appreciated your response. Thanks, Aditya Sanas -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180508/7ca2863a/attachment.html From ooo_saturn7 at mail.ru Tue May 8 03:49:19 2018 From: ooo_saturn7 at mail.ru (=?UTF-8?B?QWxleCBTdmlyaWRvdg==?=) Date: Tue, 08 May 2018 10:49:19 +0300 Subject: [undertow-dev] =?utf-8?q?Undertow_and_JPMS?= In-Reply-To: References: <1525346695.485304920@f375.i.mail.ru> Message-ID: <1525765759.689970234@f465.i.mail.ru> Hi Stuart, Thank you for your answer. Can you say when approximately this issue can be in priority? BTW I have opened an issue about it https://issues.jboss.org/browse/UNDERTOW-1344. ???????, 8 ??? 2018, 0:42 +03:00 ?? Stuart Douglas : > >Eventually yes, but we don't have anyone looking into it at the moment, and it is not a priority at the moment.? > >Stuart > >On Thu, May 3, 2018 at 9:24 PM, Alex Sviridov < ooo_saturn7 at mail.ru > wrote: >>Hi all, >> >>Could anyone say if there are any plans to migrate?Undertow to JPMS. I mean >>to make?Undertow modular according to JPMS. >> >>-- >>Best regards. Alex Sviridov >> >> >>-- >>Alex Sviridov >>_______________________________________________ >>undertow-dev mailing list >>undertow-dev at lists.jboss.org >>https://lists.jboss.org/mailman/listinfo/undertow-dev > -- Alex Sviridov -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180508/bbfdb960/attachment-0001.html From sdouglas at redhat.com Tue May 8 07:14:10 2018 From: sdouglas at redhat.com (Stuart Douglas) Date: Tue, 8 May 2018 21:14:10 +1000 Subject: [undertow-dev] Need recommendation on using embedded undertow or migrate application to use springboot's undertow In-Reply-To: References: Message-ID: On Tue, May 8, 2018 at 3:59 PM, aditya sanas wrote: > Hello Team Undertow and Stuart , > > Currently I m trying to create a executable jar file which would have > embedded undertow configured. I was able to register controllers and > dispatcher servlet to the server, but could not configure the view > resolvers to return a view, such as jsp or thymeleaf. > For thymeleaf it looks like you just need to write you own filter, and add that filter to the DeploymentInfo, something like this from the example app: https://github.com/thymeleaf/thymeleafexamples-gtvg/blob/3.0-master/src/main/java/thymeleafexamples/gtvg/web/filter/GTVGFilter.java For JSP you need to use the Jastow project, and follow the docs at: http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#jsp > > I did not found much help on configuring thymeleaf with undertow, so > currently stuck. > > I would like to know, what you would recommend, should I continue trying > to use embedded undertow server or should I migrate my current spring mvc > application to spring boot. > Spring boot+Undertow will also be using embedded Undertow. If your app is already based on Spring technologies it may be easier to do that than to try and reinvent the wheel. Stuart > > Appreciated your response. > > Thanks, > Aditya Sanas > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180508/55cbfdab/attachment.html From aditya.sanas at gmail.com Thu May 10 01:10:26 2018 From: aditya.sanas at gmail.com (aditya sanas) Date: Thu, 10 May 2018 10:40:26 +0530 Subject: [undertow-dev] Need recommendation on using embedded undertow or migrate application to use springboot's undertow In-Reply-To: References: Message-ID: Hello Stuart, Thanks for your response, we have decided to go with Spring boot + undertow. Regards, Aditya Sanas On Tue, May 8, 2018 at 4:44 PM, Stuart Douglas wrote: > > > On Tue, May 8, 2018 at 3:59 PM, aditya sanas > wrote: > >> Hello Team Undertow and Stuart , >> >> Currently I m trying to create a executable jar file which would have >> embedded undertow configured. I was able to register controllers and >> dispatcher servlet to the server, but could not configure the view >> resolvers to return a view, such as jsp or thymeleaf. >> > > For thymeleaf it looks like you just need to write you own filter, and add > that filter to the DeploymentInfo, something like this from the example app: > > https://github.com/thymeleaf/thymeleafexamples-gtvg/blob/3. > 0-master/src/main/java/thymeleafexamples/gtvg/web/filter/GTVGFilter.java > > For JSP you need to use the Jastow project, and follow the docs at: > > http://undertow.io/undertow-docs/undertow-docs-2.0.0/index.html#jsp > > >> >> I did not found much help on configuring thymeleaf with undertow, so >> currently stuck. >> >> I would like to know, what you would recommend, should I continue trying >> to use embedded undertow server or should I migrate my current spring mvc >> application to spring boot. >> > > Spring boot+Undertow will also be using embedded Undertow. If your app is > already based on Spring technologies it may be easier to do that than to > try and reinvent the wheel. > > Stuart > > >> >> Appreciated your response. >> >> Thanks, >> Aditya Sanas >> > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180510/514e439f/attachment.html From aditya.sanas at gmail.com Thu May 10 01:12:20 2018 From: aditya.sanas at gmail.com (aditya sanas) Date: Thu, 10 May 2018 10:42:20 +0530 Subject: [undertow-dev] Configure Undertow to use ViewResolver similar to Spring MVC and serve static content In-Reply-To: References: Message-ID: Hello Stuart, I tried in many ways for this, but it seems my dispatcher servlet settings is being considered always and not allowing to serve static content. Anyways we decided to move to Springboot + undertow. Thanks, Aditya Sanas On Tue, May 8, 2018 at 3:08 AM, Stuart Douglas wrote: > It sounds like you need to configure a resource manager to serve static > content. > > You need to call DeploymentInfo.setResourceManager() with a resource > manager than can resolve the static content you want to serve, if it is > just plain files on the file system you should just use PathResourceManager. > > I am not sure about the view resolver, it sounds like you might be missing > a servlet or filter than spring expects to be configured. > > Stuart > > On Fri, May 4, 2018 at 7:30 PM, aditya sanas > wrote: > >> Hello Undertow Dev Team, >> >> >> >> Currently I?m doing a sample project where I?m trying to configure >> Undertow server to use Spring MVC model. >> >> I?m able to register dispatcher servlet, context listeners, and able to >> configure application so that I can use spring controllers instead of >> servlets to process requests from browsers. So I can return JSON/XML or >> Plain text if I use RestController. >> >> >> >> The thing where I?m currently stuck is I?m not able to serve a static >> content and cannot configure a Spring?s view resolver to return a view >> instead of plain text. >> >> >> >> PS - I?m using Undertow as embedded server into my application and >> producing a standalone executable jar as a build output. >> >> >> >> Thanks, >> >> Aditya Sanas >> >> > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/undertow-dev/attachments/20180510/228cbbe4/attachment.html