• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Coldfusion MX 7 problem

I googled Exception in thread "main" java.lang.NoClassDefFoundError: coldfusion/tools/CfstatMain and found that its a "known" issue.
Have a look on the MX site, there could be something there?
 
I fixed this problem Exception in thread
but it has nothing to my issue, still cannot process cfml
 
That all looks good.

What does:

# grep .cfm /var/www/vhosts/cftest.com/conf/httpd.include

Show?
 
Code:
grep .cfm /var/www/vhosts/cftest.com/conf/httpd.include
                AddHandler jrun-handler .jsp .jws .cfm .cfml .cfc
 
/opt/coldfusionmx7/runtime/servers/coldfusion/SERVER-INF/jrun.xml

Your built-in JRun Web Server should be disabled like this:

<!-- ================================================================== -->
<!-- This is the built-in JRun Web Server -->
<!-- ================================================================== -->
<service class="jrun.servlet.http.WebService" name="WebService">
<attribute name="port">8500</attribute>
<attribute name="interface">*</attribute>
<attribute name="deactivated">true</attribute>
<attribute name="activeHandlerThreads">8</attribute>
<attribute name="minHandlerThreads">1</attribute>
<attribute name="maxHandlerThreads">1000</attribute>
<attribute name="mapCheck">0</attribute>
<attribute name="threadWaitTimeout">300</attribute>
<attribute name="backlog">500</attribute>
<attribute name="timeout">300</attribute>
</service>
<!-- Uncomment this service to use SSL with the JRun Web Server
Note that you MUST create your own keystore before using this service
<service class="jrun.servlet.http.SSLService" name="SSLService">
<attribute name="port">9100</attribute>
<attribute name="keyStore">{jrun.rootdir}/lib/keystore</attribute>
<attribute name="keyStorePassword">changeit</attribute>
<attribute name="trustStore">{jrun.rootdir}/lib/trustStore</attribute>
<attribute name="socketFactoryName">jrun.servlet.http.JRunSSLServerSocketFactory</attribute>
</service>
-->
And your Apache server enabled like this:

<!-- ========================================================================= -->
<!-- This service is for communicating with a native (IIS, Apache, Netscape) -->
<!-- web server. -->
<!-- To run this service in a secure mode via SSL, set the keyStore, -->
<!-- keyStorePassWord, trustStore and socketFactoryName attributes. -->
<!-- ========================================================================= -->
<service class="jrun.servlet.jrpp.JRunProxyService" name="ProxyService">
<attribute name="activeHandlerThreads">8</attribute>
<attribute name="minHandlerThreads">1</attribute>
<attribute name="maxHandlerThreads">1000</attribute>
<attribute name="mapCheck">0</attribute>
<attribute name="threadWaitTimeout">300</attribute>
<attribute name="backlog">500</attribute>
<attribute name="deactivated">false</attribute>
<attribute name="interface">*</attribute>
<attribute name="port">51011</attribute>
<attribute name="timeout">300</attribute>
<!-- set this to false for multi-hosted sites -->
<attribute name="cacheRealPath">false</attribute>
<!--
<attribute name="keyStore">{jrun.rootdir}/lib/keystore</attribute>
<attribute name="keyStorePassword">changeit</attribute>
<attribute name="trustStore">{jrun.rootdir}/lib/trustStore</attribute>
<attribute name="socketFactoryName">jrun.servlet.jrpp.JRunProxySSLServerSocketFactory</attribute>
-->
</service>

Check yours to ensure that you have not enabled the defualt built in web server.
 
I disabled built-in web server. Nothing changed.
Vhost's log files have no errors.
 
Did you by chance restart the coldfusionmx7 server aswell as apache after that?
 
If the built in web server was used there may be more configuiration changes required.

I would suggest if possible to re-install coldfusionmx7, this time ensure that you select the apache web server during the installation and that you have provided the correct paths to the, httpd binary, config files and restart script.
 
I removed and reinstalled coldfusion without built-in web server.
Same effect...

The only suspicious thing I see is jrunserver.store file.
After Plesk Coldfusion configuration it contains the line:
proxyserver=127.0.0.1:51011

After I restart both coldfusion and apache that line disappears in a moment but "proxyserver=" remains.
 
Back
Top