Account Options

  1. Sign in
The old Google Groups will be going away soon.
Switch to the new Google Groups.
Google Groups Home
« Groups Home
'Hello world' supposed to work with CF9 beta?
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
  8 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
 
dizid  
View profile  
 More options Aug 31 2009, 3:49 pm
From: dizid <glasw...@gmail.com>
Date: Mon, 31 Aug 2009 12:49:34 -0700 (PDT)
Local: Mon, Aug 31 2009 3:49 pm
Subject: 'Hello world' supposed to work with CF9 beta?
Hi,

Is this 'Hello world' sample supposed to work with CF9 beta?

I'm new to Wheels, installed it, wrote the say.cfc with 2 line of code
and i get another error then the 1 described aboved. I've checked if i
have everything doen right, i did get the "You have successfully
installed version 0.9.3 of Wheels." msg.

My "Hello World error":

404

/sites/icse/say

java.io.FileNotFoundException: /sites/icse/say
        at jrun.servlet.file.FileServlet.service(FileServlet.java:349)
etc etc

Nothing like the error from fig. 2 above ;)

Oops, submitting this comment (on http://cfwheels.org/docs/chapter/beginner-tutorial%3a-hello-world)
gives:

"There was an error with your entry. Please correct it and try again.
* Website is not a valid URL"


 
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.
Clarke Bishop  
View profile  
 More options Sep 1 2009, 10:39 am
From: "Clarke Bishop" <cbis...@resultantsys.com>
Date: Tue, 1 Sep 2009 10:39:49 -0400
Local: Tues, Sep 1 2009 10:39 am
Subject: RE: [cfwheels] 'Hello world' supposed to work with CF9 beta?
This looks like a problem with URL rewriting.

Try this. Make a URL like
http://localhost/index.cfm?controller=show&action=index. Make sure your path
to index.cfm and your controller name and action is right!

If this works, it's definitely a URL rewriting problem. Partial URL
rewriting may work for you. The above URL becomes
http://localhost/index.cfm/show/index

Hope this helps!

   Clarke


 
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.
raulriera  
View profile  
 More options Sep 1 2009, 2:48 pm
From: raulriera <rierar...@gmail.com>
Date: Tue, 1 Sep 2009 11:48:01 -0700 (PDT)
Local: Tues, Sep 1 2009 2:48 pm
Subject: Re: 'Hello world' supposed to work with CF9 beta?
CF built in JRUN will only allow you to have URLRewriting in Partial
and only if you "force it" to with

<cfset set(URLRewriting="Partial")>

In that case your URL would be

localhost/index.cfm/say/

On Sep 1, 10:39 am, "Clarke Bishop" <cbis...@resultantsys.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.
Bryce  
View profile  
 More options Sep 3 2009, 2:36 pm
From: Bryce <bgran...@gmail.com>
Date: Thu, 3 Sep 2009 11:36:31 -0700 (PDT)
Local: Thurs, Sep 3 2009 2:36 pm
Subject: Re: 'Hello world' supposed to work with CF9 beta?
Clarke et. al.,

I'm another noob, and had a lot of frustration with the URL thing,
much the same as dizid.

Your advice was gold, thanks -- that's what it took to render my Hello
world! (http://localhost:8500/wheels_site/index.cfm?
controller=say&action=hello)

Now, can you please advise on what tweaks I should carry out so I can
get this --> http://localhost:8500/wheels_site/say/action

to work?

Thanks,

Bryce

On Sep 1, 7:39 am, "Clarke Bishop" <cbis...@resultantsys.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.
Chris Peters  
View profile  
 More options Sep 3 2009, 4:46 pm
From: Chris Peters <ch...@clearcrystalmedia.com>
Date: Thu, 3 Sep 2009 16:46:15 -0400
Local: Thurs, Sep 3 2009 4:46 pm
Subject: Re: [cfwheels] Re: 'Hello world' supposed to work with CF9 beta?

The best way to get it to work correclty is to install your Wheels app in
the site root. Also, things will not look pretty until you hook your CF
install into a web server like Apache to handle the rewriting, or install
the JRun rewriting, as described on Mike Henke's blog:
http://henke.ws/post.cfm/jrun-url-rewriting

Here is the documentation that we have on URL rewriting:
http://cfwheels.org/docs/chapter/url-rewriting

I can't remember if someone has solved the subfolder rewrite problem. If so,
can someone step forward and share? ;)


 
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.
Clarke Bishop  
View profile  
 More options Sep 3 2009, 6:00 pm
From: "Clarke Bishop" <cbis...@resultantsys.com>
Date: Thu, 3 Sep 2009 18:00:53 -0400
Local: Thurs, Sep 3 2009 6:00 pm
Subject: RE: [cfwheels] Re: 'Hello world' supposed to work with CF9 beta?

If you are running the ColdFusion development server, I don't know how to
make it work or if it's even possible.

This will probably work, though:

http://localhost:8500/wheels_site/
<http://localhost:8500/wheels_site/index.cfm/say/action>
index.cfm/say/action  Notice the index.cfm inserted in the url! For learning
and development, this is close enough for me.

I covered the basic issues and options in a blog post:

http://www.resultantsys.com/index.php/coldfusion/cfwheels-creating-a-...
controller-and-view/

For production, some of the ideas Chris mentioned are probably best.

And, I am still working on through Head First Rails and converting the apps
and ideas to CFWheels. Here' the jump page:

http://www.resultantsys.com/index.php/cfwheels

I hope this helps!

   Clarke


 
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.
dizid  
View profile  
 More options Sep 5 2009, 11:46 am
From: dizid <glasw...@gmail.com>
Date: Sat, 5 Sep 2009 08:46:31 -0700 (PDT)
Local: Sat, Sep 5 2009 11:46 am
Subject: Re: 'Hello world' supposed to work with CF9 beta?
Clarke,

Yep, localhost:8500/sites/icse/index.cfm?controller=say&action=hello
worked.

Thanks.

nb: raulriera's suggestion <cfset set(URLRewriting="Partial")>  (I
suppose this cfset has to go in the application.cfc)
gives an error: "Variable SET is undefined."  On this url:
http://localhost:8500/sites/icse/index.cfm/say/

nb2:
The total execution time was 274 ms  (first time) and around 150ms
thereafter...
A hello.cfm without wheels takes 25ms (first time) and 5ms thereafter
Not sure if that is an indication for real applications, but there
defenitely is some overhead involved.

On Sep 1, 4:39 pm, "Clarke Bishop" <cbis...@resultantsys.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.
Chris Peters  
View profile  
 More options Sep 5 2009, 2:14 pm
From: Chris Peters <ch...@clearcrystalmedia.com>
Date: Sat, 5 Sep 2009 14:14:36 -0400
Local: Sat, Sep 5 2009 2:14 pm
Subject: Re: [cfwheels] Re: 'Hello world' supposed to work with CF9 beta?

You should put the call to <cfset set(URLRewriting="Partial)> in
config/settings.cfm. In order for that change to take effect, you'll need to
call your app with ?reload=true at the end of the URL to reload the app.

Regarding performance... When you install your app, the environment setting
in config/environment.cfm is set to "design". There are different
environments that use different levels of caching, mainly for convenience as
you're developing. "production" performs the best but is inconvenient when
you're trying to develop your app on your machine.

On first page load, your app will cache a lot of settings and queries
(depending on how you set up caching in the different layers), so first load
will take longer. After that's all loaded, Wheels performs very well.

More about environments:
http://cfwheels.org/docs/chapter/switching-environments

More about caching:
http://cfwheels.org/docs/chapter/caching


 
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 »