====================================================================================== LOGGED AS BUG 49620 COLDFUSION MX INSTALLED BACK TO BACK WITH UPDATER 2 THROWS 404s, Solaris and Linux ======================================================================================
Problem Statement: On Solaris and Linux, installing CFMX and then Updater 2 (U2) back to back cause all cfms to give 404 on both internal and external web servers Scenario: - Install CFMX on Solaris, do not configure external web server - Do not start CFMX - Immediately install CFMX U2 - Start CFMX - Browse any .cfm via internal 8500 --> JRun Servlet Error and 404 File not found - Run wsconfig.jar, configure Apache 2.0.43, browse any .cfm --> 404 File not found Solution/Workaround: - After installing CFMX final, ***start the server*** (and possibly ***browse any .cfm like in CFIDE*** ?) - Stop the server. - Install U2 - Start server, all .cfm's serve correctly on JWS/8500 and external ws (Apache) Conclusions: This has only been reported by customers running Apache 2.0.43. Why? Very likely because U2 is the first version to support 2.0.43, so only U2 customers are using that platform. Earlier versions of Apache may have been configured for earlier versions of CFMX. Rather than upgrade both Apache and CFMX and then running wsconfig to manage the connectors, some of those users instead may have been putting on clean installs of CFMX followed by U2 right away. This scenario will cause all .cfms to give the 404s. The 404's after U2 have also been reported on Linux, but not Windows. Tested and confirmed on two Solaris machines so far. =========================================== Related reports: =========================================== 1) http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=668&forumid=14&refresh=0 2) http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=2&threadid=513658 3) http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=700&forumid=14&refresh=0 =========================================== Network packet analyzer =========================================== GET /foo.cfm HTTP/1.1 Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/msword, application/vnd.ms-powerpoint, application/x-shockwave-flash, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 4.0; H010818) Host: bock:85 Connection: Keep-Alive Cookie: MM_redirect=off; CFID=16; CFTOKEN=45115814; HIDEWELCOMEWINDOW=1; JSESSIONID=80302092651042646710763 HTTP/1.1 404 Not Found Date: Wed, 15 Jan 2003 16:24:29 GMT Server: Apache/2.0.43 (Unix) Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 7c <head><title>JRun Servlet Error</title></head><h1>404 File not found: /foo.cfm</h1><body> File not found: /foo.cfm</body> 0 =========================================== Apache 2.0.43 access_log =========================================== 10.1.84.165 - - [15/Jan/2003:11:14:06 -0500] "GET /foo.cfm HTTP/1.1" 404 124 10.1.84.165 - - [15/Jan/2003:11:14:43 -0500] "GET /foo.htm HTTP/1.1" 200 12 10.1.84.165 - - [15/Jan/2003:11:24:29 -0500] "GET /foo.cfm HTTP/1.1" 404 124 =========================================== Apache 2.0.43 htdocs =========================================== bash-2.03# ls -l ../htdocs/ | grep foo -rw-r--r-- 1 root other 12 Jan 15 11:14 foo.cfm -rw-r--r-- 1 root other 12 Jan 15 11:14 foo.htm bash-2.03# pwd /opt/apache/2.0.43/conf bash-2.03# cat httpd.conf | grep DocumentRoot # DocumentRoot: The directory out of which you will serve your DocumentRoot "/opt/apache/2.0.43/htdocs" bash-2.03# =========================================== JRun Settings from httpd.conf =========================================== # JRun Settings LoadModule jrun_module /opt/coldfusionmx_updater2/runtime/lib/wsconfig/1/mod_jrun20.so <IfModule mod_jrun20.c> JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap false JRunConfig Serverstore /opt/coldfusionmx_updater2/runtime/lib/wsconfig/1/jru nserver.store JRunConfig Bootstrap 127.0.0.1:51010 #JRunConfig Errorurl <optionally redirect to this URL on errors> AddHandler jrun-handler .jsp .jws </IfModule> =========================================== DOCROOT as set in CFMX U2's start script =========================================== bash-2.03# head -13 /opt/coldfusionmx_updater2/bin/coldfusion #!/bin/sh # chkconfig: 345 90 14 # description: starts the Coldfusion MX server PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin CONNECTOR="" RUNTIME_USER="nobody" JAVA_HOME="/opt/coldfusionmx_updater2/jre" JAVA_EXECUTABLE="/opt/coldfusionmx_updater2/jre/bin/java" DOCROOT="/opt/coldfusionmx_updater2/wwwroot" CF_DIR="/opt/coldfusionmx_updater2" bash-2.03# =========================================== DEFAULT VIRTUAL MAPPINGS IN jrun-web.xml =========================================== bash-2.03# tail /opt/coldfusionmx_updater2/wwwroot/WEB-INF/jrun-web.xml <virtual-mapping> <resource-path>/WEB-INF</resource-path> <system-path>/opt/coldfusionmx_updater2/wwwroot/WEB-INF</system-path> </virtual-mapping> </jrun-web-app> -----Original Message----- From: Charles Kibler [mailto:[EMAIL PROTECTED]] Sent: Monday, January 13, 2003 4:46 PM To: CF-Linux Subject: RE: cf5 & linux newbie At 01:31 PM 1/13/2003 -0500, you wrote: >Hello, > >I've seen other reports on this exact topic regarding the combination of >Apache 2.0.43 on Solaris or Linux with CFMX Updater 2. > >Attempting to reproduce this today, I installed Apache 2.0.43 from the >binary not the rpm, and then installed CFMX and Updater on a clean >server. I was not able to reproduce the problem so far, but I'd like to >keep looking into this. > >I am using Red Hat 8.0 vanilla (not supported due to some Verity, etc.. >issues). One difference is that you upgraded your Apache server from >2.0.40, whereas I installed a separate instance of 2.0.43. > >Below are some configurations to consider. It would be interesting to >know what mappings exist in the jrun.xml, what the docroot is set as in >the httpd.conf, and if the JRun Settings are in the httpd.conf. Finally, >there are two things to look into, creating a new mapping in jrun.xml and >also running wsconfig.jar to remove the existing connector and then >reinstall it. Also, what are the CF logs saying? Can you infer any other >conclusions from the logs? > > >Items for comparison: >--------------------- >- jrun-web.xml >- httpd.conf > > >jrun-web.xml >------------- >My /opt/coldfusionmx/wwwroot/WEB-INF/jrun-web.xml has only one virtual >mapping: > > <virtual-mapping> > <resource-path>/WEB-INF</resource-path> > <system-path>/opt/coldfusionmx/wwwroot/WEB-INF</system-path> > </virtual-mapping> jrun-web.xml -------------- <virtual-mapping> <resource-path>/WEB-INF</resource-path> <system-path>/opt/coldfusionmx/wwwroot/WEB-INF</system-path> </virtual-mapping> >/usr/local/apache2/conf/httpd.conf >----------------------------------- > >DocumentRoot "/var/www/html" My DocumentRoot "/var/www/html" >-and- > ># JRun Settings >LoadModule jrun_module /opt/coldfusionmx/runtime/lib/wsconfig/2/mod_jrun20.so ><IfModule mod_jrun20.c> > JRunConfig Verbose false > JRunConfig Apialloc false > JRunConfig Ssl false > JRunConfig Ignoresuffixmap false > JRunConfig Serverstore > /opt/coldfusionmx/runtime/lib/wsconfig/2/jrunserver.$ > JRunConfig Bootstrap 127.0.0.1:51010 > #JRunConfig Errorurl <optionally redirect to this URL on errors> > AddHandler jrun-handler .jsp .jws ></IfModule> httpd.conf ---------------- # JRun Settings LoadModule jrun_module /opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so <IfModule mod_jrun20.c> JRunConfig Verbose false JRunConfig Apialloc false JRunConfig Ssl false JRunConfig Ignoresuffixmap true JRunConfig Serverstore /opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store JRunConfig Bootstrap 127.0.0.1:51010 JRunConfig Errorurl <error.html> AddHandler jrun-handler .cfm .cfc .jsp .cfml .jws </IfModule> >Workarounds? >------------- >1) If the above entries are comparable to the equivalent on your system, >then perhaps you could add a second mapping in jrun-web.xml under the one >for /WEB-INF: > > <virtual-mapping> > <resource-path>/WEB-INF</resource-path> > <system-path>/opt/coldfusionmx/wwwroot/WEB-INF</system-path> > </virtual-mapping> > > <virtual-mapping> > <resource-path>/*</resource-path> > <system-path>/var/www/html</system-path> > </virtual-mapping> > >2) /opt/coldfusionmx/jre/bin/java -jar >/opt/coldfusionmx/runtime/lib/wsconfig.jar & > >That should start a gui on the X display. ColdFusionMX should be running >when using wsconfig. Remove the existing connector using the gui, then >Add the connector again by choosing "..." and browsing to and selecting >the conf directory such as /usr/local/apache2/conf > > > > >Related reports: >-------------------- >http://www.houseoffusion.com/cf_lists/index.cfm?method=messages&threadid=668&forumid=14&refresh=0 >Resolved (unknown solution?). > >http://webforums.macromedia.com/coldfusion/messageview.cfm?catid=2&threadid=513658 >Open. > > >Let me know how it goes. > >Steven Erat >Macromedia > > > > > >-----Original Message----- >From: Dave Wilson [mailto:[EMAIL PROTECTED]] >Sent: Monday, January 13, 2003 12:57 PM >To: CF-Linux >Subject: RE: cf5 & linux newbie > > >Charles, > >Have you got something like the following in your httpd.conf file? > ># JRun Settings >LoadModule jrun_module >/opt/coldfusionmx/runtime/lib/wsconfig/1/mod_jrun20.so ><IfModule mod_jrun20.c> > JRunConfig Verbose false > JRunConfig Apialloc false > JRunConfig Ssl false > JRunConfig Ignoresuffixmap false > JRunConfig Serverstore >/opt/coldfusionmx/runtime/lib/wsconfig/1/jrunserver.store > JRunConfig Bootstrap 127.0.0.1:51010 > #JRunConfig Errorurl <optionally redirect to this URL on errors> > AddHandler jrun-handler .jsp .jws ></IfModule> > >I had a similar experience when I first installed CFMX on a new RH7.2 with >Apache 1.3.27 machine. Everything appeared to install successfully then I >was getting 404's in the CF Administrator. I then discovered the jrun >directives were missing from my httpd.conf. > >To fix it, I completely removed CFMX as recommended in the release notes and >then reinstalled and all was well. > >As for your installation with Apache 2.0.43 - The process you described >sounds very different to the process I went through today in upgrading from >Apache 2.0.36 to 2.0.43 and applying Updater 2 - The exact process is >outlined at >http://www.macromedia.com/support/coldfusion/releasenotes/mx/releasenotes_mx >_updater.html#installApache > >Be careful - there are a couple small typoes in the instructions: >First typo is actually an incorrect directory assignation for the JVM >(remove "runtime") >Second typo is an extraneous space between "-" and "v" (remove the space) >Both typoes are in the sample command for running the web server connector. > >HTH, >Dave > >-----Original Message----- >From: Charles Kibler [mailto:[EMAIL PROTECTED]] >Sent: 13 January 2003 17:23 >To: CF-Linux >Subject: Re: cf5 & linux newbie > > >It is one of the acceptable documents, however, since I get a JRun Servlet >error instead of an http error, it appears that Apache is not getting the >file, but JRun is grabbing it and trying to handle it(as it should) but >does not know where it is. If I disable Coldfusion, I get an entirely >different error coming from Apache, which is expected then. > >I got a response back from Macromedia that said to look into >/lib/neo-runtime.xml in the following: >This is what I found: ><struct type='coldfusion.server.ConfigMap'> > <var name='/'> > <string>/var/www/html</string> > </var> ></struct> > >/var/www/html is the server document root, which is correct as shown above. > >I do figure that JRun somewhere does not have this setting to /var/www/html >where /CFIDE/adminstrator/index.cfm resides. > >At 10:49 AM 1/13/2003 -0600, you wrote: > >In your site description in httpd.conf file do you have the default > >document set > >to index.cfm? > > > >===================================== > >Douglas White > >group Manager > >mailto:[EMAIL PROTECTED] > >http://www.samcfug.org > >===================================== > >----- Original Message ----- > >From: "Charles Kibler" <[EMAIL PROTECTED]> > >To: "CF-Linux" <[EMAIL PROTECTED]> > >Sent: Monday, January 13, 2003 9:30 AM > >Subject: cf5 & linux newbie > > > > > >| Get a 404 File Not Found when trying to go to >CFIDE/administrator/index.cfm > >| > >| Linux 8.0 and updates are installed - box is up-to-date. Updated Apache >from > >2.0.40 to .43 as required for updater. Installed Coldfusion MX Enterprise > >using > >coldfusion-60-linux-en.bin (installed fine). > >| Installed cfmx_updater_linux.bin (installed with no errors) > >| I used /opt/coldfusionmx for the install dir > >| I used /var/www/html for the document root and location of CFIDE > >| I started coldfusion and the connector wizard succeeded and coldfusion > >started > >fine. > >| I did a restart of httpd and coldfusion - both succeeded fine. > >| When I try to access the /CFIDE/administrator/ index.cfm I get a JRun > >Servlet > >Error 404 Not Found. > >| I can put a html file in CFIDE and get it to display fine, as well as in > >administrator. It seems that Coldfusion does not know where the cfm files >are > >or the jrun handler does not. I have searched through all the faqs and > >searched > >google for the problems to no avail. Everything looks right. > >| Any help would be GREATLY appreciated > >| > >| > >| website: http://128.174.122.17/CFIDE/administrator/index.html > >| > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=14 Subscription: http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=14 Your ad could be here. Monies from ads go to support these lists and provide more resources for the community. http://www.fusionauthority.com/ads.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.14
