UNCOMMENT an entry in a XML file

Posted on 2007-10-04
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
    LVL 60

    Accepted Solution

    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


    Thanks Geert, that did the trick.
    LVL 13

    Expert Comment

    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

    Featured Post

    Free Trending Threat Insights Every Day

    Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

    Join & Write a Comment

    Suggested Solutions

    Title # Comments Views Activity
    Dynamic SQL statements to parse XML 3 30
    JAXB error help 2 38
    RSS Feed Validation 2 40
    Removing information on Duplicate XML Nodes 24 60
    The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
    Many times as a report developer I've been asked to display normalized data such as three rows with values Jack, Joe, and Bob as a single comma-separated string such as 'Jack, Joe, Bob', and vice versa.  Here's how to do it. 
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    Here's a very brief overview of the methods PRTG Network Monitor ( offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…

    754 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

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now