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
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
-----Original Message-----
From: cfwheels@googlegroups.com [mailto:cfwheels@googlegroups.com] On Behalf
Of dizid
Sent: Monday, August 31, 2009 3:50 PM
To: ColdFusion on Wheels
Subject: [cfwheels] '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
> If this works, it's definitely a URL rewriting problem. Partial URL
> rewriting may work for you. The above URL becomeshttp://localhost/index.cfm/show/index
> Hope this helps!
> Clarke
> -----Original Message-----
> From: cfwheels@googlegroups.com [mailto:cfwheels@googlegroups.com] On Behalf
> Of dizid
> Sent: Monday, August 31, 2009 3:50 PM
> To: ColdFusion on Wheels
> Subject: [cfwheels] '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
> If this works, it's definitely a URL rewriting problem. Partial URL
> rewriting may work for you. The above URL becomeshttp://localhost/index.cfm/show/index
> Hope this helps!
> Clarke
> -----Original Message-----
> From: cfwheels@googlegroups.com [mailto:cfwheels@googlegroups.com] On Behalf
> Of dizid
> Sent: Monday, August 31, 2009 3:50 PM
> To: ColdFusion on Wheels
> Subject: [cfwheels] '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 anothererrorthen 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 Worlderror":
> 404
> /sites/icse/say
> java.io.FileNotFoundException: /sites/icse/say
> at jrun.servlet.file.FileServlet.service(FileServlet.java:349)
> etc etc
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
> > If this works, it's definitely a URL rewriting problem. Partial URL
> > rewriting may work for you. The above URL
> becomeshttp://localhost/index.cfm/show/index
> > Of dizid
> > Sent: Monday, August 31, 2009 3:50 PM
> > To: ColdFusion on Wheels
> > Subject: [cfwheels] '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 anothererrorthen 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.
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:
> If this works, it's definitely a URL rewriting problem. Partial URL
> rewriting may work for you. The above URL becomeshttp://localhost/index.cfm/show/index
> Hope this helps!
> Clarke
> -----Original Message-----
> From: cfwheels@googlegroups.com [mailto:cfwheels@googlegroups.com] On Behalf
> Of dizid
> Sent: Monday, August 31, 2009 3:50 PM
> To: ColdFusion on Wheels
> Subject: [cfwheels] '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
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.
> 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:
> > This looks like a problem with URL rewriting.
> > If this works, it's definitely a URL rewriting problem. Partial URL
> > rewriting may work for you. The above URL
> becomeshttp://localhost/index.cfm/show/index
> > Of dizid
> > Sent: Monday, August 31, 2009 3:50 PM
> > To: ColdFusion on Wheels
> > Subject: [cfwheels] '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.