Tomcat

javax.net.ssl.SSLProtocolException: The certificate chain length (11) exceeds the maximum allowed length (10)

十年热恋 提交于 2021-01-01 06:28:29
问题 I'm struggling since my java MVC web application started throwing an exception when trying to create a WebService that has an specific https address (https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo?xsd=xsd0). After enabling the javax.net.debug I figured out that the root cause of the problem seems to be the length of the certificate chain of the server application where I'm trying to connect to. In a first moment, I suspected from the TLS version, but using

javax.net.ssl.SSLProtocolException: The certificate chain length (11) exceeds the maximum allowed length (10)

倾然丶 夕夏残阳落幕 提交于 2021-01-01 06:28:03
问题 I'm struggling since my java MVC web application started throwing an exception when trying to create a WebService that has an specific https address (https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo?xsd=xsd0). After enabling the javax.net.debug I figured out that the root cause of the problem seems to be the length of the certificate chain of the server application where I'm trying to connect to. In a first moment, I suspected from the TLS version, but using

javax.net.ssl.SSLProtocolException: The certificate chain length (11) exceeds the maximum allowed length (10)

蹲街弑〆低调 提交于 2021-01-01 06:27:32
问题 I'm struggling since my java MVC web application started throwing an exception when trying to create a WebService that has an specific https address (https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo?xsd=xsd0). After enabling the javax.net.debug I figured out that the root cause of the problem seems to be the length of the certificate chain of the server application where I'm trying to connect to. In a first moment, I suspected from the TLS version, but using

javax.net.ssl.SSLProtocolException: The certificate chain length (11) exceeds the maximum allowed length (10)

岁酱吖の 提交于 2021-01-01 06:27:24
问题 I'm struggling since my java MVC web application started throwing an exception when trying to create a WebService that has an specific https address (https://barramento.caixa.gov.br/sibar/ManutencaoCobrancaBancaria/Boleto/Externo?xsd=xsd0). After enabling the javax.net.debug I figured out that the root cause of the problem seems to be the length of the certificate chain of the server application where I'm trying to connect to. In a first moment, I suspected from the TLS version, but using

Linux阶段练习(1)

坚强是说给别人听的谎言 提交于 2020-12-31 14:20:12
1、显示/proc/meminfo文件中以大小s开头的行(要求:使用两种方法) # cat /proc/meminfo | grep -i '^s' # grep '^[sS]' /proc/meminfo 2、显示/etc/passwd文件中不以/bin/bash结尾的行 # grep -E '/bin/bash$' /etc/passwd 3、显示用户wang默认的shell程序 # grep '^wang' /etc/passwd | grep -oE '/s?bin.*/.*$' # grep '^wang' /etc/passwd | cut -d: -f7 4、找出/etc/passwd中的两位或三位数 # grep -Eo '[0-9]{2,3}' /etc/passwd 5、显示CentOS7的/etc/grub2.cfg文件中,至少以一个空白字符开头的且后面有非空白字符的行 # grep -E '^[[:space:]]+[^[:space:]]+' /etc/grub2.cfg 6、找出“netstat -tan”命令结果中以LISTEN后跟任意多个空白字符结尾的行 # netstat -ant |grep -E 'LISTEN[[:space:]]+$' 7、显示CentOS7上所有系统用户的用户名和UID # cat /etc/passwd|grep -E

Linux命令(基础)

ε祈祈猫儿з 提交于 2020-12-31 10:08:57
基本命令 ###关机 poweroff shutdown -h now reboot shutdown -r now #重启 查看当前目录占用磁盘空间大小 du -sh # -h:以人类可读的方式显示 #  -a:显示目录占用的磁盘空间大小,还要显示其下目录和文件占用磁盘空间的大小 #  -s:显示目录占用的磁盘空间大小,不要显示其下子目录和文件占用的磁盘空间大小 #  -c:显示几个目录或文件占用的磁盘空间大小,还要统计它们的总和 #  --apparent-size:显示目录或文件自身的大小 #  -l :统计硬链接占用磁盘空间的大小 #  -L:统计符号链接所指向的文件占用的磁盘空间大小 ##环境变量 显示所有环境变量 env 查看环境变量 echo $JAVA_HOME 创建环境变量 export JAVA_HOME="/opt/jdk1.7" export path=$path:$JAVA_HOME:/path1:/path2:/pahtN 删除环境变量 unset $JAVA_HOME 将环境变量设为只读 readonly JAVA_HOME ##日志 查看日志 cat /var/log/*.log 实时查看 tail -f /var/log/messages 定时查看更新部分 watch -d -n 1 cat /var/log/messages

手把手带你搭建Java共享网盘

空扰寡人 提交于 2020-12-30 17:01:14
项目介绍 在线共享网盘采用jsp+servlet搭建项目结构实现共享网盘,项目分为管理员,普通用户和会员三种角色,根据不同角色控制不同权限,实现不同用户对个人文件文件,所有文件,共享文件的增删改查操作。 开发环境: jdk 8 intellij idea tomcat 8.5.40 mysql 5.7 所用技术: jsp+servlet js+ajax layUi jdbc直连 项目访问地址 http://localhost:8090 项目结构 项目截图 注册 我的网盘 我的共享 回收站 会员充值 管理员-所有文件 管理员-共享申请 关键代码: 1.初始化工作 //数据库连接初始化 public class DBInfo { String url = null; String username = null; String password = null; String driverClass = null; private static DBInfo db = new DBInfo(); public static DBInfo getInstance(){ return db; } private DBInfo() { InputStream in = this.getClass().getClassLoader().getResourceAsStream("db

Hudson+svn+ant+tomcat一键自动化部署

蓝咒 提交于 2020-12-30 11:36:38
准备工作 安装 jdk 下载 http://hudson-ci.org/ 下载 svn 下载 ant http://ant.apache.org/ 下载 tomcat Hudson 启动及插件初始化 启动 Hudson 的 war 包扔到 tomcat 里,启动 tomcat 访问 http://localhost:8080/hudson/ 出现如下界面,成功 初始化 svn 插件 初始化 Hudson SSH plugin ant 配置 Windows ANT_HOME=D:\apache-ant-1.9.4 Path 中加入如下内容 ;%ANT_HOME%\bin;%ANT_HOME%\lib; 配置成功: Ant 过程中 Java heap space 解决办法如下: ant.bat 文件中配置 jvm 内存 set ANT_OPTS=-Xms128m -Xmx256m -verbosegc set ANT_OPTS=-Xms256m -Xmx512m -verbosegc -verbosegc 可以查看 Java 使用的堆内存的情况 Linux 解压缩 apache-ant-1.9.4-bin.tar.gz tar zxvf apache-ant-1.9.4-bin.tar.gz 在 /etc/profile 配置环境变量 ANT_HOME=D:\apache-ant-1

Tomcat下jsp页面过大报错 is exceeding the 65535 bytes

▼魔方 西西 提交于 2020-12-30 10:04:12
这个错误是因为JSP文件太大了导致的。 如果是纯粹的Tomcat,找到Tomcat安装目录下conf文件夹下的web.xml文件,在如下位置,添加红色字体的参数。 (D:\Program Files\Apache Software Foundation\Tomcat 6.0\conf\web.xml) <servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>mappedfile</param-name> <param-value>false</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet>

Tomcat 8.0 - mime-mapping & content-type

99封情书 提交于 2020-12-30 08:34:05
问题 Recently I've been digging into an issue that has lead me the "mime-mapping" element defined in the web-common_X_X.xsd and utilized in a web apps web.xml file. My goal here is to configure Tomcat to include a specific Content-Type header when returning a response to a specific servlet. I've found previous stack overflow posts mentioning the functionality, but I'm unable to get a trivial example to work with Tomcat 8.0.33. For this test, I've created the following servlet: public class