Trying to embed activiti explorer into web application

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

Trying to embed activiti explorer into web application

Hello, i am trying to embed activiti explorer into my web application. i am referring your blog (https://blog.canang.com.my/2016/05/12/embedding-activiti-explorer-to-your-application/). i have completed all the given steps. below is the log which shows that my activiti engine running and default  process engine is created. 

when i am trying to access http://localhost:9000/activiti-explorer but nothing is happing. i dont know what i am missing, please help to resolve the issue. i have attached web.xml for you reference.

Log:

[ost-startStop-1] org.apache.jasper.servlet.TldScanner : At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
2017-07-11 22:59:12.781 INFO 23932 --- [ost-startStop-1] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2017-07-11 22:59:12.781 INFO 23932 --- [ost-startStop-1] o.s.web.context.ContextLoader : Root WebApplicationContext: initialization completed in 3849 ms
2017-07-11 22:59:14.447 INFO 23932 --- [ost-startStop-1] a.s.b.AbstractProcessEngineConfiguration : No process definitions were found for autodeployment
2017-07-11 22:59:17.724 INFO 23932 --- [ost-startStop-1] o.a.engine.impl.ProcessEngineImpl : ProcessEngine default created
2017-07-11 22:59:17.732 INFO 23932 --- [ost-startStop-1] o.a.e.i.a.AbstractAsyncJobExecutor : Starting up the default async job executor [org.activiti.spring.SpringAsyncExecutor].
2017-07-11 22:59:17.736 INFO 23932 --- [ Thread-3] o.a.e.i.a.AcquireTimerJobsRunnable : starting to acquire async jobs due
2017-07-11 22:59:17.736 INFO 23932 --- [ Thread-4] o.a.e.i.a.AcquireAsyncJobsDueRunnable : starting to acquire async jobs due
2017-07-11 22:59:18.510 INFO 23932 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: Ant [pattern='/css/*'], []
2017-07-11 22:59:18.563 INFO 23932 --- [ost-startStop-1] o.s.s.web.DefaultSecurityFilterChain : Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@7fbe2a7d, org.springframework.security.web.context.SecurityContextPersistenceFilter@414e0d3, org.springframework.security.web.header.HeaderWriterFilter@12837d5c, org.springframework.security.web.csrf.CsrfFilter@bfc0db3, org.springframework.security.web.authentication.logout.LogoutFilter@17071e53, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@7de6c4ad, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@43e1da90, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@4da409cc, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@34b65a8b, org.springframework.security.web.session.SessionManagementFilter@1ed57c69, org.springframework.security.web.access.ExceptionTranslationFilter@76c78456, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@532ee02d]
2017-07-11 22:59:18.675 INFO 23932 --- [ost-startStop-1] o.s.b.c.e.ServletRegistrationBean : Mapping servlet: 'dispatcherServlet' to [/]
2017-07-11 22:59:18.682 INFO 23932 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'characterEncodingFilter' to: [/*]
2017-07-11 22:59:18.682 INFO 23932 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'hiddenHttpMethodFilter' to: [/*]
2017-07-11 22:59:18.683 INFO 23932 --- [ost-startStop-1] o.s.b.c.embedded.FilterRegistrationBean : Mapping filter: 'springSecurityFilterChain' to: [/*]
2017-07-11 22:59:19.075 INFO 23932 --- [lication.main()] s.w.s.m.m.a.RequestMappingHandlerAdapter : Looking for @ControllerAdvice: org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@58b586f1: startup date [Tue Jul 11 22:59:08 IST 2017]; root of context hierarchy
2017-07-11 22:59:19.161 INFO 23932 --- [lication.main()] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error]}" onto public org.springframework.http.ResponseEntity<java.util.Map<java.lang.String, java.lang.Object>> org.springframework.boot.autoconfigure.web.BasicErrorController.error(javax.servlet.http.HttpServletRequest)
2017-07-11 22:59:19.162 INFO 23932 --- [lication.main()] s.w.s.m.m.a.RequestMappingHandlerMapping : Mapped "{[/error],produces=[text/html]}" onto public org.springframework.web.servlet.ModelAndView org.springframework.boot.autoconfigure.web.BasicErrorController.errorHtml(javax.servlet.http.HttpServletRequest)
2017-07-11 22:59:19.186 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/home] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2017-07-11 22:59:19.186 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/login] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2017-07-11 22:59:19.186 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Root mapping to handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2017-07-11 22:59:19.187 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/hello] onto handler of type [class org.springframework.web.servlet.mvc.ParameterizableViewController]
2017-07-11 22:59:19.205 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/webjars/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-11 22:59:19.205 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-11 22:59:19.270 INFO 23932 --- [lication.main()] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped URL path [/**/favicon.ico] onto handler of type [class org.springframework.web.servlet.resource.ResourceHttpRequestHandler]
2017-07-11 22:59:20.022 INFO 23932 --- [lication.main()] o.s.j.e.a.AnnotationMBeanExporter : Registering beans for JMX exposure on startup
2017-07-11 22:59:20.181 INFO 23932 --- [lication.main()] s.b.c.e.t.TomcatEmbeddedServletContainer : Tomcat started on port(s): 9000 (http)
2017-07-11 22:59:20.189 INFO 23932 --- [lication.main()] hello.Application : Started Application in 11.939 seconds (JVM running for 32.279)
2017-07-11 23:00:01.048 INFO 23932 --- [nio-9000-exec-4] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring FrameworkServlet 'dispatcherServlet'
2017-07-11 23:00:01.049 INFO 23932 --- [nio-9000-exec-4] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization started
2017-07-11 23:00:01.085 INFO 23932 --- [nio-9000-exec-4] o.s.web.servlet.DispatcherServlet : FrameworkServlet 'dispatcherServlet': initialization completed in 36 ms

1 Reply
ryandawson
Alfresco Employee

Re: Trying to embed activiti explorer into web application

Is that an error in creating the spring security Csrf filter? Maybe you could look at disabling the Csrf filter.