Environment Property (Adobe CF 8.0 versus OpenBD)

1 view
Skip to first unread message

Derrick Jackson

unread,
Jul 29, 2010, 10:14:26 AM7/29/10
to mach-ii-for...@googlegroups.com
Morning Folks,

I have been using OpenBlueDragon and Mach-II together for a while now.  Today I decided to modify an application that sites on top of Adobe CF 8.0.  Rather than installing the developer version of Adobe CF I created a CF WAR file and dropped that in Tomcat.  Once I got everything setup I attempted to use the EnviornmentProperty I got the following error:

The value for an environment named 'defaultEnvironmentName' is not a struct for the EnvironmentProperty in module ''.


The property node for the EnvironmentProperty was copied (key name/value pairs modified) from another app that works fine in OpenBlueDragon.  Is there something weird with Adobe CF and the EnvironmentProperty that I'm not aware of?

Peter J. Farrell

unread,
Jul 29, 2010, 12:34:04 PM7/29/10
to mach-ii-for...@googlegroups.com
Derrick Jackson said the following on 07/29/2010 09:14 AM:
Can you share a stripped down version of your configuration for the EnvironmentProperty?  It's probably just a configuration error.

Derrick Jackson

unread,
Jul 29, 2010, 1:07:02 PM7/29/10
to mach-ii-for...@googlegroups.com
Here it is.  This is an internal app and there is really nothing in here that is proprietary.  I'm sure now my eyes are crossing and I'm just missing something:

<property name="environment" type="MachII.properties.EnvironmentProperty">
            <parameters>
                <parameter name="defaultEnvironmentName" value="production"/>
                <parameter name="development">
                    <struct>
                        <key name="environmentGroup" value="development"/>
                        <key name="servers" value="wpa.local"/>
                        <key name="properties">
                            <struct>
                                <key name="documentUpload" value="/Applications/Tomcat/Home/webapps/WPA/downloads_wc/" />
                                <key name="documentURL" value="http://local/downloads_wc/" />
                                <key name="localPathToBlankAnnouncementImages" value="./images/announcements/blank" />
                                <key name="localPathToHRAnnouncementImages" value="./images/announcements/hr_features" />
                                <key name="urlPathToBlankAnnouncementImages" value="http://wpa.local/images/announcements/blank" />
                                <key name="urlPathToHRAnnouncementImages" value="http://wpa.local/images/announcements/hr_features" />
                            </struct>
                        </key>
                    </struct>
                </parameter>
                <parameter name="staging">
                    <struct>
                        <key name="environmentGroup" value="staging"/>
                        <key name="servers" value="domain,domain.com"/>
                        <key name="properties">
                            <struct>
                                <key name="documentUpload" value="d:/sites/downloads_wc/" />
                                <key name="documentURL" value="http://downloads_wc/" />
                                <key name="localPathToBlankAnnouncementImages" value="./images/announcements/blank" />
                                <key name="localPathToHRAnnouncementImages" value="./images/announcements/hr_features" />
                                <key name="urlPathToBlankAnnouncementImages" value="http://domain.com/images/announcements/blank" />
                                <key name="urlPathToHRAnnouncementImages" value="http://domain.com/images/announcements/hr_features" />
                            </struct>
                        </key>
                    </struct>
                </parameter>
                <parameter name="production">
                    <struct>
                        <key name="environmentGroup" value="production"/>
                        <key name="servers" value="wpa,wpa.domain.com"/>
                        <key name="properties">
                            <struct>
                                <key name="documentUpload" value="" />
                                <key name="documentURL" value="http://domain/downloads_wc/" />
                                <key name="localPathToBlankAnnouncementImages" value="./images/announcements/blank" />
                                <key name="localPathToHRAnnouncementImages" value="./images/announcements/hr_features" />
                                <key name="urlPathToBlankAnnouncementImages" value="http://wpa.domain.com/images/announcements/blank" />
                                <key name="urlPathToHRAnnouncementImages" value="http://wpa.domain.com/images/announcements/hr_features" />
                            </struct>
                        </key>
                    </struct>
                </parameter>
            </parameters>
        </property>

--
You received this message because you are subscribed to Mach-II for CFML list.
To post to this group, send email to mach-ii-for...@googlegroups.com
To unsubscribe from this group, send email to mach-ii-for-coldf...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/mach-ii-for-coldfusion?hl=en
 
***New URLs as of April 29th, 2010***
SVN: http://svn.mach-ii.com/machii/
Wiki / Documentation / Tickets: http://trac.mach-ii.com/machii/

Peter J. Farrell

unread,
Jul 29, 2010, 1:22:39 PM7/29/10
to mach-ii-for...@googlegroups.com
Figured it out.  In early betas / svn versions of 1.8.0, the parameter currently named "defaultEnvironmentName" was called "defaultEnvironment".  The EnvironmentProperty is complaining you have set an environment named "defaultEnvironmentName" and it's look for the struct containing "environmentGroup", "servers" and "properties".  The problem is the version of Mach-II you are using is pre-beta version of 1.8.0.  Make sure the app is running the stable of 1.8.0 and that should fix your issue.

.pjf

P.s.  Would you file a ticket today in regards to the exception message you got?  I think we can update that message to be more clear.  I can get that rolled into 1.8.1 and 1.9.0 branches.

Derrick Jackson said the following on 07/29/2010 12:07 PM:

Derrick Jackson

unread,
Jul 29, 2010, 1:30:09 PM7/29/10
to mach-ii-for...@googlegroups.com
AHHHH.... I just assumed I had the stable version.  I only went as far as checking the name of the dtd file in the directory structure.  I should have looked at Dashboard. 

Thanks peter

Peter J. Farrell

unread,
Jul 29, 2010, 1:43:41 PM7/29/10
to mach-ii-for...@googlegroups.com
Derrick Jackson said the following on 07/29/2010 12:30 PM:

> AHHHH.... I just assumed I had the stable version. I only went as far
> as checking the name of the dtd file in the directory structure. I
> should have looked at Dashboard.
FYI, all built versions of Mach-II (meaning not checked out from SVN)
have a bunch of information in the README file that can aid this in:

------------------------------------------------
__ ___ __ ________
/ |/ /___ ______/ /_ / _/ _/
/ /|_/ / __ `/ ___/ __ \______ / / / /
/ / / / /_/ / /__/ / / /_____// /_/ /
/_/ /_/\__,_/\___/_/ /_/ /___/___/

Version: 1.8.1.@minorVersion@ (Simplicity)
Built-on: @buildDatetime@
$Id: README 2258 2010-07-29 04:31:19Z peterjfarrell $

If the @minorVersion@ is between 0-9 then it's either a
beta/milestone/rc release. If it's number like, 1.8.1.2247 then it's
been built from SVN (but not checkout) and therefore a nightly version.
The "2247" would be equal to the last commit number for that build.

Glad you have your problem fixed.

.pjf

Reply all
Reply to author
Forward
0 new messages