On 30/07/2010 07:52, Bob Carpenter wrote:
> I have inherited a ColdFusion app that runs under JRun and uses several
> virtual-mappings for content in OS folders. The mappings look like this
> (there are 10 mappings):
> 
> <virtual-mapping>
>    <resource-path>/thecontent</resource-path>
>    <system-path>c:\some\os\file\path</system-path>
> </virtual-mapping>
> 
> I'd like to convert the app from JRun to Tomcat. I have the cfusion app
> running under TC6 - the admin tools all come up, etc, but I can't figure out
> how to get the web site content to display.

There isn't a direct equivalent in Tomcat 6.0.

You can create individual Context definitions which map to the system
resource, which may be suitable for static resources, by setting the
'docBase' attribute to the 'system-path' valuea and putting an .xml file
named to the 'resource-path' value in:

 apache-tomcat-6.x/conf/Catalina/<hostname>/<resource-path>.xml

where '<resource-path>' is the target path you wish to deploy the
resource at.  You replace a '/' in multi-level paths with a '#' symbol.

E.g. in a file called:

 conf/Catalina/localhost/the#content.xml

The definition would be:

 <Context docBase="c:\some\os\file\path">

Which would result in the contents of '...\file\path' being made
available at:

 localhost:8080/the/content

Tomcat 7.0 has an 'aliases' property on the Context element, if you are
prepared to live slightly closer to the edge.

 http://tomcat.apache.org/tomcat-7.0-doc/config/context.html


p

> Any ideas?
> 
> Thanks,
> 
> --Bob
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to