Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
file not found errors with blogcfc
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
mazman  
View profile  
 More options Jan 4 2011, 6:33 am
From: mazman <markmaze...@gmail.com>
Date: Tue, 4 Jan 2011 03:33:11 -0800 (PST)
Local: Tues, Jan 4 2011 6:33 am
Subject: file not found errors with blogcfc
I just moved by blogcfc blog from CF7 to the latest release of Railo.
The main pages work fine, but whenever I try to access a page that
uses the SES URL path after the .cfm file, the server throws a 404
error. Here are some examples:

THESE WORK:
http://www.mkville.com/blog/index.cfm
http://www.mkville.com/blog/index.cfm?year=2007&month=11&mode=month

THESE DO NOT WORK:
http://www.mkville.com/blog/index.cfm/ColdFusion
http://www.mkville.com/blog/index.cfm/2007/11


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Rafferty  
View profile  
 More options Jan 4 2011, 6:35 am
From: Todd Rafferty <t...@getrailo.org>
Date: Tue, 4 Jan 2011 06:35:33 -0500
Local: Tues, Jan 4 2011 6:35 am
Subject: Re: [railo] file not found errors with blogcfc

Did you add the URL re-writes to Tomcat or whatever server you're using?

On Tue, Jan 4, 2011 at 6:33 AM, mazman <markmaze...@gmail.com> wrote:
> I just moved by blogcfc blog from CF7 to the latest release of Railo.
> The main pages work fine, but whenever I try to access a page that
> uses the SES URL path after the .cfm file, the server throws a 404
> error. Here are some examples:

> THESE WORK:
> http://www.mkville.com/blog/index.cfm
> http://www.mkville.com/blog/index.cfm?year=2007&month=11&mode=month

> THESE DO NOT WORK:
> http://www.mkville.com/blog/index.cfm/ColdFusion
> http://www.mkville.com/blog/index.cfm/2007/11

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
http://getrailo.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mazman  
View profile  
 More options Jan 4 2011, 6:50 am
From: mazman <markmaze...@gmail.com>
Date: Tue, 4 Jan 2011 03:50:37 -0800 (PST)
Local: Tues, Jan 4 2011 6:50 am
Subject: Re: file not found errors with blogcfc
Coming from CF7/Apache/Linux I never had to use any rewrites so I
wasn't aware that I needed to do that. Can you point me to
documentation/information about what settings I need?

On Jan 4, 6:35 am, Todd Rafferty <t...@getrailo.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
James Holmes  
View profile  
 More options Jan 4 2011, 8:04 am
From: James Holmes <james.hol...@gmail.com>
Date: Tue, 4 Jan 2011 21:04:51 +0800
Local: Tues, Jan 4 2011 8:04 am
Subject: Re: [railo] Re: file not found errors with blogcfc
Which servlet container / J2EE server are you using?

--
WSS4CF - WS-Security framework for CF
http://wss4cf.riaforge.org/

On 4 January 2011 19:50, mazman <markmaze...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mazman  
View profile  
 More options Jan 4 2011, 8:53 am
From: mazman <markmaze...@gmail.com>
Date: Tue, 4 Jan 2011 05:53:15 -0800 (PST)
Local: Tues, Jan 4 2011 8:53 am
Subject: Re: file not found errors with blogcfc
Tomcat. I used the VivioTech installer.

On Jan 4, 8:04 am, James Holmes <james.hol...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Rafferty  
View profile  
 More options Jan 4 2011, 9:07 am
From: Todd Rafferty <t...@getrailo.org>
Date: Tue, 4 Jan 2011 09:07:43 -0500
Local: Tues, Jan 4 2011 9:07 am
Subject: Re: [railo] Re: file not found errors with blogcfc

That's because the JRUN / CF7 / Apache connector has some voodoo behind it
all to allow *.cfm/* -- Tomcat will recognize (filename).cfm/*, but not
*.cfm/*

I'm not sure about blogcfc, but for mango blog, I did the following. I went
into my WEB-INF directory and created a file called "web.xml" and then I
put:

=========================================
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <servlet-mapping>
       <servlet-name>RailoCFMLServlet</servlet-name>
       <url-pattern>/blog/post.cfm/*</url-pattern>
       <url-pattern>/blog/page.cfm/*</url-pattern>
       <url-pattern>/blog/archives.cfm/*</url-pattern>
       <url-pattern>/blog/author.cfm/*</url-pattern>
       <url-pattern>/blog/feeds/rss.cfm/*</url-pattern>
    </servlet-mapping>
</web-app>
=========================================

So, you need to figure out (or ask Jordan) what the <servlet-name> is and
put in the proper servlet name and then figure out what <url-pattern> that
BlogCFC requires.

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
http://getrailo.org/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Rafferty  
View profile  
 More options Jan 4 2011, 9:16 am
From: Todd Rafferty <t...@getrailo.org>
Date: Tue, 4 Jan 2011 09:16:19 -0500
Local: Tues, Jan 4 2011 9:16 am
Subject: Re: [railo] Re: file not found errors with blogcfc

Doing some basic searches on google this is one of your pieces:

<url-pattern>/index.cfm/*</url-pattern>

The <servlet-name> can be found in the Tomcat / conf directory, there's a
web.xml - search for <servlet-name> -- then follow the instructions as I
listed below.

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
http://getrailo.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eric Cobb  
View profile  
 More options Jan 4 2011, 9:22 am
From: Eric Cobb <railot...@ecartech.com>
Date: Tue, 04 Jan 2011 08:22:55 -0600
Local: Tues, Jan 4 2011 9:22 am
Subject: Re: [railo] Re: file not found errors with blogcfc

Yeah, I just got my blogCFC up and running on Railo/Tomcat a few weeks
ago, and I think I had to add these to the web.xml file to make
everything work.:

<url-pattern>/index.cfm/*</url-pattern>
<url-pattern>/page.cfm/*</url-pattern>

Thanks,

Eric Cobb
ECAR Technologies, LLC
http://www.ecartech.com
http://www.cfgears.com

On 1/4/2011 8:16 AM, Todd Rafferty wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Rafferty  
View profile  
 More options Jan 4 2011, 9:36 am
From: Todd Rafferty <t...@getrailo.org>
Date: Tue, 4 Jan 2011 09:36:20 -0500
Local: Tues, Jan 4 2011 9:36 am
Subject: Re: [railo] Re: file not found errors with blogcfc

Just to explain what the difference is between the two web.xml files:

* If you want Tomcat to handle the url-pattern is globally (in case you have
many many blogcfcs on your server), then you want to put it in the tomcat's
main conf/web.xml (look for the appropriate spot to put it in and you're
done and never have to touch it again)

* If you're like me and you prefer your stuff to be on a context by context
basis, then you put it in the WEB-INF/web.xml (exactly as I had it below)

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
http://getrailo.org/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mazman  
View profile  
 More options Jan 4 2011, 10:54 am
From: mazman <markmaze...@gmail.com>
Date: Tue, 4 Jan 2011 07:54:17 -0800 (PST)
Local: Tues, Jan 4 2011 10:54 am
Subject: Re: file not found errors with blogcfc
Awesome -- that worked! Here is a summary for future generations.
Thanks to everyone for their assistance.

* The following servlet mappings (after my bullet lists here) already
exist in the tomcat/conf/web.xml file when using the VivioTech
installer.

* Though /index.cfm/* exists, I don't think it was taking effect
because my blog is in the /blog/ folder (IS THIS CORRECT that you must
specify subfolders?).

* Per Todd's suggestion, I created a web.xml file in the WEB-INF
folder under my domain folder, added the entries similar to his
listing (note that "GlobalCFMLServlet" is the name of the servlet
created by the VivioTech installer). File with my changes listed
below.

===DEFAULT MAPPINGS IN MAIN TOMCAT web.xml FILE (I didn't change
this)===
<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>

===NEW web.xml FILE IN DOMAIN FOLDER===
<?xml version="1.0" encoding="ISO-8859-1"?>
<web-app xmlns="http://java.sun.com/xml/ns/javaee"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
    version="2.5">
    <servlet-mapping>
       <servlet-name>GlobalCFMLServlet</servlet-name>
       <url-pattern>/blog/index.cfm/*</url-pattern>
       <url-pattern>/blog/page.cfm/*</url-pattern>
       <url-pattern>/blog/print.cfm/*</url-pattern>
       <url-pattern>/blog/rss.cfm/*</url-pattern>
       <url-pattern>/blog/slideshow.cfm/*</url-pattern>
    </servlet-mapping>
</web-app>

On Jan 4, 9:36 am, Todd Rafferty <t...@getrailo.org> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Todd Rafferty  
View profile  
 More options Jan 4 2011, 11:20 am
From: Todd Rafferty <t...@getrailo.org>
Date: Tue, 4 Jan 2011 11:20:01 -0500
Local: Tues, Jan 4 2011 11:20 am
Subject: Re: [railo] Re: file not found errors with blogcfc

Mark,

Glad that worked for you. Thanks for looking up what the servlet name is in
the new tomcat installer, I haven't used it yet and it's good to know.
Because Tomcat won't handle more than one wildcard, your question below is
correct, it would have to be /blog/index.cfm/* because the file is in the
sub directory and can't be */index.cfm/*

Now, I'm not sure what'll happen if you mix Tomcat with tuckey's url rewrite
( http://www.tuckey.org/urlrewrite/ ) - however, seeing as you got it up and
running, I don't think it matters at this point.

~Todd

--
~Todd Rafferty ** Volunteer Railo Open Source Community Manager **
http://getrailo.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »