@wenshao 你好,想跟你请教个问题:
版本:druid-0.2.13.jar
问题描述:
访问:http://localhost:8080/base/druid/index.html 报错
Mar 28, 2013 12:18:03 AM org.apache.catalina.core.ApplicationContext log SEVERE: Unhandled exception occurred whilst decorating page java.lang.IllegalArgumentException: Invalid IP Address [0:0:0:0:0:0:0:1] at com.alibaba.druid.support.http.util.IPAddress.parseIPAddress(IPAddress.java:248) at com.alibaba.druid.support.http.util.IPAddress.<init>(IPAddress.java:122) at com.alibaba.druid.support.http.StatViewServlet.isPermittedRequest(StatViewServlet.java:162) at com.alibaba.druid.support.http.StatViewServlet.isPermittedRequest(StatViewServlet.java:150) at com.alibaba.druid.support.http.StatViewServlet.service(StatViewServlet.java:197) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.obtainContent(SiteMeshFilter.java:129) at com.opensymphony.sitemesh.webapp.SiteMeshFilter.doFilter(SiteMeshFilter.java:77) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:88) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:859) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:602) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:489) at java.lang.Thread.run(Thread.java:662)用: http://127.0.0.1:8080/base/druid/index.html 可以正常打开监控页面。
配置了IP地址过滤,估计就不能用localhost了吧,也算是考虑不足的问题吧你host文件怎么配的这个是ip_v6的问题,你是macos吧<aclass='referer'target='_blank'>@wenshao不是macos是windows.刚看了一下host.
<imgsrc="http://static.oschina.net/uploads/space/2013/0328/110129_XUxu_259408.png"alt=""/>
下面这条【::1】是装PostgreSQL的时候,它添加的。不过不影响我本地localhost访问网站。
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。