RE: [coldbox:9583] Railo 3.2 Coldbox 3.0 / Links Broken

Looks like your Tomcat wildcard mapping for Railo isn’t set up for SES urls. I don’t know anything about Railo and Tomcat, but it needs to be matching .cfm/ It looks like it’s only sending requests to Railo that look like *.cfm

Thanks!

~Brad

I though that is something like that, Im also new to tomcat-railo. Any
of you guys that can lead me to a good direction, and check that up?

At the mean time will start figuring it out.

Thank you Brad

Xerrano

Got it, perfect now... Thank you Brad, that was it.

I add this code into the "<!-- The mapping for the Railo servlet -->"
and it worked:

<servlet-mapping>
  <servlet-name>CFMLServlet</servlet-name>
  <url-pattern>/index.cfm/*</url-pattern>
</servlet-mapping>

Help again, :frowning:

All my content:
"/includes/images"
"/includes/javascripts"
"/includes/styles"

is broken....

Instead to access: http://www.vallartacharters.com/includes/images/tours/tn/TOUMXCAN00000003/TOUMXCAN00000003_1.jpg
Is trying to resolve it like:
http://www.vallartacharters.com/index.cfm/tours/includes/images/tours/tn/TOUMXCAN00000003/TOUMXCAN00000003_1.jpg

Now is broken, I think this has to be from the servlet-mapping, no?

Any ideas?

What are you using to build the links? I hope you are not using
event.buildLink() for images and css!

Regards,
Andrew Scott
http://www.andyscott.id.au/

Thank you Andrew,

No Im using just plain src="links" like:

<script src="/includes/javascript/jQuery/jquery-1.5.1.min.js"
type="text/javascript"></script>
<link rel="stylesheet" href="/includes/styles/blueprint/screen.css"
type="text/css" media="screen, projection">
<img src="/includes/images/addtocart_tourheader.png" alt=""
width="112" height="29" />

Thanks again, hope to get this fix fast, since... well, I really need
to get it going...

All help will be appreciated.

Felipe Serrano

Are you using SES with ISAPI rewrite rules?

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of X-CFW
Sent: Thursday, 21 April 2011 10:07 AM
To: ColdBox Platform
Subject: [coldbox:9660] Re: Railo 3.2 Coldbox 3.0 / Links Broken

Thank you Andrew,

No Im using just plain src="links" like:

<script src="/includes/javascript/jQuery/jquery-1.5.1.min.js"
type="text/javascript"></script>
<link rel="stylesheet" href="/includes/styles/blueprint/screen.css"
type="text/css" media="screen, projection"> <img
src="/includes/images/addtocart_tourheader.png" alt=""
width="112" height="29" />

Thanks again, hope to get this fix fast, since... well, I really need to

get it

Im working on Railo/Tomcat, the site was working just fine until move
it to Railo server, the .htaccess stop working

Tahnk you again

If you aree using full rewrites make sure you haven the ability to skip real files and directories or do not rewrite images

Luis Majano
President
Ortus Solutions, Corp

Hi Luis,

Thank you for your reply, can you offer some kind of clue to check
that up, Im a little confuse, sinse that site was working just fine in
coldbox 3.0 in CF9/Apache/Centus, the issue start when I migrate it to
a new server with Tomcat/Railo3.2
Im using the main .htaccess that coldbox comes with. No changes (but
it seems that Tomcat do not work with htaccess, Im basically new to
Apache, but Brand New to Tomcat)

Thank you for any enlightment :slight_smile:

PS: I have seen your Coldbox Training Workshops, Im very interested in
those, and I'm sure lots of others too, are you planning to put those
online some how?

Felipe Serrano

HI Felipe
THe problem is that Tomcat does not understand .htaccess files. Those are specific to Apache mod_rewrite. So you have some options:

  1. Stick to Tomcat but use a rewrite filter like Tuckey (caveat: works on only the root application)
  2. Keep Apache and use the Tomcat apache connector and continue to use mod_rewrite

My personal preference is that I would stick always to Apache proxying requests to Tomcat.

Yes, I am working very hard to have online instructor led training and also self-paced e-learning coming soon.

Luis F. Majano
President
Ortus Solutions, Corp

ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com

That is great to hear Luis, I'll keep tuned to that!

And thank you to explain about Tomcat and Apache, I'll be doing some
tests
taking your comments as a guide.

Felipe Serrano

Hi there all,

I decide to start from scratch and see where things start to get
linked-broken, I upload the advance template.

Link:
http://www.vallartacharters.com/index.cfm/General

When I open the page, the coldbox logo (/includes/images/logo.png)
does not get displayed in the page (above left), if I right-click and
try to see the logo in another window...

I get this route:
http://www.vallartacharters.com/index.cfm/General/includes/images/coldbox.png

Instead of:
http://www.vallartacharters.com/includes/images/coldbox.png

But if I use this route, I got a Page Not Found

The content on my app/WEB-IN/web.xml
/

Are you using Apache as the connector to tomcat?

If not then you need to look at how TomCat handles rewrite rules, and a
quick google shows many ways and 3rd part libraries that you can use to do
this. However not too many of these options use the .htaccess file. Which
means if you want to use that you will need to find one that runs with
tomcat and uses this as it rules definition file.

Regards,
Andrew Scott
http://www.andyscott.id.au/

From: coldbox@googlegroups.com [mailto:coldbox@googlegroups.com] On
Behalf Of X-CFW
Sent: Friday, 22 April 2011 3:35 AM
To: ColdBox Platform
Subject: [coldbox:9682] Re: Railo 3.2 Coldbox 3.0 / Links Broken

Hi Luis,

Thank you for your reply, can you offer some kind of clue to check that

up,

Im a little confuse, sinse that site was working just fine in coldbox 3.0

in

CF9/Apache/Centus, the issue start when I migrate it to a new server with
Tomcat/Railo3.2 Im using the main .htaccess that coldbox comes with. No
changes (but it seems that Tomcat do not work with htaccess, Im basically
new to Apache, but Brand New to Tomcat)

Thank you for any enlightment :slight_smile:

PS: I have seen your Coldbox Training Workshops, Im very interested in
those, and I'm sure lots of others too, are you planning to put those

online

Hi Andrew...

I use the mod_jk connector to pass requests from Apache to Tomcat (and
then to Railo),

Thanks again

Sorry I am not going to be off much help, I don't and have never tried
running in this situation.

However what I can say is what it appears to be, and it appears that you
need to have a rule so that the includes directory is not rewritten.

Regards,
Andrew Scott
http://www.andyscott.id.au/

I prefer to use mod proxy ajp for proxying Apache requests to Tomcat,
configuration is simpler methinks. Here's a blog post that explains
how to use it (ignore the main subject of the post, it is plain
nonsense (my own post), but the mox proxy bit is useful).

The basics though is that you wind up using mod_rewrite to proxy to
tomcat - which should make things simple here.

http://fusion.dominicwatson.co.uk/2009/11/multiple-railo-sites-on-single-tomcat.html

HTH

Dominic

Thank you Andrew and thank you Dominic, I will keep trying Dominics
and see what happen...

Thank you all again

Felipe Serrano