Element APPLICATIONNAME is undefined in APPLICATION

569 views
Skip to first unread message

Francisco Carmona

unread,
Jul 10, 2013, 7:18:45 PM7/10/13
to framew...@googlegroups.com
Hello, 

I've got a bit of a problem with my local fw/1 app. I seem to be getting an error if I set an name ( this.name = "myApp" ) for my application within the sites' Application.cfc file. If I remove it, then there is no problem, but if I put it in, then it errors out. 

I'm getting an error that seems to be initiated (in framework.cfc) by onRequest() calling setupApplicationWrapper(). Specifically it complaining at line 1738 there is a reference to application.applicationName which coldfusion is saying undefined in the application scope. The error message is:

"Element APPLICATIONNAME is undefined in APPLICATION." 

I tried searching the user group threads for anything related and couldn't find anything. Can we not set an application name (this.name) within our Application.cfc? Am I missing something? 

FYI, I'm using fw/1 version 2.1Beta3

Thank you in advance for any help.



Nando Breiter

unread,
Jul 11, 2013, 10:10:14 AM7/11/13
to framew...@googlegroups.com
Perhaps you could share your code? Setting this.name has always worked for me, as below:

        this.name = "someApp";
this.sessionManagement = true;
this.applicationTimeout = createTimeSpan( 0, 4, 0, 0);
this.sessionTimeout = createTimeSpan( 0, 4, 0, 0 );
...




Aria Media Sagl
Via Rompada 40
6987 Caslano
Switzerland

+41 (0)91 600 9601
+41 (0)76 303 4477 cell
skype: ariamedia





--
--
FW/1 on RIAForge: http://fw1.riaforge.org/
 
FW/1 on github: http://github.com/framework-one/fw1
 
FW/1 on Google Groups: http://groups.google.com/group/framework-one
---
You received this message because you are subscribed to the Google Groups "framework-one" group.
To unsubscribe from this group and stop receiving emails from it, send an email to framework-on...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Message has been deleted

Sean Corfield

unread,
Jul 11, 2013, 7:20:16 PM7/11/13
to framew...@googlegroups.com
On Wed, Jul 10, 2013 at 4:18 PM, Francisco Carmona <donc...@gmail.com> wrote:
> FYI, I'm using fw/1 version 2.1Beta3

First off I'll suggest updating to 2.1.1 since there have been some
important fixes since the pre-2.1 days.

Second, what CFML engine are you using (and what exact version)?
--
Sean A Corfield -- (904) 302-SEAN
An Architect's View -- http://corfield.org/
World Singles, LLC. -- http://worldsingles.com/

"Perfection is the enemy of the good."
-- Gustave Flaubert, French realist novelist (1821-1880)

Francisco Carmona

unread,
Jul 11, 2013, 7:42:47 PM7/11/13
to framew...@googlegroups.com
Sean, 

Thanks for responding. 

I accidentally deleted my response to Nando, but it doesn't matter since I think I've figured out how to fix it. It was strange, since even restarting my server and setting the "sessionTimeOut" and "applicationTimeout" to zero's also didn't fix the issue. I'm still not sure exactly what's happening, but I'm guessing it has something to do with the application's settings clashing. This new site is located inside an existing site (that has it's own application.cfc file) and both have the same application name. The new site will eventually replace the existing one. 

Needless to say the fix is to change the application's name to something else other than what I had, so now the 
this.name = "applicationNameOtherThanWhatWasHereBefore"

Again, thank you Sean and Nando for lending a hand. It really is appreciated. 

Francisco

Sean Corfield

unread,
Jul 11, 2013, 7:50:41 PM7/11/13
to framew...@googlegroups.com
Yes, having two applications with the same name is just asking for
problems: depending on which one is "started" first, you will get
completely different behavior in terms of application initialization.
> --
> --
> FW/1 on RIAForge: http://fw1.riaforge.org/
>
> FW/1 on github: http://github.com/framework-one/fw1
>
> FW/1 on Google Groups: http://groups.google.com/group/framework-one
> ---
> You received this message because you are subscribed to the Google Groups
> "framework-one" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to framework-on...@googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>



Reply all
Reply to author
Forward
0 new messages