This document describes the steps needed to upgrade the edoras one application to 1.5.0.S112.
Please stop the edoras one server, perform all upgrade steps described below and then restart the server again at the end.
REST exception handling
A month ago we introduced the com.edorasware.one.DefaultControllerAdvice
class which manages all exceptions thrown by the REST controllers.
This class has now been enhanced such that it behaves like the exception handling behaved before and it also logs all exceptions. Please adapt
the following things if you are affected:
-
The
com.edorasware.one.DefaultControllerAdvice
class has been renamed tocom.edorasware.one.DefaultExceptionControllerAdvice
. Therefore also the bean id has been changed fromdefaultControllerAdvice
toexceptionControllerAdvice
. -
The
com.edorasware.cloud.core.service.RestServiceExceptionInterceptor
has been removed as this class is not used anymore. If you override this class then please move the functionality into the newcom.edorasware.one.DefaultExceptionControllerAdvice
class. The bean definition and the AOP configuration has also been removed from theconfig/transaction-context.xml
, so please adapt it accordingly if you override this file. -
The
com.edorasware.cloud.core.service.CloudHandlerExceptionResolver
has also been removed and also here move your functionality, if you override it, to the newcom .edorasware.one.DefaultExceptionControllerAdvice
class. The default logic has been added to the new handler. The bean definition has also been removed from theconfig/io/servlet-config.xml
, so please adapt it accordingly if you override this file.
Merge of edoras gear into the edoras one project
As edoras gear is only used in edoras one we merged the edoras gear project into the edoras one project as this will simplify a lot in our development process. The following things have changed:
-
The module code of the edoras gear and edoras commons libraries have changed from
com.edorasware.gear
tocom.edorasware.one
resulting in the following new dependencies:-
com.edorasware.one:edoras-gear-core:1.5.0.S112
-
com.edorasware.one:edoras-commons-core:1.5.0.S112
-
com.edorasware.one:edoras-commons-test:1.5.0.S112
-
-
The package names and structure in the Java classes of edoras gear and edoras commons have not been changed so there is no need to change the imports of the classes.
-
The edoras gear version is now the same as the edoras one version. If you use a separate or specific version of the above mentioned dependencies then please use the new version
1.5.0.S112
such that the dependencies are resolved. -
The edoras one bundle will include all resources the edoras gear bundle included before.
Bootstrap project
Here you will find a list of files which have changed in the bootstrap project since the last release. This helps you check the difference between your bootstrap project version and the current one:
-
src/main/resources/config/transaction-context.xml
-
removed the
com.edorasware.cloud.core.service.RestServiceExceptionInterceptor
bean definition and the AOP configuration for it -
src/main/resources/config/io/servlet-config.xml
-
removed the
com.edorasware.cloud.core.service.CloudHandlerExceptionResolver
bean definition -
src/main/java/com/edorasware/one/DefaultControllerAdvice
-
renamed the
com.edorasware.one.DefaultControllerAdvice
class tocom.edorasware.one .DefaultExceptionControllerAdvice
-
src/main/resources/com/edorasware/one/config/one-rest-config.xml
-
renamed the
com.edorasware.one.DefaultExceptionControllerAdvice
bean id fromdefaultControllerAdvice
toexceptionControllerAdvice
-
src/main/resources/config/io/servlet-config.xml
-
removed the
com.edorasware.cloud.core.service.RestServiceExceptionInterceptor
class -
src/main/resources/config/io/servlet-config.xml
-
removed the
com.edorasware.cloud.core.service.CloudHandlerExceptionResolver
class