[Webinar] Learn how to a build a cloud-first strategyRegister Now


UNCOMMENT an entry in a XML file

Posted on 2007-10-04
Medium Priority
Last Modified: 2012-08-13
I am working with Tomcat 5.5 and I want to install an SSL certificate.  Apache instructions tell me to Uncomment and entry in the server.xml file.  Can you tell me how to Uncomment an entry in an EXM file?

Question by:ianbasis
  • 2
LVL 60

Accepted Solution

Geert Bormans earned 2000 total points
ID: 20016070
an XML comment is like this
starts with <!--
and ends with -->
so uncomment would be to take away these two constructs

often commenting is done like this
<tag>some text</tag>
the < and > are reused like this
<!--tag>some text</tag-->

if that is the case, taking away the !-- and -- is sufficient

If it is still not clear, you can post the config file and I will show you in real data



Author Comment

ID: 20016290

Thanks Geert, that did the trick.
LVL 13

Expert Comment

ID: 20016325
In server.xml (Tomcat 5.5) you probably see something like this:

    <Connector port="8443" maxHttpHeaderSize="8192"
               maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
               enableLookups="false" disableUploadTimeout="true"
               acceptCount="100" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />

Just like Gertone says, you need to remove the <!-- and --> to uncomment this connector. Below is an example that uses a keystore.

<Connector port="8443" keystoreFile="C:\websites\keystore\.keystore"
      maxThreads="150" minSpareThreads="25" maxSpareThreads="75"
      enableLookups="false" disableUploadTimeout="true"
      acceptCount="100" scheme="https" secure="true"
      clientAuth="false" sslProtocol="TLS" />
LVL 60

Expert Comment

by:Geert Bormans
ID: 20016637

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The Client Need Led Us to RSS I recently had an investment company ask me how they might notify their constituents about their newsworthy publications.  Probably you would think "Facebook" or "Twitter" but this is an interesting client.  Their cons…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses
Course of the Month20 days, 12 hours left to enroll

865 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question