[Info-vax] ColdFusion on VMS
Arne Vajhøj
arne at vajhoej.dk
Sun Dec 13 22:34:15 EST 2009
On 13-12-2009 20:54, Arne Vajhøj wrote:
> On 13-12-2009 15:45, thierry.uso at wanadoo.fr wrote:
>> On Dec 13, 9:16 pm, Arne Vajhøj<a... at vajhoej.dk> wrote:
>>> On 13-12-2009 12:30, Tom Linden wrote:
>>>
>>>> Anybody doing it?
>>>
>>> In general or on VMS?
>>>
>>> I did not think it ran on VMS, but ...
>>
>> Maybe smith (an opensource Coldfusion engine written in Java) run on
>> OpenVMS :
>>
>> http://www.smithproject.org/
>
> Interesting.
>
> A quick glance in the download seems to indicate
> that you can relative easily package a standard
> war file containing the smith stuff and your
> own CFM files and deploy it on any servlet
> container including Tomcat on VMS.
I can confirm that.
C:\Work\cf>type hello.cfm
<cfset name= "Arne">
<cfoutput>Hello #name#</cfoutput>
C:\Work\cf>type web.xml
<?xml version="1.0" encoding="UTF-8"?>
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
version="2.4">
<servlet>
<servlet-name>admin</servlet-name>
<servlet-class>com.youngculture.smith.engine.servlets.Admin</servlet-class>
<init-param>
<param-name>adminallowed</param-name>
<param-value>true</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>admin</servlet-name>
<url-pattern>/IDE/*</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>cfmservlet</servlet-name>
<servlet-class>com.youngculture.smith.engine.servlets.SmithServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>cfmservlet</servlet-name>
<url-pattern>*.cfm</url-pattern>
</servlet-mapping>
<servlet>
<servlet-name>all</servlet-name>
<servlet-class>com.youngculture.smith.engine.servlets.AllServlet</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>all</servlet-name>
<url-pattern>/</url-pattern>
</servlet-mapping>
<welcome-file-list>
<welcome-file>index.cfm</welcome-file>
</welcome-file-list>
</web-app>
C:\Work\cf>type build.xml
<project name="cf" default="pack">
<property name="smith.dir" value="/DivJava/smith-bin-windows-1.3b6"/>
<target name="pack">
<war warfile="cf.war" webxml="web.xml">
<lib dir="${smith.dir}/wwwroot/WEB-INF/lib"/>
<fileset dir="." includes="*.cfm"/>
</war>
</target>
</project>
C:\Work\cf>ant
Buildfile: build.xml
pack:
[war] Building war: C:\Work\cf\cf.war
BUILD SUCCESSFUL
Total time: 1 second
And then copy cf.war to webapps in my VMS CSWS_JAVA 3.0 (Tomcat 5.5)
and it works.
Ofcourse Tom will need more than hello.cfm, but it does look as
a valid option.
Arne
More information about the Info-vax
mailing list