not running on tomcat manager app

Solutions on MaxInterview for not running on tomcat manager app by the best coders in the world

showing results for - "not running on tomcat manager app"
Máximo
19 Aug 2020
1package com.onclickinfo.tnoadmin;
2
3import java.io.IOException;
4import javax.servlet.Filter;
5import javax.servlet.FilterChain;
6import javax.servlet.FilterConfig;
7import javax.servlet.ServletException;
8import javax.servlet.ServletRequest;
9import javax.servlet.ServletResponse;
10import javax.servlet.http.HttpServletRequest;
11import javax.servlet.http.HttpServletResponse;
12import org.slf4j.Logger;
13import org.slf4j.LoggerFactory;
14import org.springframework.stereotype.Component;
15
16@Component
17public class SimpleCORSFilter implements Filter {
18
19	private final Logger log = LoggerFactory.getLogger(SimpleCORSFilter.class);
20
21	public SimpleCORSFilter() {
22		log.info("SimpleCORSFilter initiliazed!");
23	}
24
25	@Override
26	public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
27		log.info("SimpleCORSFilter doFilter START ");
28		HttpServletRequest request = (HttpServletRequest) req;
29		HttpServletResponse response = (HttpServletResponse) res;
30
31		response.setHeader("Access-Control-Allow-Origin", request.getHeader("Origin"));
32		response.setHeader("Access-Control-Allow-Credentials", "true");
33		response.setHeader("Access-Control-Allow-Methods", "POST, GET, OPTIONS, DELETE");
34		response.setHeader("Access-Control-Max-Age", "3600");
35		response.setHeader("Access-Control-Allow-Headers", "Content-Type, Accept, X-Requested-With, remember-me");
36
37		chain.doFilter(req, res);
38		log.info("SimpleCORSFilter doFilter END");
39	}
40
41	/*
42	@Override
43	public void init(FilterConfig filterConfig) {
44	}
45
46	@Override
47	public void destroy() {
48	}
49	*/
50
51}
52
Dewey
14 Feb 2018
1Tomcat manager/html is not available?
2
3
4You have to check if you have the folder with name manager inside the folder webapps in your tomcat.
5
6Rubens-MacBook-Pro:tomcat rfanjul$ ls -la webapps/
7total 16
8drwxr-xr-x   8 rfanjul  staff   272 21 May 12:20 .
9drwxr-xr-x  14 rfanjul  staff   476 21 May 12:22 ..
10-rw-r--r--@  1 rfanjul  staff  6148 21 May 12:20 .DS_Store
11drwxr-xr-x  19 rfanjul  staff   646 17 Feb 15:13 ROOT
12drwxr-xr-x  51 rfanjul  staff  1734 17 Feb 15:13 docs
13drwxr-xr-x   6 rfanjul  staff   204 17 Feb 15:13 examples
14drwxr-xr-x   7 rfanjul  staff   238 17 Feb 15:13 host-manager
15drwxr-xr-x   8 rfanjul  staff   272 17 Feb 15:13 manager
16After that you will be sure that you have this permmint for you user in the file conf/tomcat-users.xml:
17
18<role rolename="admin-gui"/>
19<role rolename="manager-gui"/>
20<user username="test" password="test" roles="admin-gui,manager-gui"/>
21restart tomcat and stat tomcat again.
22
23sh bin/shutdown.sh 
24sh bin/startup.sh
25I hope that will works fine for you.
26
27
queries leading to this page
why use httpservlet request springboothttpservletrequest in spring bootspring mvc httprequestservlethow to get httpservletrequest in spring boottomcat manage application is not working in localhosttomcat manager application is not working in localhostusing httpservletrequest in springhttp status 404 2fmanager 2fhtml 2flisthttpservletrequest request spring boothow to create httpservletrequest object in springhow to have spring httpservletrequest to another apichange role name in tomcat user xml not working in tomcatnot running on tomcat manager appcreate httpsrvletrequest object in spring bootspring get httpservletrequest in controllerhttpservletrequestwrapper spring bootcannot access tomcat 8 home pageservlet request to httpservletrequest spring boottomcat 9 host manager 403 access denied httpservletrequest why using spring boottomcat 403 access denied without option to loginspringboot httpservletrequest why using spring boothttpservletrequest spring boothttpservletrequest in spring boot controlleruse httpservletrequest in boothttp servlet request spring frameworkspring boot get httpservletrequesthttpservletrequest request in spring controllerspring servlet to httpservlet requestspring boot work with httpservletrequesttomcat manager cant login in chromenot able to access manage app of tomcat from another serverspringboot controller httpservletrequesthttpservletrequest java spring boothttpservletrequest springget httpservletrequest spring bootspring boot servletrequesthttp servlet request spring bootwhy use httpservletrequest spring bootspring map httpservletrequestspring http servlet requesthttpservletrequest example spring bootspring boot add httpservletrequesthttpservletrequest in spring controllerhttpservletrequest spring403 access denied 2fmanager 2fhtml 2flistwhat is httpservletrequest in spring bootspring boot http servlet requestspring httpservletrequesttomcat 8 manager login not workingspring boot httpservletrequest 3ftomcat manager folder is not working in localhostgetting httpservletrequest in spring controllerhttpservletrequest data springusing httpservletrequest in spring exampletomcat manager start does not worktomcat manager app not workingspring boot httpservletrequest for rest apijavax servlet http httpservletrequest spring bootget httpservletrequest in spring boot controllertomcat manager can 27t login in chromehttpservletrequest spring boot controllernot running on tomcat manager app