Railo upgrade question

204 views
Skip to first unread message

Russ Michaels

unread,
Jul 17, 2015, 1:42:04 PM7/17/15
to lu...@googlegroups.com
Hey chaps,

not got around to upgrading any of my Railo systems yet, but am about to do cfmldeveloper.com
Now this is using a custom Helicon Zoo setup which I am getting rid of, so I really need to just do a clean installation. So my question is, will this cause any problem for the existing Railo sites. Obviously all their settings are stored in their local web-inf folder, so I am hoping most folks won't even notice, but saying that, I have on occasion re-installed Railo and found that sites no longer worked unless I deleted the WEB-INF folder from sites and let it get re-created, I never did find out why though.


Andrew Dixon

unread,
Jul 17, 2015, 4:38:18 PM7/17/15
to lu...@googlegroups.com
Hi Russ,

I'm pretty sure if you do a fresh install it will not migrate the settings over. I might be wrong but I'm pretty sure that is the case. I think it only migrates the settings if you do the JAR replacement method.

Kind regards,

Andrew

--
You received this message because you are subscribed to the Google Groups "Lucee" group.
To unsubscribe from this group and stop receiving emails from it, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/lucee/8d21f7dd-e442-4bb6-bb95-1a6268deb237%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Terry Bankert

unread,
Jul 17, 2015, 4:53:41 PM7/17/15
to lu...@googlegroups.com
I don't know that's necessarily true, I recently attempted the upgrade method on one of my dev servers and it went horribly wrong.  Ended up having to do a clean install, and even those folders that weren't already swapped out in the railo to lucee upgrade maintained their previous settings from railo.

Russ Michaels

unread,
Jul 17, 2015, 5:03:35 PM7/17/15
to lu...@googlegroups.com
well thankfully I do maintain complete server backups even of cfmldeveloper, so I can roll it back if it all goes wrong :-)

--
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/Wf3qLKIJ6iI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.

To post to this group, send email to lu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--

--

Russ Michaels
Blog: www.michaels.me.uk
skype: russmichaels

My other sites/projects
www.bluethunder.co           : SME hosting solutions
www.cfmldeveloper.com        : ColdFusion/Railo developer hosting
www.cfsearch.com             : ColdFusion search engine
www.cflive.net               : Live CFML console/testing tool


Russ Michaels

unread,
Jul 19, 2015, 3:55:47 PM7/19/15
to lu...@googlegroups.com
Well sadly this did not go too well.
I did a new install of Lucee, which all went without error, and I can access lucee on port 8888, but when accessing any sites through IIS all I get is a blank page, yes detailed logging is enabled in IIS.
No errors in tomcat log, or boncode log, mod_cfml log or IIS event log.

I have reinstalled boncode for good measure, and downloaded the latest copy from the site and yes logging is enabled.

any suggestions ?


 

Brad Wood

unread,
Jul 20, 2015, 11:00:12 AM7/20/15
to lu...@googlegroups.com
Russ, since I'm not sure if you saw my reply on Twitter-  I have gotten a blank page before when Tomcat hasn't match a host.  Specifically, if you have a default host specified at the engine, but the name doesn't match any of the defined hosts, you'll get the blank page.

Can you confirm the HTTP or AJP ports that your connecting to?  Also, what happens when you hit Tomcat's port directly-- does that work?

Thanks!

~Brad

Russ Michaels

unread,
Jul 20, 2015, 11:48:35 AM7/20/15
to lu...@googlegroups.com
Brad,
it is running on standard AJP port 8009
yes it works fine over tomcat port 8888
the host files is created in the catalina folder
I have tried adding a manual host entry rather than rely on mod_cfml and that doesn't help either
it even gives blank page for localhost as well.
bizzare that there are no log entries being created anywhere.

I do recall having this issue with Railo before as well, but don't recall if I ever solved it.


--
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/Wf3qLKIJ6iI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Bilal

unread,
Jul 20, 2015, 12:18:24 PM7/20/15
to lu...@googlegroups.com
Russ,
you might get a blank page if you use shared keys and they happen to be different on both ends. There are two different types (RequestSecret and ModCFMLSecret).

Just to check on a few things:
a) This server was blank before? If not you used uninstall to remove Railo?
b) You get a response on 8888 port (the tomcat web port)?
c) You get a response when making a connector version request on server? E.g. http://localhost/a.cfm?BonCodeConnectorVersion=true


-Bilal


Russ Michaels

unread,
Jul 20, 2015, 1:43:27 PM7/20/15
to lu...@googlegroups.com
Hi,

a) it had railo on it before, which I just shutdown prior to installing lucee, and then uninstalled it, and reinstalled connector in case there was a conflict.
b) as as i said, works fine on port 8888
3) yes I get
BonCodeAJP Connector Version 1.0.25
using setting file in C:\Windows\BonCodeAJP13.settings



--
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/Wf3qLKIJ6iI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Bilal

unread,
Jul 20, 2015, 7:28:39 PM7/20/15
to lu...@googlegroups.com
Thanks for checking.

Can you share here or via email to me the server.xml  (in lucee install dir) and BonCode setting file (in c:\windows)


-Bilal



Russ Michaels

unread,
Jul 20, 2015, 7:35:29 PM7/20/15
to lu...@googlegroups.com
sure. I have compared them against working lucee installs, and they look the same to me.

boncode settings
=============

<Settings>
<Server>localhost</Server>
<Port>8009</Port>
<EnableRemoteAdmin>True</EnableRemoteAdmin>
<EnableHeaderDataSupport>True</EnableHeaderDataSupport>
<ForceSecureSession>False</ForceSecureSession>
<AllowEmptyHeaders>False</AllowEmptyHeaders>
</Settings>

server.xml
=============

<?xml version='1.0' encoding='utf-8'?>
<!--
  Licensed to the Apache Software Foundation (ASF) under one or more
  contributor license agreements.  See the NOTICE file distributed with
  this work for additional information regarding copyright ownership.
  The ASF licenses this file to You under the Apache License, Version 2.0
  (the "License"); you may not use this file except in compliance with
  the License.  You may obtain a copy of the License at


  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
-->
<!-- Note:  A "Server" is not itself a "Container", so you may not
     define subcomponents such as "Valves" at this level.
     Documentation at /docs/config/server.html
 -->
<Server port="8005" shutdown="SHUTDOWN">
  <!-- Security listener. Documentation at /docs/config/listeners.html
  <Listener className="org.apache.catalina.security.SecurityListener" />
  -->
  <!--APR library loader. Documentation at /docs/apr.html -->
  <Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" />
  <!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
  <Listener className="org.apache.catalina.core.JasperListener" />
  <!-- Prevent memory leaks due to use of particular java/javax APIs-->
  <Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" />
  <Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" />
  <Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" />

  <!-- Global JNDI resources
       Documentation at /docs/jndi-resources-howto.html
  -->
  <!-- <GlobalNamingResources> -->
    <!-- Editable user database that can also be used by
         UserDatabaseRealm to authenticate users
    -->
    <!-- <Resource name="UserDatabase" auth="Container"
              type="org.apache.catalina.UserDatabase"
              description="User database that can be updated and saved"
              factory="org.apache.catalina.users.MemoryUserDatabaseFactory"
              pathname="conf/tomcat-users.xml" />
    -->
  <!-- </GlobalNamingResources> -->

  <!-- A "Service" is a collection of one or more "Connectors" that share
       a single "Container" Note:  A "Service" is not itself a "Container", 
       so you may not define subcomponents such as "Valves" at this level.
       Documentation at /docs/config/service.html
   -->
  <Service name="Catalina">
  
    <!--The connectors can use a shared executor, you can define one or more named thread pools-->
    <!--
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-" 
        maxThreads="150" minSpareThreads="4"/>
    -->
    
    
    <!-- A "Connector" represents an endpoint by which requests are received
         and responses are returned. Documentation at :
         Java HTTP Connector: /docs/config/http.html (blocking & non-blocking)
         Java AJP  Connector: /docs/config/ajp.html
         APR (HTTP/AJP) Connector: /docs/apr.html
         Define a non-SSL HTTP/1.1 Connector on port 8080
    -->
    <Connector port="8888" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    <!-- A "Connector" using the shared thread pool-->
    <!--
    <Connector executor="tomcatThreadPool"
               port="8080" protocol="HTTP/1.1" 
               connectionTimeout="20000" 
               redirectPort="8443" />
    -->           
    <!-- Define a SSL HTTP/1.1 Connector on port 8443
         This connector uses the JSSE configuration, when using APR, the 
         connector should be using the OpenSSL style configuration
         described in the APR documentation -->
    <!--
    <Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
               maxThreads="150" scheme="https" secure="true"
               clientAuth="false" sslProtocol="TLS" />
    -->

    <!-- Define an AJP 1.3 Connector on port 8009 -->
    <Connector port="8009" protocol="AJP/1.3" redirectPort="8443" />


    <!-- An Engine represents the entry point (within Catalina) that processes
         every request.  The Engine implementation for Tomcat stand alone
         analyzes the HTTP headers included with the request, and passes them
         on to the appropriate Host (virtual host).
         Documentation at /docs/config/engine.html -->

    <!-- You should set jvmRoute to support load-balancing via AJP ie :
    <Engine name="Catalina" defaultHost="localhost" jvmRoute="jvm1">         
    --> 
    <Engine name="Catalina" defaultHost="127.0.0.1">

      <!--For clustering, please take a look at documentation at:
          /docs/cluster-howto.html  (simple how to)
          /docs/config/cluster.html (reference documentation) -->
      <!--
      <Cluster className="org.apache.catalina.ha.tcp.SimpleTcpCluster"/>
      -->        

      <!-- Use the LockOutRealm to prevent attempts to guess user passwords
           via a brute-force attack -->
      <!-- <Realm className="org.apache.catalina.realm.LockOutRealm"> -->
        <!-- This Realm uses the UserDatabase configured in the global JNDI
             resources under the key "UserDatabase".  Any edits
             that are performed against this UserDatabase are immediately
             available for use by the Realm.  -->
        <!-- <Realm className="org.apache.catalina.realm.UserDatabaseRealm"
               resourceName="UserDatabase"/>
      </Realm> -->

      <Host name="127.0.0.1"  appBase="webapps"
            unpackWARs="false" autoDeploy="false">

        <!-- SingleSignOn valve, share authentication between web applications
             Documentation at: /docs/config/valve.html -->
        <!--
        <Valve className="org.apache.catalina.authenticator.SingleSignOn" />
        -->

        <!-- Access log processes all example.
             Documentation at: /docs/config/valve.html
             Note: The pattern used is equivalent to using pattern="common" -->
        <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"/>
<!-- visit modcfml.org for details on mod_cfml configuration options -->
<Valve className="mod_cfml.core"
loggingEnabled="false"
waitForContext="3"
maxContexts="200"
timeBetweenContexts="30000"
/>
      </Host>

      <Host name="localhost" appBase="webapps">
        <Context path="" docBase="C:\inetpub\wwwroot\" />
      </Host>

      <!--
        Add additional VIRTUALHOSTS by copying the following example config:
        REPLACE:
        [ENTER DOMAIN NAME] with a domain, IE: "mysite.com"
        [ENTER SYSTEM PATH] with your web site's base directory. IE: /home/user/public_html/ or C:\websites\www.mysite.com\ etc...
[ENTER DOMAIN ALIAS] with any domain that also points to this same site/directory. You can repeat this tag as often as needed. 
        Don't forget to remove comments!
      -->
      <!--
EXAMPLE HOST ENTRY:
        <Host name="lucee.org" appBase="webapps">
             <Context path="" docBase="/var/sites/getrailo.org" />
    <Alias>www.lucee.org</Alias>
    <Alias>my.lucee.org</Alias>
        </Host>
HOST ENTRY TEMPLATE:
        <Host name="[ENTER DOMAIN NAME]" appBase="webapps">
             <Context path="" docBase="[ENTER SYSTEM PATH]" />
    <Alias>[ENTER DOMAIN ALIAS]</Alias>
        </Host>
      -->


    </Engine>
  </Service>
</Server>


--
You received this message because you are subscribed to a topic in the Google Groups "Lucee" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/lucee/Wf3qLKIJ6iI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to lucee+un...@googlegroups.com.
To post to this group, send email to lu...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Russ Michaels

unread,
Jul 29, 2015, 12:44:28 PM7/29/15
to Lucee, bilal...@gmail.com
Hi,

any ideas  ?

Russ Michaels

unread,
Aug 10, 2015, 7:49:38 PM8/10/15
to Lucee, bilal...@gmail.com
I found the cause of the problem if anyone is interested.
It was the content compression setting in Lucee, I have outgoing rules setup in URL rewrite, and outgoing rules do not work with gzip content compression enabled.
I had actually thought of this before and had disabled this, but it turns out that you also have to restart lucee if you disable this setting as well as it doesn't pickup the change.
I found this out by enabling the level 4 logging in boncode, which showed that gzip was still enabled even though it was disabled in the lucee admin.

Quite a mystery this one as there were no other logs anywhere else showing me what the problem was.

HTH
Russ

mmm mmm

unread,
Aug 10, 2015, 9:01:13 PM8/10/15
to Lucee, bilal...@gmail.com
Just a little heads up, misspelled word website,

I have now installed LUCEE and it is set as the default CFML engine. So any new webiste created in WebsitePanel will have Lucee enabled by default, no other steps are required.
Reply all
Reply to author
Forward
0 new messages