Integrate Actviti 6 in Spring Application

cancel
Showing results for 
Search instead for 
Did you mean: 
himabindu_v
Active Member II

Integrate Actviti 6 in Spring Application

Just I added below dependency in pom.xml

 

<dependency>

            <groupId>org.activiti</groupId>

            <artifactId>activiti-spring</artifactId>

            <version>6.0.0</version>

</dependency>

                After I run the project, I got below error

Feb 20, 2021 1:48:48 PM org.apache.catalina.core.StandardWrapperValve invoke

SEVERE: Servlet.service() for servlet [jsp] in context with path [/sp] threw exception [org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.apache.tiles.request.render.CannotRenderException: ServletException including path '/WEB-INF/views/layout.jsp'.] with root cause

java.lang.NullPointerException

        at java.util.Objects.requireNonNull(Unknown Source)

        at javax.el.CompositeELResolver.add(CompositeELResolver.java:47)

        at org.apache.jasper.el.JasperELResolver.add(JasperELResolver.java:70)

        at org.apache.jasper.el.JasperELResolver.<init>(JasperELResolver.java:58)

        at org.apache.jasper.runtime.JspApplicationContextImpl.createELResolver(JspApplicationContextImpl.java:120)

        at org.apache.jasper.runtime.JspApplicationContextImpl.createELContext(JspApplicationContextImpl.java:89)

        at org.apache.jasper.runtime.PageContextImpl.getELContext(PageContextImpl.java:950)

        at org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:935)

        at org.apache.jsp.WEB_002dINF.views.layout_jsp._jspService(layout_jsp.java:121)

        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)

        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)

        at org.apache.tiles.request.servlet.ServletRequest.forward(ServletRequest.java:265)

        at org.apache.tiles.request.servlet.ServletRequest.doForward(ServletRequest.java:228)

        at org.apache.tiles.request.AbstractClientRequest.dispatch(AbstractClientRequest.java:57)

        at org.apache.tiles.request.render.DispatchRenderer.render(DispatchRenderer.java:47)

        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:259)

        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:397)

        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:238)

        at org.apache.tiles.impl.BasicTilesContainer.render(BasicTilesContainer.java:221)

        at org.apache.tiles.renderer.DefinitionRenderer.render(DefinitionRenderer.java:59)

        at org.springframework.web.servlet.view.tiles3.TilesView.renderMergedOutputModel(TilesView.java:146)

        at org.springframework.web.servlet.view.AbstractView.render(AbstractView.java:316)

        at org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1370)

        at org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1116)

        at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1055)

        at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:942)

        at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1005)

        at org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:897)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:635)

        at org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:882)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:728)

        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:470)

        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:395)

        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:316)

        at org.apache.jasper.runtime.PageContextImpl.doForward(PageContextImpl.java:742)

        at org.apache.jasper.runtime.PageContextImpl.forward(PageContextImpl.java:712)

        at org.apache.jsp.index_jsp._jspService(index_jsp.java:128)

        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:476)

        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:386)

        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:330)

        at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)

        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)

        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)

        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)

        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)

        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:137)

        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)

        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:660)

        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)

        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)

        at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:798)

        at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)

        at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)

        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)

        at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)

        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)

        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)

        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)

        at java.lang.Thread.run(Unknown Source)

Please give the solution to me

1 Reply
himabindu_v
Active Member II

Re: Integrate Actviti 6 in Spring Application

Hi team,

 

How to migrate Activiti 5 to Activiti 6 in Spring Applcation.

i added Activiti 6 dependency and activit5-spring-compatibility in pom.xml.

i refereed the below user guide

https://www.activiti.org/migration.

 

Please give the solution if any one migrated from activiti 5 to activiti 6 in Spring Application.

 

Thanks & Regrads,

V.HimaBindu.