[flexcoders] Re: CAIRNGORM 0.99 QUESTION

2005-08-31 Thread flexcoding
Hi,

Thanks for the reply. You must be a very experienced programmer 
because you just looked at the suggestion and found the problem it 
will create two steps down. I have experienced the same problem that 
you mentioned below if I use recommended mx:Application tag 
instead of cairngorm:CairngormApplication tag, but I had to spend 
considerable time to nail down the cause, which I believe, and like 
you said, is that the ServiceLocator.getInstance() is failing 
because it hasn't been initialized yet.

1. How can I ensure that my services are created before my front 
controller in the Index?

2. Does this approach of creating delegates in Command Constructor 
has any advantage/disadvantage?

Thanks  Regards,

Rohit Chhabra.

--- In flexcoders@yahoogroups.com, Daniel Harfleet 
[EMAIL PROTECTED] wrote:
 Hi,
 
 you would need to be carefull, because the command instances are
 created once only at creation of the FrontController. By creating a
 delegate instance, you are using the ServiceLocator to look up the
 remote object, however, if your service locator hasn't been
 initialized yet, you may get  a no service found error. So make 
sure
 your services are created before you front controller if you are 
going
 to take this approach.
 
 
 
 --- In flexcoders@yahoogroups.com, flexcoding [EMAIL PROTECTED] 
wrote:
  Is it OK to have a constructor in the Command classes and have 
  delegate initialized there rather than doing it in every time 
  execute method is called?
  
  So Could the code of LoginCommand of sample code that came with 
  CAIRNGORM 0.99 be changed to:
  
  class org.nevis.cairngorm.samples.login.commands.LoginCommand 
  implements Command, Responder
  {
 private var delegate: CustomerDelegate;
  
 public function LoginCommand ()
 {
delegate = new CustomerDelegate( this );
 }
  
 public function execute( event:Event ) : Void
 {
var loginVO : LoginVO = LoginVO( event.data );
delegate.login( loginVO );
 }
  
  //---

  --
  
 public function onResult( event : Object ) : Void
 {  
ModelLocator.workflowState = 
  ModelLocator.VIEWING_LOGGED_IN_SCREEN;

var loginDate : Date = Date( event.result );   
ModelLocator.loginDate = loginDate;
 }
  
  //---

  --
  
 public function onFault( event : Object ) : Void
 {
ModelLocator.statusMessage = Your username or password 
was 
  wrong, please try again.;
 }
  }
  
  from
  
  /*
  
  Copyright 2005 iteration::two Ltd
  
  Licensed under the Apache License, Version 2.0 (the License);
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at
  
  http://www.apache.org/licenses/LICENSE-2.0
  
  Unless required by applicable law or agreed to in writing, 
software
  distributed under the License is distributed on an AS IS BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
  implied.
  See the License for the specific language governing permissions 
and
  limitations under the License.
  
  @ignore
  */
  import org.nevis.cairngorm.business.Responder;
  import org.nevis.cairngorm.commands.Command;
  import org.nevis.cairngorm.control.Event;
  import 
org.nevis.cairngorm.samples.login.business.CustomerDelegate;
  import org.nevis.cairngorm.samples.login.vo.LoginVO;
  import org.nevis.cairngorm.samples.login.model.ModelLocator;
  
  /**
   * @version $Revision: 1.4 $
   */
  class org.nevis.cairngorm.samples.login.commands.LoginCommand 
  implements Command, Responder
  {
  
 public function execute( event:Event ) : Void
 {
var delegate: CustomerDelegate = new CustomerDelegate( 
  this ); 
var loginVO : LoginVO = LoginVO( event.data );
delegate.login( loginVO );
 }
  
  //---

  --
  
 public function onResult( event : Object ) : Void
 {  
ModelLocator.workflowState = 
  ModelLocator.VIEWING_LOGGED_IN_SCREEN;

var loginDate : Date = Date( event.result );   
ModelLocator.loginDate = loginDate;
 }
  
  //---

  --
  
 public function onFault( event : Object ) : Void
 {
ModelLocator.statusMessage = Your username or password 
was 
  wrong, please try again.;
 }
  }





 Yahoo! Groups Sponsor ~-- 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: 

[flexcoders] Re: CAIRNGORM 0.99 QUESTION

2005-08-30 Thread Daniel Harfleet
Hi,

you would need to be carefull, because the command instances are
created once only at creation of the FrontController. By creating a
delegate instance, you are using the ServiceLocator to look up the
remote object, however, if your service locator hasn't been
initialized yet, you may get  a no service found error. So make sure
your services are created before you front controller if you are going
to take this approach.



--- In flexcoders@yahoogroups.com, flexcoding [EMAIL PROTECTED] wrote:
 Is it OK to have a constructor in the Command classes and have 
 delegate initialized there rather than doing it in every time 
 execute method is called?
 
 So Could the code of LoginCommand of sample code that came with 
 CAIRNGORM 0.99 be changed to:
 
 class org.nevis.cairngorm.samples.login.commands.LoginCommand 
 implements Command, Responder
 {
private var delegate: CustomerDelegate;
 
public function LoginCommand ()
{
   delegate = new CustomerDelegate( this );
}
 
public function execute( event:Event ) : Void
{
   var loginVO : LoginVO = LoginVO( event.data );
   delegate.login( loginVO );
}
 
 //---
 --
 
public function onResult( event : Object ) : Void
{  
   ModelLocator.workflowState = 
 ModelLocator.VIEWING_LOGGED_IN_SCREEN;
   
   var loginDate : Date = Date( event.result );   
   ModelLocator.loginDate = loginDate;
}
 
 //---
 --
 
public function onFault( event : Object ) : Void
{
   ModelLocator.statusMessage = Your username or password was 
 wrong, please try again.;
}
 }
 
 from
 
 /*
 
 Copyright 2005 iteration::two Ltd
 
 Licensed under the Apache License, Version 2.0 (the License);
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at
 
 http://www.apache.org/licenses/LICENSE-2.0
 
 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an AS IS BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or 
 implied.
 See the License for the specific language governing permissions and
 limitations under the License.
 
 @ignore
 */
 import org.nevis.cairngorm.business.Responder;
 import org.nevis.cairngorm.commands.Command;
 import org.nevis.cairngorm.control.Event;
 import org.nevis.cairngorm.samples.login.business.CustomerDelegate;
 import org.nevis.cairngorm.samples.login.vo.LoginVO;
 import org.nevis.cairngorm.samples.login.model.ModelLocator;
 
 /**
  * @version   $Revision: 1.4 $
  */
 class org.nevis.cairngorm.samples.login.commands.LoginCommand 
 implements Command, Responder
 {
 
public function execute( event:Event ) : Void
{
   var delegate: CustomerDelegate = new CustomerDelegate( 
 this ); 
   var loginVO : LoginVO = LoginVO( event.data );
   delegate.login( loginVO );
}
 
 //---
 --
 
public function onResult( event : Object ) : Void
{  
   ModelLocator.workflowState = 
 ModelLocator.VIEWING_LOGGED_IN_SCREEN;
   
   var loginDate : Date = Date( event.result );   
   ModelLocator.loginDate = loginDate;
}
 
 //---
 --
 
public function onFault( event : Object ) : Void
{
   ModelLocator.statusMessage = Your username or password was 
 wrong, please try again.;
}
 }




 Yahoo! Groups Sponsor ~-- 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/cd_AJB/QnQLAA/TtwFAA/nhFolB/TM
~- 

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 





R: [flexcoders] Re: Cairngorm 0.99

2005-05-20 Thread Paolo Bernardinin











Thanks Steven for
clarifyng the reason for the new controller sintax, for what concern migrating
from 0.95 to 0.99 it wasnt to hard just had to rename the pasckage name
for the swc to org.nevis.cairngorm
, than I had to change
the property name in id and remove view = {this}
in the viewHelpers files, and the application worked as before.











Da: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] Per conto di Steven Webster
Inviato: gioved 19 maggio
2005 23.33
A: flexcoders@yahoogroups.com
Oggetto: RE: [flexcoders] Re:
Cairngorm 0.99





Hi Dave,






 I ran into the same errors as reuben and Sean
 above with the exact same errors. 
 I have never heard of ANT until today. I'm a
 client-side developer. Just like Berardini. Server configuration is
 foreign to me. Lead my people to the Red Sea of Server Configuration. Help
 us cross. I think most AS 2.0/OOP developers understand and love working
 within the framework, but have a hard time getting over the hurdle of
 setting up the server and server files.
 A clean install from the bare-bones
 helped.






So first of all, I think it's great that
client-side developers are so willing to get the Cairngorm samples





up and running; and I do think that you're
going to get a rapidclimb up the ramp by getting this sample





running and understanding how it
allworks on both sides of the wire.











However, our remit in producing the
Cairngorm Storewas not to provide a tutorial
inFlex/J2EE application





development, but to provide those
Flex/J2EE developers who are trying to understand how Cairngorm





fits in with what they do, a more
comprehensive sample application than the simple Login example we





provided with 0.95. We wanted to
ship an app that incorporated a Flex presentation-tier built using





Cairngorm, that invokes a Java business
tier with a database back-end. The Java and database backend





are in no-way intended to be best-practice
code (so don't go trying to build production Flex shops 





using that code !) but our assumption is
that J2EE folks are going to understand where to go from





this sample.











Don't get me wrong; we'll help you guys
all we can to get this application running, and we do intend





blogging abit more of a
getting started, but if a hurdle exists in configuring a J2EE
application





server,installing a database for
Java to call, working with Flex server configuration, etc, then the 





remit of Cairngorm Store isn't to make
that easier for you ... there's plenty of better resources out 





there. Fundamental assumption for
Cairngorm, is that a developer is comortable developing and





configuring Flex applications on a
Flex/J2EE server.











Please take this in the spirit it's
intended our aim with Cairngorm isto provide the framework and





the examples that merit leveraging the
framework; the base assumption is thatyou are developing





all tiers of an n-tier application, that
you're comfortable developing apps of the complexity that really





start to merit a microarchitecture like
Cairngorm.











The great thing about open-source
frameworks like this though,is communityparticipation ... so if





I hear you correctly that there's a need
for a Installing the Cairngorm Store for Client-Side





Developers whitepaper, then I'd be
delighted for you to volunteer to write it :-)






 I agree with hecubus that the release notes
 should state that .99 isn't compatible with .95. We're probably 5 projects
 into Cairngorm .95, and I think we had anticipated a seamless upgrade.
 






I'm not quite sure what you mean by incompatibility;the
onlychange we're asking you to make -





and we thought long and hard about this
one - is renaming the com.iterationtwo.cairngorm





packages to org.nevis.cairngorm.
That's something that is a global search and replace





operation on your source code, and is the
*only* thing you have to do to migrate from





0.95 to 0.99











If you then drop the org.nevis.cairngorm.*
packages inthe same place you had





com.iterationtwo.cairngorm.* then you
should be back where you started.











If, however, you want to benefit by using
cairngorm.swc (so you can keep theCairngorm





source out of your project source) then
you're going to have to do a little extra work -





adding the manifest entry to
flex-config.xml. That'sall ... nothing more.











However, in terms of compatibility;
there's nothing that we've changed in the API that





will break anything you're doing currently
... that was ahuge motivation for the





decisions we made in 0.99, NOT to break
existing functionality.











If you find a 0.95 app isn't
workingwith 0.99, please let us know how  if it's





merely that you have some updating of
config files because you want to use





the manifest, and you have to doa
global search and replace, then that's

RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Hans Omli
I'm having a similar issue.  After changing db_path in
/WEB-INF/classes/store.cfg to an absolute path, I get:

Error: Unresolved compilation problems: 
The import org.apache.commons cannot be resolved
The import org.apache.commons cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
Log cannot be resolved to a type
LogFactory cannot be resolved

Could be an issue with the way I have the Tomcat project configured in
Eclipse.  Will dig deeper into this in the morning.

 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Webster
Sent: Wednesday, May 18, 2005 7:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Cairngorm 0.99

Hi there,

Can you zip up your webapp directory (removing flex.war/etc) on JRun and
email it privately to me offlist, and we'll take a look.

On the login sample, you should have seen a result or a fault come back over
the wire ... what was the case ?

Have you tried starting/stopping the appserver ?

I'm sure it's something simple.

Best,

Steven 

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of violabg2002
 Sent: 18 May 2005 15:04
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 0.99
 
 Hi Steven
 
 changed the store.cfg paht to
 db_path=c:\\cairngormstore\\db\\  but same problem.
 
 I have
 
 h commons-lang-1.0.1.jar
 h commons-logging-1.0.4.jar
 h hsqldb.jar
 h log4j-1.2.8.jar
 
 in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib
 directory.



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



I have the same issue with the Login example:


Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22 

Namespace http://www.iterationtwo.com/cairngorm has not been 
associated with component manifest.



On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:
I'm having a similar issue.After changing db_path in/WEB-INF/classes/store.cfg to an absolute path, I get:Error: Unresolved compilation problems:The import org.apache.commons cannot be resolved
The import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolvedCould be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.
-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven Webster
Sent: Wednesday, May 18, 2005 7:10 AMTo: flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing 
flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?
I'm sure it's something simple.Best,Steven -Original Message- From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 0.99
 Hi Steven changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar
 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Alex Uhlmann
Hi Dave,


have you made sure your config.xml contains

namespace uri=http://www.iterationtwo.com/cairngorm;
manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
/namespace 

,you have a cairngorm-manifest.xml file and most importantly, you've restarted 
your server?


Best,
Alex

-- 
Alex Uhlmann 
Software Engineer 
iteration::two



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Behalf Of dave buhler
Sent: 19 May 2005 09:14
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Cairngorm 0.99


I have the same issue with the Login example:


Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22 
Namespace http://www.iterationtwo.com/cairngorm has not been associated with 
component manifest.






On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:
I'm having a similar issue.  After changing db_path in
/WEB-INF/classes/store.cfg to an absolute path, I get:

Error: Unresolved compilation problems:
The import org.apache.commons cannot be resolved
The import org.apache.commons cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved
log cannot be resolved 
log cannot be resolved
Log cannot be resolved to a type
LogFactory cannot be resolved

Could be an issue with the way I have the Tomcat project configured in
Eclipse.  Will dig deeper into this in the morning. 



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steven Webster 
Sent: Wednesday, May 18, 2005 7:10 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Cairngorm 0.99

Hi there,

Can you zip up your webapp directory (removing flex.war/etc) on JRun and
email it privately to me offlist, and we'll take a look.

On the login sample, you should have seen a result or a fault come back over
the wire ... what was the case ?

Have you tried starting/stopping the appserver ? 

I'm sure it's something simple.

Best,

Steven

 -Original Message-
 From: flexcoders@yahoogroups.com
 [mailto: [EMAIL PROTECTED] On Behalf Of violabg2002
 Sent: 18 May 2005 15:04
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 0.99 

 Hi Steven

 changed the store.cfg paht to
 db_path=c:\\cairngormstore\\db\\  but same problem.

 I have

 h commons-lang-1.0.1.jar
 h commons-logging-1.0.4.jar 
 h hsqldb.jar
 h log4j-1.2.8.jar

 in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib
 directory.




Yahoo! Groups Links











Yahoo! Groups Links

To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
  
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
  
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Hi Alex,

Let me try again when I get home from the office.

I'm confused about the purpose behind the SWC. As I understand it, and
stop me if I'm wrong, the SWC is the compiled Cairngorm framework. The
following code...

 !-- run this task to move cairngorm to you webapp --
 target name=get_cairngorm description=copies over Cairngorm source 
  copy todir=${dest_webapp}/WEB-INF/flex/user_classes/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm.swc/ 
  
   
   /fileset
  /copy
  copy todir=${dest_webapp}/WEB-INF/flex/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm-manifest.xml/
  
  
 
   /fileset
  /copy
 /target

... includes the cairngorm-manifest and the SWC. The
cairngorm-manifest.xml points to the framework classes, which seems
redundant to me.

I was also confused about where the 'build' folder is placed within the
directory to be executed. Do 'bin' and 'build' reside on the root of
the directory structure similar to:

--build
--bin
--org
--+nevis
---+---+cairngorm

I'm not sure where bin goes with its respective cairngorm-manifest.xml
file and cairngorm.swc. In the sames files, bin doesn't exist. I'm
missing something :)

DaveOn 5/19/05, Alex Uhlmann [EMAIL PROTECTED] wrote:
Hi Dave,have you made sure your config.xml containsnamespace uri=http://www.iterationtwo.com/cairngormmanifest/WEB-INF/flex/cairngorm-
manifest.xml/manifest/namespace,you have a cairngorm-manifest.xml file and most importantly, you've restarted your server?Best,Alex--Alex UhlmannSoftware Engineer
iteration::two-Original Message-From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
]On Behalf Of dave buhlerSent: 19 May 2005 09:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm 0.99I have the same issue with the Login example:
Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22Namespace http://www.iterationtwo.com/cairngorm has not been associated with component manifest.
On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:I'm having a similar issue.After changing db_path in/WEB-INF/classes/store.cfg to an absolute path, I get:
Error: Unresolved compilation problems:The import org.apache.commons cannot be resolvedThe import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolved
Could be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.-Original Message-From: 
flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven WebsterSent: Wednesday, May 18, 2005 7:10 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.
On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?I'm sure it's something simple.
Best,Steven -Original Message- From: flexcoders@yahoogroups.com [mailto: flexcoders@yahoogroups.com
] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Cairngorm 0.99 Hi Steven
 changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar
 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links
Yahoo! Groups LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/









Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Samples*, not sames :)On 5/19/05, dave buhler [EMAIL PROTECTED] wrote:
Hi Alex,

Let me try again when I get home from the office.

I'm confused about the purpose behind the SWC. As I understand it, and
stop me if I'm wrong, the SWC is the compiled Cairngorm framework. The
following code...

 !-- run this task to move cairngorm to you webapp --
 target name=get_cairngorm description=copies over Cairngorm source 
  copy todir=${dest_webapp}/WEB-INF/flex/user_classes/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm.swc/ 
  
   
   /fileset
  /copy
  copy todir=${dest_webapp}/WEB-INF/flex/ overwrite=false
   fileset dir=${cairngorm}
  
 include
name=**/*cairngorm-manifest.xml/
  
  
 
   /fileset
  /copy
 /target

... includes the cairngorm-manifest and the SWC. The
cairngorm-manifest.xml points to the framework classes, which seems
redundant to me.

I was also confused about where the 'build' folder is placed within the
directory to be executed. Do 'bin' and 'build' reside on the root of
the directory structure similar to:

--build
--bin
--org
--+nevis
---+---+cairngorm

I'm not sure where bin goes with its respective cairngorm-manifest.xml
file and cairngorm.swc. In the sames files, bin doesn't exist. I'm
missing something :)

DaveOn 5/19/05, Alex Uhlmann 
[EMAIL PROTECTED] wrote:
Hi Dave,have you made sure your config.xml containsnamespace uri=http://www.iterationtwo.com/cairngorm
manifest/WEB-INF/flex/cairngorm-
manifest.xml/manifest/namespace,you have a cairngorm-manifest.xml file and most importantly, you've restarted your server?Best,Alex--Alex UhlmannSoftware Engineer
iteration::two-Original Message-From: flexcoders@yahoogroups.com [mailto:
flexcoders@yahoogroups.com
]On Behalf Of dave buhlerSent: 19 May 2005 09:14To: flexcoders@yahoogroups.comSubject: Re: [flexcoders] Re: Cairngorm 
0.99I have the same issue with the Login example:
Error /org/nevis/cairngorm/samples/login/business/Services.mxml:22Namespace http://www.iterationtwo.com/cairngorm
 has not been associated with component manifest.
On 5/19/05, Hans Omli [EMAIL PROTECTED] wrote:I'm having a similar issue.After changing db_path in
/WEB-INF/classes/store.cfg to an absolute path, I get:
Error: Unresolved compilation problems:The import org.apache.commons cannot be resolvedThe import org.apache.commons cannot be resolvedlog cannot be resolvedlog cannot be resolved
log cannot be resolvedlog cannot be resolvedlog cannot be resolvedlog cannot be resolvedLog cannot be resolved to a typeLogFactory cannot be resolved
Could be an issue with the way I have the Tomcat project configured inEclipse.Will dig deeper into this in the morning.-Original Message-From: 

flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] OnBehalf Of Steven Webster
Sent: Wednesday, May 18, 2005 7:10 AMTo: 
flexcoders@yahoogroups.comSubject: RE: [flexcoders] Re: Cairngorm 0.99Hi there,Can you zip up your webapp directory (removing flex.war/etc) on JRun andemail it privately to me offlist, and we'll take a look.
On the login sample, you should have seen a result or a fault come back overthe wire ... what was the case ?Have you tried starting/stopping the appserver ?I'm sure it's something simple.

Best,Steven -Original Message- From: flexcoders@yahoogroups.com
 [mailto: flexcoders@yahoogroups.com
] On Behalf Of violabg2002 Sent: 18 May 2005 15:04 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 0.99 Hi Steven
 changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\but same problem. I have h commons-lang-1.0.1.jar h commons-logging-1.0.4.jar

 h hsqldb.jar h log4j-1.2.8.jar in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib directory.Yahoo! Groups Links

Yahoo! Groups LinksTo visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
Yahoo! Groups Links
* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/











Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread reubenbrown13
While that is nice and all, I have these errors now:

5 Errors found.
 
Error
H:\Inetpub\wwwroot\flex\cairngormlogin\org\nevis\cairngorm\samples\login\business\Services.mxml:28
Invalid value for 'named' - does not match any object name from the
configuration file.


Error H:\Inetpub\wwwroot\flex\cairngormlogin\Index.mxml:43
Don't know how to parse element
org.nevis.cairngorm.samples.login.business.*:Services. It is not a
known type or a property of mx.core.Application.


Error H:\Inetpub\wwwroot\flex\cairngormlogin\Index.mxml:46
Don't know how to parse element
org.nevis.cairngorm.samples.login.control.*:DemoControl. It is not a
known type or a property of mx.core.Application.


Error H:\Inetpub\wwwroot\flex\cairngormlogin\Index.mxml:50
Don't know how to parse element
org.nevis.cairngorm.samples.login.view.*:IndexViewHelper. It is not
a known type or a property of mx.core.Application.


Error H:\Inetpub\wwwroot\flex\cairngormlogin\Index.mxml:53
Don't know how to parse element
http://www.macromedia.com/2003/mxml:ViewStack;. It is not a known
type or a property of mx.core.Application.


--- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED] wrote:
 I think the quotes needed to be added.
 
 From:
 
  namespace uri=http://www.iterationtwo.com/cairngorm
 manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
 /namespace
 
 be:
 
  namespace
uri=http://www.iterationtwo.com/cairngormhttp://www.iterationtwo.com/cairngorm
 
 manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
 /namespace
 
  
 
 On 5/17/05, Dimitrios Gianninas [EMAIL PROTECTED] 
 wrote:
  
  Hi,
   You must add the appropriate entry for the cairngorm-manifest.xml
in the 
  flex-config.xml (portion in red below):
namespace uri=http://www.macromedia.com/2003/mxml;
  manifest/WEB-INF/flex/mxml-manifest.xml/manifest
  /namespace
   namespace uri=http://www.iterationtwo.com/cairngorm
  manifest/WEB-INF/flex/cairngorm-manifest.xml/manifest
  /namespace
   This probably explains the error meesage.
   *Dimitrios Jimmy Gianninas*
  *RIA Developer*
  *Optimal Payments Inc.*
   
   --
  *From:* Sean McKibben [mailto:[EMAIL PROTECTED] 
  *Sent:* Tuesday, May 17, 2005 6:25 PM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] Cairngorm 0.99
  
  I'm having some trouble getting my Services.mxml to work with .99. 
  I keep getting errors like:
  Error */com/cadpo/shared/business/Services.mxml:4*
  Namespace http://www.iterationtwo.com/cairngorm has not been
associated 
  with component manifest.
  
  
  Error */com/cadpo/shared/business/Services.mxml:4*
  No type for element
http://www.iterationtwo.com/cairngorm:ServiceLocator;
  
  
  Error */com/cadpo/shared/business/Services.mxml:4*
  Unexpected root element 
  http://www.iterationtwo.com/cairngorm:ServiceLocator; does not extend 
  MovieClip
  
  I put the cairngorm-manifest.xml into the WEB-INF/flex directory,
but it 
  still doesn't want to eat it.
  Here is the first part of my Services.mxml:
  ?xml version=1.0 encoding=utf-8?
  cairngorm:ServiceLocator
xmlns:mx=http://www.macromedia.com/2003/mxml; 
   xmlns:cairngorm=http://www.iterationtwo.com/cairngorm;
   mx:WebService id=myWS
  ...
  
  Is the xmlns:cairngorm=http://www.iterationtwo.com/cairngorm;
attribute 
  correct? I copied it out of one of the sample apps included in .99.
  
  Any ideas?
  
  Thanks,
  Sean McKibben
  
  --
  *Yahoo! Groups Links*
  
 - To visit your group on the web, go to:
 http://groups.yahoo.com/group/flexcoders/
 - To unsubscribe from this group, send an email to:

[EMAIL PROTECTED][EMAIL PROTECTED]
 - Your use of Yahoo! Groups is subject to the Yahoo! Terms of 
 Service http://docs.yahoo.com/info/terms/. 
  
 




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread reubenbrown13
That fixed it.  Thanks.  It might be good to have some manual
installation instructions in the documentation for putting cairngorm
into an existing flex server.

--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] wrote:
 
  -Original Message-
  From: flexcoders@yahoogroups.com 
  [mailto:[EMAIL PROTECTED] On Behalf Of reubenbrown13
  Sent: 19 May 2005 16:47
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] Re: Cairngorm 0.99
  
  While that is nice and all, I have these errors now:
  
  5 Errors found.
   
  Error
  H:\Inetpub\wwwroot\flex\cairngormlogin\org\nevis\cairngorm\sam
 ples\login\business\Services.mxml:28
  Invalid value for 'named' - does not match any object name 
  from the configuration file.
 
 
 OK, so in Services.mxml line 28 there will be reference to a 
 named service.  That's what the error message is trying to
 tell you.
 
 That named service has to be declared in flex-config.xml.  
 I'm suspecting that when you are building the application, 
 you're not putting out the flex-confix.xml that we shipped 
 for you, that has the named service definition in it.
 
 If you're using our ant build scripts, then we copy that
 flex-config.xml out on your behalf.  If you're not using
 ant, you're going to have to do all the work yourself, for
 putting all the files out that need to be there, or adding
 the manifest defintions and named service definitions that
 the Cairngorm store necessarily required.
 
 I'm afraid it's the trade-off of putting out a sample that
 is a full 3-tier application; the configuration of the
 database, and of the J2EE named services, needs to be done,
 as well as just deploying MXML and ActionScript.
 
 All your other errors, I suspect are just fall-out from the
 above.
 
 best,
 
 Steven
 
 --
 Steven Webster
 Technical Director
 iteration::two
  
 This e-mail and any associated attachments transmitted with it may
contain
 confidential information and must not be copied, or disclosed, or
used by
 anyone other than the intended recipient(s). If you are not the intended
 recipient(s) please destroy this e-mail, and any copies of it,
immediately.
  
 Please also note that while software systems have been used to try
to ensure
 that this e-mail has been swept for viruses, iteration::two do not
accept
 responsibility for any damage or loss caused in respect of any viruses
 transmitted by the e-mail. Please ensure your own checks are carried out
 before any attachments are opened.




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Steven Webster
Reuben,

 That fixed it.  Thanks.  It might be good to have some manual 
 installation instructions in the documentation for putting 
 cairngorm into an existing flex server.

http://www.iterationtwo.com/nevis/InstallationGuide.pdf

On page 6, we instruct:

To copy over the store sample files, you must copy the contents of your
project
 webapp directory into your webservers webapp directory.

 Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/

If you do that, that'll take a copy of flex-config.xml out of
webapp/WEB-INF/flex/ and put it into your context.  We put all
the entries into flex-config.xml that will allow the sample to
run out of the box.

If folks want to ignore the step-by-step advice of starting
with a fresh Flex webapp context, then they're on their
own :)

Glad you've got it all up and running now,

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Whoa! I missed the PDF. :SOn 5/19/05, Steven Webster [EMAIL PROTECTED] wrote:
Reuben, That fixed it.Thanks.It might be good to have some manual installation instructions in the documentation for putting
 cairngorm into an existing flex server.http://www.iterationtwo.com/nevis/InstallationGuide.pdfOn page 6, we instruct:To copy over the store sample files, you must copy the contents of your
project webapp directory into your webservers webapp directory. Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/If you do that, that'll take a copy of flex-config.xml out ofwebapp/WEB-INF/flex/ and put it into your context.We put all
the entries into flex-config.xml that will allow the sample torun out of the box.If folks want to ignore the step-by-step advice of startingwith a fresh Flex webapp context, then they're on theirown :)
Glad you've got it all up and running now,Best,Steven--Steven WebsterTechnical Directoriteration::twoThis e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used byanyone other than the intended recipient(s). If you are not the intendedrecipient(s) please destroy this e-mail, and any copies of it, immediately.
Please also note that while software systems have been used to try to ensurethat this e-mail has been swept for viruses, iteration::two do not acceptresponsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried outbefore any attachments are opened.Yahoo! Groups Links* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
* Your use of Yahoo! Groups is subject to:http://docs.yahoo.com/info/terms/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










[flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Paolo Bernardini
Hi Steven

Could you explain the reason this new way of passing the command 
string in the addCommand in the ShopController:

addCommand( ShopController.EVENT_GET_PRODUCTS, new GetProductsCommand
() );

public static var EVENT_GET_PRODUCTS = getProducts;

compare to the old cairngorm 0.95 style:

addCommand( getProducts, new GetProductsCommand() );




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Jose Lora










Is it to avoid typo issues and later error
debugging craziness?











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Paolo Bernardini
Sent: Thursday, May 19, 2005 2:07
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re:
Cairngorm 0.99
Importance: High





Hi Steven

Could you explain the reason this new way of
passing the command 
string in the addCommand in the ShopController:

addCommand( ShopController.EVENT_GET_PRODUCTS, new
GetProductsCommand
() );

public static var EVENT_GET_PRODUCTS =
getProducts;

compare to the old cairngorm 0.95 style:

addCommand( getProducts, new
GetProductsCommand() );














Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.












Re: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread dave buhler



Wooo-H!

I'm in!

*** insert spy theme music here

My thoughts:


  I ran into the same errors as reuben and Sean above with the exact same errors.
  I have never heard of ANT until today. I'm a client-side
developer. Just like Berardini. Server configuration is foreign to me.
Lead my people to the Red Sea of Server Configuration. Help us cross. I
think most AS 2.0/OOP developers understand and love working within the
framework, but have a hard time getting over the hurdle of setting up
the server and server files.
  
  A clean install from the bare-bones helped. 
  
  I agree with hecubus that the release notes should state that .99
isn't compatible with .95. We're probably 5 projects into Cairngorm
.95, and I think we had anticipated a seamless upgrade.
  
  Item 3.2 in the docs should state that you have to copy over the flex-config file for your particular project and why.
  In some places, the docs show a path with '/' and sometimes
without. I dragged my flex-config to the wrong folder (it was 1 up).
The docs should be more consistent. For example:
  
bin/cairngorm.swc to
  WEBAPP_DIR/cairngormlogin/WEB-INF/flex/user_classes/
  
bin/cairngorm-manifest.xml to
WEBAPP_DIR/cairngormlogin/WEB-INF/flex

  
  these is spelled theses on page 2: flex contains the source Flex files of the Cairngorm API, you only need theses if

you are recompiling the SWC
  

Time to eat! Then, I'm coming back to play with my new framework. :)

Peace,
Dave
On 5/19/05, hecubus_eh [EMAIL PROTECTED] wrote:
I noticed that line in the documentation, but we wouldn't know whateffect that would haveon our existing application if we proceeded with the instructions.Without wanting to get into a heavy discussion about this, but I
couldn't find any caveat inthe install instructions or the release notes that this release wasintended to be a freshinstall, or that updates to the existing framework were notsupported.Just a suggestion
for the next set of install notes...:)Rick...--- In flexcoders@yahoogroups.com, dave buhler [EMAIL PROTECTED]wrote: Whoa! I missed the PDF. :S
 On 5/19/05, Steven Webster [EMAIL PROTECTED] wrote:   Reuben,That fixed it. Thanks. It might be good to have some manual   installation instructions in the documentation for putting
   cairngorm into an existing flex server.   http://www.iterationtwo.com/nevis/InstallationGuide.pdf 
  On page 6, we instruct:   To copy over the store sample files, you must copy the contentsof your  project  webapp directory into your webservers webapp directory.
   Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/   If you do that, that'll take a copy of flex-config.xml out of  webapp/WEB-INF/flex/ and put it into your context. We put all
  the entries into flex-config.xml that will allow the sample to  run out of the box.   If folks want to ignore the step-by-step advice of starting  with a fresh Flex webapp context, then they're on their
  own :)   Glad you've got it all up and running now,   Best,   Steven   --  Steven Webster  Technical Director
  iteration::two   This e-mail and any associated attachments transmitted with itmay contain  confidential information and must not be copied, or disclosed,or used by
  anyone other than the intended recipient(s). If you are not theintended  recipient(s) please destroy this e-mail, and any copies of it,  immediately.   Please also note that while software systems have been used to
try to  ensure  that this e-mail has been swept for viruses, iteration::two donot accept  responsibility for any damage or loss caused in respect of anyviruses  transmitted by the e-mail. Please ensure your own checks are
carried out  before any attachments are opened.  Yahoo! Groups Links  
 Yahoo! Groups Links* To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
* To unsubscribe from this group, send an email to:[EMAIL PROTECTED]* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/








Yahoo! Groups Links

To visit your group on the web, go to:http://groups.yahoo.com/group/flexcoders/
To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.










RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Steven Webster
Hi Paolo,

 Could you explain the reason this new way of passing the 
 command string in the addCommand in the ShopController:
 
 addCommand( ShopController.EVENT_GET_PRODUCTS, new GetProductsCommand
 () );
 
 public static var EVENT_GET_PRODUCTS = getProducts;
 
 compare to the old cairngorm 0.95 style:
 
 addCommand( getProducts, new GetProductsCommand() );


Sure, this is just us showing what we consider to be a good
practice; again, it's not something new to Cairngorm, but a
practice we'd like to elucidate through the samples we give
you.

A common refactoring (in the Martin Fowler's book on Refactoring
term, not on the word that people throw around to mean code
editing) that is performed is the Replace Magic Number with a
Symbolic Constant refactoring:

http://www.refactoring.com/catalog/replaceMagicNumberWithSymbolicConstant.ht
ml

By defining static constants on our Controller, we can quickly
look to our controller to identify the names of the events that
we are able to broadcast, and that our controller will respond
to.

Everywhere else in our code, we reduce the risk of broadcasting
the getaccounts event instead of the correctly capitalised
getAccounts event for instance, by instead broadcasting
ShopController.EVENT_GET_ACCOUNTS.

In this way, if we spell incorrectly, eg ShopController.EVENT_GET_ACOUNTS,
then this is caught at compile-time rathr than at run-time.

We're big believers in letting the compiler do as much error 
checking as possible, and reducing the source of run-time
error.

So this isn't a Cairngorm best-practice it's simply a 
best-practice that iteration::two adhere to, and that we're
promoting in our samples.

Hope that helps,

Best,

Steven

--
Steven Webster
Technical Director
iteration::two
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Cairngorm 0.99

2005-05-19 Thread Steven Webster





Hi Dave,


  
I ran into the same errors as reuben and Sean above with the exact same 
errors. 
I have never heard of ANT until today. I'm a client-side developer. Just 
like Berardini. Server configuration is foreign to me. Lead my people to the 
Red Sea of Server Configuration. Help us cross. I think most AS 2.0/OOP 
developers understand and love working within the framework, but have a hard 
time getting over the hurdle of setting up the server and server files.
A clean install from the bare-bones helped.
So 
first of all, I think it's great that "client-side developers" are so willing to 
get the Cairngorm samples
up and 
running; and I do think that you're going to get a rapidclimb up the ramp 
by getting this sample
running and understanding how it allworks on both sides of the 
wire.

However, our remit in producing the "Cairngorm Store"was not to 
provide a tutorial inFlex/J2EE application
development, but to provide those Flex/J2EE developers who are trying to 
understand how Cairngorm
fits 
in with what they do, a more comprehensive sample application than the simple 
Login example we
provided with 0.95. We wanted to ship an app that incorporated a 
Flex presentation-tier built using
Cairngorm, that invokes a Java business tier with a database 
back-end. The Java and database backend
are in 
no-way intended to be best-practice code (so don't go trying to build production 
Flex shops 
using 
that code !) but our assumption is that J2EE folks are going to understand where 
to go from
this 
sample.

Don't 
get me wrong; we'll help you guys all we can to get this application running, 
and we do intend
blogging abit more of a "getting started", but if a hurdle exists 
in configuring a J2EE application
server,installing a database for Java to call, working with Flex 
server configuration, etc, then the 
remit 
of Cairngorm Store isn't to make that easier for 
you ... there's plenty of better resources out 
there. Fundamental assumption for Cairngorm, is that a developer is 
comortable developing and
configuring Flex applications on a Flex/J2EE server.

Please 
take this in the spirit it's intended our aim with Cairngorm 
isto provide the framework and
the 
examples that merit leveraging the framework; the base assumption is 
thatyou are developing
all 
tiers of an n-tier application, that you're comfortable developing apps of the 
complexity that really
start 
to merit a microarchitecture like Cairngorm.

The 
great thing about open-source frameworks like this though,is 
communityparticipation ... so if
I hear 
you correctly that there's a need for a "Installing the Cairngorm Store for 
Client-Side
Developers" whitepaper, then I'd be delighted for you to volunteer to 
write it :-)

  
I agree with hecubus that the release notes should state that .99 isn't 
compatible with .95. We're probably 5 projects into Cairngorm .95, and I 
think we had anticipated a seamless upgrade.
I'm 
not quite sure what you mean by incompatibility;the onlychange we're 
asking you to make -
and we 
thought long and hard about this one - is renaming the 
com.iterationtwo.cairngorm
packages to org.nevis.cairngorm. That's something that is a global 
search and replace
operation on your source code, and is the *only* thing you have to do to 
migrate from
0.95 
to 0.99

If you 
then drop the org.nevis.cairngorm.* packages inthe same place you 
had
com.iterationtwo.cairngorm.* then you should be back where you 
started.

If, 
however, you want to benefit by using cairngorm.swc (so you can keep 
theCairngorm
source 
out of your project source) then you're going to have to do a little extra work 
-
adding 
the manifest entry to flex-config.xml. That'sall ... nothing 
more.

However, in terms of compatibility; there's nothing that we've changed in 
the API that
will 
break anything you're doing currently ... that was ahuge motivation for 
the
decisions we made in 0.99, NOT to break existing 
functionality.

If you 
find a 0.95 app isn't workingwith 0.99, please let us know how  if 
it's
merely 
that you have some updating of config files because you want to 
use
the 
manifest, and you have to doa global search and replace, then that's 
the
degree 
of "migration" weanticipated, and documented I hope.

We 
just migrated a large e-commerce Flex app from the0.95 source tree, 
to
the 
0.99 SWC, and it was a 10-minute task for one of our developers, to do 
the
migration and re-run the unit-tests.if it's a bigger task for you, 
I'm keen to
know 
the pain you're having ?


  
Item 3.2 in the docs should state that you have to copy over the 
flex-config file for your particular project and why.
We'll 
make that more explicit for those that aren't following the 
instructions
verbatim ;-) G

  
In some places, the docs show a path with '/' and sometimes without. I 
dragged my flex-config to the wrong folder (it was 1 up). The docs should be 
more consistent. 

[flexcoders] Re: Cairngorm 0.99

2005-05-18 Thread violabg2002
great work!!

I'm having same problem with the installation of the cairgormstore 
example, (I think the problem is whit the db files) after installing 
everything the application start but I get e message saying:

Product could not be retrived!

Like I said I think the problem is with db files (I'm a flash/flex 
developer and not very good with db), I'm not sure I put the store.cfg 
(do I need to copy it with the conf folder or just put the file in the 
classes dir) end db file in the right folders.

Any help would be appriciated.

PS. I'm using e flex developer edition on a integrated jrun 
installation.




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




RE: [flexcoders] Re: Cairngorm 0.99

2005-05-18 Thread Alistair McLeod
Hi,

The store.cfg file should be in your WEB-INF/classes directory. Within that,
the path to the database can be relative to your webapp context root, or
absolute. The simplest way to get ti working is to change the path an
absolute path, (eg, c:\cairngorm\db), create that directory and copy the
contents of the db directory from the distribution into it. Restart your app
server and it should all work.

Cheers,

Ali 


--
Alistair McLeod
Development Director
iteration::two
[EMAIL PROTECTED]
 
Office:  +44 (0)131 338 6108
 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of violabg2002
Sent: 18 May 2005 11:24
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Cairngorm 0.99

great work!!

I'm having same problem with the installation of the cairgormstore example,
(I think the problem is whit the db files) after installing everything the
application start but I get e message saying:

Product could not be retrived!

Like I said I think the problem is with db files (I'm a flash/flex developer
and not very good with db), I'm not sure I put the store.cfg (do I need to
copy it with the conf folder or just put the file in the classes dir) end db
file in the right folders.

Any help would be appriciated.

PS. I'm using e flex developer edition on a integrated jrun installation.




 
Yahoo! Groups Links



 



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Cairngorm 0.99

2005-05-18 Thread violabg2002
thanks Alistair,

unfortunately that didn't solve the problem. I have copied the 
store.cfg file in the following dir:

Flex\jrun4\servers\default\cairngormstore\WEB-INF\classes

then I changed the path inside the store.cfg file like this:

db_path=c:\cairngormstore\db
connection_manager_impl=org.nevis.cairngorm.samples.store.dao.HSQLDBC
onnectionManager
#connection_manager_impl=org.nevis.cairngorm.samples.store.dao.MySQLC
onnectionManager

I then copied the contents of the db directory into 
c:\cairngormstore\db.
restarted the server but still geting: Product could not be retrived!

I tried using the netConnectionDebugger to see the call to the 
serveces and here they are:
MethodName: productServiceImpl.getProducts
Parameters (object #2)
.[0] (object #3)
.._flag: Envelope
..data (object #4)
...No properties
..headers (object #5)
...[0] (object #6)
[0]: ServiceType
[1]: (boolean) false
[2]: stateless-class



Status (object #2)
.code: Server.Processing
.description: org/apache/log4j/Layout
.details: 
.level: error
.type: 
.rootcause (object #3)
..code: (undefined) 
..description: org/apache/log4j/Layout
..details: 
..level: error
..type: 

is there a problem in reaching the service?

BTW. in the Cairngorm RIA Microarchitecture pdf is written:

Copy (contents of) webapp/ into WEBAPP_DIR/cairngormstore/
Copy conf/store.cfg and conf/log4j.properties to
WEBAPP_DIR/WEB-INF/classes

shouldn't it be 

WEBAPP_DIR/cairngormstore/WEB-INF/classes ?












--- In flexcoders@yahoogroups.com, Alistair McLeod [EMAIL PROTECTED] 
wrote:
 ...the path to the database can be relative to your webapp 
context root...
 
 Actually, that's wrong, its relative to the directory in which the 
command
 to start the JVM was exectuted. On tomcat, if you start via 
the .bat files,
 this will usually be TOMCAT_HOME.
 
 Because JRun expands WAR files into its own directory structure, 
in that
 case, it might be easier to set an absolute path in store.cfg.
 
 Cheers,
 
 Ali
 
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office:  +44 (0)131 338 6108
  
 This e-mail and any associated attachments transmitted with it may 
contain
 confidential information and must not be copied, or disclosed, or 
used by
 anyone other than the intended recipient(s). If you are not the 
intended
 recipient(s) please destroy this e-mail, and any copies of it, 
immediately.
  
 Please also note that while software systems have been used to try 
to ensure
 that this e-mail has been swept for viruses, iteration::two do not 
accept
 responsibility for any damage or loss caused in respect of any 
viruses
 transmitted by the e-mail. Please ensure your own checks are 
carried out
 before any attachments are opened.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Alistair McLeod
 Sent: 18 May 2005 11:31
 To: flexcoders@yahoogroups.com
 Subject: RE: [flexcoders] Re: Cairngorm 0.99
 
 Hi,
 
 The store.cfg file should be in your WEB-INF/classes directory. 
Within that,
 the path to the database can be relative to your webapp context 
root, or
 absolute. The simplest way to get ti working is to change the path 
an
 absolute path, (eg, c:\cairngorm\db), create that directory and 
copy the
 contents of the db directory from the distribution into it. 
Restart your app
 server and it should all work.
 
 Cheers,
 
 Ali 
 
 
 --
 Alistair McLeod
 Development Director
 iteration::two
 [EMAIL PROTECTED]
  
 Office:  +44 (0)131 338 6108
  
 This e-mail and any associated attachments transmitted with it may 
contain
 confidential information and must not be copied, or disclosed, or 
used by
 anyone other than the intended recipient(s). If you are not the 
intended
 recipient(s) please destroy this e-mail, and any copies of it, 
immediately.
  
 Please also note that while software systems have been used to try 
to ensure
 that this e-mail has been swept for viruses, iteration::two do not 
accept
 responsibility for any damage or loss caused in respect of any 
viruses
 transmitted by the e-mail. Please ensure your own checks are 
carried out
 before any attachments are opened.
  
 
 -Original Message-
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of violabg2002
 Sent: 18 May 2005 11:24
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Cairngorm 0.99
 
 great work!!
 
 I'm having same problem with the installation of the cairgormstore 
example,
 (I think the problem is whit the db files) after installing 
everything the
 application start but I get e message saying:
 
 Product could not be retrived!
 
 Like I said I think the problem is with db files (I'm a flash/flex 
developer
 and not very good with db), I'm not sure I put the store.cfg (do I 
need to
 copy

RE: [flexcoders] Re: Cairngorm 0.99

2005-05-18 Thread Steven Webster
Hey,

 then I changed the path inside the store.cfg file like this:
 
 db_path=c:\cairngormstore\db

I think (from the HSQLDB docs) that should be:

db_path=c:\\cairngormstore\\db\\

(ie you have to escape the \ character)


 Status (object #2)
 .code: Server.Processing
 .description: org/apache/log4j/Layout
 .details: 
 .level: error
 .type: 
 .rootcause (object #3)
 ..code: (undefined) 
 ..description: org/apache/log4j/Layout
 ..details: 
 ..level: error
 ..type: 

I'm concerned that the error you are getting here suggests that
it's not finding the log4j classes; log4j is used at runtime to
log exceptions, so if it's not finding your DB and then throwing
an exception, it looks like you might ALSO not have the log4j
jars copied out in the lib directory.

If you can at all use Ant to build the app

 shouldn't it be 
 
 WEBAPP_DIR/cairngormstore/WEB-INF/classes ?

Good spot, we'll fix that :-)

Let us know how you get on with the db_path above,

Best,

Steven

--
Steven Webster
Technical Director
iteration::two

 
This e-mail and any associated attachments transmitted with it may contain
confidential information and must not be copied, or disclosed, or used by
anyone other than the intended recipient(s). If you are not the intended
recipient(s) please destroy this e-mail, and any copies of it, immediately.
 
Please also note that while software systems have been used to try to ensure
that this e-mail has been swept for viruses, iteration::two do not accept
responsibility for any damage or loss caused in respect of any viruses
transmitted by the e-mail. Please ensure your own checks are carried out
before any attachments are opened.



 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/
 




[flexcoders] Re: Cairngorm 0.99

2005-05-18 Thread violabg2002
Hi Steven

changed the store.cfg paht to db_path=c:\\cairngormstore\\db\\
 but same problem.

I have

„h commons-lang-1.0.1.jar
„h commons-logging-1.0.4.jar
„h hsqldb.jar
„h log4j-1.2.8.jar

in the Flex\jrun4\servers\default\cairngormstore\WEB-INF\lib 
directory.

at this point I have tried to run the login example, but with non 
luck even here. I filled the form and press the login button and 
from the debugConnection I saw:

MethodName: customerServiceImpl.login
Parameters (object #2)
.[0] (object #3)
.._flag: Envelope
..data (object #4)
...[0]: (undefined) 
..headers (object #5)
...[0] (object #6)
[0]: ServiceType
[1]: (boolean) false
[2]: stateless-class


shouldn't I see the login and passoword passed to the remoteObject?

I'm getting really confused I'm not a beginner at least in the flex 
developmente (I'm not good in db and java) and I used the old but 
excellent Cairngorm 0.95 framework, I don't understand what I'm 
doing wrong.




--- In flexcoders@yahoogroups.com, Steven Webster [EMAIL PROTECTED] 
wrote:
 Hey,
 
  then I changed the path inside the store.cfg file like this:
  
  db_path=c:\cairngormstore\db
 
 I think (from the HSQLDB docs) that should be:
 
 db_path=c:\\cairngormstore\\db\\
 
 (ie you have to escape the \ character)
 
 
  Status (object #2)
  .code: Server.Processing
  .description: org/apache/log4j/Layout
  .details: 
  .level: error
  .type: 
  .rootcause (object #3)
  ..code: (undefined) 
  ..description: org/apache/log4j/Layout
  ..details: 
  ..level: error
  ..type: 
 
 I'm concerned that the error you are getting here suggests that
 it's not finding the log4j classes; log4j is used at runtime to
 log exceptions, so if it's not finding your DB and then throwing
 an exception, it looks like you might ALSO not have the log4j
 jars copied out in the lib directory.
 
 If you can at all use Ant to build the app
 
  shouldn't it be 
  
  WEBAPP_DIR/cairngormstore/WEB-INF/classes ?
 
 Good spot, we'll fix that :-)
 
 Let us know how you get on with the db_path above,
 
 Best,
 
 Steven
 
 --
 Steven Webster
 Technical Director
 iteration::two
 
  
 This e-mail and any associated attachments transmitted with it may 
contain
 confidential information and must not be copied, or disclosed, or 
used by
 anyone other than the intended recipient(s). If you are not the 
intended
 recipient(s) please destroy this e-mail, and any copies of it, 
immediately.
  
 Please also note that while software systems have been used to try 
to ensure
 that this e-mail has been swept for viruses, iteration::two do not 
accept
 responsibility for any damage or loss caused in respect of any 
viruses
 transmitted by the e-mail. Please ensure your own checks are 
carried out
 before any attachments are opened.




 
Yahoo! Groups Links

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

* Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/