Entries Tagged as “Tomcat”

How to enable/disable Tomcat logs

July 26, 2015 / Krishna Reddy

  Administrator | Adobe ColdFusion | Adobe ColdFusion 10 | Adobe ColdFusion 11 | Adobe ColdFusion Builder | ColdFusion | ColdFusion 11 | Tomcat

Sometimes, depending on your need, you may want to enable or disable the tomcat logs.

This can be simply done changing a setting a in <ColdFusion_Home>\cfusion\runtime\conf\server.xml file.

At the end of this xml file you can see the following tag.


<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 

               prefix="localhost_access_log." suffix=".txt"

               pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>


Uncomment this tag as follows and restart the server for the changes to be effective.

<Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 

               prefix="localhost_access_log." suffix=".txt"

               pattern="%h %l %u %t &quot;%r&quot; %s %b" resolveHosts="false"/>

Similary, to enable the Tomcat logs, comment this tag.

When Tomcat logging is enabled, you can change the logging level in the logging.properties file by changing the following setting.

org.apache.catalina.core.ContainerBase.[Catalina].[localhost].level = WARN



Setting up ColdFusion in distributed envionment

July 02, 2015 / Krishna Reddy

  Administrator | ColdFusion | ColdFusion 11 | Connector | creating a website | customers | Docs | General | productivity | Tomcat | web application | web application development

You might want to set up ColdFusion in a distributed environment where ColdFusion is running on one machine and Web server is running on a different machine.

Following are the set of steps that have to be performed to achieve this (less error-prone):

This applies to both ColdFusion 10 and ColdFusion 11.

1) Have ColdFusion server installed in a machine.

2) Next thing is to download and install VC Runtime.

             - The version of VC Runtime that you have to install depends on the version of ColdFusion.

                Say, ColdFusion 11 needs VC Runtime 2012

                 (32-bit VC Runtime for 32-bit Web server and 64-bit VC Runtime for 64-bit Web server.

                  If you are not sure, you can install both)


                and ColdFusion 10 needs VC Runtime 2010


3) Copy the following contents from the machine where ColdFusion is running to the machine where Web server is running at the same location.





4) Open a Command prompt and run wsconfig tool

   C:\ColdFusion11>jre\bin\java -jar cfusion\runtime\lib\wsconfig.jar

    It will open a configuration window where you have to provide AppServer Host as the ColdFusion Server IP.

    Configure the connector.

Distributed environment is ready for use. Send requests to the Web server's URL with cfm files under web server root and same files under ColdFusion's Web root.

Web server would redirect these to ColdFusion, which is on some other machine.



Video : Configuring ColdFusion 10 connector with Apache Virtual Hosts

June 07, 2013 / Viny Nigam

  Adobe ColdFusion | Adobe ColdFusion 10 | Application Server | ColdFusion | Connector | Tomcat | Video

Catch Asha talk about configuring ColdFusion 10 connector with Apache Virtual Hosts 



Learn the basics of Apache Connector Configuration in ColdFusion 10 here : http://www.youtube.com/watch?v=lJ_pSAFcc3U

Let us know your thoughts/feedback/comments .



Connecting to JNDI data sources in ColdFusion 10

May 24, 2013 / Asha Kasala

  Adobe ColdFusion 10 | Tomcat

Here’s a guide to show you how to configure JNDI datasource in ColdFusion 10.

1. Get the JDBC Driver

The JDBC Driver needs to be placed in ColdFusion10/cfusion/runtime/lib folder.

2. context.xml configuration

Add a resource block before the closing tag (</Context>) in the context.xml present at ColdFusion10/cfusion/runtime/conf , which defines database connection detail :

<Resource name="jdbc/test" auth="Container" type="javax.sql.DataSource"

          maxActive="50" maxIdle="30" maxWait="10000"

          username="username" password="password"



For more information on the attributes please refer to http://tomcat.apache.org/tomcat-7.0-doc/jndi-resources-howto.html.For setting isolation level use the defaultTransactionIsolation attribute.

3. web.xml configuration

In the web.xml present at ColdFusion10/cfusion/wwwroot/WEB-INF , add the following just before the closing tag (</web-app>):


<description>MySQL Datasource example</description>






4. Add ColdFusion DataSource through Administrator

After saving the configuration files restart the ColdFusion server.Log in to ColdFusion Administrator and navigate to Data & Services > Data Sources and add a new Data Source by selecting J2EE Data Source(JNDI) in the driver drop down.For more details on this refer http://help.adobe.com/en_US/ColdFusion/10.0/Admin/WSc3ff6d0ea77859461172e0811cbf364104-7fdf.html .

Data Source registration page


Hope you found this useful.Write in to us if you have any issues with the Tomcat specific configuration.



Video : Learn about IIS connectors in ColdFusion10

April 26, 2013 / Viny Nigam

  Adobe ColdFusion | Adobe ColdFusion 10 | Application Server | Connector | Tomcat | Tuning | Video

In a previous video by Asha from Adobe team,we had discussed the various details about the Apache connector in ColdFusion 10.

In this video , Adobe engineer Kiran talks about configuring IIS with ColdFusion 10


You can find out more about it here


Blue Mango Theme Design By Mark Aplet

Super Powered by Mango Blog