登录
注册
开源
企业版
高校版
搜索
帮助中心
使用条款
关于我们
开源
企业版
高校版
私有云
模力方舟
登录
注册
代码拉取完成,页面将自动刷新
捐赠
捐赠前请先登录
取消
前往登录
扫描微信二维码支付
取消
支付完成
支付提示
将跳转至支付宝完成支付
确定
取消
Watch
不关注
关注所有动态
仅关注版本发行动态
关注但不提醒动态
7
Star
2
Fork
31
src-openEuler
/
tomcat
代码
Issues
1
Pull Requests
0
Wiki
统计
流水线
服务
JavaDoc
PHPDoc
质量分析
Jenkins for Gitee
腾讯云托管
腾讯云 Serverless
悬镜安全
阿里云 SAE
Codeblitz
SBOM
我知道了,不再自动展开
更新失败,请稍后重试!
移除标识
内容风险标识
本任务被
标识为内容中包含有代码安全 Bug 、隐私泄露等敏感信息,仓库外成员不可访问
[22.09][arm/x86]apache与tomaca组合场景报错jar包找不到
已验收
#I5M0ZP
缺陷
ga_beng_cui
创建于
2022-08-12 12:00
【环境信息】 软件信息: 1) OS版本及分支:openEuler-22.09 2) 内核信息:5.10.0-106.2.0.56.oe2209.aarch64 3) 发现问题的组件版本信息: tomcat-9.0.10-27.oe2209.noarch httpd-2.4.51-9.oe2209.aarch64 如果有特殊组网,请提供网络拓扑图 【问题复现步骤】 ``` 1.cat >tomcat_server_replace.xml <<EOF <Engine name="Catalina" defaultHost="www.ycdata.net" jvmRoute="TomcatA"> <Host name="www.ycdata.net" appBase="/website" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="webapps" reloadable="true" /> </Host> </Engine> EOF 2.file1=/etc/tomcat/server.xml 3.start_line=$(grep -n '<Engine name="Catalina" defaultHost="localhost">' $file1 | awk -F: '{print $1}') 4.end_line=$(grep -n '</Engine>' $file1 | awk -F: '{print $1}') 5.sed -i "$start_line,$end_line"d $file1 6.start_line=$(($start_line - 1)) 7.cat tomcat_server_replace.xml | while read line; do sed -i "$start_line a $line" $file1 let start_line++ done 8.mkdir -p /website/webapps 9.cat >/website/webapps/index.jsp <<EOF <%@ page language="java" %> <html> <head><title>TomcatA</title></head> <body> <h1><font color="red">TomcatA </font></h1> <table align="centre" border="1"> <tr> <td>Session ID</td> <% session.setAttribute("abc","abc"); %> <td><%= session.getId() %></td> </tr> <tr> <td>Created on</td> <td><%= session.getCreationTime() %></td> </tr> </table> </body> </html> EOF 10.tomcat start 11.NODE1_IPV4=172.168.196.232 (本地机器ipv4) 12.httpd -D DUMP_MODULES | grep proxy 13.httpd -M | grep slot 14.file2=/etc/httpd/conf/httpd.conf 15.sed -i 's/DocumentRoot "/#&/' $file2 16.sed -i '/^#DocumentRoot/ a Include /etc/httpd/extra/httpd-proxy.conf' $file2 17.mkdir -p /etc/httpd/extra 18.cat >/etc/httpd/extra/httpd-proxy.conf <<EOF <VirtualHost *:80> ProxyVia On ProxyRequests Off ProxyPass / http://${NODE1_IPV4}:8080 ProxyPassReverse / http://${NODE1_IPV4}:8080 <Proxy *> Require all granted </Proxy> <Location / > Require all granted </Location> </VirtualHost> EOF 19.systemctl restart httpd 20.curl http://${NODE1_IPV4}:8080 | grep 'Session ID' ``` 出现概率(必现) 【预期结果】 curl执行成功,返回“Session ID”  【实际结果】 curl执行报错 【附件信息】 
【环境信息】 软件信息: 1) OS版本及分支:openEuler-22.09 2) 内核信息:5.10.0-106.2.0.56.oe2209.aarch64 3) 发现问题的组件版本信息: tomcat-9.0.10-27.oe2209.noarch httpd-2.4.51-9.oe2209.aarch64 如果有特殊组网,请提供网络拓扑图 【问题复现步骤】 ``` 1.cat >tomcat_server_replace.xml <<EOF <Engine name="Catalina" defaultHost="www.ycdata.net" jvmRoute="TomcatA"> <Host name="www.ycdata.net" appBase="/website" unpackWARs="true" autoDeploy="true"> <Context path="" docBase="webapps" reloadable="true" /> </Host> </Engine> EOF 2.file1=/etc/tomcat/server.xml 3.start_line=$(grep -n '<Engine name="Catalina" defaultHost="localhost">' $file1 | awk -F: '{print $1}') 4.end_line=$(grep -n '</Engine>' $file1 | awk -F: '{print $1}') 5.sed -i "$start_line,$end_line"d $file1 6.start_line=$(($start_line - 1)) 7.cat tomcat_server_replace.xml | while read line; do sed -i "$start_line a $line" $file1 let start_line++ done 8.mkdir -p /website/webapps 9.cat >/website/webapps/index.jsp <<EOF <%@ page language="java" %> <html> <head><title>TomcatA</title></head> <body> <h1><font color="red">TomcatA </font></h1> <table align="centre" border="1"> <tr> <td>Session ID</td> <% session.setAttribute("abc","abc"); %> <td><%= session.getId() %></td> </tr> <tr> <td>Created on</td> <td><%= session.getCreationTime() %></td> </tr> </table> </body> </html> EOF 10.tomcat start 11.NODE1_IPV4=172.168.196.232 (本地机器ipv4) 12.httpd -D DUMP_MODULES | grep proxy 13.httpd -M | grep slot 14.file2=/etc/httpd/conf/httpd.conf 15.sed -i 's/DocumentRoot "/#&/' $file2 16.sed -i '/^#DocumentRoot/ a Include /etc/httpd/extra/httpd-proxy.conf' $file2 17.mkdir -p /etc/httpd/extra 18.cat >/etc/httpd/extra/httpd-proxy.conf <<EOF <VirtualHost *:80> ProxyVia On ProxyRequests Off ProxyPass / http://${NODE1_IPV4}:8080 ProxyPassReverse / http://${NODE1_IPV4}:8080 <Proxy *> Require all granted </Proxy> <Location / > Require all granted </Location> </VirtualHost> EOF 19.systemctl restart httpd 20.curl http://${NODE1_IPV4}:8080 | grep 'Session ID' ``` 出现概率(必现) 【预期结果】 curl执行成功,返回“Session ID”  【实际结果】 curl执行报错 【附件信息】 
评论 (
3
)
登录
后才可以发表评论
状态
已验收
待办的
已挂起
修复中
已确认
已完成
已验收
已取消
负责人
未设置
small_leek
small_leek
负责人
协作者
+负责人
+协作者
标签
sig/Application
未设置
项目
未立项任务
未立项任务
里程碑
openEuler-22.09-round-1
未关联里程碑
Pull Requests
未关联
未关联
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
未关联
分支 (25)
标签 (77)
master
openEuler-25.09
openEuler-24.03-LTS-SP2
openEuler-24.03-LTS
openEuler-24.03-LTS-SP1
openEuler-22.03-LTS-SP4
openEuler-22.03-LTS-SP3
openEuler-20.03-LTS-SP4
openEuler-24.03-LTS-Next
openEuler-25.03
openEuler-22.03-LTS-SP1
openEuler-20.03-LTS-SP1
openEuler-22.03-LTS
openEuler-22.03-LTS-Next
openEuler-22.03-LTS-SP2
openEuler-24.09
openEuler-20.03-LTS-SP3
openEuler-23.09
openEuler-23.03
openEuler-22.09
openEuler-20.03-LTS-SP2
openEuler-21.09
openEuler-20.03-LTS-Next
openEuler-21.03
openEuler-20.09
openEuler-20.03-LTS-SP4-update-20250905
openEuler-22.03-LTS-SP3-update-20250905
openEuler-22.03-LTS-SP4-update-20250905
openEuler-24.03-LTS-SP1-update-20250905
openEuler-24.03-LTS-SP2-update-20250905
openEuler-20.03-LTS-SP4-update-20250725
openEuler-22.03-LTS-SP3-update-20250725
openEuler-22.03-LTS-SP4-update-20250725
openEuler-24.03-LTS-update-20250725
openEuler-24.03-LTS-SP1-update-20250725
openEuler-24.03-LTS-SP2-update-20250725
openEuler-20.03-LTS-SP4-update-20250711
openEuler-22.03-LTS-SP3-update-20250711
openEuler-22.03-LTS-SP4-update-20250711
openEuler-24.03-LTS-update-20250711
openEuler-24.03-LTS-SP1-update-20250711
openEuler-24.03-LTS-SP2-update-20250711
openEuler-20.03-LTS-SP4-update-20250620
openEuler-22.03-LTS-SP3-update-20250620
openEuler-22.03-LTS-SP4-update-20250620
openEuler-24.03-LTS-update-20250620
openEuler-24.03-LTS-SP1-update-20250620
openEuler-24.03-LTS-SP2-release
openEuler-20.03-LTS-SP4-update-20250613
openEuler-22.03-LTS-SP3-update-20250613
openEuler-22.03-LTS-SP4-update-20250613
openEuler-24.03-LTS-update-20250613
openEuler-24.03-LTS-SP1-update-20250613
openEuler-24.03-LTS-SP1-update-20250509
openEuler-24.03-LTS-update-20250509
openEuler-22.03-LTS-SP4-update-20250509
openEuler-22.03-LTS-SP3-update-20250509
openEuler-20.03-LTS-SP4-update-20250509
openEuler-25.03-release
openEuler-24.03-LTS-update-20250228
openEuler-24.03-LTS-SP1-update-20250228
openEuler-22.03-LTS-SP3-update-20250228
openEuler-22.03-LTS-SP4-update-20250228
openEuler-20.03-LTS-SP4-update-20250228
openEuler-24.03-LTS-SP1-release
openEuler-24.03-LTS-update-20241220
openEuler-22.03-LTS-SP4-update-20241220
openEuler-22.03-LTS-SP3-update-20241220
openEuler-22.03-LTS-SP1-update-20241220
openEuler-20.03-LTS-SP4-update-20241220
openEuler-20.03-LTS-SP4-update-20241129
openEuler-22.03-LTS-SP1-update-20241129
openEuler-22.03-LTS-SP3-update-20241129
openEuler-22.03-LTS-SP4-update-20241129
openEuler-24.03-LTS-update-20241129
openEuler-24.03-LTS-update-20241122
openEuler-22.03-LTS-SP4-update-20241122
openEuler-22.03-LTS-SP3-update-20241122
openEuler-22.03-LTS-SP1-update-20241122
openEuler-20.03-LTS-SP4-update-20241122
openEuler-20.03-LTS-SP4-update-20241115
openEuler-22.03-LTS-SP1-update-20241115
openEuler-22.03-LTS-SP3-update-20241115
openEuler-22.03-LTS-SP4-update-20241115
openEuler-22.03-LTS-SP4-release
openEuler-24.09-release
openEuler-24.03-LTS-release
openEuler-22.03-LTS-SP3-release
openEuler-23.09-rc5
openEuler-22.03-LTS-SP1-release
openEuler-22.09-release
openEuler-22.09-rc5
openEuler-22.09-20220829
openEuler-22.03-LTS-20220331
openEuler-22.03-LTS-round5
openEuler-22.03-LTS-round3
openEuler-22.03-LTS-round2
openEuler-22.03-LTS-round1
openEuler-20.03-LTS-SP3-release
openEuler-20.03-LTS-SP2-20210624
openEuler-21.03-20210330
openEuler-20.09-20200929
开始日期   -   截止日期
-
置顶选项
不置顶
置顶等级:高
置顶等级:中
置顶等级:低
优先级
不指定
严重
主要
次要
不重要
预计工期
(小时)
参与者(1)
1
https://gitee.com/src-openeuler/tomcat.git
git@gitee.com:src-openeuler/tomcat.git
src-openeuler
tomcat
tomcat
点此查找更多帮助
搜索帮助
Git 命令在线学习
如何在 Gitee 导入 GitHub 仓库
Git 仓库基础操作
企业版和社区版功能对比
SSH 公钥设置
如何处理代码冲突
仓库体积过大,如何减小?
如何找回被删除的仓库数据
Gitee 产品配额说明
GitHub仓库快速导入Gitee及同步更新
什么是 Release(发行版)
将 PHP 项目自动发布到 packagist.org
仓库举报
回到顶部
登录提示
该操作需登录 Gitee 帐号,请先登录后再操作。
立即登录
没有帐号,去注册