I am trying to configure JRun so that it can deploy an Enterprise Java application via an EAR file.  This EAR will contain a mixture of CFM and JSP pages, as well as Java classes.  (Strange mix, I know)

I have tried to configure my JRun server instance two seperate ways:
   1) By simply creating a new server instance from within the JCM
   2) By following Brandon Purcell's article on running multiple
      instances of CFMX with IIS.

After configuring the server instance, via procedure 1, I can render JSP and HTML pages, but not CFM pages.  These were placed in the default-war directory.  CFM pages return the CFM sourc code as a text file.

This is when I tried to follow procedure 2.

After configuring the server instance, via procedure 2, I was able to render a CFM, and HTML, page but I could no longer render JSP pages.  These were placed in the cfusion-war directory.  JSP pages give me a "500 Internal Server Error".

When I now deploy my J2EE application, via an EAR file, to that server instance.  The deployment appears to go without error.  When I review the configuration within JRun Management Console, I now see both {my-app} and the coldfusion-ear listed as J2EE components.  All other configuration items look to be fine as well.  I can still access, and render, HTML and CFM pages from the cfusion-war directory.

I then placed the same test CFM, and HTML, files within the WAR file and re-deployed the EAR file.  No errors on re-deploy.  The HTML page is located, and rendered properly; however, the CFM page is located, but only the ColdFusion text is rendered to the browser.

>From what I have read, this appears to be a proxy/connector problem.  I have exhausted my resources on trying to resolve this issue.  I am using IIS as my external web browser.  I have ran wsconfig to connect the web-site to the JRun server instance.  I used the following command:

java -jar wsconfig.jar -host 127.0.0.1 -server {my_jrun_server} -ws IIS
   -site {my_web_site} -map .cfm,.cfc,.cfml -coldfusion -v

This command appeared to work and resulted in the following output.

Created file C:\JRun4\lib\wsconfig\jrunwin32.dll
Found JRun server {my_jrun_server} at 127.0.0.1:2909
Found JRun server admin at 127.0.0.1:2910
Created file C:\JRun4\lib\wsconfig\1\jrun_iis6_wildcard.dll
Created file C:\JRun4\lib\wsconfig\jrun_iis6.dll
Created file C:\JRun4\lib\wsconfig\1\jrun_iis6_wildcard.ini
Created application extensions for site "{my_web_site}" (182816506)
      for C:\JRun4\lib\wsconfig\1\jrun_iis6_wildcard.dll
Created application extensions for site "{my_web_site}" (182816506)
      for C:\JRun4\lib\wsconfig\jrun_iis6.dll
Added default document index.cfm for site "{my_web_site}" (182816506)
Added C:\JRun4\lib\wsconfig\1\jrun_iis6_wildcard.dll to web service
      extension "Macromedia Server Extensions"
Added C:\JRun4\lib\wsconfig\jrun_iis6.dll to web service extension
      "Macromedia Server Extensions"
Created file C:\JRun4\lib\wsconfig\1\README.txt
Wrote file C:\JRun4\lib\wsconfig\wsconfig.properties
Stopped "World Wide Web Publishing Service" service
Started "World Wide Web Publishing Service" service
The Internet Information Server (IIS) connector was installed to
      "{my_web_site}"

I have also placed the following mapping within my web.xml file:

  <session-config>
    <session-timeout>20</session-timeout>
  </session-config>

  <servlet-mapping>
    <servlet-name>CfmServlet</servlet-name>
    <url-pattern>*.cfm</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>CfmServlet</servlet-name>
    <url-pattern>*.cfc</url-pattern>
  </servlet-mapping>
  <servlet-mapping>
    <servlet-name>CfmServlet</servlet-name>
    <url-pattern>*.cfml</url-pattern>
  </servlet-mapping>

This was performed to try and ensure the mappeings were not lost on the
EAR deployment.

The cruxed of the problem is; CFM pages are located but not rendered
through the CFMX engine.  Can someone please help?

Configuration:
   Windows Server 2003 Web Edition (with latest patches)
   JRun4 - Updater 3
   IIS v6.0
   EAR File built with Ant 1.6.1 using the <ear>, <jar> and <war> tags.

Thanks in advance for your responses.  I really do appreciate it....
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to