Servlet实例差异 [英] Servlet Instance Differences

查看:82
本文介绍了Servlet实例差异的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



我在Windows中运行Tomcat 7.0中的Java servlet(Java 1.6.0.29)。已设置SSL以加密servlet和数据库之间的信息。另外,我有一个servlet的测试实例和一个Live实例。我使用SoapUI模拟Web请求,Wireshark检查加密。问题在于测试servlet通信在TO和FROM SQL Server数据库服务器中都是加密的。但是,在Live实例中,只有一些通信TO和FROM相同的SQL Server数据库服务器被加密。



有人可以告诉我在实例中应该检查哪些差异?



我检查过每个servlet实例在APPLICATIONS web.xml文件中都有以下XML



 <   security-constraint  >  
< web-resource-collection >
< web-resource-name > securedapp < / web-resource-name >
< url-pattern > / * & / url-pattern >
< / web-resource-collection >
< user-data-constraint >
< transport-guarantee > 机密< / transport-guarantee > ;
< / user-data-constraint >
< / security-constraint < span class =code-keyword>>





提前致谢



AJFarroll

解决方案

大家好,



我找到了答案。我在这个论坛上通过另一个问题得到了协助;



使用SSL的Servlet安全性 [ ^ ]



发现在我的Eclipse开发环境中有两个context.xml文件可能导致配置冲突。



此外,发现Java服务器的两个实例,即Test和Live可以在同一个实例Tomcat上运行,然后显然可以在同一台机器上运行,但不能实现SSL。使用SSL实现,一次只能部署一个实例。除非有人知道这方面当然我会欢迎任何反馈



问候



AJFarroll

Hi all,

I have a Java servlet (Java 1.6.0.29) running in Tomcat 7.0 all in Windows. SSL has been set up to encrypt information between the servlet and databases. Also, I have a test instance of the servlet and a Live instance. I am using SoapUI to simulate web requests and Wireshark to check the encryption. The problem is in the Test servlet communication is encrypted fine in both TO AND FROM a SQL Server database server. However, in the Live instance only some of the communication TO and FROM the same SQL Server database server is encrypted.

Could someone please tell me what differences I should check in the instances?

I have checked that each servlet instance has the following XML in the APPLICATIONS web.xml file

<security-constraint>
    <web-resource-collection>
    <web-resource-name>securedapp</web-resource-name>
    <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <user-data-constraint>
    <transport-guarantee>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>



Thanks in advance

AJFarroll

解决方案

Hi all,

I found an answer to this. I was assisted through another question on this forum;

Servlet Security with SSL[^]

Discovered that in my Eclipse development environment there were two context.xml files that were probably causing conflicting configurations.

Also,iscovered that two instances of a Java servelt, i.e. Test and Live can run on the same instance Tomcat and then same machine obviously, but NOT with SSL implemented. With SSL implemented only one instance can be deployed at once. Unless someone knows a way around this of course I would welcome any feedback

Regards

AJFarroll


这篇关于Servlet实例差异的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆