Skip to main content
January 10, 2007
Question

Need Help Finding ColdFusionMX/wwwroot/WEB-INF/classes in JRun

  • January 10, 2007
  • 2 replies
  • 375 views
I am trying to copy some class files into Jrun4 however the instructions are for the standalone install of ColdFusionMX. And I have 14 instances of WEB-INF and I am not sure where to place the files. Here are the instructions.

Copy FriendlyURLServlet.class, FriendlyURLServlet.java, FriendlyURLData.class, FriendlyURLData.java, and FriendlyURLs.txt to <cfusionmx>/wwwroot/WEB-INF/classes.

Ensure you have the following entries in <cfusionmx>/wwwroot/WEB-INF/web.xml

<servlet>
<servlet-name>FUServlet</servlet-name>
<display-name>FriendlyUrlServlet</display-name>
<description>Translates friendly URLs to objects</description>
<servlet-class>FriendlyURLServlet</servlet-class>
</servlet>

<servlet-mapping>
<servlet-name>FUServlet</servlet-name>
<url-pattern>/go/*</url-pattern>
</servlet-mapping>

If you want to make your own modifications to the servlet and data classes you might also want to add the following entries to <cfusionmx>/wwwroot/WEB-INF/jrun-web.xml

<reload>true</reload>
<compile>true</compile>

C:\JRun4\servers\default\SERVER-INF\temp\gateway-webapp.war-503482997\WEB-INF
C:\JRun4\servers\admin\SERVER-INF\temp\jmc-app.war-2118915695\WEB-INF
default-ear/default-war/WEB-INF
C:\JRun4\servers\samples\ws-ear\wsc-war\WEB-INF
C:\JRun4\servers\samples\ws-ear\ws-war\WEB-INF
C:\JRun4\servers\samples\travelnet-ear\travelnet-war\WEB-INF
C:\JRun4\servers\samples\techniques-ear\xdoclet-war\WEB-INF
C:\JRun4\servers\samples\techniques-ear\techniques-war\WEB-INF
C:\JRun4\servers\samples\flashsamples-ear\webapp\WEB-INF
C:\JRun4\servers\samples\default-ear\default-war\WEB-INF
C:\JRun4\servers\samples\compass-ear\compass-war\WEB-INF
C:\JRun4\servers\default\default-ear\default-war\WEB-INF
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF
C:\JRun4\servers\samples\jstl-war\WEB-INF
    This topic has been closed for replies.

    2 replies

    January 10, 2007
    I found the right directories to install the class files and modify the XML file. Here it is if you care to add it to your web site.

    Copy FriendlyURLServlet.class, FriendlyURLServlet.java, FriendlyURLData.class,
    FriendlyURLData.java, and FriendlyURLs.txt to
    <cfusionmx>/wwwroot/WEB-INF/classes.
    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\classes

    If you want to make your own modifications to the servlet and data classes you
    might also want to add the following entries to
    <cfusionmx>/wwwroot/WEB-INF/jrun-web.xml
    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\jrun-web.xml

    I have not been able to get IIS to recognize the Masking coming from FUServlet. I tried adding the .cfm extension that you recommended but it doesn't work when I try and run the test page.

    Domain
    Localhost

    Friendly URL
    /tmswebsite3/ID/11.cfm

    Real URL
    /tmswebsite3/index.cfm?ID=11

    I have tried many different combinations of this but it appears that IIS never hands it off to FUServlet

    Any thoughts on how I might get this working. Do I need to change some setting in IIS?
    Inspiring
    January 10, 2007
    cutie369 wrote:
    > I am trying to copy some class files into Jrun4 however the instructions are
    > for the standalone install of ColdFusionMX. And I have 14 instances of WEB-INF
    > and I am not sure where to place the files. Here are the instructions.
    >
    > Copy FriendlyURLServlet.class, FriendlyURLServlet.java, FriendlyURLData.class,
    > FriendlyURLData.java, and FriendlyURLs.txt to
    > <cfusionmx>/wwwroot/WEB-INF/classes.

    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\classes


    > If you want to make your own modifications to the servlet and data classes you
    > might also want to add the following entries to
    > <cfusionmx>/wwwroot/WEB-INF/jrun-web.xml

    C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\jrun-web.xml

    Jochem


    --
    Jochem van Dieten
    Adobe Community Expert for ColdFusion