Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi Guillaume, I have attached the sample web apps with JIRA Ticket for your kind reference. Can you please have a look? https://issues.apache.org/jira/browse/ARIES-1819 Regards Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi Castor, I have add Gemini Blueprint 3.0.0M1 and downloaded IO, Core and Extender module. Can you please suggest me if that is enough to replace with spring-dm for web module. here is my web.xml for now. contextClass org.springframework.osgi.web.context.support.osgibundlexmlwebapplicationcontext javorai-api org.springframework.web.servlet.DispatcherServlet contextClass org.springframework.osgi.web.context.support.osgibundlexmlwebapplicationcontext 2 -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi JB, As you have asked me for any blocking point t use blueprint instead of Spring, I am just trying to know that can I refer spring Jar's class files directly in web.xml and skip blueprint. as of now, it is referring spring dm provided osgiwebxmlapplicationcontext class but as spring-dm can not be used with spring 5, is there any way not to use blueprint also and directly use spring jar files to load xml context for servlets in web.xml? Not sure if my question is making sense to you, I am little new to this web part. kindly guide. Regards Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi JB, I am not sure If i understood your question properly but Here is how I started using blueprint. Kindly review and suggest. Earlier we were using KARAF 4.0.10 and spring 3.1.4 release was getting installed when spring-dm was installed. Now when I am upgrading to 4.2.0, I am installing spring feature which is installing spring 5.X. we are using spring MVC in our web related modules and were using spring-osgi-web classes to load XMLWebContext in web.xml. it was using org.springframework.web.context.ContextLoaderListener and org.springframework.osgi.web.context.support. Now when I had faced problem with 4.2.0, i was updated that spring-dm is not supported was i was recommended to use blueprint. Guillaume mentioned in one of the reply that i can use aries-blueprint and it has 99% compatibility with spring-dm. I was able to see aries-blueprint bundles in feature:list also so I moved in that direction. Kindly suggest if I had any way here to get my web part working. Regards Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi Munish, by the way, any blocking point to use blueprint instead of Spring ? Are you using lot of spring extensions ? I'm just curious ;) Regards JB On 23/07/2018 13:50, munishgupta.asr wrote: > Thanks Guillaume for providing information. I was trying for last 3 days to > find any reference documentation which could give me a clue about web > support. > > I have created a JIRA Ticket and here is the number (Web.XML Attached) > https://issues.apache.org/jira/browse/ARIES-1819 > > Meanwhile, can you please suggest me any workaround to get the web APP > running (Spring-MVC) on KARAF 4.2.0 and Spring 5.0.X combination? > > > Regards > Munish > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html >
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Thanks Guillaume for providing information. I was trying for last 3 days to find any reference documentation which could give me a clue about web support. I have created a JIRA Ticket and here is the number (Web.XML Attached) https://issues.apache.org/jira/browse/ARIES-1819 Meanwhile, can you please suggest me any workaround to get the web APP running (Spring-MVC) on KARAF 4.2.0 and Spring 5.0.X combination? Regards Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Aris Blueprint Spring works with spring 5 afaik, but the spring-osgi-web replacement has never been implemented. It's just a matter of adapting a few classes, mainly org.springframework.web.context.ContextLoaderListener and org.springframework.osgi.web.context.support. OsgiBundleXmlWebApplicationContext so that it can be a drop-in replacement for spring-web apps. Le lun. 23 juil. 2018 à 12:35, Jean-Baptiste Onofré a écrit : > Hi > > It's what I remembered about the spring 5 support. > > Do we have a jira already about that ? > > Regards > JB > > Le 23 juil. 2018 à 12:26, à 12:26, Guillaume Nodet a > écrit: > >Sorry, the web part is definitely not implemented. > >Could you raise a JIRA issue in the Aries Blueprint project and maybe > >attach your simple web app and I'll have a look asap. > > > >Guillaume > > > >Le dim. 22 juil. 2018 à 12:35, munishgupta.asr > > > >a écrit : > > > >> Thanks Guillaume Nodet-2, > >> > >> I have installed and started 3 blueprint bundles. > >> 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint > >Spring > >> 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint > >Spring > >> Extender > >> 77 | Active | 80 | 1.0.1 | Apache Aries Blueprint > >Web OSGI > >> > >> first I was not able to see my web application (Spring-MVC) open at > >all and > >> it was throwing wiring exceptions to identify org.springframework > >related > >> exceptions. > >> > >> Later I commented spring-dm related entry in web.xml and added new > >entry > >> for > >> blueprint context listener. > >> > >> ** > >> //Added > >> > >> > >> org.apache.aries.blueprint.web.BlueprintContextListener > >> > >> > >> > >> ** > >> // commented > >> > >> > >> org.springframework.web.context.ContextLoaderListener > >> > >> > >> > >> audit > >> > >> > >> > > >org.springframework.web.servlet.DispatcherServlet > >> > >> contextClass > >> > >> > >> > >> > > >org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext > >> > >> > >> > >> ** > >> > >> with that, now I am able to see root JSP page opening but on any > >action, it > >> is not hitting controller classes. How i need to handle the servlet > >related > >> configuration defined in web.XML with aries-blueprint? > >> > >> Can you please guide? in case if you have any sample programme, that > >would > >> be too helpful. > >> My concern is that I am not finding how to handle change in web.xml > >> (changing spring-dm related classes to aries-blueprint). > >> > >> Thanks in Advance > >> Munish > >> > >> > >> > >> -- > >> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html > >> > > > > > >-- > > > >Guillaume Nodet > -- Guillaume Nodet
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi It's what I remembered about the spring 5 support. Do we have a jira already about that ? Regards JB Le 23 juil. 2018 à 12:26, à 12:26, Guillaume Nodet a écrit: >Sorry, the web part is definitely not implemented. >Could you raise a JIRA issue in the Aries Blueprint project and maybe >attach your simple web app and I'll have a look asap. > >Guillaume > >Le dim. 22 juil. 2018 à 12:35, munishgupta.asr > >a écrit : > >> Thanks Guillaume Nodet-2, >> >> I have installed and started 3 blueprint bundles. >> 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint >Spring >> 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint >Spring >> Extender >> 77 | Active | 80 | 1.0.1 | Apache Aries Blueprint >Web OSGI >> >> first I was not able to see my web application (Spring-MVC) open at >all and >> it was throwing wiring exceptions to identify org.springframework >related >> exceptions. >> >> Later I commented spring-dm related entry in web.xml and added new >entry >> for >> blueprint context listener. >> >> ** >> //Added >> >> >> org.apache.aries.blueprint.web.BlueprintContextListener >> >> >> >> ** >> // commented >> >> >> org.springframework.web.context.ContextLoaderListener >> >> >> >> audit >> >> >> >org.springframework.web.servlet.DispatcherServlet >> >> contextClass >> >> >> >> >org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext >> >> >> >> ** >> >> with that, now I am able to see root JSP page opening but on any >action, it >> is not hitting controller classes. How i need to handle the servlet >related >> configuration defined in web.XML with aries-blueprint? >> >> Can you please guide? in case if you have any sample programme, that >would >> be too helpful. >> My concern is that I am not finding how to handle change in web.xml >> (changing spring-dm related classes to aries-blueprint). >> >> Thanks in Advance >> Munish >> >> >> >> -- >> Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html >> > > >-- > >Guillaume Nodet
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Sorry, the web part is definitely not implemented. Could you raise a JIRA issue in the Aries Blueprint project and maybe attach your simple web app and I'll have a look asap. Guillaume Le dim. 22 juil. 2018 à 12:35, munishgupta.asr a écrit : > Thanks Guillaume Nodet-2, > > I have installed and started 3 blueprint bundles. > 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint Spring > 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint Spring > Extender > 77 | Active | 80 | 1.0.1 | Apache Aries Blueprint Web OSGI > > first I was not able to see my web application (Spring-MVC) open at all and > it was throwing wiring exceptions to identify org.springframework related > exceptions. > > Later I commented spring-dm related entry in web.xml and added new entry > for > blueprint context listener. > > ** > //Added > > > org.apache.aries.blueprint.web.BlueprintContextListener > > > > ** > // commented > > > org.springframework.web.context.ContextLoaderListener > > > > audit > > > org.springframework.web.servlet.DispatcherServlet > > contextClass > > > > org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext > > > > ** > > with that, now I am able to see root JSP page opening but on any action, it > is not hitting controller classes. How i need to handle the servlet related > configuration defined in web.XML with aries-blueprint? > > Can you please guide? in case if you have any sample programme, that would > be too helpful. > My concern is that I am not finding how to handle change in web.xml > (changing spring-dm related classes to aries-blueprint). > > Thanks in Advance > Munish > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html > -- Guillaume Nodet
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi Lukasz, second one is not same it is "Apache Aries Blueprint Spring Extender". Extender word was moving on to next statement in my old post. mentioning again for clarity. 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint Spring 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint Spring Extender -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
My suggestion out of scope. Shouldn't you have just one Aries Blueprint Spring bundle? > 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint Spring > 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint Spring If you have 0.6.0 and 0.4.0 versions installed in parallel they might complete in some areas. Cheers, Lukasz
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Thanks Guillaume Nodet-2, I have installed and started 3 blueprint bundles. 75 | Active | 80 | 0.6.0 | Apache Aries Blueprint Spring 76 | Active | 80 | 0.4.0 | Apache Aries Blueprint Spring Extender 77 | Active | 80 | 1.0.1 | Apache Aries Blueprint Web OSGI first I was not able to see my web application (Spring-MVC) open at all and it was throwing wiring exceptions to identify org.springframework related exceptions. Later I commented spring-dm related entry in web.xml and added new entry for blueprint context listener. ** //Added org.apache.aries.blueprint.web.BlueprintContextListener ** // commented org.springframework.web.context.ContextLoaderListener audit org.springframework.web.servlet.DispatcherServlet contextClass org.springframework.osgi.web.context.support.OsgiBundleXmlWebApplicationContext ** with that, now I am able to see root JSP page opening but on any action, it is not hitting controller classes. How i need to handle the servlet related configuration defined in web.XML with aries-blueprint? Can you please guide? in case if you have any sample programme, that would be too helpful. My concern is that I am not finding how to handle change in web.xml (changing spring-dm related classes to aries-blueprint). Thanks in Advance Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
I'm not sure about that, i wasn't able to swap gemini-blueprint with aries-blueprint-spring, had some trouble with AOP, Context (Component scan and so on) and TX. I will test more thoroughly and report some bugs. -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
You can install the aries-blueprint-spring and it will give you 99% compatibility with spring-dm. Just deploy your spring bundles and it should work. Le mer. 18 juil. 2018 à 15:04, munishgupta.asr a écrit : > Thanks JB for the quick answer. > > I will probably check then what exactly this blueprint is and how it works > (replacement of spring-dm). > > Thanks again > Munish > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html > -- Guillaume Nodet
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
If you really need spring 5, you can use Gemini Blueprint 3.0.0M1, but it's a little unstable and often conflicts with Aries, i've submitted a patch to allow gemini and aries side-by-side, but it wasn't merged yet. -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Thanks JB for the quick answer. I will probably check then what exactly this blueprint is and how it works (replacement of spring-dm). Thanks again Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html
Re: issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi Munish, spring-osgi (spring-dm) doesn't support Spring 5. So, if you want to use spring-dm, you are stuck with Spring 4: no other way. In Karaf 4.2.0 vanilla distribution, it works because we provide several spring versions, and when you install spring-dm feature, it installs spring 4.0.x. I recommend you to update to blueprint (replacement of spring-dm). Regards JB On 18/07/2018 14:37, munishgupta.asr wrote: > Hi All, > > We are using KARAF 4.0.0 for now and trying to upgrade it to 4.2.0 now. We > are also upgrading jetty libraries to latest supported version and upgraded > spring version to 5.0.4 Release. > > for using Spring on OSGI, currently we were using 'spring-osgi-web' and > 'spring-osgi-core' libraries of 'org.springframework.osgi; with version as > 1.2.1. > > After upgrade, it seems these libraries are only supported upto Spring > Version 4.0.0 and not further. > > Can you please guide me what i should be trying for using Spring 5.0.4 on > latest KARAF 4.2.0? > > Regards > Munish > > > > -- > Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html > -- Jean-Baptiste Onofré jbono...@apache.org http://blog.nanthrax.net Talend - http://www.talend.com
issues while using Spring 5.0.4 with latest KARAF 4.2.0
Hi All, We are using KARAF 4.0.0 for now and trying to upgrade it to 4.2.0 now. We are also upgrading jetty libraries to latest supported version and upgraded spring version to 5.0.4 Release. for using Spring on OSGI, currently we were using 'spring-osgi-web' and 'spring-osgi-core' libraries of 'org.springframework.osgi; with version as 1.2.1. After upgrade, it seems these libraries are only supported upto Spring Version 4.0.0 and not further. Can you please guide me what i should be trying for using Spring 5.0.4 on latest KARAF 4.2.0? Regards Munish -- Sent from: http://karaf.922171.n3.nabble.com/Karaf-Dev-f930721.html