>From the Spring Boot2 migration guide[1], the class package and name was
changed.

We may need to create different module to handle the class package change
issue.

[1]
https://github.com/spring-projects/spring-boot/wiki/Spring-Boot-2.0-Migration-Guide#embedded-containers-package-structure



Willem Jiang

Twitter: willemjiang
Weibo: 姜宁willem

On Fri, Jul 20, 2018 at 10:29 AM, yhs0092 <yhs0...@163.com> wrote:

> I tried to upgrade Java-Chassis to support SpringBoot2 before, but failed.
>
>
> There are two problems. The first one is in our bean.xml file, the xsd
> file is imported like below:
> ```
> classpath:org/springframework/beans/factory/xml/spring-beans-3.0.xsd
> ```
> but 3.0 version xsd file does not exist anymore.
>
> This is still resolvable, but for the second problem, I still haven't
> found a way to resolve it.
>
>
> When my service demo is started, an error occurs:
> ```
> 2018-03-13 22:57:18.396  WARN 11116 --- [           main]
> ConfigServletWebServerApplicationContext : Exception encountered during
> context initialization - cancelling refresh attempt:
> org.springframework.beans.factory.BeanDefinitionStoreException: Failed to
> parse configuration class [org.apache.servicecomb.
> springboot.starter.transport.RestServletInitializer]; nested exception is
> java.io.FileNotFoundException: class path resource
> [org/springframework/boot/context/embedded/AbstractConfigurableEmbeddedServletContainer.class]
> cannot be opened because it does not exist
> ```
> Because AbstractConfigurableEmbeddedServletContainer is removed in
> SpringBoot2, and our RestServletInitializer is extended from this class,
> maybe we cannot upgrade to SpringBoot2 by simply change the maven
> dependency.
> And once we refactor our RestServletInitializer, the java-chassis may not
> be compatible with SpringBoot1.
>
>
>
> 在 2018-07-20 08:57:05,"wjm wjm" <zzz...@gmail.com> 写道:
> >not enough, must exclude old spring also
> >
> >2018-07-20 6:44 GMT+08:00 Willem Jiang <willem.ji...@gmail.com>:
> >
> >> How about let user override the version of Spring Boot in their
> application
> >> and give it a try.
> >> Just like what we do with JDK9 here[1]
> >> If there is any issue comes out, we can keep digging it.
> >>
> >> [1]https://github.com/apache/incubator-servicecomb-saga/issues/76
> >>
> >>
> >> Willem Jiang
> >>
> >> Twitter: willemjiang
> >> Weibo: 姜宁willem
> >>
> >> On Thu, Jul 19, 2018 at 8:26 PM, Bin Ma <mabin1...@gmail.com> wrote:
> >>
> >> > Hi,
> >> >   Java-chassis currently supports Spirng Boot 1.5.12 version.
> >> >
> >> >   In fact, some enterprise users develop their coursewares based on
> >> Spring
> >> > Boot2, so hopefully Java-chassis can support Spring Boot2, such as
> >> Chuanzhi
> >> > Boke.
> >> >
> >> >   I think it's neccessary to discuss the plan about  upgrading
> >> > Java-Chasssis to support  Spring Boot2 to satisfy users' scenario.
> >> >
> >> >   Any thoughts and any troubles to upgrading, please feel free to
> discuss
> >> > here.
> >> >
> >>
>

Reply via email to