RE: [flexcoders] Re: Cairngorm 0.99
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
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
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
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
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.
RE: [flexcoders] Re: Cairngorm 0.99
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
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.
RE: [flexcoders] Re: Cairngorm 0.99
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
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
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
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.
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 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/
RE: [flexcoders] Re: Cairngorm 0.99
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/