On 07/09/2010 13:37, David Long wrote:
> I have an Apache Tomcat 7.0.2 development environment setup on my Ubuntu
> 10.04 laptop.  I currently have some servlet's setup in the global web.xml
> file to handle .cfm files.  

Hmm.  This is the standard practice for ColdFusion?

> The servlet uses one version of a ColdFusion
> server, but I recently started a project that requires a different
> ColdFusion server.  So I setup a new host and installed the ColdFusion
> server on the host.  I setup the proper web.xml file with all the new
> servlets and mappings (using different servlet names than what was in the
> global web.xml.

> I am now noticing some really strange behavior when I try to navigate to my
> host:

> 1) The global servlet sets up a virtual directory (/railo-context/) and when
> I try to navigate to a file there (/railo-context/admin.cfm) the file gets
> served by my private CF Servlet.

How many apps do you have deployed and which are relying on the default
web.xml and which the 'private' one with CF defined therein?

Is the file admin.cfm present, or is it virtual?

> 2) When I try to navigate to the welcome file (/index.cfm) I get the global
> servlet.

Is the file index.cfm present, or is it virtual?


p

> Here are my servlet setups:
> 
> Global web.xml:
> <servlet>
> <servlet-name>GlobalCFMLServlet</servlet-name>
> <description>CFML runtime Engine</description>
> <servlet-class>railo.loader.servlet.CFMLServlet</servlet-class>
> <init-param>
> <param-name>configuration</param-name>
> <param-value>/WEB-INF/railo/</param-value>
> <description>Configuraton directory</description>
> </init-param>
> <!-- init-param>
> <param-name>railo-server-root</param-name>
> <param-value>.</param-value>
> <description>directory where railo root directory is stored</description>
> </init-param -->
> <load-on-startup>1</load-on-startup>
> </servlet>

> <servlet>
> <servlet-name>GlobalAMFServlet</servlet-name>
> <description>AMF Servlet for flash remoting</description>
> <servlet-class>railo.loader.servlet.AMFServlet</servlet-class>
> <load-on-startup>1</load-on-startup>
> </servlet>

> <servlet>
> <servlet-name>GlobalFileServlet</servlet-name>
> <description>File Servlet for simple files</description>
> <servlet-class>railo.loader.servlet.FileServlet</servlet-class>
> <load-on-startup>2</load-on-startup>
> </servlet>

> <servlet-mapping>
> <servlet-name>GlobalCFMLServlet</servlet-name>
> <url-pattern>*.cfm</url-pattern>
> </servlet-mapping>

> <servlet-mapping>
> <servlet-name>GlobalCFMLServlet</servlet-name>
> <url-pattern>/index.cfm/*</url-pattern>
> </servlet-mapping>

> <servlet-mapping>
> <servlet-name>GlobalCFMLServlet</servlet-name>
> <url-pattern>*.cfml</url-pattern>
> </servlet-mapping>

> <servlet-mapping>
> <servlet-name>GlobalCFMLServlet</servlet-name>
> <url-pattern>*.cfc</url-pattern>
> </servlet-mapping>

> <servlet-mapping>
> <servlet-name>GlobalAMFServlet</servlet-name>
> <url-pattern>/flashservices/gateway/*</url-pattern>
> </servlet-mapping>

> <!--<servlet-mapping>
> <servlet-name>GlobalFileServlet</servlet-name>
> <url-pattern>/</url-pattern>
> </servlet-mapping>-->


> Private web.xml:
>     <servlet id="coldfusion_servlet_3">
>         <servlet-name>CfmServlet</servlet-name>
>         <display-name>CFML Template Processor</display-name>
>         <description>Compiles and executes CFML pages and tags</description>
>         <servlet-class>coldfusion.bootstrap.BootstrapServlet</servlet-class>
>         <init-param id="InitParam_1034013110656ert">
>             <param-name>servlet.class</param-name>
>             <param-value>coldfusion.CfmServlet</param-value>
>         </init-param>
>         <load-on-startup>4</load-on-startup>
>     </servlet>
>     <servlet id="coldfusion_servlet_4">
>         <servlet-name>GraphServlet</servlet-name>
>         <display-name>GraphServlet</display-name>
>         <description>Serves up graph data</description>
>         <servlet-class>coldfusion.bootstrap.BootstrapServlet</servlet-class>
>         <init-param id="InitParam_1034013110657xx">
>             <param-name>servlet.class</param-name>
>             <param-value>coldfusion.graph.GraphServlet</param-value>
>         </init-param>
>     </servlet>

>     <servlet id="coldfusion_servlet_5">
>         <servlet-name>CFCServlet</servlet-name>
>         <display-name>CFC Processor</display-name>
>         <description>Compiles and executes CF web components</description>
>         <servlet-class>coldfusion.bootstrap.BootstrapServlet</servlet-class>
>         <init-param id="InitParam_1034013110657ax">
>             <param-name>servlet.class</param-name>
>             <param-value>coldfusion.xml.rpc.CFCServlet</param-value>
>         </init-param>
>         <load-on-startup>10</load-on-startup>
>     </servlet>

>     <servlet-mapping id="coldfusion_mapping_3">
>         <servlet-name>CfmServlet</servlet-name>
>         <url-pattern>*.cfm</url-pattern>
>     </servlet-mapping>

>     <servlet-mapping id="coldfusion_mapping_4">
>         <servlet-name>CFCServlet</servlet-name>
>         <url-pattern>*.cfc</url-pattern>
>     </servlet-mapping>

>     <servlet-mapping id="coldfusion_mapping_5">
>         <servlet-name>CfmServlet</servlet-name>
>         <url-pattern>*.cfml</url-pattern>
>     </servlet-mapping>
> 

Attachment: 0x62590808.asc
Description: application/pgp-keys

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to