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:
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:
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:
> 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:
> 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 4 January 2011 19:50, mazman <markmaze...@gmail.com> wrote:
> > 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?
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:
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/
On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com> wrote: > 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: > > 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:
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.
On Tue, Jan 4, 2011 at 9:07 AM, Todd Rafferty <t...@getrailo.org> wrote: > 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:
> 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/
> On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com> wrote:
>> 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: >> > 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:
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.:
> 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.
> On Tue, Jan 4, 2011 at 9:07 AM, Todd Rafferty <t...@getrailo.org > <mailto:t...@getrailo.org>> wrote:
> 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:
> 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/
> On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com > <mailto:markmaze...@gmail.com>> wrote:
> 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 > <mailto:t...@getrailo.org>> wrote: > > 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 <mailto: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:
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/
On Tue, Jan 4, 2011 at 9:22 AM, Eric Cobb <railot...@ecartech.com> wrote: > 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.:
> 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.
> On Tue, Jan 4, 2011 at 9:07 AM, Todd Rafferty <t...@getrailo.org> wrote:
>> 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:
>> 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/
>> On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com> wrote:
>>> 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: >>> > 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:
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.
> 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/
> On Tue, Jan 4, 2011 at 9:22 AM, Eric Cobb <railot...@ecartech.com> wrote:
> > 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.:
> > 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.
> > On Tue, Jan 4, 2011 at 9:07 AM, Todd Rafferty <t...@getrailo.org> wrote:
> >> 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:
> >> 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/
> >> On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com> wrote:
> >>> 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:
> >>> > 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:
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.
On Tue, Jan 4, 2011 at 10:54 AM, mazman <markmaze...@gmail.com> wrote: > 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.
> On Jan 4, 9:36 am, Todd Rafferty <t...@getrailo.org> wrote: > > 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/
> > On Tue, Jan 4, 2011 at 9:22 AM, Eric Cobb <railot...@ecartech.com> > wrote: > > > 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.:
> > > 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.
> > > On Tue, Jan 4, 2011 at 9:07 AM, Todd Rafferty <t...@getrailo.org> > wrote:
> > >> 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:
> > >> 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/
> > >> On Tue, Jan 4, 2011 at 6:50 AM, mazman <markmaze...@gmail.com> > wrote:
> > >>> 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: > > >>> > 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: