Click here to Skip to main content
15,888,158 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

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>CONFIDENTIAL</transport-guarantee>
    </user-data-constraint>
</security-constraint>


Thanks in advance

AJFarroll
Posted

1 solution

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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900