Default documents in web.xml are not respected (developer / stand-alone server)

For some reason, when I look at a URL that ends in a folder (for example // localhost: 8500 / website / directory /), index.cfm does not load, and instead returns a 404 error page. I confirmed that the file .. . \ web-inf \ web.xml is used by changing filter mappings to enable the display of .htm and .txt files. In fact, none of the files in the welcome list section are used, even if they exist, which leads me to believe that something is wrong with this section of the web.xml file.

The web.xml files are as follows:

  • {install root} \ cfusion \ runtime \ conf \ web.xml
  • {root installation} \ cfusion \ Wwwroot \ WEB-INF \ web.xml

Both files contain the same XML as shown below.

<web-app> ... <welcome-file-list id="WelcomeFileList_1034013110672"> <welcome-file>index.cfm</welcome-file> <welcome-file>index.html</welcome-file> <welcome-file>index.htm</welcome-file> <welcome-file>index.txt</welcome-file> </welcome-file-list> ... </web-app> 

I recently updated to 6 updates, but I believe that the problem was always in the initial installation. Please note that this is a standalone development server.

Has anyone already decided this or have any ideas on how to proceed other than reinstall CF10 and use IIS?

+4
source share
2 answers

Late to the party, IMO, there are two possible reasons I can come up with for this problem.

  • Or you have an additional mapping, like "/", which the servletcontainer server accepts by default, which is responsible for navigating to the correct root path.
  • the name of your folder is that CF already has a mapping, for example. / flashservices / gateway /, CFFormGateway, cfform-internal, WSRPProducer, JSDebugServlet, flex2gateway

I think sharing your web.xml might help point out the problem here.

0
source

I had this problem lately and it was a case sensitivity issue in Tomcat (even though it was installing ColdFusion 10 on Windows).

My index.cfm index will load by default when I go to http://127.0.0.1 , but as soon as I go to http://127.0.0.1/mysite , I got 404. The folder was named mySite on Windows. As soon as I changed my URL to http://127.0.0.1/mysite , it started working.

0
source

All Articles